/* /agents overview grid and impact/effort map. Builds on styles.css tokens. */
.ov-section { background: var(--paper); }
.ov-phases { display: grid; gap: 8px; }
.ov-phases span { color: #cfe3e8; font-size: 13px; line-height: 1.5; }
.ov-phases b { color: white; }

/* Filters */
.ov-filters { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 40px; padding: 18px 20px; background: white; border: 1px solid #e3eaec; border-radius: 12px; }
.ov-filter { display: grid; gap: 6px; min-width: 0; }
.ov-filter-label { color: #627788; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ov-filter-options { display: flex; flex-wrap: wrap; gap: 4px; }
.ov-filter-options button { min-height: 34px; padding: 0 12px; color: #4b6576; background: #f0f4f5; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.ov-filter-options button:hover { color: var(--navy); border-color: #cfdbe0; }
.ov-filter-options button[aria-pressed="true"] { color: var(--navy); background: #e3f6f3; border-color: #29c8bb; }
.ov-filter-options button:focus-visible, .ov-reset:focus-visible { outline: 3px solid rgba(41,200,187,.55); outline-offset: 2px; }
.ov-reset { align-self: end; min-height: 34px; margin-left: auto; padding: 0 14px; color: var(--blue); background: transparent; border: 1px solid #cfdbe0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.ov-count { margin: 16px 0 0; color: #607583; font-size: 13px; }
.ov-count strong { color: var(--ink); }

/* Overview cards */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 14px; }
.ov-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 20px; background: white; border: 1px solid #e3eaec; border-radius: 12px; scroll-margin-top: 110px; transition: border-color .25s ease, box-shadow .25s ease; }
.ov-card[hidden] { display: none; }
.ov-card::before { position: absolute; top: 0; right: 20px; left: 20px; height: 3px; content: ""; background: var(--q-color, var(--teal)); border-radius: 0 0 3px 3px; }
.ov-card:focus { outline: none; }
.ov-card:focus-visible, .ov-card.is-highlight { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(41,200,187,.28); }
.ov-card.is-highlight { animation: ov-pulse 1.4s ease 2; }
@keyframes ov-pulse { 50% { box-shadow: 0 0 0 9px rgba(41,200,187,.12); } }
.ov-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ov-num { color: #198487; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.ov-status { padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.ov-status.is-live { color: #0c5c58; background: #dcf5f0; }
.ov-status.is-demo { color: #4b6576; background: #eef3f4; }
.ov-status.is-ready { color: #6a4b08; background: #fbf1da; }
.ov-card h3 { margin: 10px 0 6px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.ov-task { margin: 0 0 14px; color: #566d7c; font-size: 13px; line-height: 1.55; }
.ov-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid #edf1f2; }
.ov-meta div { min-width: 0; }
.ov-meta dt { color: #7a8d9a; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ov-meta dd { margin: 2px 0 0; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.35; }
.ov-quadrant { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 10px 4px 4px; color: var(--q-ink, var(--ink)); background: var(--q-bg, #f0f4f5); border: 1px solid var(--q-line, #dfe8ea); border-radius: 999px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ov-quadrant i { display: grid; width: 20px; height: 20px; place-items: center; color: white; background: var(--q-color); border-radius: 50%; font-size: 10px; font-style: normal; }
.ov-quadrant:focus-visible { outline: 3px solid rgba(41,200,187,.55); outline-offset: 2px; }
.ov-merged { margin: 0 0 12px; color: #607583; font-size: 11px; line-height: 1.45; }
.ov-merged strong { color: var(--ink); }
.ov-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 4px; }
.ov-try { display: inline-flex; min-height: 36px; align-items: center; padding: 0 16px; color: var(--navy); background: var(--teal); border-radius: 999px; font-size: 12px; font-weight: 750; text-decoration: none; }
.ov-try:hover { background: #65dbd0; }
button.ov-try { border: 0; cursor: pointer; font-family: inherit; }
button.ov-try:disabled { cursor: progress; opacity: .7; }
.ov-story { color: var(--blue); font-size: 12px; font-weight: 700; }
.ov-try:focus-visible, .ov-story:focus-visible { outline: 3px solid rgba(41,200,187,.55); outline-offset: 2px; }
.ov-empty { grid-column: 1 / -1; padding: 28px; color: #607583; background: white; border: 1px dashed #cfdbe0; border-radius: 12px; text-align: center; }

/* Quadrant palette (matches the workshop impact/effort matrix) */
.q-big { --q-color: #2f6fb8; --q-ink: #1d4f8a; --q-bg: #eaf2fb; --q-line: #a9c6ea; }
.q-quick { --q-color: #2c9a52; --q-ink: #1d6b39; --q-bg: #e8f6ec; --q-line: #9cd6ae; }
.q-park { --q-color: #c94a4a; --q-ink: #9a3030; --q-bg: #fcecec; --q-line: #eeb1b1; }
.q-nice { --q-color: #c48a12; --q-ink: #835a06; --q-bg: #fdf5df; --q-line: #ebcd84; }

/* Impact / effort map */
.map-section { background: white; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 28px; margin-top: 40px; }
.impact-map { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 34px; gap: 12px; }
.map-axis { display: flex; align-items: center; justify-content: center; color: #4b6576; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.map-axis-y { grid-row: 1 / 3; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); }
.map-axis-x { grid-row: 3; grid-column: 2 / 4; gap: 10px; }
.map-axis b { color: var(--ink); }
.map-q { display: flex; min-width: 0; flex-direction: column; padding: 16px 18px 12px; background: var(--q-bg); border: 2px solid var(--q-line); border-radius: 16px; }
.map-q.q-big { grid-row: 1; grid-column: 2; }
.map-q.q-quick { grid-row: 1; grid-column: 3; }
.map-q.q-park { grid-row: 2; grid-column: 2; }
.map-q.q-nice { grid-row: 2; grid-column: 3; }
.map-q h3 { margin: 0; color: var(--q-ink); font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.map-q-sub { margin: 4px 0 0; color: #4b6576; font-size: 12px; line-height: 1.45; }
.map-q-hint { display: none; margin: 6px 0 0; color: #7a8d9a; font-size: 10px; }
.map-callout { margin: 10px 0 0; padding: 9px 12px; color: var(--ink); background: white; border: 1px dashed var(--q-color); border-radius: 10px; font-size: 12px; line-height: 1.45; }
.map-callout span { display: inline-block; margin-right: 6px; padding: 2px 7px; color: white; background: var(--q-color); border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.map-plot { position: relative; flex: 1; min-height: 300px; margin-top: 10px; }
.map-chip { position: absolute; z-index: 1; top: calc(var(--y) + var(--dy, 0px)); left: var(--x); display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 3px 10px 3px 3px; color: var(--ink); background: white; border: 1px solid var(--q-line); border-radius: 999px; box-shadow: 0 1px 4px rgba(16,42,67,.1); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; transform: translate(-11px, -50%); transition: opacity .2s ease, box-shadow .2s ease; }
.map-chip.is-flip { flex-direction: row-reverse; padding: 3px 3px 3px 10px; transform: translate(calc(-100% + 11px), -50%); }
.map-chip .chip-n { display: grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; color: white; background: var(--q-color); border-radius: 50%; font-size: 10px; font-weight: 800; }
.map-chip .chip-label { overflow: hidden; text-overflow: ellipsis; }
.map-chip:hover, .map-chip:focus-visible, .map-chip.is-active { z-index: 4; border-color: var(--q-color); box-shadow: 0 0 0 3px rgba(41,200,187,.35), 0 4px 12px rgba(16,42,67,.16); outline: none; }
.map-chip.is-dim { opacity: .28; }
.map-chip.is-start { border-width: 2px; border-color: var(--q-color); }
.map-tip { position: fixed; z-index: 60; width: min(320px, calc(100vw - 24px)); padding: 14px 16px; color: #e3f2f2; background: #0c2d4b; border-radius: 12px; box-shadow: 0 12px 30px rgba(7,28,54,.3); font-size: 12px; line-height: 1.5; pointer-events: none; }
.map-tip[hidden] { display: none; }
.map-tip strong { display: block; margin-bottom: 2px; color: white; font-size: 14px; }
.map-tip .tip-meta { margin: 0 0 6px; color: #8ce8de; font-size: 11px; font-weight: 700; }
.map-tip p { margin: 0 0 6px; }
.map-tip .tip-why { margin: 0; color: #bcd3dc; }

/* Recommended start sequence */
.map-start { padding: 22px; background: #0c2d4b; border-radius: 16px; color: #d6e8ee; }
.map-start-kicker { margin: 0 0 6px; color: #8ce8de; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.map-start h3 { margin: 0 0 14px; color: white; font-size: 20px; font-weight: 650; }
.map-start-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: start; }
.map-start-list li { position: relative; padding-left: 36px; font-size: 13px; line-height: 1.5; counter-increment: start; }
.map-start-list li::before { position: absolute; top: 0; left: 0; display: grid; width: 24px; height: 24px; place-items: center; color: var(--navy); background: var(--teal); border-radius: 50%; content: counter(start); font-size: 12px; font-weight: 800; }
.map-start-list a { color: white; font-weight: 750; }
.map-start-list small { display: block; color: #9fb7c5; font-size: 11px; }
.map-start-note { margin: 16px 0 0; color: #f5c862; font-size: 11px; font-weight: 700; }

/* Table alternative */
.map-table-wrap { margin-top: 28px; border: 1px solid #e3eaec; border-radius: 12px; }
.map-table-wrap summary { padding: 14px 18px; color: var(--blue); cursor: pointer; font-size: 14px; font-weight: 700; }
.map-table-wrap summary:focus-visible { outline: 3px solid rgba(41,200,187,.55); outline-offset: 2px; }
.map-table-scroll { overflow-x: auto; padding: 0 18px 18px; }
.map-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.map-table caption { padding-bottom: 10px; color: #607583; font-size: 12px; text-align: left; }
.map-table th, .map-table td { padding: 9px 10px; border-bottom: 1px solid #edf1f2; text-align: left; vertical-align: top; }
.map-table th { color: #627788; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.map-table td:nth-child(4), .map-table td:nth-child(5) { font-variant-numeric: tabular-nums; }
.map-table td a { color: var(--blue); font-weight: 700; }
.map-table .q-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--q-color); border-radius: 50%; }

.ov-cta { color: white; background: var(--navy); }
.ov-cta .lead { color: #bed1da; }
.ov-cta-actions { justify-content: flex-end; }

@media (max-width: 1099px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-start { max-width: 640px; }
}
@media (max-width: 760px) {
  .ov-filters { padding: 14px; }
  .ov-reset { margin-left: 0; }
  .impact-map { grid-template-columns: 1fr; grid-template-rows: none; }
  .map-axis { display: none; }
  .map-q.q-big, .map-q.q-quick, .map-q.q-park, .map-q.q-nice { grid-row: auto; grid-column: 1; }
  .map-q.q-quick { order: 1; }
  .map-q.q-big { order: 2; }
  .map-q.q-nice { order: 3; }
  .map-q.q-park { order: 4; }
  .map-q-hint { display: block; }
  .map-plot { min-height: 190px; }
  .map-chip { gap: 0; padding: 3px; }
  .map-chip, .map-chip.is-flip { padding: 3px; transform: translate(-50%, -50%); }
  .map-chip .chip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .map-chip .chip-n { width: 28px; height: 28px; font-size: 11px; }
  .ov-cta-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-card.is-highlight { animation: none; }
}
.usecase-card.is-highlight { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(41,200,187,.28); }

/* Copilot Studio chats: live-agent gate and badge */
.copilot-chat-title { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copilot-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; color: #0c5c58; background: #e3f6f3; border-radius: 999px; font-size: 9.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.copilot-live-badge::before { width: 6px; height: 6px; content: ""; background: currentColor; border-radius: 50%; }
.copilot-live-badge[hidden] { display: none; }
.copilot-state p { font-size: 13px; }
.copilot-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.copilot-gate-unlock { display: inline-flex; align-items: center; gap: 8px; }
.copilot-gate-unlock svg { width: 16px; height: 16px; }
.copilot-preview-link { color: #096f79; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 40-minute tour highlight */
.ov-tour-badge { padding: 4px 8px; color: var(--navy); background: #e3f6f3; border: 1px solid #9fe3dc; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ov-card.is-featured { border-color: #9fe3dc; box-shadow: inset 0 3px 0 var(--teal); }
.map-tour-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; color: #4b6576; font-size: 12px; }
.map-tour-swatch { width: 14px; height: 14px; border: 3px solid #f5c862; border-radius: 50%; }
.map-tour-toggle { padding: 3px 10px; color: var(--navy); background: white; border: 1px solid #cfdbe0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.is-tour-highlight .map-chip.is-featured { z-index: 2; box-shadow: 0 0 0 3px #f5c862, 0 6px 16px rgba(7,28,54,.18); }
