@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  --gcp-blue: #1a73e8;
  --gcp-blue-hover: #1765cc;
  --gcp-blue-light: #e8f0fe;
  --gcp-bg: #f8f9fa;
  --gcp-surface: #ffffff;
  --gcp-sidebar: #f1f3f4;
  --gcp-border: #dadce0;
  --gcp-text: #202124;
  --gcp-text-secondary: #5f6368;
  --gcp-text-muted: #80868b;
  --gcp-success: #1e8e3e;
  --gcp-success-bg: #e6f4ea;
  --gcp-warning: #e37400;
  --gcp-warning-bg: #fef7e0;
  --gcp-error: #d93025;
  --gcp-error-bg: #fce8e6;
  --gcp-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --gcp-radius: 8px;
  --topbar-h: 64px;
  --sidebar-w: 256px;
  --assistant-w: 380px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: var(--gcp-text);
  background: var(--gcp-bg);
  line-height: 1.5;
}

body.app-page { overflow-x: hidden; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  vertical-align: middle;
}

/* ── Top bar ── */
.gcp-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--gcp-surface);
  border-bottom: 1px solid var(--gcp-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  z-index: 200;
}

.gcp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gcp-text-secondary);
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 22px;
  font-weight: 400;
  padding: 0 8px;
}

.gcp-brand-icon { color: var(--gcp-blue); font-size: 28px !important; }
.gcp-brand-text { color: var(--gcp-text-secondary); font-size: 18px; }

.gcp-topbar-divider {
  width: 1px;
  height: 32px;
  background: var(--gcp-border);
  margin: 0 8px;
}

.gcp-project-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--gcp-text);
  background: var(--gcp-surface);
}

.gcp-project-chip .material-symbols-outlined { font-size: 18px; color: var(--gcp-text-secondary); }

.gcp-topbar-spacer { flex: 1; }

.gcp-usage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-right: 8px;
  border-radius: 20px;
  background: #e8f0fe;
  color: #1967d2;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #d2e3fc;
  flex-shrink: 0;
}
.gcp-usage-chip:hover {
  background: #d2e3fc;
}
.gcp-usage-chip-error {
  opacity: 0.72;
}
.gcp-usage-chip .material-symbols-outlined {
  font-size: 18px;
}

.usage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.usage-period-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gcp-text-secondary);
}
.usage-period-select {
  padding: 8px 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.usage-stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.usage-stat-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
}
.usage-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f0fe;
  display: grid;
  place-items: center;
  color: #1967d2;
  flex-shrink: 0;
}
.usage-stat-label {
  display: block;
  font-size: 13px;
  color: var(--gcp-text-secondary);
  margin-bottom: 4px;
}
.usage-stat-value {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}
.usage-stat-sub {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.usage-distribution-card {
  margin-bottom: 20px;
  padding: 20px;
}
.usage-distribution-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
}
.usage-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f3f4;
}
.usage-bar-seg { min-width: 0; }
.usage-bar-content { background: #1a73e8; }
.usage-bar-chat { background: #9334e6; }
.usage-bar-transcription { background: #188038; }
.usage-bar-legend {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gcp-text-secondary);
}
.usage-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.usage-dot-content { background: #1a73e8; }
.usage-dot-chat { background: #9334e6; }
.usage-dot-transcription { background: #188038; }
.usage-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.usage-category-card { padding: 20px; min-width: 0; }
.usage-category-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.usage-category-header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}
.usage-category-header p {
  margin: 2px 0 0;
  font-size: 13px;
  white-space: nowrap;
}
.usage-accent-content { color: #1a73e8; }
.usage-accent-chat { color: #9334e6; }
.usage-accent-transcription { color: #188038; }
.usage-accent-images { color: #e8710a; }
.usage-metrics-grid {
  display: grid;
  gap: 8px 12px;
}
.usage-metrics-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.usage-metrics-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.usage-metric-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.usage-metric-label {
  font-size: 11px;
  line-height: 1.25;
  color: var(--gcp-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usage-metric-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}
.usage-metric-sub {
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}
/* legado — tabelas de operação */
.usage-token-grid-single { grid-template-columns: 1fr; }
.usage-token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}
.usage-token-grid dt {
  font-size: 12px;
  color: var(--gcp-text-secondary);
  margin-bottom: 2px;
}
.usage-token-grid dd {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}
.usage-table-wrap { overflow-x: auto; }
.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.usage-table th,
.usage-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gcp-border);
}
.usage-table th {
  font-weight: 500;
  color: var(--gcp-text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.usage-model {
  font-size: 12px;
  color: var(--gcp-text-secondary);
}

.usage-live-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #188038;
  background: #e6f4ea;
}
.usage-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gcp-border);
  flex-wrap: wrap;
}
.usage-pagination-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.usage-pagination-page {
  font-size: 14px;
  color: var(--gcp-text-secondary);
  min-width: 120px;
  text-align: center;
}
.usage-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
}
.usage-page-btn .material-symbols-outlined {
  font-size: 18px;
}
.usage-page-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.gcp-topbar-project {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.gcp-topbar-live-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: min(360px, 36vw);
}
.gcp-topbar-live-slot:not(.hidden) {
  min-width: 0;
}

.gcp-page-header-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.gcp-page-header-title-row h1 {
  margin: 0;
}
.gcp-page-header-live-slot {
  display: flex;
  align-items: center;
}
.gcp-page-recording-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fce8e6;
  border: 1px solid #f9ab00;
  color: #3c4043;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  max-width: min(420px, 70vw);
  overflow: hidden;
}
.gcp-page-recording-pill:hover {
  background: #fad2cf;
}
.gcp-page-recording-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-weight: 600;
}

.dash-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.dash-hero-title-row .dash-hero-title {
  margin: 0;
}
.dash-hero-recording-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #f9ab00;
  color: #3c4043;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  max-width: min(420px, 100%);
  overflow: hidden;
}
.dash-hero-recording-pill:hover {
  background: #fff;
}
.dash-hero-recording-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-weight: 600;
}
.dash-hero-recording-pill .live-dot {
  background: #c5221f;
}

.gcp-topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--gcp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex-shrink: 0;
}
.gcp-topbar-live strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.gcp-topbar-live-recording {
  background: #fce8e6;
  border: 1px solid #f9ab00;
  color: #3c4043;
}
.gcp-topbar-live-recording:hover {
  background: #fad2cf;
}
.gcp-topbar-live-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c5221f;
  flex-shrink: 0;
}
.gcp-topbar-live-pending {
  background: var(--gcp-warning-bg);
  border: 1px solid #fdd663;
  color: #3c4043;
  font-size: 12px;
}
.gcp-topbar-live-pending .material-symbols-outlined {
  font-size: 16px !important;
  color: var(--gcp-warning);
}

.gcp-topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  background: var(--gcp-surface);
  color: var(--gcp-text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.gcp-topbar-action:hover { background: rgba(60, 64, 67, 0.04); }
.gcp-topbar-action .material-symbols-outlined { font-size: 18px; color: var(--gcp-text-secondary); }
.gcp-topbar-action-primary {
  background: var(--gcp-blue);
  border-color: var(--gcp-blue);
  color: #fff;
}
.gcp-topbar-action-primary .material-symbols-outlined { color: #fff; }
.gcp-topbar-action-primary:hover { background: #1557b0; border-color: #1557b0; }

.gcp-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--gcp-text-secondary);
}
.gcp-icon-btn:hover { background: rgba(60, 64, 67, 0.08); }

.gcp-user-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
}
.gcp-user-btn:hover { background: rgba(60, 64, 67, 0.08); }

.gcp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gcp-blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 500;
}
.gcp-avatar-img {
  display: block;
  object-fit: cover;
  background: var(--gcp-bg);
}
.gcp-avatar-lg {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.gcp-user-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.gcp-user-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gcp-user-info-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.gcp-user-info-text .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.gcp-user-menu { position: relative; }

.gcp-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius);
  box-shadow: var(--gcp-shadow);
  padding: 8px 0;
  z-index: 300;
}

.gcp-user-info {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gcp-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.gcp-user-info strong { font-size: 14px; }
.gcp-user-info .muted { font-size: 12px; color: var(--gcp-text-secondary); }

.gcp-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--gcp-text);
  text-align: left;
}
.gcp-dropdown-item:hover { background: rgba(60, 64, 67, 0.04); }

/* ── Body layout ── */
.gcp-body {
  display: flex;
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

.gcp-sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  background: var(--gcp-sidebar);
  border-right: 1px solid var(--gcp-border);
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.2s ease;
}

.gcp-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gcp-text);
}

.gcp-sidebar-logo { color: var(--gcp-blue); }

.gcp-nav { padding: 12px 0 8px; }

.gcp-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px 10px 20px;
  text-decoration: none;
  color: var(--gcp-text);
  font-size: 14px;
  border-left: 4px solid transparent;
  transition: background 0.1s;
}
.gcp-nav-item:hover { background: rgba(60, 64, 67, 0.06); }
.gcp-nav-item.active {
  background: var(--gcp-blue-light);
  border-left-color: var(--gcp-blue);
  color: var(--gcp-blue);
  font-weight: 500;
}
.gcp-nav-item.active .gcp-nav-icon { color: var(--gcp-blue); }

.gcp-nav-icon { color: var(--gcp-text-secondary); font-size: 20px !important; }

.gcp-sidebar-backdrop {
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 90;
}

.gcp-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 24px 32px 48px;
  min-width: 0;
}
.gcp-main-flush {
  padding-top: 20px;
}

/* ── Page header ── */
.gcp-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gcp-page-header h1 {
  margin: 0;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--gcp-text);
}

.gcp-page-subtitle {
  margin: 4px 0 0;
  color: var(--gcp-text-secondary);
  font-size: 14px;
}

.gcp-page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.gcp-breadcrumbs {
  font-size: 13px;
  color: var(--gcp-text-secondary);
  margin-bottom: 4px;
}
.gcp-breadcrumbs a {
  color: var(--gcp-blue);
  text-decoration: none;
}
.gcp-breadcrumbs a:hover { text-decoration: underline; }
.gcp-breadcrumb-sep { margin: 0 6px; color: var(--gcp-text-muted); }

/* ── Cards & grid ── */
.gcp-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.gcp-card {
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius);
  box-shadow: var(--gcp-shadow);
  padding: 20px;
}

.gcp-card h2, .gcp-card h3 {
  margin: 0 0 8px;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.gcp-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}
.gcp-card-link:hover {
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.gcp-metric-value {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--gcp-blue);
  line-height: 1.2;
}

.gcp-metric-label {
  font-size: 14px;
  color: var(--gcp-text-secondary);
  margin-top: 4px;
}

.gcp-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gcp-border);
}
.gcp-card-footer a {
  color: var(--gcp-blue);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gcp-card-footer a:hover { text-decoration: underline; }

.gcp-section-title {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--gcp-text);
}

/* ── Conta pendente / inativa ── */
.account-status-card {
  max-width: 520px;
  margin: 40px auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: 16px;
  box-shadow: var(--gcp-shadow);
}

.account-status-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.account-status-icon-wrap .material-symbols-outlined {
  font-size: 40px;
}

.account-status-icon-wrap.pending {
  background: var(--gcp-warning-bg);
  color: var(--gcp-warning);
}

.account-status-icon-wrap.inactive {
  background: #f1f3f4;
  color: var(--gcp-text-secondary);
}

.account-status-card h2 {
  margin: 0 0 12px;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gcp-text);
}

.account-status-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gcp-text-secondary);
}

.account-status-card p:last-of-type {
  margin-bottom: 0;
}

.account-status-card .account-status-refresh {
  margin-top: 24px;
}

/* ── Dashboard ── */
.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
}
.dash {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a73e8 0%, #174ea6 55%, #1557b0 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.25);
}
.dash-hero-greeting {
  margin: 0 0 4px;
  font-size: 14px;
  opacity: 0.9;
}
.dash-hero-title {
  margin: 0 0 6px;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}
