:root {
  --bg: #ffffff;
  --ink: #202124;
  --muted: #9aa0a6;
  --line: #dadce0;
  --soft: #f1f3f4;
  --en-footer-h: 32px;
  --font: "Outfit", "Segoe UI", sans-serif;
  /* Match esearch_google chat-composer.css */
  /* Match https://www.perplexity.ai/ composer (pplxSans ≈ Inter) */
  --pplx-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --composer-input-size: 16px;
  --composer-input-line: 24px;
  --composer-chip-size: 14px;
  --composer-action-btn-size: 34px;
  --composer-action-icon-size: 26px;
  --composer-voice-activity-size: 40px;
  --composer-voice-activity-icon-size: 28px;
  --index-content-max-width: 680px;
  --index-topbar-h: 48px;
  --index-topbar-pad-x: 16px;
  --index-apps-panel-w: 268px;
  /* enaviya topbar — light palette matched to enaviyameet */
  --en-brand: #1a73e8;
  --en-brand-deep: #0b57d0;
  --en-brand-soft: #e8f0fe;
  --en-brand-line: #c2d9ff;
  --en-accent: #5f6368;
  --en-accent-soft: #f1f3f4;
  --en-accent-hover: #4a4e52;
  --en-topbar-control-h: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  padding-bottom: var(--en-footer-h, 32px);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Keep every public/auth/dashboard page canvas on the same white as index. */
body.auth-page,
body.dash-body,
body.em-pricing-page,
body.em-plan-body,
body.admin-body,
body.admin-login-page,
body.pricing-page,
body.signup-page,
body.site-content-page,
body.potp-page {
  background: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Top-right: enaviya apps + Sign in — always on page, all viewports */
.index-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: calc(var(--index-topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  border: 0;
  pointer-events: none;
  display: block;
  visibility: visible;
  opacity: 1;
}

.index-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  height: var(--index-topbar-h);
  padding: 0 max(var(--index-topbar-pad-x), env(safe-area-inset-right, 0px)) 0 max(var(--index-topbar-pad-x), env(safe-area-inset-left, 0px));
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
}

.index-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--en-topbar-control-h);
  height: var(--en-topbar-control-h);
  min-width: var(--en-topbar-control-h);
  min-height: var(--en-topbar-control-h);
  padding: 0;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #fff;
  color: #3c4043;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.index-topbar-btn:hover,
.index-topbar-btn:focus {
  background: var(--en-brand-soft);
  border-color: var(--en-brand);
  color: var(--en-brand);
  outline: none;
}

.index-topbar-btn[aria-expanded="true"] {
  background: var(--en-brand-soft);
  border-color: var(--en-brand);
  color: var(--en-brand);
}

.index-apps-wrap {
  position: relative;
  flex: 0 0 auto;
}

.index-apps-grid-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.index-apps-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: min(var(--index-apps-panel-w), calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(78vh, calc(100dvh - var(--index-topbar-h) - env(safe-area-inset-top, 0px) - 16px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 10px 10px;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(66, 133, 244, 0.1), transparent 50%),
    radial-gradient(80% 60% at 100% 0%, rgba(234, 67, 53, 0.08), transparent 48%),
    radial-gradient(70% 55% at 100% 100%, rgba(52, 168, 83, 0.08), transparent 50%),
    #ffffff;
  border: 1px solid rgba(60, 64, 67, 0.12);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.06),
    0 14px 32px rgba(32, 33, 36, 0.14);
  box-sizing: border-box;
  z-index: 1040;
  animation: index-apps-pop 0.18s ease-out;
}

@keyframes index-apps-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.index-apps-panel[hidden] {
  display: none !important;
  animation: none;
}

.index-apps-panel-head {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(60, 64, 67, 0.1);
}

.index-apps-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.index-apps-panel-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: conic-gradient(from 210deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  position: relative;
}

.index-apps-panel-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    5px 0 0 -1px rgba(255, 255, 255, 0.92),
    0 5px 0 -1px rgba(255, 255, 255, 0.92),
    5px 5px 0 -1px rgba(255, 255, 255, 0.92);
}

.index-apps-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.index-apps-panel-title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #202124;
  text-transform: none;
  line-height: 1.2;
}

.index-apps-panel-sub {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: #80868b;
  line-height: 1.2;
}

.index-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 72px));
  justify-content: space-between;
  column-gap: 4px;
  row-gap: 2px;
  width: 100%;
}

.index-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
  padding: 8px 2px 6px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #202124;
  text-decoration: none;
  font-family: var(--font);
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s ease;
}

.index-app-tile:hover,
.index-app-tile:focus {
  background: rgba(60, 64, 67, 0.06);
  border: 0;
  color: #202124;
  text-decoration: none;
  outline: none;
  box-shadow: none;
  transform: none;
}