.dash-hero-sub {
  margin: 0;
  font-size: 14px;
  opacity: 0.88;
  max-width: 520px;
}
.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dash-hero-btn.btn-primary {
  background: #fff;
  color: var(--gcp-blue);
}
.dash-hero-btn.btn-primary:hover {
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.dash-hero-btn.btn-outlined {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.dash-hero-btn.btn-outlined:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}
.dash-alert { margin: 0; }
.dash-alert-recording {
  background: #fce8e6;
  border: 1px solid #f9ab00;
  color: #3c4043;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dash-kpi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.dash-kpi:hover {
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.12);
  border-color: #c2d7f7;
  transform: translateY(-1px);
}
.dash-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-kpi-icon .material-symbols-outlined { font-size: 24px !important; }
.dash-kpi-blue .dash-kpi-icon { background: var(--gcp-blue-light); color: var(--gcp-blue); }
.dash-kpi-green .dash-kpi-icon { background: var(--gcp-success-bg); color: var(--gcp-success); }
.dash-kpi-amber .dash-kpi-icon { background: var(--gcp-warning-bg); color: var(--gcp-warning); }
.dash-kpi-neutral .dash-kpi-icon { background: #f1f3f4; color: var(--gcp-text-secondary); }
.dash-kpi-live {
  border-color: #fdd663;
  box-shadow: 0 0 0 1px rgba(227, 116, 0, 0.15);
}
.dash-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dash-kpi-value {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--gcp-text);
}
.dash-kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text);
}
.dash-kpi-sub {
  font-size: 12px;
  color: var(--gcp-text-secondary);
  margin-top: 2px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.dash-main,
.dash-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dash-panel {
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--gcp-shadow);
}
.dash-panel-compact { padding: 18px 20px; }
.dash-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.dash-panel-title {
  margin: 0;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--gcp-text);
}
.dash-panel-sub {
  margin: 4px 0 0;
  font-size: 13px;
}
.dash-panel-link {
  font-size: 13px;
  color: var(--gcp-blue);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-panel-link:hover { text-decoration: underline; }
.dash-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 160px;
  padding-top: 8px;
}
.dash-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 100%;
}
.dash-bar-track {
  flex: 1;
  width: 100%;
  max-width: 36px;
  display: flex;
  align-items: flex-end;
  background: #f1f3f4;
  border-radius: 6px 6px 2px 2px;
  overflow: hidden;
}
.dash-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #4a90e8 0%, var(--gcp-blue) 100%);
  border-radius: 6px 6px 2px 2px;
  min-height: 8px;
  transition: height 0.3s ease;
}
.dash-bar-label {
  font-size: 10px;
  color: var(--gcp-text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dash-bar-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--gcp-text);
  min-height: 14px;
}
.dash-recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.dash-recent-row:hover { background: var(--gcp-blue-light); }
.dash-recent-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f3f4;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gcp-blue);
}
.dash-recent-icon .material-symbols-outlined { font-size: 20px !important; }
.dash-recent-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-recent-title {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-recent-meta {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-upcoming-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s, border-color 0.12s;
}
.dash-upcoming-row:hover {
  background: #f8f9fa;
  border-color: var(--gcp-border);
}
.dash-upcoming-when {
  font-size: 11px;
  font-weight: 500;
  color: var(--gcp-blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dash-upcoming-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.dash-upcoming-meta {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-upcoming-bot {
  display: inline-grid;
  place-items: center;
}
.dash-upcoming-bot .material-symbols-outlined { font-size: 16px !important; }
.dash-upcoming-bot.on { color: var(--gcp-success); }
.dash-upcoming-bot.off { color: var(--gcp-text-muted); opacity: 0.6; }
.dash-connect-card {
  text-align: center;
  padding: 16px 12px;
}
.dash-connect-card .material-symbols-outlined {
  font-size: 36px !important;
  color: var(--gcp-blue);
  margin-bottom: 8px;
}
.dash-connect-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--gcp-text-secondary);
}
.dash-empty-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  color: var(--gcp-text-secondary);
}
.dash-empty-inline .material-symbols-outlined {
  font-size: 40px !important;
  opacity: 0.5;
  margin-bottom: 8px;
}
.dash-empty-inline p { margin: 0; font-size: 14px; max-width: 280px; }
.dash-empty-sm { padding: 16px 8px; }
.dash-empty-sm .material-symbols-outlined { font-size: 32px !important; }
.dash-insights-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-insights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gcp-text-secondary);
  line-height: 1.45;
}
.dash-insights-list .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--gcp-blue);
  flex-shrink: 0;
  margin-top: 1px;
}
.dash-insights-list strong { color: var(--gcp-text); }
.dash-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--gcp-border);
}
.dash-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid var(--gcp-border);
  background: #fafbfc;
  color: var(--gcp-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
}
.dash-quick-link:hover {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.dash-quick-link .material-symbols-outlined { font-size: 18px !important; }

.alert-info {
  background: var(--gcp-blue-light);
  border: 1px solid #c2d7f7;
  color: #3c4043;
}
.alert-info .material-symbols-outlined { color: #c5221f; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 4px;
  padding: 0 24px;
  height: 36px;
  cursor: pointer;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gcp-blue);
  color: white;
}
.btn-primary:hover { background: var(--gcp-blue-hover); box-shadow: 0 1px 2px rgba(60,64,67,.3); }

.btn-outlined {
  background: var(--gcp-surface);
  color: var(--gcp-blue);
  border: 1px solid var(--gcp-border);
}
.btn-outlined:hover { background: var(--gcp-blue-light); border-color: transparent; }

.btn-ghost {
  background: transparent;
  color: var(--gcp-blue);
  border: 1px solid var(--gcp-border);
}
.btn-ghost:hover { background: rgba(60, 64, 67, 0.04); }

.btn-block { width: 100%; justify-content: center; }

/* ── Table-style list ── */
.gcp-table-card {
  padding: 0;
  overflow: hidden;
}

.gcp-table {
  width: 100%;
  border-collapse: collapse;
}
.gcp-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
  background: var(--gcp-bg);
  border-bottom: 1px solid var(--gcp-border);
}
.gcp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gcp-border);
  font-size: 14px;
}
.gcp-table tr:last-child td { border-bottom: none; }
.gcp-table tr:hover td { background: rgba(60, 64, 67, 0.04); }
.gcp-table a {
  color: var(--gcp-blue);
  text-decoration: none;
  font-weight: 500;
}
.gcp-table a:hover { text-decoration: underline; }

/* ── Badges & alerts ── */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e8eaed;
  color: var(--gcp-text-secondary);
}
.badge-scheduled { background: #e8f0fe; color: #1967d2; }
.badge-bot_requested, .badge-joining { background: #fef7e0; color: #b06000; }
.badge-awaiting_admission { background: #fef7e0; color: var(--gcp-warning); }
.badge-active { background: var(--gcp-success-bg); color: var(--gcp-success); }
.badge-live-recording {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #f9ab00;
  font-weight: 600;
}
.badge-live-pending {
  background: var(--gcp-warning-bg);
  color: #b06000;
  border: 1px solid #fdd663;
}
.badge-with-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-with-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5221f;
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
}
.badge-processing { background: #e8f0fe; color: var(--gcp-blue); }
.badge-completed { background: var(--gcp-success-bg); color: var(--gcp-success); }
.badge-failed { background: var(--gcp-error-bg); color: var(--gcp-error); }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5221f;
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--gcp-radius);
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert .material-symbols-outlined { flex-shrink: 0; margin-top: 1px; }
.alert-warning { background: var(--gcp-warning-bg); border: 1px solid #fdd663; color: #3c4043; }
.alert-success { background: var(--gcp-success-bg); border: 1px solid #81c995; color: #3c4043; }
.alert-error { background: var(--gcp-error-bg); border: 1px solid #f28b82; color: #3c4043; }

.muted { color: var(--gcp-text-secondary); }
.error { color: var(--gcp-error); }
.hidden { display: none !important; }

/* ── Meeting detail ── */
.markdown { font-size: 14px; line-height: 1.6; }
.markdown h2 { font-family: "Google Sans", Roboto, sans-serif; font-size: 18px; margin-top: 1.5rem; }
.markdown table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.markdown th, .markdown td { border: 1px solid var(--gcp-border); padding: 8px 12px; text-align: left; }

.gcp-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--gcp-text-secondary);
}

pre { white-space: pre-wrap; font-size: 13px; color: var(--gcp-text-secondary); background: var(--gcp-bg); padding: 16px; border-radius: var(--gcp-radius); margin: 12px 0 0; }

.gcp-field { margin-top: 16px; }
.gcp-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
  margin-bottom: 6px;
}
.gcp-input, .gcp-select {
  width: 100%;
  max-width: 480px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gcp-text);
  background: var(--gcp-surface);
}
.gcp-input:focus, .gcp-select:focus {
  outline: none;
  border-color: var(--gcp-blue);
  box-shadow: 0 0 0 1px var(--gcp-blue);
}
.gcp-inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.gcp-inline-form .gcp-input { flex: 1; min-width: 220px; max-width: none; }

details.gcp-card summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--gcp-blue);
}

.actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.info-card ol { padding-left: 20px; color: var(--gcp-text-secondary); margin: 8px 0 0; }
.status-line { font-size: 14px; margin: 12px 0; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state .material-symbols-outlined {
  font-size: 48px !important;
  color: var(--gcp-text-muted);
  margin-bottom: 12px;
}
.empty-state h3 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 8px;
}

/* ── Login page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gcp-bg);
}

.login-topbar {
  height: var(--topbar-h);
  background: var(--gcp-surface);
  border-bottom: 1px solid var(--gcp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 8px;
}

.login-topbar-brand { pointer-events: auto; text-decoration: none; }

.login-back-link {
  font-size: 13px;
  padding: 8px 14px;
}

.login-switch {
  margin: 20px 0 0;
  font-size: 14px;
}
.login-switch a {
  color: var(--gcp-blue);
  font-weight: 500;
  text-decoration: none;
}
.login-switch a:hover { text-decoration: underline; }

.login-center {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 40px 32px;
}

.login-card h1 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 16px 0 8px;
}

.login-logo {
  width: 56px;
  height: 56px;
  background: var(--gcp-blue-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.login-logo .material-symbols-outlined {
  font-size: 32px !important;
  color: var(--gcp-blue);
}

/* ── Meetings list ── */
.readai-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gcp-border);
}
.readai-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 420px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  background: var(--gcp-surface);
}
.readai-search:focus-within {
  border-color: var(--gcp-blue);
  box-shadow: 0 0 0 1px var(--gcp-blue);
}
.readai-search .material-symbols-outlined {
  font-size: 20px;
  color: var(--gcp-text-secondary);
  flex-shrink: 0;
}
.readai-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--gcp-text);
  background: transparent;
  min-width: 0;
}
.readai-filter-select {
  height: 40px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  background: var(--gcp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%235f6368'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--gcp-text);
  cursor: pointer;
  min-width: 120px;
}
.readai-filter-select:focus {
  outline: none;
  border-color: var(--gcp-blue);
  box-shadow: 0 0 0 1px var(--gcp-blue);
}
.readai-client-filter {
  position: relative;
  flex: 0 1 200px;
  min-width: 168px;
  max-width: 260px;
}
.readai-client-ac {
  position: relative;
}
.readai-client-ac-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px !important;
  color: var(--gcp-text-secondary);
  pointer-events: none;
  z-index: 1;
}
.readai-client-ac-input {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 36px;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gcp-text);
  background: var(--gcp-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.readai-client-ac-input.has-clear {
  padding-right: 36px;
}
.readai-client-ac-input:focus {
  outline: none;
  border-color: var(--gcp-blue);
  box-shadow: 0 0 0 1px var(--gcp-blue);
}
.readai-client-ac-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--gcp-text-secondary);
  cursor: pointer;
}
.readai-client-ac-clear:hover {
  background: rgba(60, 64, 67, 0.08);
  color: var(--gcp-text);
}
.readai-client-ac-clear .material-symbols-outlined {
  font-size: 18px !important;
}
.readai-client-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 280px;
  overflow-y: auto;
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18);
}
.readai-client-ac-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--gcp-text);
  cursor: pointer;
}
.readai-client-ac-option:hover,
.readai-client-ac-option.highlight,
.readai-client-ac-option.active {
  background: rgba(26, 115, 232, 0.08);
}
.readai-client-ac-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.readai-client-ac-option-text strong {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.readai-client-ac-option-text .muted {
  font-size: 12px;
}
.readai-client-ac-empty {
  padding: 12px 14px;
  font-size: 13px;
}
.meetings-updated { font-size: 13px; margin: 0 0 12px; }
.meetings-table-card.gcp-table-card {
  overflow: visible;
}
.meetings-table-unified {
  table-layout: fixed;
  width: 100%;
  min-width: 760px;
}
.meetings-table-unified col.col-source { width: 72px; }
.meetings-table-unified col.col-client { width: 72px; }
.meetings-table-unified col.col-datetime { width: 220px; }
.meetings-table-unified col.col-status { width: 160px; }
.meetings-table-unified col.col-segments { width: 88px; }
.meetings-table-unified th,
.meetings-table-unified td {
  overflow: visible;
  vertical-align: middle;
}
.meetings-table-unified .col-report {
  overflow: hidden;
  max-width: 0;
}
.meetings-table-unified .col-report a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meeting-client-cell { min-width: 0; display: flex; justify-content: center; position: relative; }
.meetings-table-unified .col-datetime {
  white-space: nowrap;
  font-size: 13px;
}
.meetings-table-unified .col-client {
  overflow: visible;
  text-align: center;
}

/* ── Cliente avatar (listagem) ── */
.client-avatar-picker { position: relative; display: inline-flex; }
.client-avatar-trigger {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.client-avatar-trigger:hover { transform: scale(1.06); }
.client-avatar-trigger:focus-visible {
  outline: 2px solid var(--gcp-blue);
  outline-offset: 2px;
}
.client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
  border: 2px solid #fff;
  transition: box-shadow 0.15s ease;
}
.client-avatar-trigger:hover .client-avatar {
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.28);
}
.client-avatar-sm { width: 32px; height: 32px; font-size: 11px; }
.client-avatar-empty { background: #f1f3f4 !important; color: #80868b !important; }
.client-avatar-empty .material-symbols-outlined { font-size: 18px !important; }
.client-avatar-plus { font-size: 22px !important; }
.client-avatar-initials { line-height: 1; }
.client-avatar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  min-width: 240px;
  max-width: 300px;
  background: #fff;
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(60, 64, 67, 0.18);
  padding: 8px;
  animation: clientPopoverIn 0.15s ease;
}
.client-avatar-popover-fixed {
  animation: none;
}
@keyframes clientPopoverIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.client-avatar-popover-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
}
.client-avatar-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.client-avatar-option:hover { background: var(--gcp-bg); }
.client-avatar-option.active { background: #e8f0fe; }
.client-avatar-option-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.client-avatar-option-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--gcp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-avatar-option-text .muted { font-size: 11px; }
.client-avatar-popover-other {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gcp-border);
}
.client-avatar-other-input { flex: 1; font-size: 13px; padding: 6px 10px; }
.client-avatar-other-btn { flex-shrink: 0; }

/* ── Participantes com papéis (detalhe) ── */
.meeting-participants-area {
  margin: 0;
  padding: 0;
  border: 0;
}
.meeting-participants-empty { font-size: 13px; margin: 0; }
.meeting-participants-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.meeting-participants-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.meeting-role-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.role-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.role-legend-item .material-symbols-outlined { font-size: 16px !important; }
.role-legend-client { color: #0d7a6f; }
.role-legend-system { color: #5b4db8; }
.participant-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Compartilhamento de reunião ── */
.meeting-participants-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 16px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gcp-border);
}
.meeting-participants-main { flex: 1 1 320px; min-width: 0; margin: 0; padding: 0; border: 0; }
.meeting-sharing-area {
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.meeting-sharing-wrap { position: relative; }
.meeting-sharing-header {
  margin-bottom: 8px;
  text-align: right;
}
.meeting-sharing-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.meeting-sharing-avatars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.meeting-share-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 4px 4px 0;
}
.meeting-share-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--gcp-border);
  overflow: hidden;
  flex-shrink: 0;
}
.meeting-share-avatar-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f9ab00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  pointer-events: none;
  z-index: 1;
}
.meeting-share-avatar-badge.is-internal { background: #1967d2; }
.meeting-share-avatar-badge .material-symbols-outlined { font-size: 10px !important; }
.meeting-share-avatar.is-small { width: 28px; height: 28px; font-size: 10px; }
.meeting-share-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.meeting-share-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px dashed var(--gcp-border);
  background: #f8f9fa;
  color: var(--gcp-text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.meeting-share-add:hover {
  border-color: var(--gcp-primary);
  color: var(--gcp-primary);
  background: #e8f0fe;
}
.meeting-share-add .material-symbols-outlined { font-size: 20px; }
.meeting-share-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #5f6368;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.meeting-share-chip:hover .meeting-share-remove { display: inline-flex; }
.meeting-share-remove .material-symbols-outlined { font-size: 14px; }
.meeting-share-resend {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #1967d2;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.meeting-share-chip:hover .meeting-share-resend { display: inline-flex; }
.meeting-share-resend .material-symbols-outlined { font-size: 12px; }
.meeting-share-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  width: min(320px, 90vw);
  padding: 14px;
  background: #fff;
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18);
}
.meeting-share-popover-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.meeting-share-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  padding: 6px 10px;
}
.meeting-share-search-wrap .material-symbols-outlined {
  font-size: 20px;
  color: var(--gcp-text-secondary);
}
.meeting-share-search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  min-width: 0;
}
.meeting-share-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.12);
  z-index: 2;
}
.meeting-share-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.meeting-share-suggestion:hover,
.meeting-share-suggestion.is-active { background: #f1f3f4; }
.meeting-share-suggestion-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.meeting-share-suggestion-text strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meeting-share-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: var(--gcp-text-secondary);
  font-size: 11px;
  text-transform: uppercase;
}
.meeting-share-divider::before,
.meeting-share-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gcp-border);
}
.meeting-share-email-form {
  display: flex;
  gap: 8px;
}
.meeting-share-email {
  flex: 1;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
}
.meeting-share-hint { font-size: 11px; margin: 10px 0 0; line-height: 1.4; }
.meeting-shared-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.badge-shared {
  background: #e8f0fe;
  color: #1967d2;
  border: 1px solid #aecbfa;
}
.meetings-shared-by {
  font-size: 12px;
  margin-top: 2px;
}
.meeting-readonly .transcript-context-btn { display: none !important; }
.meeting-readonly .insight-retry-btn,
.meeting-readonly #btn-email,
.meeting-readonly #meeting-assistant-tab,
.meeting-readonly #meeting-assistant,
.meeting-readonly .images-generate-panel { display: none !important; }

/* ── Página pública de reunião compartilhada ── */
.public-share-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gcp-border);
  background: #fff;
}
.public-share-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gcp-primary);
}
.public-share-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.public-share-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
}
.participant-role-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1.5px solid var(--gcp-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text);
  cursor: default;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.participant-role-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60, 64, 67, 0.12);
  z-index: 2;
}
.participant-role-badge.is-client {
  background: linear-gradient(135deg, #e6f7f5 0%, #f0faf9 100%);
  border-color: #5bbfb3;
}
.participant-role-badge.is-system {
  background: linear-gradient(135deg, #eeecfa 0%, #f5f3fc 100%);
  border-color: #9b8fd9;
}
.participant-role-badge.is-client.is-system {
  background: linear-gradient(135deg, #e6f7f5 0%, #eeecfa 100%);
  border-color: #5bbfb3;
  box-shadow: inset 0 0 0 1px #9b8fd9;
}
.participant-role-badge-name { line-height: 1.3; }
.participant-role-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.participant-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.participant-role-icon .material-symbols-outlined { font-size: 14px !important; }
.participant-role-icon-client {
  background: #0d7a6f;
  color: #fff;
}
.participant-role-icon-system {
  background: #5b4db8;
  color: #fff;
}
.participant-role-menu {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  min-width: 220px;
  padding-bottom: 10px;
  margin-bottom: -2px;
  z-index: 10;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.2s;
}
.participant-role-menu::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 0;
  height: 14px;
}
.participant-role-menu-panel {
  background: #fff;
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.16);
  padding: 6px;
}
.participant-role-badge.menu-open .participant-role-menu,
.participant-role-badge:hover .participant-role-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
  transition-delay: 0s;
}
.participant-role-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.12s ease;
}
.participant-role-menu-btn:hover { background: var(--gcp-bg); }
.participant-role-menu-btn .material-symbols-outlined { font-size: 18px !important; color: var(--gcp-text-secondary); }
.participant-role-menu-btn[data-role="client"]:hover { background: #e6f7f5; color: #0d7a6f; }
.participant-role-menu-btn[data-role="client"]:hover .material-symbols-outlined { color: #0d7a6f; }
.participant-role-menu-btn[data-role="system"]:hover { background: #eeecfa; color: #5b4db8; }
.participant-role-menu-btn[data-role="system"]:hover .material-symbols-outlined { color: #5b4db8; }

.meeting-user-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.meeting-user-picker-compact .meeting-user-picker-select {
  font-size: 13px;
  padding: 4px 8px;
  max-width: 100%;
}
.meeting-user-picker-select,
.meeting-user-picker-custom {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.meeting-user-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--gcp-border);
}
.meeting-user-role-field {
  min-width: 200px;
  flex: 1 1 220px;
}
.meeting-user-role-field > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.import-user-fields { margin-top: 4px; }
.import-whatsapp-primary {
  margin-top: 8px;
}
.import-whatsapp-primary > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
  margin-bottom: 4px;
}
.meetings-section-row td {
  background: #f1f3f4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gcp-text-secondary);
  padding: 10px 16px;
  border-bottom: 1px solid var(--gcp-border);
  cursor: default;
}
.meetings-section-row:hover td { background: #f1f3f4; }
.meetings-row { cursor: pointer; }
.meetings-row-live td {
  background: #fff8f6;
}
.meetings-row-recording td {
  background: #fff3f0;
  border-top: 1px solid #fad2cf;
  border-bottom: 1px solid #fad2cf;
}
.meetings-row-recording td:first-child {
  box-shadow: inset 4px 0 0 #c5221f;
}
.meetings-row-recording:hover td {
  background: #ffece8 !important;
}
.meetings-row-live:not(.meetings-row-recording) td:first-child {
  box-shadow: inset 4px 0 0 #e37400;
}
.meetings-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c5221f;
}
.meetings-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.meet-icon-live .material-symbols-outlined { color: #c5221f !important; }
.meet-icon .material-symbols-outlined { color: #00832d; font-size: 22px !important; }
.meet-icon-imported .material-symbols-outlined { color: var(--gcp-blue); }
.gcp-table .meetings-row:hover td { background: var(--gcp-blue-light); }

/* ── Meetings view toggle & calendar ── */
.meetings-view-toggle {
  display: inline-flex;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.meetings-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  border: none;
  background: var(--gcp-surface);
  color: var(--gcp-text-secondary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.meetings-view-btn + .meetings-view-btn { border-left: 1px solid var(--gcp-border); }
.meetings-view-btn.active {
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
  font-weight: 500;
}
.meetings-view-btn .material-symbols-outlined { font-size: 18px !important; }

.meetings-cal-card { padding: 0; overflow: hidden; }
.meetings-cal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gcp-border);
}
.meetings-cal-title {
  flex: 1;
  margin: 0;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-transform: capitalize;
  text-align: center;
}
.meetings-cal-nav {
  min-width: 40px;
  padding: 0 8px;
}
.meetings-cal-today-btn { flex-shrink: 0; }
.meetings-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--gcp-border);
  border-bottom: 1px solid var(--gcp-border);
}
.meetings-cal-weekdays span {
  background: #f8f9fa;
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
}
.meetings-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--gcp-border);
}
.meetings-cal-day {
  min-height: 96px;
  background: var(--gcp-surface);
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meetings-cal-day.other-month { background: #fafafa; }
.meetings-cal-day.other-month .meetings-cal-day-num { color: var(--gcp-text-muted); }
.meetings-cal-day.today .meetings-cal-day-num {
  background: var(--gcp-blue);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.meetings-cal-day-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--gcp-text);
  line-height: 24px;
}
.meetings-cal-events {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.meetings-cal-event-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gcp-border);
  border-radius: 6px;
  background: var(--gcp-surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.meetings-cal-event-btn .material-symbols-outlined { font-size: 16px !important; }
.meetings-cal-event-btn.status-completed {
  border-color: #ceead6;
  background: #e6f4ea;
  color: #137333;
}
.meetings-cal-event-btn.status-active,
.meetings-cal-event-btn.status-processing {
  border-color: #c2d7f7;
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
}
.meetings-cal-event-btn.status-failed {
  border-color: #f5c2c7;
  background: #fce8e6;
  color: #c5221f;
}
.meetings-cal-event-btn.status-scheduled {
  border-color: #e8eaed;
  background: #f8f9fa;
  color: var(--gcp-text-secondary);
}
.meetings-cal-event-btn:hover {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
  transform: translateY(-1px);
}
.meetings-cal-more {
  font-size: 11px;
  color: var(--gcp-text-secondary);
  padding: 0 2px;
}
.meetings-cal-tooltip {
  position: fixed;
  z-index: 900;
  max-width: 280px;
  padding: 10px 12px;
  background: #202124;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
}
.meetings-cal-tooltip.hidden { display: none; }
.meetings-cal-tooltip strong {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}
.meetings-cal-tooltip span { display: block; }
.meetings-cal-tooltip-meta {
  margin-top: 4px;
  color: #bdc1c6;
  font-size: 12px;
}
.meetings-cal-modal-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 28px rgba(60, 64, 67, 0.18), 0 2px 8px rgba(60, 64, 67, 0.08);
}
.meetings-cal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gcp-text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
}
.meetings-cal-modal-close:hover {
  background: #fff;
  color: var(--gcp-text);
}
.meetings-cal-modal-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 56px 20px 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef3fc 100%);
  border-bottom: 1px solid #dbe7fb;
}
.meetings-cal-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e8f0fe;
  color: var(--gcp-blue);
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.12);
}
.meetings-cal-modal-icon .material-symbols-outlined { font-size: 28px !important; }
.meetings-cal-modal-icon.source-imported {
  background: #e6f4ea;
  color: #137333;
  box-shadow: inset 0 0 0 1px rgba(19, 115, 51, 0.12);
}
.meetings-cal-modal-icon.source-adhoc {
  background: #fef7e0;
  color: #b06000;
  box-shadow: inset 0 0 0 1px rgba(176, 96, 0, 0.12);
}
.meetings-cal-modal-hero-text { min-width: 0; flex: 1; }
.meetings-cal-modal-hero-text h2 {
  margin: 0 0 6px;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gcp-text);
  word-break: break-word;
}
.meetings-cal-modal-datetime {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--gcp-text-secondary);
  line-height: 1.4;
}
.meetings-cal-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meetings-cal-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
}
#meetings-cal-modal-body {
  padding: 20px 24px 24px;
}
.meetings-cal-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.meetings-cal-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  background: var(--gcp-surface);
}
.meetings-cal-stat-card.is-success {
  border-color: #ceead6;
  background: #f6fbf7;
}
.meetings-cal-stat-card.is-success .meetings-cal-stat-icon { color: #137333; }
.meetings-cal-stat-card.is-muted .meetings-cal-stat-value { color: var(--gcp-text-secondary); }
.meetings-cal-stat-icon {
  font-size: 22px !important;
  color: var(--gcp-blue);
}
.meetings-cal-stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.meetings-cal-stat-value {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--gcp-text);
  line-height: 1.1;
}
.meetings-cal-stat-label {
  font-size: 12px;
  color: var(--gcp-text-secondary);
}
.meetings-cal-modal-section {
  padding: 16px;
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  background: #fafbfc;
}
.meetings-cal-modal-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.meetings-cal-modal-section-head .material-symbols-outlined {
  font-size: 20px !important;
  color: var(--gcp-blue);
}
.meetings-cal-modal-section-head h3 {
  margin: 0;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gcp-text);
}
.meetings-cal-modal-participants {
  display: grid;
  gap: 12px;
}
.meetings-cal-speaker-row { display: grid; gap: 6px; }
.meetings-cal-speaker-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.meetings-cal-speaker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.meetings-cal-speaker-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--gcp-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meetings-cal-speaker-pct {
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
}
.meetings-cal-speaker-bar {
  height: 6px;
  border-radius: 999px;
  background: #e8eaed;
  overflow: hidden;
}
.meetings-cal-speaker-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2%;
}
.meetings-cal-modal-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meetings-cal-empty-note { margin: 0; font-size: 14px; }
.meetings-cal-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gcp-border);
}