.index-app-tile-search:hover,
.index-app-tile-search:focus,
.index-app-tile-meet:hover,
.index-app-tile-meet:focus,
.index-app-tile-selftest:hover,
.index-app-tile-selftest:focus,
.index-app-tile-classroom:hover,
.index-app-tile-classroom:focus {
  border: 0;
  box-shadow: none;
}

.index-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
  border: 0;
  overflow: hidden;
}

.index-app-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.index-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-app-icon-search {
  background: linear-gradient(145deg, #5b9bff, #1a73e8);
}

.index-app-icon-meet {
  background: transparent;
  padding: 0;
}

.index-app-icon-selftest {
  background: linear-gradient(145deg, #57d68d, #1e8e3e);
}

.index-app-icon-classroom {
  background: linear-gradient(145deg, #ffd54f, #f9ab00);
}

.index-app-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  width: 100%;
}

.index-app-label {
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #202124;
}

.index-app-desc {
  display: none;
  font-size: 10px;
  font-weight: 500;
  color: #80868b;
  line-height: 1.25;
  text-align: center;
}

/* Match emeet .en-header-text-link */
.index-plans-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.15s ease;
}

.index-plans-link:hover,
.index-plans-link:focus {
  color: #1a73e8;
  background: transparent;
  text-decoration: none;
  outline: none;
}

/* Match emeet Sign In text link */
.index-signin-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.15s ease;
}

.index-signin-link:hover,
.index-signin-link:focus {
  color: #1a73e8;
  background: transparent;
  text-decoration: none;
  outline: none;
}

/* Compact install CTA — sized to sit with apps grid + Sign Out */
.index-get-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 28px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #1a73e8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.index-get-app-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex: 0 0 auto;
}

.index-get-app-btn:hover,
.index-get-app-btn:focus {
  background: #e8f0fe;
  border-color: #1a73e8;
  color: #1a73e8;
  text-decoration: none;
  outline: none;
}

/* Match emeet .en-header-auth (light blue pill) — Start for Free */
.index-start-free-btn,
.index-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 28px;
  height: 28px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #c2d9ff;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a73e8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.index-signin-label {
  display: inline-block;
}

.index-signin-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
  opacity: 0.95;
}

.index-start-free-btn:hover,
.index-start-free-btn:focus,
.index-signin-btn:hover,
.index-signin-btn:focus {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
  text-decoration: none;
  outline: none;
}

.index-signin-btn:hover .index-signin-icon,
.index-signin-btn:focus .index-signin-icon {
  opacity: 1;
}

.center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Google-like: sit above true center; clear fixed topbar */
  justify-content: flex-start;
  padding: max(16vh, calc(var(--index-topbar-h) + env(safe-area-inset-top, 0px) + 24px)) 1.25rem 6rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.brand-block {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo {
  margin: 0;
  line-height: 0;
  background: transparent;
}

.logo img {
  display: block;
  width: min(360px, 72vw);
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.help-tagline {
  margin: 1.25rem 0 0;
  padding: 0;
  color: #6b7280;
  font-family: var(--pplx-font-sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.ask-wrap {
  width: min(var(--index-content-max-width), 100%);
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
}

/* Match Perplexity composer shell (~132px, radius 26px) */
.composer {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(11, 40, 51, 0.15);
  border-radius: 26px;
  box-shadow: none;
  padding: 12px 14px 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.composer:focus-within {
  border-color: rgba(11, 40, 51, 0.22);
  box-shadow: none;
}

.composer textarea,
.composer .chat-body {
  flex: 1 1 auto;
  width: 100%;
  resize: none;
  border: none;
  background: transparent;
  padding: 0 2px;
  margin: 0;
  outline: none;
  overflow-y: auto;
  min-height: 48px;
  max-height: 40vh;
  font-family: var(--pplx-font-sans);
  font-size: var(--composer-input-size);
  line-height: var(--composer-input-line);
  font-weight: 400;
  color: rgb(11, 40, 51);
  box-sizing: border-box;
}

.composer textarea::placeholder {
  color: rgba(11, 40, 51, 0.45);
  font-family: var(--pplx-font-sans);
  font-weight: 400;
  font-size: var(--composer-input-size);
  line-height: var(--composer-input-line);
  opacity: 1;
}

.composer textarea.is-voice-listening::placeholder {
  color: #20808d;
  font-style: italic;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}

.composer-toolbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.model-picker,
.mode-picker {
  position: relative;
  flex-shrink: 0;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(220px, calc(100vw - 140px));
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #344054;
  font-family: var(--pplx-font-sans);
  font-size: var(--composer-chip-size);
  font-weight: 500;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.model-chip:hover:not(:disabled) {
  background: #f2f4f7;
  border-color: #d0d5dd;
}

.model-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
  color: inherit;
}

.model-chip-icon-svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: #667085;
}

.model-chip-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  fill: #667085;
}

.model-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 32px));
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.14);
  padding: 4px;
}