/* ── Import Read AI ── */
.import-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.import-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.45);
}
.import-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  z-index: 1;
}
.import-modal-panel-wide {
  width: min(720px, 100%);
}
.import-form-step + .import-form-step {
  margin-top: 4px;
}
.import-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.import-field-source {
  min-width: 0;
}
.import-source-hint {
  font-size: 13px;
  margin: -4px 0 12px;
  line-height: 1.45;
}
.import-file-input {
  max-width: none;
  font-size: 14px;
}
.import-roles-summary {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  background: var(--gcp-bg);
}
.import-roles-summary-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.import-roles-summary-main .material-symbols-outlined {
  font-size: 28px !important;
  color: var(--gcp-blue);
  flex-shrink: 0;
}
.import-roles-summary-main strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.import-roles-summary-main .muted {
  font-size: 13px;
}
.import-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.import-roles-hint {
  font-size: 13px;
  margin: 12px 0 0;
}
@media (max-width: 640px) {
  .import-form-grid,
  .import-roles-grid {
    grid-template-columns: 1fr;
  }
}
.import-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 280px;
}
.import-loading-title {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gcp-text);
}
.import-loading-text {
  margin: 0;
  max-width: 360px;
}
.import-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gcp-border);
  border-top-color: var(--gcp-blue);
  border-radius: 50%;
  animation: import-spin 0.8s linear infinite;
}
@keyframes import-spin {
  to { transform: rotate(360deg); }
}
.import-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.import-modal-header h2 { margin: 0; font-size: 20px; }
.import-form label.gcp-field > span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
  margin-bottom: 6px;
}
.import-form .gcp-input { max-width: none; }
.import-textarea {
  max-width: none;
  min-height: 160px;
  height: auto;
  padding: 12px;
  resize: vertical;
}
.import-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.gcp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gcp-text);
}
.email-recipient-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}
.email-recipient-item {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  background: var(--gcp-bg);
}
.email-recipient-item strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.email-recipient-email {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.email-modal-panel {
  max-width: 520px;
}
.import-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.badge-whatsapp { background: #e7f8ef; color: #128c7e; }
.import-whatsapp-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f0faf5;
  border: 1px solid #c8ead9;
}
.import-whatsapp-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  margin: 12px 0 4px;
}
.import-whatsapp-session {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.import-whatsapp-session:hover {
  background: rgba(18, 140, 126, 0.04);
  border-color: #9fd8c8;
}
.import-whatsapp-session input { margin-top: 4px; }
.import-whatsapp-session-body { flex: 1; min-width: 0; }
.import-whatsapp-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.import-whatsapp-title {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  padding: 8px 10px;
  font-size: 14px;
}
.import-whatsapp-session-title { font-weight: 500; color: var(--gcp-text); }
.import-whatsapp-session-meta { font-size: 12px; margin: 0 0 6px; }
.import-whatsapp-session-preview {
  font-size: 13px;
  color: var(--gcp-text-secondary);
  margin: 0;
  white-space: pre-line;
  line-height: 1.4;
}
.meet-icon-whatsapp .material-symbols-outlined { color: #128c7e; }
#import-whatsapp-refresh {
  margin-bottom: 8px;
}
.adhoc-input-full { max-width: none; }

/* ── Auth modal (landing) ── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.5);
  backdrop-filter: blur(2px);
}
.auth-modal-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 40px 32px 32px;
  z-index: 1;
  text-align: center;
}
.auth-modal-panel h2 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 16px 0 8px;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 0;
  padding: 8px;
  border-radius: 50%;
}
.auth-switch-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--gcp-blue);
  font-weight: 500;
  font-size: inherit;
  cursor: pointer;
}
.auth-switch-btn:hover { text-decoration: underline; }
body.auth-modal-open { overflow: hidden; }

.landing-mobile-menu button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.landing-footer-auth {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--gcp-text-secondary);
  cursor: pointer;
}
.landing-footer-auth:hover { color: var(--gcp-blue); }

/* ── Meeting detail ── */
.meeting-detail-header { margin-bottom: 16px; }
.meeting-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--gcp-text-secondary);
  margin-bottom: 12px;
}
.meeting-detail-meta .material-symbols-outlined {
  font-size: 18px !important;
  vertical-align: text-bottom;
  margin-right: 4px;
}
.meeting-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.participant-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--gcp-bg);
  border: 1px solid var(--gcp-border);
  font-size: 13px;
}
.meeting-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gcp-border);
  align-items: center;
}
.action-flash { margin-left: 8px; font-size: 13px; color: var(--gcp-success); }
.meeting-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gcp-border);
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.meeting-tab {
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.meeting-tab.active {
  color: var(--gcp-blue);
  border-bottom-color: var(--gcp-blue);
}
.meeting-panel {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}
.transcript-line {
  padding: 10px 0;
  border-bottom: 1px solid var(--gcp-border);
  font-size: 14px;
  line-height: 1.5;
}
.transcript-line:last-child { border-bottom: none; }
.transcript-line strong {
  display: block;
  color: var(--gcp-blue);
  font-size: 13px;
  margin-bottom: 2px;
}

/* ── Transcript panel (Read AI style) ── */
.transcript-panel-inner { padding: 0; position: relative; }
.transcript-messages-wrap {
  position: relative;
}
.transcript-jump-bottom {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #c2d7f7;
  border-radius: 999px;
  background: #fff;
  color: #1967d2;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.18);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.transcript-jump-bottom.hidden { display: none; }
.transcript-jump-bottom:hover {
  background: #e8f0fe;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.24);
}
.transcript-jump-bottom .material-symbols-outlined {
  font-size: 18px !important;
  animation: transcript-jump-bounce 1.4s ease-in-out infinite;
}
@keyframes transcript-jump-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.transcript-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gcp-border);
}
.transcript-live-player-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gcp-border);
  background: var(--gcp-surface-container-low, #f8f9fa);
}
.transcript-live-player-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.transcript-live-player-label .material-symbols-outlined {
  font-size: 18px;
  color: var(--gcp-primary);
}
.transcript-stream-audio {
  width: 100%;
  height: 36px;
}
.transcript-live-player-wrap.is-loading .transcript-stream-audio {
  opacity: 0.65;
}
.transcript-player-status {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
.transcript-player-status.hidden {
  display: none;
}
.transcript-player-status--loading {
  color: var(--gcp-text-secondary);
}
.transcript-player-status--info {
  color: var(--gcp-text-secondary);
}
.transcript-player-status--error {
  color: #c5221f;
}
.transcript-live-player-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
.transcript-line-seekable {
  cursor: pointer;
  border-radius: 6px;
  margin-left: -6px;
  margin-right: -6px;
  padding-left: 6px !important;
  padding-right: 6px !important;
  transition: background 0.15s ease;
}
.transcript-line-seekable:hover {
  background: var(--gcp-surface-container);
}
.transcript-line-seekable.active {
  background: color-mix(in srgb, var(--gcp-primary) 12%, transparent);
  box-shadow: inset 3px 0 0 var(--gcp-primary);
}
.transcript-line-seekable .transcript-line-actions {
  pointer-events: auto;
}
.transcript-live-badge,
.meeting-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--gcp-success);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.transcript-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gcp-success);
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.transcript-live-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px !important;
}
.transcript-message-new .transcript-bubble {
  animation: transcript-fade-in 0.35s ease-out;
}
@keyframes transcript-fade-in {
  from { opacity: 0.4; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.meeting-live-summary-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gcp-success);
  margin-bottom: 12px;
}
.meeting-processing-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.meeting-live-summary ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}
.transcript-search-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.transcript-search-wrap.open { flex: 1; }
.transcript-search-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
}
.transcript-search-input:focus {
  outline: none;
  border-color: var(--gcp-blue);
  box-shadow: 0 0 0 1px var(--gcp-blue);
}
.transcript-tool-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  background: var(--gcp-surface);
  color: var(--gcp-text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.transcript-tool-btn:hover { background: var(--gcp-bg); color: var(--gcp-text); }
.transcript-tool-btn.copied { color: var(--gcp-success); border-color: var(--gcp-success); }
.transcript-tool-btn .material-symbols-outlined { font-size: 20px !important; }

.transcript-speakers-block {
  padding: 16px 20px 8px;
  border-bottom: 1px solid var(--gcp-border);
}
.transcript-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text);
  margin-bottom: 10px;
}
.transcript-speaker-clear {
  border: none;
  background: transparent;
  color: var(--gcp-blue);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.transcript-speaker-clear:hover { text-decoration: underline; }
.transcript-speaker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.transcript-speaker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
  font-size: 13px;
  color: var(--gcp-text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.transcript-speaker-chip:hover {
  background: var(--gcp-bg);
  border-color: #c2d7f7;
}
.transcript-speaker-chip.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.15);
}
.transcript-speaker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--speaker-color, var(--gcp-blue));
  flex-shrink: 0;
}

.transcript-messages {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.transcript-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.transcript-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.transcript-message-body { flex: 1; min-width: 0; }
.transcript-message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--gcp-text);
}
.transcript-message-meta strong { font-weight: 500; }
.transcript-group-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--gcp-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
}
.transcript-group-play-btn .material-symbols-outlined {
  font-size: 22px;
}
.transcript-group-play-btn:hover,
.transcript-group-play-btn:focus-visible,
.transcript-group-play-btn.playing {
  color: var(--gcp-primary);
  background: var(--gcp-surface-container);
}
.transcript-message:hover .transcript-group-play-btn,
.transcript-group-play-btn:focus-visible {
  color: var(--gcp-primary);
}
.transcript-time {
  font-size: 12px;
  font-weight: 400;
  color: var(--gcp-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.transcript-bubble-line {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 2px 28px 2px 0;
}
.transcript-bubble-line + .transcript-bubble-line {
  margin-top: 8px;
}
.transcript-line-time {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.55;
  color: var(--gcp-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 1px;
}
.transcript-line-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
}
.transcript-line-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 26px;
}
.transcript-line-action {
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
}
.transcript-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--gcp-text-secondary);
  cursor: pointer;
  opacity: 0;
}
.transcript-play-btn .material-symbols-outlined {
  font-size: 18px;
}
.transcript-play-btn:hover,
.transcript-play-btn:focus-visible,
.transcript-play-btn.playing {
  opacity: 1;
  background: var(--gcp-surface-container);
  color: var(--gcp-primary);
}
.transcript-bubble-line:hover .transcript-play-btn,
.transcript-bubble-line:hover .transcript-line-actions .transcript-context-btn,
.transcript-line-actions .transcript-context-btn:focus-visible,
.transcript-play-btn:focus-visible {
  opacity: 1;
}
.transcript-audio-player.hidden {
  display: none;
}
.transcript-line-action .transcript-context-btn {
  opacity: 0;
}
.transcript-bubble-line:hover .transcript-line-action .transcript-context-btn,
.transcript-line-action .transcript-context-btn:focus-visible {
  opacity: 1;
}
.transcript-context-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--gcp-text-muted);
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.transcript-context-btn:hover {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.transcript-context-btn .material-symbols-outlined {
  font-size: 16px !important;
}
.transcript-bubble {
  background: var(--gcp-bg);
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gcp-text);
  word-break: break-word;
}
.transcript-highlight {
  background: #fef7a5;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.transcript-empty { padding: 24px 0; text-align: center; }
.transcript-fallback {
  margin: 0;
  padding: 16px 20px;
  white-space: pre-wrap;
  font-size: 13px;
}

/* ── Meeting AI assistant (sidebar) ── */
body.meeting-assistant-open .gcp-main {
  margin-right: var(--assistant-w);
  transition: margin-right 0.2s ease;
}

.meeting-assistant-tab {
  position: fixed;
  top: calc(var(--topbar-h) + 80px);
  right: 0;
  z-index: 150;
  width: 40px;
  height: 48px;
  border: 1px solid var(--gcp-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: var(--gcp-surface);
  color: var(--gcp-blue);
  cursor: pointer;
  box-shadow: -2px 0 8px rgba(60, 64, 67, 0.12);
}
.meeting-assistant-tab:hover { background: var(--gcp-blue-light); }

.meeting-assistant {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  width: var(--assistant-w);
  z-index: 160;
  background: var(--gcp-surface);
  border-left: 1px solid var(--gcp-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, left 0.2s ease, box-shadow 0.2s ease;
}
.meeting-assistant.asst-context-pulse {
  animation: asst-context-pulse 1.2s ease-out;
}
@keyframes asst-context-pulse {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: -4px 0 0 #1a73e8, -8px 0 24px rgba(26, 115, 232, 0.2); }
}
.meeting-assistant.collapsed {
  transform: translateX(100%);
  pointer-events: none;
}
.meeting-assistant.expanded {
  left: 0;
  width: auto;
  z-index: 1000;
  box-shadow: 0 0 0 9999px rgba(32, 33, 36, 0.35);
}

.meeting-assistant-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--gcp-border);
  flex-shrink: 0;
  gap: 8px;
}
.meeting-assistant-toolbar-left,
.meeting-assistant-toolbar-right {
  display: flex;
  gap: 4px;
  align-items: center;
}
.asst-tool-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  background: var(--gcp-surface);
  color: var(--gcp-text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.asst-tool-btn:hover { background: var(--gcp-bg); color: var(--gcp-text); }
.asst-tool-btn.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.asst-tool-btn .material-symbols-outlined { font-size: 20px !important; }

.asst-history-panel {
  position: absolute;
  inset: 53px 0 auto 0;
  max-height: min(420px, 55%);
  background: var(--gcp-surface);
  border-bottom: 1px solid var(--gcp-border);
  z-index: 5;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.12);
}
.asst-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px 16px;
}
.asst-history-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.asst-history-list {
  overflow-y: auto;
  padding: 0 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.asst-history-item {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
}
.asst-history-item:hover { background: var(--gcp-bg); }
.asst-history-item.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
}
.asst-history-item-title {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gcp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asst-history-item-meta {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.meeting-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.asst-empty {
  margin: 0;
  font-size: 13px;
  text-align: center;
  padding: 24px 8px;
}

.asst-msg {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
}
.asst-msg-inner {
  position: relative;
}
.asst-copy-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gcp-text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
  transition: opacity 0.15s, background 0.15s;
}
.asst-msg-inner:hover .asst-copy-btn,
.asst-msg:hover .asst-copy-btn,
.asst-copy-btn:focus-visible,
.asst-copy-btn.copied {
  opacity: 1;
}
.asst-msg-inner .asst-msg-body,
.asst-msg-inner .copilot-msg-body {
  padding-right: 34px;
}
.asst-copy-btn:hover { background: rgba(255, 255, 255, 1); }
.asst-msg-user .asst-copy-btn,
.copilot-msg-user .asst-copy-btn {
  background: rgba(232, 240, 254, 0.95);
}
.asst-msg-user .asst-copy-btn:hover,
.copilot-msg-user .asst-copy-btn:hover {
  background: rgba(232, 240, 254, 1);
}
.asst-copy-btn.copied { color: var(--gcp-success); }
.asst-copy-btn .material-symbols-outlined { font-size: 16px !important; }
.asst-msg-user {
  align-self: flex-end;
  background: var(--gcp-blue-light);
  border-radius: 12px 12px 4px 12px;
  padding: 10px 14px;
  color: var(--gcp-text);
}
.asst-msg-assistant {
  align-self: flex-start;
  background: var(--gcp-bg);
  border: 1px solid var(--gcp-border);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  max-width: 95%;
}
.asst-msg-user .asst-msg-body,
.copilot-msg-user .copilot-msg-body {
  white-space: pre-wrap;
}
.asst-msg-body { word-break: break-word; }
.asst-msg-body.markdown { font-size: 13px; }
.asst-msg-body.markdown p { margin: 0 0 8px; }
.asst-msg-body.markdown p:last-child { margin-bottom: 0; }
.asst-msg-body.markdown ul { margin: 4px 0 8px; padding-left: 20px; }

.asst-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.asst-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gcp-text-secondary);
  animation: asst-bounce 1.2s infinite ease-in-out;
}
.asst-typing span:nth-child(2) { animation-delay: 0.15s; }
.asst-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes asst-bounce {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

.meeting-assistant-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.asst-prompt-chip {
  text-align: left;
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gcp-text);
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.1s, border-color 0.1s;
}
.asst-prompt-chip:hover {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
}

.meeting-assistant-form {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--gcp-border);
  flex-shrink: 0;
}
.meeting-assistant-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--gcp-border);
  border-radius: 24px;
  padding: 8px 8px 8px 16px;
  background: var(--gcp-bg);
}
.meeting-assistant-input-wrap:focus-within {
  border-color: var(--gcp-blue);
  box-shadow: 0 0 0 1px var(--gcp-blue);
  background: var(--gcp-surface);
}
.meeting-assistant-input-wrap .meeting-assistant-input {
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: 24px;
  max-height: min(240px, 35vh);
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--gcp-text);
  min-width: 0;
  line-height: 1.45;
  resize: none;
  overflow-y: hidden;
  padding: 4px 0;
  field-sizing: content;
}
@supports not (field-sizing: content) {
  .meeting-assistant-input-wrap .meeting-assistant-input {
    height: auto;
  }
}
.meeting-assistant-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--gcp-blue);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.meeting-assistant-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.meeting-assistant-send.asst-send-ready {
  animation: asst-send-attention 1.8s ease-in-out infinite;
}
@keyframes asst-send-attention {
  0%, 100% {
    background: #1a73e8;
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.35);
  }
  50% {
    background: #0d47a1;
    box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.12);
  }
}
.meeting-assistant-send .material-symbols-outlined { font-size: 20px !important; }