.model-menu[hidden] {
  display: none;
}

.model-menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1a1a1a;
  font-family: var(--pplx-font-sans);
  font-size: var(--composer-chip-size);
  font-weight: 400;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  cursor: pointer;
}

.model-menu-item .menu-item-label {
  font-weight: 500;
}

.model-menu-item .menu-item-desc {
  font-size: 12px;
  color: #667085;
  line-height: 1.3;
}

.model-menu-item:hover,
.model-menu-item.active {
  background: #f2f4f7;
}

.composer-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.attachment-row {
  display: contents;
}

.composer-toolbar-actions.is-voice-active .attachment-row {
  display: contents;
}

.attachment-filename:empty {
  display: none;
}

.attachment-filename {
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #667085;
  min-width: 0;
  max-width: 120px;
}

.attachment-button,
.index-search-clear-button {
  width: var(--composer-action-btn-size);
  height: var(--composer-action-btn-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.attachment-button:hover:not(:disabled),
.index-search-clear-button:hover:not(:disabled) {
  background: #f2f4f7;
  color: #344054;
}

.attachment-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.attachment-button[hidden],
.index-search-clear-button[hidden] {
  display: none !important;
}

.attachment-button.button-active {
  background: #e0f2f4;
  color: #20808d;
}

.attachment-button.button-active:hover {
  background: #cce8eb;
  color: #186b75;
}

.attachment-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.clear-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.hidden-file-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.send-button,
.voice-mic-button {
  width: var(--composer-action-btn-size);
  height: var(--composer-action-btn-size);
  border: none;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, opacity 0.15s;
  padding: 0;
}

.send-button:hover:not(:disabled),
.voice-mic-button:hover:not(:disabled) {
  background: #1a1a1a;
}

.send-button:disabled,
.voice-mic-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.send-button[hidden],
.voice-mic-button[hidden] {
  display: none !important;
}

.composer-toolbar-actions.has-composer-text .voice-mic-button {
  display: none;
}

.composer-toolbar-actions:not(.has-composer-text) .send-button {
  display: none;
}

.composer-toolbar-actions.is-voice-active .voice-mic-button,
.composer-toolbar-actions.is-voice-active .send-button,
.composer-toolbar-actions.is-voice-active .attachment-button,
.composer-toolbar-actions.is-voice-active .index-search-clear-button {
  display: none !important;
}

.send-button-svg,
.voice-mic-button .voice-btn-svg,
.voice-stop-button .voice-btn-svg {
  width: var(--composer-action-icon-size);
  height: var(--composer-action-icon-size);
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.send-button-svg path,
.voice-mic-button .voice-btn-svg path {
  fill: #ffffff;
}

.voice-stop-button {
  width: var(--composer-action-btn-size);
  height: var(--composer-action-btn-size);
  border: none;
  border-radius: 50%;
  background: #8b1e1e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s, opacity 0.15s;
}

.voice-stop-button:hover:not(:disabled) {
  background: #6e1818;
}

.voice-stop-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.voice-stop-button[hidden] {
  display: none !important;
}

.voice-stop-button .voice-btn-svg rect {
  fill: #ffffff;
}

.voice-activity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--composer-voice-activity-size);
  height: var(--composer-voice-activity-size);
  color: #20808d;
  flex-shrink: 0;
}

.voice-activity[hidden] {
  display: none !important;
}

.voice-activity-svg {
  width: var(--composer-voice-activity-icon-size);
  height: var(--composer-voice-activity-icon-size);
  display: block;
}

.voice-activity-bar {
  fill: currentColor;
  transform-origin: center bottom;
}

.voice-activity.is-hearing {
  animation: voice-activity-shift 0.45s ease-in-out infinite;
}

.voice-activity.is-hearing .voice-activity-bar:nth-child(1) {
  animation: voice-bar-pulse 0.55s ease-in-out infinite;
}

.voice-activity.is-hearing .voice-activity-bar:nth-child(2) {
  animation: voice-bar-pulse 0.55s ease-in-out 0.12s infinite;
}

.voice-activity.is-hearing .voice-activity-bar:nth-child(3) {
  animation: voice-bar-pulse 0.55s ease-in-out 0.24s infinite;
}

@keyframes voice-activity-shift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@keyframes voice-bar-pulse {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.index-search-image-preview {
  margin-top: 10px;
}

.index-search-image-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 10px 6px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

.index-search-image-chip img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.index-search-image-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: #3c4043;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-search-image-remove {
  border: 0;
  background: transparent;
  color: #5f6368;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.index-search-multimodal-modes {
  margin-top: 10px;
  max-width: 692px;
  font-family: Arial, Helvetica, sans-serif;
}

.index-search-multimodal-hint {
  font-size: 12px;
  color: #5f6368;
  margin: 0 0 6px 0;
}

.index-search-multimodal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.index-search-multimodal-btn {
  border: 1px solid #dadce0;
  background: #fff;
  color: #1a73e8;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.index-search-multimodal-btn:hover {
  background: #e8f0fe;
  border-color: #1a73e8;
}

.index-search-multimodal-btn-secondary {
  color: #3c4043;
}

.index-search-status {
  margin-top: 8px;
  font-size: 13px;
  color: #5f6368;
  text-align: left;
}

.index-search-status.is-error {
  color: #d93025;
}

.result {
  width: min(680px, 100%);
  margin-top: 1.75rem;
  padding: 1.1rem 1.2rem;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.result.loading {
  color: var(--muted);
}

.result.error {
  border-color: #f6c0ba;
  color: #c5221f;
}

/* Match enaviyameet footer (emeet custom.css) */
footer.en-site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  box-sizing: border-box;
}

.en-site-footer-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 24px;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.en-site-footer-copy {
  color: #666;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.en-site-footer-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
}

.en-site-footer-nav a,
.en-site-footer-nav a:link,
.en-site-footer-nav a:visited {
  color: #666;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.en-site-footer-nav a:hover {
  color: #333;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #202124;
  color: #fff;
  font-size: 0.9rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: #c5221f;
}

@media (max-width: 991px) {
  .en-site-footer-inner {
    padding: 6px 16px;
    gap: 8px;
  }

  .help-tagline {
    font-size: clamp(18px, 4.5vw, 22px);
  }
}

@media (max-width: 768px) {
  :root {
    --index-topbar-pad-x: 8px;
    --en-topbar-control-h: 30px;
  }

  .index-topbar-actions {
    gap: 8px;
  }

  .index-topbar-btn {
    border-radius: 9px;
  }

  .index-apps-grid-icon {
    width: 16px;
    height: 16px;
  }

  .index-start-free-btn,
  .index-signin-btn {
    padding: 0 10px;
  }

  .index-get-app-btn {
    padding: 0 8px;
    min-height: 28px;
    height: 28px;
    font-size: 12px;
  }

  .index-get-app-icon {
    width: 13px;
    height: 13px;
  }

  .composer-toolbar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .composer-toolbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .composer-toolbar-actions {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --index-topbar-h: 44px;
    --index-topbar-pad-x: 6px;
    --en-topbar-control-h: 32px;
  }

  .center-stage {
    padding-top: max(12vh, calc(var(--index-topbar-h) + env(safe-area-inset-top, 0px) + 20px));
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .logo img {
    width: min(280px, 78vw);
  }

  .ask-wrap {
    padding: 0 8px;
  }

  .composer {
    min-height: 112px;
    border-radius: 22px;
    padding: 10px 12px 8px;
  }

  .index-apps-panel {
    position: fixed;
    top: calc(var(--index-topbar-h) + env(safe-area-inset-top, 0px) + 4px);
    right: max(8px, env(safe-area-inset-right, 0px));
    left: auto;
    width: min(var(--index-apps-panel-w), calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }

  .index-app-tile {
    padding: 8px 2px 6px;
    gap: 5px;
  }

  .index-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .index-app-icon svg {
    width: 16px;
    height: 16px;
  }

  .index-app-label {
    font-size: 11px;
  }

  footer.en-site-footer {
    position: static;
  }

  .en-site-footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .en-site-footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }
}

@media (max-width: 420px) {
  :root {
    --index-topbar-pad-x: 4px;
  }

  .index-topbar-actions {
    gap: 2px;
  }

  .index-topbar-btn {
    border-radius: 9px;
  }

  .index-start-free-btn,
  .index-signin-btn {
    padding: 0 10px;
    gap: 5px;
  }

  .index-get-app-btn {
    width: 28px;
    min-height: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
  }

  .index-get-app-btn > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .index-signin-icon {
    width: 12px;
    height: 12px;
  }

  .index-apps-panel {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    right: max(6px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 340px) {
  .index-start-free-btn,
  .index-signin-btn {
    padding: 0 8px;
  }

  .index-apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }

  .index-apps-panel {
    animation: none;
  }

  .index-app-tile,
  .index-app-tile:hover,
  .index-app-tile:focus {
    transition: none;
    transform: none;
  }
}