/* ── Calendar page ── */
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.calendar-toolbar-note {
  margin: 0;
  font-size: 13px;
}
.calendar-tabs { display: flex; gap: 4px; }
.calendar-tab {
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
  color: var(--gcp-text-secondary);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.calendar-tab.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.calendar-toolbar-right { display: flex; align-items: center; gap: 12px; }
.calendar-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gcp-text-secondary);
}
.calendar-card { padding: 0; overflow: hidden; }
.calendar-table-wrap { overflow-x: auto; }
.calendar-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.calendar-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--gcp-border);
  background: #f8f9fa;
}
.calendar-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gcp-border);
  vertical-align: middle;
}
.calendar-table tbody tr:hover { background: #fafafa; }
.calendar-table tbody tr:last-child td { border-bottom: none; }
.calendar-col-meeting { width: 42%; }
.calendar-col-when { width: 24%; }
.calendar-col-toggle { width: 148px; }
.calendar-col-actions { width: 100px; }
.calendar-table th.calendar-col-toggle,
.calendar-table th.calendar-col-actions,
.calendar-table td.calendar-toggle-cell,
.calendar-table td.calendar-actions-cell {
  text-align: center;
  padding-left: 12px;
  padding-right: 12px;
}
.calendar-meeting-main {
  display: table;
  width: 100%;
}
.calendar-meeting-main .meet-icon,
.calendar-meeting-text {
  display: table-cell;
  vertical-align: top;
}
.calendar-meeting-main .meet-icon {
  width: 36px;
  padding-right: 12px;
}
.calendar-meeting-text { width: auto; }
.calendar-meeting-title {
  font-weight: 500;
  color: var(--gcp-text);
  line-height: 1.35;
  word-break: break-word;
}
.calendar-meeting-meta { font-size: 12px; margin-top: 2px; }
.calendar-response.declined { color: #c5221f; }
.calendar-response.accepted { color: #137333; }
.calendar-when-cell { white-space: nowrap; font-size: 13px; }
.calendar-when { display: inline-block; }
.calendar-recurring {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
  color: var(--gcp-text-secondary);
}
.calendar-recurring .material-symbols-outlined { font-size: 16px !important; }
.calendar-actions-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.calendar-toggle-cell .toggle-switch {
  margin: 0 auto;
  vertical-align: middle;
}
.calendar-action-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--gcp-text-secondary);
  background: var(--gcp-surface);
  text-decoration: none;
  vertical-align: middle;
  margin: 0 2px;
}
.calendar-action-btn:hover {
  background: var(--gcp-bg);
  color: var(--gcp-blue);
  border-color: #c2d7f7;
}
.calendar-action-btn .material-symbols-outlined { font-size: 18px !important; }
.meet-icon-muted .material-symbols-outlined { color: var(--gcp-text-secondary); }

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #dadce0;
  border-radius: 24px;
  transition: background 0.15s;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.25);
}
.toggle-switch input:checked + .toggle-slider { background: #34a853; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Responsive ── */
.gcp-menu-btn { display: none; }

@media (max-width: 960px) {
  .gcp-menu-btn { display: grid; }
  .gcp-sidebar { transform: translateX(-100%); }
  .gcp-sidebar.open { transform: translateX(0); }
  .gcp-main { margin-left: 0; padding: 16px; }
  .gcp-project-chip { display: none; }
  .gcp-topbar-action-label { display: none; }
  .gcp-topbar-action { padding: 0 10px; }
  .gcp-topbar-live-slot { max-width: 140px; }
  .gcp-topbar-live-label { display: none; }
  .gcp-page-header h1 { font-size: 22px; }
  body.meeting-assistant-open .gcp-main { margin-right: 0; }
  .meeting-assistant { width: min(var(--assistant-w), 100vw); }
  .calendar-table-wrap { overflow-x: auto; }
  .meetings-cal-day { min-height: 72px; padding: 4px; }
  .meetings-cal-event-btn { width: 24px; height: 24px; }
  .meetings-cal-title { font-size: 16px; }
  .meetings-cal-today-btn { display: none; }
  .meetings-view-toggle { width: 100%; }
  .meetings-cal-modal-stats { grid-template-columns: 1fr; }
  .meetings-cal-modal-hero { padding: 20px 52px 16px 16px; }
  .meetings-cal-modal-actions {
    flex-direction: column-reverse;
  }
  .meetings-cal-modal-actions .btn { width: 100%; justify-content: center; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .usage-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .usage-category-grid { grid-template-columns: 1fr; }
  .gcp-usage-chip span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-hero { padding: 20px; }
  .dash-hero-title { font-size: 22px; }
  .dash-hero-actions { width: 100%; }
  .dash-hero-btn { flex: 1; justify-content: center; min-width: 120px; }
  .dash-chart { height: 130px; }
  .participant-analysis-layout { grid-template-columns: 1fr; }
  .participant-analysis-sidebar { position: static; }
  .participant-compare-grid { grid-template-columns: 1fr; }
  .followup-grid { grid-template-columns: 1fr; }
  .open-points-grid { grid-template-columns: 1fr; }
}

/* ── Meeting insights (participants & chapters) ── */
.meeting-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.meeting-tab-ai.meeting-tab-pending {
  opacity: 0.4;
}
.meeting-tab-ai.meeting-tab-pending:hover:not(:disabled) {
  opacity: 0.6;
}
.meeting-tab-ai.meeting-tab-pending.active {
  opacity: 0.72;
}
.meeting-tab-ai.meeting-tab-ready {
  opacity: 1;
}
.meeting-panel-ai:has(.insight-placeholder) {
  background: linear-gradient(180deg, #f8fbff 0%, var(--gcp-surface) 100%);
  border-style: dashed;
  border-color: #c2d7f7;
}
.insight-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px 36px;
  max-width: 520px;
  margin: 0 auto;
}
.insight-placeholder-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.insight-placeholder-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f3e8fd 100%);
  display: grid;
  place-items: center;
  border: 1px solid #c2d7f7;
}
.insight-placeholder-icon .material-symbols-outlined {
  font-size: 36px !important;
  color: var(--gcp-blue);
}
.insight-placeholder-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #fdd663;
}
.insight-placeholder h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--gcp-text);
}
.insight-placeholder-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gcp-text-secondary);
}
.insight-placeholder-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.insight-placeholder-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gcp-text);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
}
.insight-placeholder-features .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--gcp-success);
  flex-shrink: 0;
  margin-top: 1px;
}
.insight-placeholder-note {
  margin: 14px 0 0;
  font-size: 12px;
}
.insight-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--gcp-error);
}
.insight-error-state .material-symbols-outlined { font-size: 32px !important; }
.insight-error-state p { margin: 0; font-size: 14px; color: var(--gcp-text); }
.insight-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}
.insight-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  color: var(--gcp-error);
}
.insight-error .material-symbols-outlined { font-size: 22px !important; }
.insight-empty-state { padding: 32px 20px; text-align: center; }
.insight-empty { font-size: 13px; margin: 0; }
.insight-bullet-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}
.insight-todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.insight-todo-list li {
  padding: 10px 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  background: var(--gcp-bg);
}
.insight-todo-task { display: block; font-size: 14px; font-weight: 500; }
.insight-todo-meta { display: block; font-size: 12px; color: var(--gcp-text-secondary); margin-top: 2px; }
.insight-todo-notes { display: block; font-size: 12px; color: var(--gcp-text-secondary); margin-top: 4px; }
.insight-tags, .chapter-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.insight-tag, .chapter-keyword-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
  border: 1px solid #c2d7f7;
}
.chapter-keyword-badge {
  background: #f3e8fd;
  color: #7b1fa2;
  border-color: #e1bee7;
}
.insight-section {
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  margin-top: 12px;
  overflow: hidden;
}
.insight-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: none;
  background: var(--gcp-bg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--gcp-text);
}
.insight-section-toggle .material-symbols-outlined {
  transition: transform 0.2s;
  font-size: 20px !important;
  color: var(--gcp-text-secondary);
}
.insight-section.open .insight-section-toggle .material-symbols-outlined {
  transform: rotate(180deg);
}
.insight-section-body {
  display: none;
  padding: 0 14px 14px;
}
.insight-section.open .insight-section-body { display: block; }
.insight-quotes blockquote {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--gcp-blue);
  background: var(--gcp-bg);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--gcp-text-secondary);
}
.sentiment-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.sentiment-positive { background: #e6f4ea; color: #137333; }
.sentiment-neutral { background: #f1f3f4; color: #5f6368; }
.sentiment-warning { background: #fef7e0; color: #b06000; }
.sentiment-negative { background: #fce8e6; color: #c5221f; }

.participant-analysis-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}
.participant-analysis-sidebar {
  padding: 0;
  align-self: start;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.participant-analysis-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--gcp-border);
}
.participant-analysis-toolbar h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  gap: 4px;
}
.btn-sm .material-symbols-outlined { font-size: 16px !important; }
.participant-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.participant-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--gcp-text);
}
.participant-nav-item:hover { background: var(--gcp-bg); }
.participant-nav-item.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
}
.participant-nav-item.compare-selected {
  background: #f3e8fd;
  border-color: #e1bee7;
}
.participant-nav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.participant-nav-text strong {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.participant-nav-text .muted { font-size: 11px; }
.transcript-avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.participant-compare-check {
  font-size: 18px !important;
  color: #7b1fa2;
  flex-shrink: 0;
}
.participant-analysis-main { min-width: 0; }
.participant-detail-card {
  border: 1px solid var(--gcp-border);
  border-radius: 14px;
  padding: 18px;
  background: var(--gcp-surface);
}
.participant-detail-card.compact { padding: 14px; }
.participant-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.participant-detail-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.participant-detail-identity h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 600;
}
.participant-sentiment-summary {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gcp-text-secondary);
}
.participant-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.participant-compare-hint {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px dashed var(--gcp-border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.chapters-layout { padding: 16px 18px 20px; }
.chapters-header {
  margin-bottom: 16px;
}
.chapters-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chapter-card {
  border: 1px solid var(--gcp-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--gcp-surface);
}
.chapter-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: var(--gcp-bg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.chapter-card-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.chapter-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gcp-blue);
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chapter-card-title-wrap h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}
.chapter-time { font-size: 12px; }
.chapter-chevron {
  transition: transform 0.2s;
  color: var(--gcp-text-secondary);
  font-size: 22px !important;
}
.chapter-card.open .chapter-chevron { transform: rotate(180deg); }
.chapter-card-body {
  display: none;
  padding: 0 16px 16px 56px;
}
.chapter-card.open .chapter-card-body { display: block; }
.chapter-summary {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gcp-text-secondary);
}
.chapter-keywords { margin-bottom: 14px; }
.chapter-section {
  margin-top: 14px;
}
.chapter-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gcp-text);
}

/* ── Extended insights (actions, open points, follow-up) ── */
.insight-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.insight-panel-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}
.actions-layout,
.open-points-layout,
.followup-layout {
  padding: 16px 18px 20px;
}
.insight-block {
  margin-bottom: 24px;
}
.insight-block h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}
.insight-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.insight-block-head h3 { margin: 0; }
.insight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.insight-filter-chip {
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--gcp-text-secondary);
}
.insight-filter-chip:hover { background: var(--gcp-bg); }
.insight-filter-chip.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.insight-select {
  height: 30px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-family: inherit;
  background: var(--gcp-surface);
}
.insight-table-wrap { overflow-x: auto; }
.insight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.insight-table th,
.insight-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gcp-border);
  vertical-align: top;
}
.insight-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
  background: var(--gcp-bg);
}
.table-sub { margin: 4px 0 0; font-size: 12px; }
.severity-badge,
.confidence-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.severity-high { background: #fce8e6; color: #c5221f; }
.severity-medium { background: #fef7e0; color: #b06000; }
.severity-low { background: #e6f4ea; color: #137333; }
.confidence-confirmed { background: #e6f4ea; color: #137333; }
.confidence-implicit { background: #fef7e0; color: #b06000; }
.confidence-uncertain { background: #f1f3f4; color: #5f6368; }

.open-points-filters { margin-bottom: 16px; }
.open-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.open-point-card {
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  padding: 14px;
  background: var(--gcp-surface);
}
.open-point-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.open-point-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 6px;
}
.type-question { background: #e8f0fe; color: #1967d2; }
.type-blocker { background: #fce8e6; color: #c5221f; }
.type-dependency { background: #fef7e0; color: #b06000; }
.type-risk { background: #f3e8fd; color: #7b1fa2; }
.type-followup { background: #e6f4ea; color: #137333; }
.open-point-main {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.open-point-meta { margin: 0; font-size: 12px; }
.open-point-mitigation {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--gcp-text-secondary);
}
.open-point-mitigation .material-symbols-outlined { font-size: 16px !important; color: #137333; }

.followup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.followup-section {
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  padding: 16px;
  background: var(--gcp-surface);
}
.gcp-card-inner { background: var(--gcp-surface); }
.followup-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.followup-section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.followup-section-head h3 .material-symbols-outlined { font-size: 20px !important; color: var(--gcp-blue); }
.followup-section label.gcp-field {
  display: block;
  margin-top: 16px;
}
.followup-section label.gcp-field:first-of-type {
  margin-top: 0;
}
.followup-section label.gcp-field > span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
  margin-bottom: 6px;
}
.followup-section .gcp-input {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.followup-section .followup-textarea {
  height: auto;
  min-height: 200px;
  max-height: min(420px, 50vh);
  padding: 12px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  overflow-y: auto;
}
.followup-agenda-total { margin: 0 0 10px; font-size: 12px; }
.followup-agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.followup-agenda-item {
  padding: 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  background: var(--gcp-bg);
}
.followup-agenda-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.followup-agenda-priority {
  font-size: 11px;
  font-weight: 700;
  color: var(--gcp-blue);
  background: var(--gcp-blue-light);
  padding: 2px 6px;
  border-radius: 6px;
}
.followup-agenda-duration {
  margin-left: auto;
  font-size: 12px;
  color: var(--gcp-text-secondary);
}
.followup-agenda-owner {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--gcp-text-secondary);
}
.followup-agenda-owner .material-symbols-outlined { font-size: 14px !important; }
.followup-notes p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gcp-text-secondary);
}

/* ── RAG assistant toggle ── */
.asst-rag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.asst-rag-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gcp-text-secondary);
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.asst-rag-toggle input { accent-color: var(--gcp-blue); flex-shrink: 0; }
.asst-rag-toggle span { line-height: 1.3; }
.asst-rag-config-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  background: var(--gcp-surface);
  color: var(--gcp-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.asst-rag-config-btn:not(:disabled):hover {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.asst-rag-config-btn.active {
  background: var(--gcp-blue-light);
  border-color: var(--gcp-blue);
  color: var(--gcp-blue);
}
.asst-rag-config-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.asst-rag-config-btn .material-symbols-outlined { font-size: 18px !important; }
.asst-rag-config-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gcp-blue);
  color: white;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.asst-rag-config-count.hidden { display: none; }

.asst-rag-modal-panel { width: min(560px, 100%); }
.asst-rag-modal-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--gcp-text-secondary);
  line-height: 1.5;
}
.asst-rag-modal-section { margin-bottom: 16px; }
.asst-rag-modal-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gcp-text-secondary);
}
.asst-rag-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.asst-rag-modal-hint {
  margin: 0 0 8px;
  font-size: 12px;
}
.asst-rag-link-chip {
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--gcp-text);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.asst-rag-link-chip:hover {
  background: var(--gcp-bg);
  border-color: #c2d7f7;
}
.asst-rag-link-chip.active {
  background: var(--gcp-blue-light);
  border-color: var(--gcp-blue);
  color: var(--gcp-blue);
  font-weight: 500;
}
.asst-rag-modal-empty {
  margin: 0;
  padding: 16px 0;
  text-align: center;
}
.asst-rag-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.asst-rag-modal-count {
  margin-left: auto;
  font-size: 12px;
}
.asst-rag-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(360px, 50vh);
  overflow: auto;
}
.asst-rag-meeting-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}
.asst-rag-meeting-item:hover { background: var(--gcp-bg); }
.asst-rag-meeting-item.selected {
  border-color: #c2d7f7;
  background: var(--gcp-blue-light);
}
.asst-rag-meeting-item input { margin-top: 3px; accent-color: var(--gcp-blue); flex-shrink: 0; }
.asst-rag-meeting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.asst-rag-meeting-info strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--gcp-text);
}
.asst-rag-meeting-info .muted { font-size: 12px; }
.asst-rag-meeting-shared {
  font-size: 11px;
  color: var(--gcp-text-secondary);
  line-height: 1.35;
}

.asst-rag-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gcp-blue-light);
  font-size: 11px;
  color: var(--gcp-blue);
}
.asst-rag-badge .material-symbols-outlined { font-size: 16px !important; }

.asst-citations {
  margin-top: 10px;
  border: 1px solid #c2d7f7;
  border-radius: 10px;
  background: var(--gcp-blue-light);
  overflow: hidden;
}
.asst-citations-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--gcp-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.asst-citations-toggle .material-symbols-outlined { font-size: 16px !important; }
.asst-citations-chevron { margin-left: auto; }
.asst-citations-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px 8px;
  max-height: 220px;
  overflow: auto;
}
.asst-citations-list.hidden { display: none; }
.asst-citation-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--gcp-border);
  background: white;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s, border-color 0.1s;
}
.asst-citation-card:hover {
  background: var(--gcp-surface);
  border-color: var(--gcp-blue);
}
.asst-citation-num {
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.asst-citation-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.asst-citation-body strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--gcp-text);
  line-height: 1.3;
}
.asst-citation-body .muted { font-size: 11px; }

.asst-citation-link {
  color: var(--gcp-blue);
  text-decoration: none;
  font-weight: 500;
}
.asst-citation-link:hover { text-decoration: underline; }

/* ── Copiloto page ── */
body.copilot-page {
  height: 100vh;
  overflow: hidden;
}
body.copilot-page .gcp-body {
  display: flex;
  min-height: 0;
  height: 100vh;
  padding-top: var(--topbar-h);
  overflow: hidden;
}
body.copilot-page .gcp-main {
  flex: 1;
  min-height: 0;
  height: auto;
  margin-left: var(--sidebar-w);
  padding: 12px 24px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.copilot-page #main-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.copilot-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.copilot-sidebar {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.copilot-sidebar h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
#copilot-filters-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.copilot-filter-group { margin-bottom: 16px; }
.copilot-filter-group:last-child { margin-bottom: 0; }
.copilot-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gcp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.copilot-filter-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
.copilot-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.copilot-date-row .gcp-input { flex: 1; min-width: 100px; }

.copilot-date-range {
  position: relative;
}
.copilot-date-range-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius);
  background: var(--gcp-surface);
  color: var(--gcp-text);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.copilot-date-range-trigger:hover {
  border-color: #c2d7f7;
  background: var(--gcp-blue-light);
}
.copilot-date-range-trigger .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--gcp-text-secondary);
  flex-shrink: 0;
}
.copilot-date-range-trigger #copilot-date-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copilot-date-chevron { margin-left: auto; }

.copilot-date-popover {
  position: fixed;
  z-index: 1200;
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  box-shadow: var(--gcp-shadow);
  padding: 12px;
}
.copilot-date-popover.hidden { display: none; }
.copilot-date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.copilot-date-preset {
  border: 1px solid var(--gcp-border);
  background: var(--gcp-bg);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--gcp-text-secondary);
  cursor: pointer;
}
.copilot-date-preset:hover {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.copilot-date-hint {
  margin: 0 0 10px;
  font-size: 11px;
}
.copilot-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.copilot-cal-titles {
  display: flex;
  flex: 1;
  justify-content: space-around;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gcp-text);
}
.copilot-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gcp-border);
  border-radius: 6px;
  background: var(--gcp-surface);
  cursor: pointer;
  color: var(--gcp-text-secondary);
}
.copilot-cal-nav:hover { background: var(--gcp-bg); }
.copilot-cal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.copilot-cal-month { min-width: 0; }
.copilot-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.copilot-cal-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
}
.copilot-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.copilot-cal-day {
  border: none;
  background: transparent;
  border-radius: 6px;
  height: 28px;
  font-size: 11px;
  color: var(--gcp-text);
  cursor: pointer;
}
.copilot-cal-day:hover { background: var(--gcp-bg); }
.copilot-cal-day.outside { color: var(--gcp-text-muted); }
.copilot-cal-day.today { font-weight: 700; color: var(--gcp-blue); }
.copilot-cal-day.in-range { background: var(--gcp-blue-light); }
.copilot-cal-day.range-start,
.copilot-cal-day.range-end,
.copilot-cal-day.selecting {
  background: var(--gcp-blue);
  color: white;
  font-weight: 600;
}
.copilot-date-popover-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--gcp-border);
}

@media (max-width: 960px) {
  .copilot-date-popover { width: min(100%, calc(100vw - 48px)); }
  .copilot-cal-grid { grid-template-columns: 1fr; }
  .copilot-cal-titles { flex-direction: column; align-items: center; }
}

.copilot-participant-picker { position: relative; }
.copilot-participant-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.copilot-participant-selected.hidden { display: none; }
.copilot-participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: var(--gcp-blue-light);
  color: var(--gcp-text);
  font-size: 12px;
  max-width: 100%;
}
.copilot-participant-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--gcp-text-secondary);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
}
.copilot-participant-chip-remove .material-symbols-outlined { font-size: 16px !important; }
.copilot-participant-chip-remove:hover { color: var(--gcp-text); }
.copilot-participant-search-wrap {
  position: relative;
}
.copilot-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gcp-text-secondary);
  font-size: 18px !important;
  pointer-events: none;
}
.copilot-participant-search {
  width: 100%;
  padding-left: 36px !important;
}
.copilot-participant-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius);
  box-shadow: var(--gcp-shadow);
  max-height: 220px;
  overflow: auto;
}
.copilot-participant-dropdown.hidden { display: none; }
.copilot-dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}
.copilot-dropdown-item:hover { background: var(--gcp-blue-light); }
.copilot-dropdown-name { font-weight: 500; color: var(--gcp-text); }
.copilot-dropdown-email { font-size: 12px; }
.copilot-dropdown-empty {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  color: var(--gcp-text-secondary);
}

.copilot-source-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}
.copilot-source-grid.hidden { display: none; }
.copilot-source-item {
  font-size: 13px;
  line-height: 1.35;
}

.copilot-filter-collapsible { margin-bottom: 16px; }
.copilot-filter-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.copilot-filter-collapse-toggle:hover .copilot-filter-label {
  color: var(--gcp-blue);
}
.copilot-filter-collapse-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.copilot-filter-collapse-head .copilot-filter-label {
  margin-bottom: 0;
}
.copilot-source-summary {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}
.copilot-filter-chevron {
  font-size: 20px !important;
  color: var(--gcp-text-secondary);
  flex-shrink: 0;
}

.copilot-participant-match {
  margin-top: 10px;
}
.copilot-participant-match.hidden { display: none; }
.copilot-participant-match-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.copilot-match-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.copilot-match-btn {
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 11px;
  color: var(--gcp-text-secondary);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.copilot-match-btn:hover {
  background: var(--gcp-bg);
  border-color: #c2d7f7;
}
.copilot-match-btn.active {
  background: var(--gcp-blue-light);
  border-color: var(--gcp-blue);
  color: var(--gcp-blue);
  font-weight: 600;
}

.copilot-filter-preview-group {
  padding-top: 12px;
  border-top: 1px solid var(--gcp-border);
  margin-bottom: 0 !important;
}
.copilot-preview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.copilot-preview-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--gcp-text);
}
.copilot-preview-link {
  border: none;
  background: transparent;
  color: var(--gcp-blue);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.copilot-preview-link:hover { text-decoration: underline; }
.copilot-preview-status,
.copilot-preview-empty {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.copilot-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.copilot-preview-meeting {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s, border-color 0.1s;
}
.copilot-preview-meeting:hover {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
}
.copilot-preview-meeting-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gcp-text);
  line-height: 1.3;
}
.copilot-preview-meeting-meta,
.copilot-preview-meeting-types {
  font-size: 11px;
  line-height: 1.35;
}
.copilot-meetings-modal-panel { width: min(560px, 100%); }
.copilot-meetings-modal-desc {
  margin: 0 0 12px;
  font-size: 13px;
}
.copilot-meetings-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(480px, 60vh);
  overflow: auto;
}
.copilot-meetings-modal-more {
  margin: 12px 0 0;
  font-size: 12px;
  text-align: center;
}

.copilot-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.copilot-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.copilot-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gcp-border);
  border-radius: 8px;
  background: var(--gcp-surface);
  color: var(--gcp-text-secondary);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.copilot-tool-btn:hover,
.copilot-tool-btn.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.copilot-tool-btn .material-symbols-outlined { font-size: 20px !important; }

.copilot-history-panel {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  max-height: min(420px, 55%);
  background: var(--gcp-surface);
  border-bottom: 1px solid var(--gcp-border);
  z-index: 5;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.12);
}
.copilot-history-panel.hidden { display: none; }
.copilot-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px 16px;
}
.copilot-history-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.copilot-history-list {
  overflow-y: auto;
  padding: 0 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.copilot-history-item {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
}
.copilot-history-item:hover { background: var(--gcp-bg); }
.copilot-history-item.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
}
.copilot-history-item-title {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gcp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copilot-history-item-meta {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.copilot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gcp-border);
  flex-shrink: 0;
}
.copilot-breadcrumbs {
  font-size: 12px;
  color: var(--gcp-text-secondary);
  margin-bottom: 4px;
}
.copilot-breadcrumbs a {
  color: var(--gcp-blue);
  text-decoration: none;
}
.copilot-breadcrumbs a:hover { text-decoration: underline; }
.copilot-header h1 {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 600;
}
.copilot-header .muted { margin: 0; font-size: 13px; }
.copilot-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.copilot-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 12px;
  flex-shrink: 0;
}
.copilot-prompts.hidden { display: none; }
.copilot-prompt-chip {
  text-align: left;
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gcp-text);
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.1s, border-color 0.1s;
}
.copilot-prompt-chip:hover {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
}
.copilot-msg {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}
.copilot-msg .asst-copy-btn { opacity: 0; }
.copilot-msg:hover .asst-copy-btn,
.copilot-msg .asst-copy-btn:focus-visible,
.copilot-msg .asst-copy-btn.copied {
  opacity: 1;
}
.copilot-msg-user .asst-copy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: none;
}
.copilot-msg-user .asst-copy-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}
.copilot-msg-user .asst-copy-btn.copied {
  color: #b7e1cd;
}
.copilot-msg-assistant .asst-citations {
  margin-top: 12px;
}
.copilot-msg-user {
  align-self: flex-end;
  background: var(--gcp-blue);
  color: white;
}
.copilot-msg-assistant {
  align-self: flex-start;
  background: var(--gcp-bg);
  border: 1px solid var(--gcp-border);
}
.copilot-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--gcp-border);
  flex-shrink: 0;
}
.copilot-form .copilot-input {
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: 40px;
  max-height: min(240px, 35vh);
  height: 40px;
  padding: 10px 12px;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
}
@supports not (field-sizing: content) {
  .copilot-form .copilot-input {
    height: auto;
  }
}
.copilot-form #copilot-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.copilot-form #copilot-send .material-symbols-outlined {
  font-size: 20px !important;
}
.copilot-citations {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.copilot-citations-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gcp-text-secondary);
  width: 100%;
}
.copilot-citation-card {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--gcp-border);
  background: white;
  text-decoration: none;
  font-size: 12px;
  color: var(--gcp-text);
}
.copilot-citation-num {
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.copilot-citation-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.copilot-citation-card:hover {
  border-color: var(--gcp-blue);
  background: var(--gcp-blue-light);
}
.copilot-empty { text-align: center; padding: 24px 0; }

@media (max-width: 960px) {
  body.copilot-page { height: auto; overflow: auto; }
  body.copilot-page .gcp-body { height: auto; }
  body.copilot-page .gcp-main { height: auto; overflow: visible; }
  body.copilot-page #main-content { min-height: 70vh; }
  .copilot-layout { grid-template-columns: 1fr; height: auto; }
  .copilot-sidebar { max-height: 320px; }
}

/* ── Meeting images studio ── */
#panel-images.meeting-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.images-studio {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.images-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.images-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  background: var(--gcp-surface);
  color: var(--gcp-text);
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.images-sidebar-btn:hover {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
}
.images-sidebar-btn.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
  color: var(--gcp-blue);
}
.images-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.images-timeline { display: flex; flex-direction: column; gap: 16px; min-height: 48px; }
.images-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  border: 1px dashed #c2d7f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, var(--gcp-surface) 100%);
  text-align: center;
  color: var(--gcp-text-secondary);
}
.images-empty-state .material-symbols-outlined {
  font-size: 40px;
  color: var(--gcp-blue);
  opacity: 0.7;
}
.images-empty-state p { margin: 0; max-width: 360px; }

.images-studio-card {
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: var(--gcp-shadow);
}
.images-studio-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.images-studio-card-head .material-symbols-outlined {
  font-size: 28px;
  color: var(--gcp-blue);
  background: var(--gcp-blue-light);
  padding: 10px;
  border-radius: 12px;
}
.images-studio-card-head h2 {
  margin: 0;
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
}
.images-studio-card-head p { margin: 2px 0 0; font-size: 0.8125rem; }
.images-studio-section { margin-bottom: 18px; }
.images-section-label,
.images-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gcp-text-muted);
  margin-bottom: 10px;
}
.images-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--gcp-text-secondary);
}

/* Proporção — uma linha com desenhos */
.images-ratio-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.images-ratio-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 92px;
  min-height: 108px;
  padding: 8px 8px 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--gcp-bg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.images-ratio-btn:hover {
  background: var(--gcp-blue-light);
  transform: translateY(-1px);
}
.images-ratio-btn.active {
  border-color: var(--gcp-blue);
  background: var(--gcp-blue-light);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.15);
}
.images-ratio-tag {
  align-self: flex-end;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gcp-text-muted);
  line-height: 1;
  padding: 0 2px 4px;
}
.images-ratio-btn.active .images-ratio-tag {
  color: var(--gcp-blue);
}
.images-ratio-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-bottom: 6px;
}
.images-ratio-frame {
  display: block;
  flex-shrink: 0;
  border: 2.5px solid var(--gcp-blue);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(26, 115, 232, 0.24) 0%, rgba(26, 115, 232, 0.1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}
.images-ratio-btn.active .images-ratio-frame {
  border-color: var(--gcp-blue-hover);
  border-width: 3px;
  background: linear-gradient(145deg, rgba(26, 115, 232, 0.4) 0%, rgba(26, 115, 232, 0.18) 100%);
}
.images-ratio-caption {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gcp-text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.images-ratio-btn.active .images-ratio-caption {
  color: var(--gcp-text);
}

/* Controles: autocomplete + slider */
.images-studio-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 140px;
  gap: 14px;
  margin-bottom: 14px;
}
.images-ac-field { position: relative; min-width: 0; }
.images-ac {
  position: relative;
}
.images-ac-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px !important;
  color: var(--gcp-text-muted);
  pointer-events: none;
}
.images-ac-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  font: inherit;
  background: var(--gcp-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.images-ac-input.has-clear {
  padding-right: 36px;
}
.images-ac-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--gcp-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.images-ac-clear:hover {
  background: rgba(60, 64, 67, 0.08);
  color: var(--gcp-text);
}
.images-ac-clear .material-symbols-outlined {
  font-size: 18px !important;
}
.images-ac-input:focus {
  outline: none;
  border-color: var(--gcp-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
  background: var(--gcp-surface);
}
.images-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18);
}
.images-ac-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.images-ac-option:hover,
.images-ac-option.highlight {
  background: var(--gcp-blue-light);
}
.images-ac-option[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.images-ac-option-label {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.images-ac-option-hint {
  font-size: 0.75rem;
  color: var(--gcp-text-muted);
}
.images-ac-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--gcp-blue);
  color: #fff;
}
.images-ac-empty { padding: 12px; }

.images-versions-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.images-versions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.images-versions-head output {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gcp-blue);
  min-width: 1.5rem;
  text-align: right;
}
.images-versions-field input[type="range"] {
  width: 100%;
  accent-color: var(--gcp-blue);
  cursor: pointer;
}
.images-versions-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--gcp-text-muted);
  padding: 0 2px;
}

.images-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.images-prompt-field textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
  background: var(--gcp-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.images-prompt-field textarea:focus {
  outline: none;
  border-color: var(--gcp-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
  background: var(--gcp-surface);
}
.images-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gcp-border);
  border-radius: 10px;
  font: inherit;
}

.images-generate-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9375rem;
}
.images-form-note { font-size: 0.8125rem; margin: 12px 0 0; text-align: center; }

.images-history-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  max-height: min(420px, 55vh);
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.12);
  display: flex;
  flex-direction: column;
}
.images-history-panel.hidden { display: none; }
.images-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px 16px;
  flex-shrink: 0;
}
.images-history-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.images-history-list {
  overflow-y: auto;
  padding: 0 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.images-history-empty {
  margin: 0;
  font-size: 13px;
  text-align: center;
  padding: 20px 8px;
}
.images-history-item {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
  font: inherit;
}
.images-history-item:hover { background: var(--gcp-bg); }
.images-history-item.active {
  background: var(--gcp-blue-light);
  border-color: #c2d7f7;
}
.images-history-item-title {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gcp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.images-history-item-meta {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.images-turn {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--gcp-border);
  background: var(--gcp-bg);
}
.images-turn-user { background: #f0f4ff; }
.images-turn-assistant { background: var(--gcp-surface); }
.images-turn-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 24px;
}
.images-turn-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.images-settings-chip {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gcp-surface);
  border: 1px solid var(--gcp-border);
}
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
  align-items: start;
}
.images-grid-item {
  border: 1px solid var(--gcp-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}
.images-grid-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #f1f3f4;
  cursor: zoom-in;
  overflow: hidden;
}
.images-grid-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}
.images-grid-ratio {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.62);
  color: #fff;
  pointer-events: none;
}
.images-grid-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 33, 36, 0);
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s, background 0.18s;
  pointer-events: none;
}
.images-grid-zoom .material-symbols-outlined {
  font-size: 36px !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.images-grid-thumb:hover .images-grid-zoom,
.images-grid-thumb:focus-visible .images-grid-zoom {
  opacity: 1;
  background: rgba(32, 33, 36, 0.28);
}
.images-grid-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.8125rem;
}
.images-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
}

/* Lightbox de imagens geradas */
.images-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--gcp-surface);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(60, 64, 67, 0.28);
  overflow: hidden;
}
.images-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gcp-border);
  flex-shrink: 0;
}
.images-lightbox-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.images-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.images-lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #1a1a1a;
  overflow: auto;
  max-height: calc(100vh - 140px);
}
.images-lightbox-body img {
  max-width: 100%;
  max-height: calc(100vh - 172px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .images-studio { grid-template-columns: 1fr; }
  .images-studio-controls { grid-template-columns: 1fr; }
  .images-history-panel { max-height: min(360px, 50vh); }
}

/* ── Landing page ── */
.landing-page {
  background: #fff;
  color: var(--gcp-text);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gcp-border);
}

.landing-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gcp-text);
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-right: auto;
}
.landing-nav-brand .material-symbols-outlined {
  color: var(--gcp-blue);
  font-size: 28px !important;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.landing-nav-links a {
  color: var(--gcp-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.landing-nav-links a:hover { color: var(--gcp-blue); }

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-menu-btn {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gcp-text-secondary);
}
.landing-menu-btn:hover { background: var(--gcp-bg); }

.landing-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  background: var(--gcp-surface);
  border-bottom: 1px solid var(--gcp-border);
}
.landing-mobile-menu a {
  padding: 12px 8px;
  text-decoration: none;
  color: var(--gcp-text);
  font-weight: 500;
  border-radius: 8px;
}
.landing-mobile-menu a:hover { background: var(--gcp-bg); }
.landing-mobile-cta {
  margin-top: 8px;
  text-align: center;
  background: var(--gcp-blue) !important;
  color: #fff !important;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.landing-btn:active { transform: scale(0.98); }
.landing-btn-primary {
  background: var(--gcp-blue);
  color: #fff;
  border-color: var(--gcp-blue);
}
.landing-btn-primary:hover { background: var(--gcp-blue-hover); }
.landing-btn-outlined {
  background: #fff;
  color: var(--gcp-blue);
  border-color: #d2e3fc;
}
.landing-btn-outlined:hover { background: var(--gcp-blue-light); }
.landing-btn-ghost {
  background: transparent;
  color: var(--gcp-text-secondary);
}
.landing-btn-ghost:hover { background: var(--gcp-bg); color: var(--gcp-text); }
.landing-btn-white {
  background: #fff;
  color: var(--gcp-blue);
  border-color: #fff;
}
.landing-btn-white:hover { background: #f8f9fa; }
.landing-btn-ghost-white {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}
.landing-btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.landing-btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.landing-hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(26, 115, 232, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(26, 115, 232, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  padding: 56px 32px 72px;
}

.landing-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.landing-eyebrow-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.landing-hero h1 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.landing-hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gcp-text-secondary);
  margin: 0 0 28px;
  max-width: 540px;
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.landing-hero-cta-center { justify-content: center; }

.landing-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.landing-hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gcp-text-secondary);
}
.landing-hero-bullets .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--gcp-success);
}

.landing-mockup {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(26, 115, 232, 0.12),
    0 8px 24px rgba(60, 64, 67, 0.08);
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
}

.landing-mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f1f3f4;
  border-bottom: 1px solid var(--gcp-border);
}
.landing-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dadce0;
}
.landing-mockup-dot:first-child { background: #ea4335; }
.landing-mockup-dot:nth-child(2) { background: #fbbc04; }
.landing-mockup-dot:nth-child(3) { background: #34a853; }
.landing-mockup-title {
  flex: 1;
  font-size: 12px;
  color: var(--gcp-text-secondary);
  margin-left: 8px;
}
.landing-mockup-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c5221f;
  background: #fce8e6;
  border: 1px solid #f9ab00;
  padding: 4px 10px;
  border-radius: 999px;
}

.landing-mockup-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 260px;
}
.landing-mockup-panel {
  padding: 20px;
  font-size: 13px;
  line-height: 1.55;
  border-right: 1px solid var(--gcp-border);
}
.landing-mockup-panel:last-child { border-right: none; }
.landing-mockup-panel-accent {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.landing-mockup-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gcp-text-muted);
  margin: 0 0 12px;
}
.landing-mockup-line {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gcp-bg);
}
.landing-mockup-line-active {
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
}

.landing-trust {
  border-top: 1px solid var(--gcp-border);
  border-bottom: 1px solid var(--gcp-border);
  background: var(--gcp-bg);
  padding: 20px 32px;
}
.landing-trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}
.landing-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gcp-text-secondary);
}
.landing-trust-item .material-symbols-outlined {
  color: var(--gcp-blue);
}

.landing-section {
  padding: 80px 32px;
}
.landing-section-alt {
  background: linear-gradient(135deg, #1557b0 0%, #1a73e8 55%, #4285f4 100%);
  color: #fff;
}
.landing-section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.landing-section-head h2 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.landing-section-head p {
  font-size: 17px;
  color: var(--gcp-text-secondary);
  margin: 0;
}
.landing-section-alt .landing-section-head p {
  color: rgba(255, 255, 255, 0.82);
}

.landing-features {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-feature {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--gcp-border);
  background: var(--gcp-surface);
  transition: box-shadow 0.2s, transform 0.2s;
}
.landing-feature:hover {
  box-shadow: 0 8px 28px rgba(60, 64, 67, 0.1);
  transform: translateY(-2px);
}
.landing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
  margin-bottom: 16px;
}
.landing-feature-icon .material-symbols-outlined { font-size: 24px !important; }
.landing-feature h3 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 8px;
}
.landing-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gcp-text-secondary);
}

.landing-split {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.landing-split-copy h2 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.2;
}
.landing-split-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
}

.landing-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.landing-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.landing-checklist .material-symbols-outlined {
  font-size: 20px !important;
  color: #81c995;
}

.landing-copilot-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.landing-copilot-q {
  background: rgba(255, 255, 255, 0.95);
  color: var(--gcp-text);
  padding: 14px 18px;
  border-radius: 12px 12px 12px 4px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 16px;
}
.landing-copilot-a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.landing-copilot-a ol {
  margin: 12px 0 0;
  padding-left: 20px;
}
.landing-copilot-a a {
  color: #8ab4f8;
}

.landing-steps {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.landing-step {
  text-align: center;
  padding: 8px;
}
.landing-step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gcp-blue-light);
  color: var(--gcp-blue);
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.landing-step h3 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}
.landing-step p {
  font-size: 13px;
  color: var(--gcp-text-secondary);
  margin: 0;
  line-height: 1.55;
}

.landing-cta-band {
  background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 100%);
  padding: 72px 32px;
  text-align: center;
}
.landing-cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
}
.landing-cta-band h2 {
  font-family: "Google Sans", Roboto, sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  color: #fff;
  margin: 0 0 12px;
}
.landing-cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin: 0 0 28px;
}

.landing-footer {
  border-top: 1px solid var(--gcp-border);
  padding: 32px;
  background: var(--gcp-bg);
}
.landing-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.landing-footer-copy {
  flex: 1;
  margin: 0;
  font-size: 13px;
  color: var(--gcp-text-muted);
}
.landing-footer-links {
  display: flex;
  gap: 20px;
}
.landing-footer-links a {
  font-size: 13px;
  color: var(--gcp-text-secondary);
  text-decoration: none;
}
.landing-footer-links a:hover { color: var(--gcp-blue); }

@media (max-width: 960px) {
  .landing-nav-links,
  .landing-nav-actions { display: none; }
  .landing-menu-btn { display: grid; place-items: center; }
  .landing-mobile-menu:not(.hidden) { display: flex; }
  .landing-hero-inner,
  .landing-split { grid-template-columns: 1fr; }
  .landing-hero-visual { order: -1; }
  .landing-mockup-body { grid-template-columns: 1fr; }
  .landing-mockup-panel { border-right: none; border-bottom: 1px solid var(--gcp-border); }
  .landing-features { grid-template-columns: 1fr; }
  .landing-steps { grid-template-columns: 1fr 1fr; }
  .landing-nav { padding: 0 16px; }
  .landing-hero,
  .landing-section { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 560px) {
  .landing-steps { grid-template-columns: 1fr; }
  .landing-hero-cta { flex-direction: column; }
  .landing-hero-cta .landing-btn { width: 100%; }
  .landing-footer-inner { flex-direction: column; text-align: center; }
}

