/* app/static/styles.css */

/* Full-height flex container */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-image: url('images/bg_static.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.video-bg {
  background: none;
}

body.maintenance-active {
  overflow: hidden;
}

body.maintenance-active #header-container,
body.maintenance-active #dashboard,
body.maintenance-active #sidebar,
body.maintenance-active #profiles-panel,
body.maintenance-active #companies-panel,
body.maintenance-active #page-footer,
body.maintenance-active #toast,
body.maintenance-active #toast-overlay {
  display: none !important;
}

.maintenance-shell {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  background: rgba(0, 0, 0, 0.55);
  z-index: 10;
}

body.maintenance-active .maintenance-shell {
  display: flex;
}

.maintenance-card {
  width: min(640px, 92vw);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 10px;
  padding: 2.5rem 2.25rem;
  text-align: center;
  color: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
}

.maintenance-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.maintenance-card h1 {
  color: #ffffff;
  margin: 0 0 var(--space-lg) 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.maintenance-message {
  color: #ffffff;
  margin: 0 0 var(--space-lg) 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.maintenance-link {
  margin: 0 0 var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.maintenance-link a {
  color: #2f6bff;
  font-weight: 600;
  text-decoration: none;
}

.maintenance-link a:hover {
  text-decoration: underline;
}

.maintenance-link-label {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.maintenance-countdown {
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
}

.maintenance-countdown span {
  color: #EE0000;
}

.maintenance-button {
  border: none;
  border-radius: 9999px;
  padding: var(--space-sm) var(--space-2xl);
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.maintenance-button:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: #000000;
}

.maintenance-button:active {
  transform: translateY(0);
}
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

:root {
  --chat-width: 50vw;
  --sidebar-width: 20vw;
  --login-title-color: #ffffff;
  --login-title-font-size: 2.5rem;
  --login-title-font-family: inherit;
  --greeting-title-size: 2rem; /* adjust tDFDFDFDFSDFDFo change greeting size */
  --messages-bottom-padding: 8rem; /* space below message bubbles */
  --messages-guard-offset: 0px; /* extra gap above send-button top */
  --domain-mode-icon-size: 30px;
  --domain-mode-icon-svg-size: 17.5px;
  --hr-icon-size: 22px;
  --domain-toggle-padding-y: 6px;
  --domain-toggle-padding-x: 4px;
  --domain-toggle-radius: 10px;
  --domain-toggle-height: auto;
  --domain-toggle-active-min-width: 64px;
  --domain-toggle-active-width: auto;
  --domain-toggle-active-height: 28px;
  --hr-pill-left-inset: 4px;
  --hr-pill-right-inset: 0px;
  --finance-pill-left-inset: 4px;
  --finance-pill-right-inset: 0px;
  --input-container-bottom: 2.5rem; /* distance from bottom to input area */
  --footer-height: 2rem; /* height of the persistent footer */
  --collapse-button-margin-right: 0.5rem; /* reduce space so icon doesn't spill */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
}

@media (max-width: 768px) and (orientation: portrait) {
  :root {
    --chat-width: 80vw;
    --sidebar-width: 80vw;
  }
}

/* Hide chat UI until authentication check completes */
body.pre-auth #chat-container,
body.pre-auth #page-footer {
  display: none;
}

/* Chat layout */
#chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: margin-left 0.3s ease, width 0.3s ease;
  flex: 1 1 100%;
  background: #fff;
}

#chat-container.login-page {
  background: transparent;
}

#dashboard.profiles-open #chat-container {
  flex-basis: 40%;
}

#dashboard.profiles-open {
  --chat-width: 40vw;
}

#dashboard.companies-open #chat-container {
  flex-basis: 40%;
}

#dashboard.companies-open {
  --chat-width: 40vw;
}

#dashboard {
  position: relative;
  display: flex;
  margin-top: 5rem;
  height: calc(100vh - 5rem - var(--footer-height));
}

#dashboard.sidebar-push {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}

#profiles-panel {
  position: relative;
  flex: 0 1 60%;
  padding: 0 var(--space-2xl) var(--space-lg) var(--space-xl);
  border-radius: 0px;
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  box-sizing: border-box;
  height: calc(100vh - 5rem - var(--footer-height));
  background: #E5E5E5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#profiles-panel.hidden {
  display: none;
}

#profiles-panel-header {
  position: sticky;
  top: 0;
  width: 100%;
  margin-right: 0;
  height: 2.5rem;
  background: #ffffff;
  padding: 0 var(--space-2xl) 0 var(--space-xl);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  border-radius: 0 0 0 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#profiles-panel-title {
  color: #646464;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: 600;
  margin-left: 0.25rem;
}

#profiles-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
#profiles-list::-webkit-scrollbar {
  width: 6px;
}

#companies-panel {
  position: relative;
  flex: 0 1 60%;
  padding: 0 var(--space-2xl) var(--space-lg) var(--space-xl);
  border-radius: 0px;
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  box-sizing: border-box;
  height: calc(100vh - 5rem - var(--footer-height));
  background: #E5E5E5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#companies-panel.hidden {
  display: none;
}

#companies-panel-header {
  position: sticky;
  top: 0;
  width: 100%;
  margin-right: 0;
  height: 2.5rem;
  background: #ffffff;
  padding: 0 var(--space-2xl) 0 var(--space-xl);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  border-radius: 0 0 0 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#companies-panel-title {
  color: #646464;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: 600;
  margin-left: 0.25rem;
}

#companies-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
#companies-list::-webkit-scrollbar {
  width: 6px;
}
#profiles-list::-webkit-scrollbar-track {
  background: transparent;
}
#profiles-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
}

#profiles-header {
  color: #646464;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: 600;
  margin-top: 2.5rem;
  padding: var(--space-sm);
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#profiles-count {
  margin-left: 0.25rem;
  color: #1e90ff;
  font-size: 0.85rem;
}

#profiles-total {
  margin-left: 0.25rem;
  color: #000000;
  font-size: 0.85rem;
}

#profiles-toggle {
  background: none;
  border: none;
  color: #1e90ff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.1rem var(--space-xs);
}

#profiles-toggle.new::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #1e90ff;
  border-radius: 50%;
  margin-left: 4px;
}

#profiles-toggle.thinking-text {
  background-image: linear-gradient(90deg, #1b1b1b, #ffffff, #1b1b1b);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.5s linear infinite;
}

#companies-header {
  color: #646464;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: var(--space-sm);
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#companies-count {
  margin-left: 0.25rem;
  color: #1e90ff;
  font-size: 0.85rem;
}

#companies-total {
  margin-left: 0.25rem;
  color: #000000;
  font-size: 0.85rem;
}

#companies-toggle {
  background: none;
  border: none;
  color: #1e90ff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.1rem var(--space-xs);
}

#companies-toggle.new::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #1e90ff;
  border-radius: 50%;
  margin-left: 4px;
}

#companies-toggle.thinking-text {
  background-image: linear-gradient(90deg, #1b1b1b, #ffffff, #1b1b1b);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.5s linear infinite;
}

.profile-card {
  background: #ffffff;
  border-radius: 12px;
  padding: var(--space-lg);
  margin: 0 0.5rem 0.75rem;
  color: #1b1b1b;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: calc(100% - 1rem);
  box-sizing: border-box;
}

.profile-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.profile-header {
  display: flex;
  position: relative;
  margin-bottom: 0.5rem;
  align-items: center;
}

.profile-initials {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 0.75rem;
}

.profile-new {
  position: absolute;
  top: 0;
  right: 0;
  background: #1e90ff;
  color: #fff;
  font-size: 0.65rem;
  padding: 0 var(--space-xs);
  border-radius: 4px;
}

.profile-info {
  flex: 1;
}

.profile-meta {
  margin-top: 0.25rem;
  color: #646464;
  font-size: 0.75rem;
}

.profile-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;          /* allow trend labels to stack on narrow screens */
}

.profile-top {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-left: -1rem;
  margin-right: -1rem;
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
}

/* Container for priorities, budget and region */
.profile-metrics {
  border-top: 1px solid #e0e0e0;
  margin-top: 1rem;        /* breathing room above divider */
  padding: var(--space-lg) 0;         /* space below the divider */
  display: flex;
  gap: var(--space-lg);
  flex-wrap: nowrap;       /* keep metrics on a single row */
  align-items: flex-start;
}

/* natural sizing for each metric */
.profile-metric {
  flex: 0 1 auto;          /* don't force equal widths */
  min-width: 0;            /* allow shrinking when space is tight */
}

.profile-metric-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-bottom {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: var(--space-lg);
  padding: 0 var(--space-sm);
}

.profile-bottom > .profile-container:last-child,
.profile-bottom > .profile-questions-container {
  grid-column: 1 / -1;
}

.profile-container {
  background: #EBEBEC;
  border: 1px solid #C4C4C4;
  border-radius: 12px;
  /* give sections more breathing room */
  padding: var(--space-lg) var(--space-md) var(--space-lg) 1.25rem;
  font-size: 0.8rem;
}

/* Events section should not appear in a grey box */
.profile-events-container {
  background: none;
  border: none;
}

.profile-tags span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: var(--space-xs) var(--space-md);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
}

.profile-section {
  margin-top: 0.5rem;
}

.profile-section-title {
  font-weight: 600;
  /* extra space below the section heading */
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

/* Title for grouped sections on profile cards */
.profile-group-title {
  grid-column: 1 / -1;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}

.company-card {
  background: #ffffff;
  border-radius: 12px;
  padding: var(--space-lg);
  margin: 0 0.5rem 0.75rem;
  color: #1b1b1b;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: calc(100% - 1rem);
  box-sizing: border-box;
}

.company-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.company-header {
  display: flex;
  position: relative;
  margin-bottom: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  margin-left: 0.75rem;
}

.company-info {
  flex: 1;
}

/* Title row: company name with LinkedIn icon next to it */
.company-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.company-title-row svg {
  width: 16px;
  height: 16px;
}

/* Small label shown above competitor tags */
.company-subtitle {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.78rem;
  color: #1b1b1b;
}

.company-meta {
  margin-top: 0.25rem;
  color: #646464;
  font-size: 0.75rem;
}

.company-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
}

.company-tags span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: var(--space-xs) var(--space-md);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
}

.company-links a {
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.company-links svg {
  width: 16px;
  height: 16px;
}

.company-top {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-left: -1rem;
  margin-right: -1rem;
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
}

.company-bottom {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: var(--space-lg);
  padding: 0 var(--space-sm);
}

.company-container {
  background: #EBEBEC;
  border: 1px solid #C4C4C4;
  border-radius: 12px;
  padding: var(--space-lg) var(--space-md) var(--space-lg) 1.25rem;
  font-size: 0.8rem;
}

.company-section-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.company-separator {
  grid-column: 1 / -1;
  border-top: 1px solid #C4C4C4;
  margin: 0.5rem 0;
}

/* Message pane */
#messages {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
  padding-bottom: calc(var(--space-lg) + var(--messages-bottom-padding));
  overflow-y: auto;
  background: #fff;
  /* Slightly narrower than the input field */
  width: calc(var(--chat-width) - 2rem);
  margin: 0 auto;

  /* Hide scrollbars */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
#messages::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Spacer to keep last message above input prompt */
#messages-divider {
  display: none;
}

/* Message styles */
.user,
.assistant,
.system,
.error {
  background: #f0f0f0;
  border-radius: 20px;
  padding: var(--space-md) var(--space-lg);
  display: inline-block;
  max-width: 80%;
  word-wrap: break-word;
  margin-bottom: 0.5rem;
  vertical-align: top;
  text-align: left;
  font-size: 0.85rem; /* match profile card text */
}
.user {
  background: #646464;
  color: #ffffff;
  align-self: flex-end;
}
.assistant,
.system,
.error {
  align-self: flex-start;
}

.assistant.action-row {
  background: transparent;
  padding: 0;
  margin-bottom: 0.75rem;
}

.feedback-emoji-row,
.feedback-row,
.ticket-pill-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#sales-ops-agent-toggle .domain-mode-button svg {
  width: 21px !important;
  height: 21px !important;
}

.feedback-emoji-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d0d0;
  background: #ffffff;
  color: #1b1b1b;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.feedback-emoji-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.feedback-emoji-button.is-faded {
  opacity: 0.25;
}

.feedback-emoji-button.is-selected {
  background: #f0f0f0;
  border-color: #f0f0f0;
}


.feedback-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #d0d0d0;
  background: #ffffff;
  color: #1b1b1b;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.feedback-button svg,
.ticket-pill svg {
  width: 16px;
  height: 16px;
}

.feedback-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.ticket-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.ticket-pill:hover {
  background: #ee4b2b;
  border-color: #ee4b2b;
}

.ticket-pill.is-loading {
  opacity: 0.7;
}

.ticket-pill.is-success {
  background: #32cd32;
  border-color: #32cd32;
}

.ticket-pill__spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: none;
  animation: ticket-spin 0.8s linear infinite;
}

.ticket-pill.is-loading .ticket-pill__spinner {
  display: inline-block;
}

@keyframes ticket-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ticket-note {
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  min-width: 220px;
}

.user a,
.assistant a,
.system a,
.error a {
  color: #0645ad;
  text-decoration: underline;
  font-family: inherit;
}
.assistant.typing {
  font-style: italic;
  opacity: 0.6;
  color: #333;
  transition: opacity 0.2s;
  position: relative;
}

/* Shimmer animation */
.thinking-text {
  display: inline-block;
  background: linear-gradient(90deg, #1b1b1b, #ffffff, #1b1b1b);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Input area */
#input-container {
  position: fixed;
  bottom: calc(var(--footer-height) + 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* match messages width immediately to avoid load-time jump */
  width: var(--chat-width);
  padding: 0;
  border-top: none;
  background: none;
  transition: left 0.3s ease, width 0.3s ease, transform 0.3s ease;
}
#prompt-input {
  width: 100%;
  max-width: none;
  border: 1px solid #ccc;
  border-radius: 20px 20px 0 0; /* top-rounded */
  padding: var(--space-md) var(--space-lg); /* uniform padding */
  font-size: 0.85rem; /* match profile card text */
  line-height: 1.5;
  font-family: inherit; /* change to desired font */
  color: #646464;
  box-sizing: border-box;
  margin-right: 0;
  background: #ffffff;
  border-bottom: none;
  resize: none;
  overflow-y: auto;
  scrollbar-width: none; /* hide scrollbar in Firefox */
}
#prompt-input::-webkit-scrollbar {
  display: none; /* hide scrollbar in WebKit browsers */
}
#prompt-input:focus {
  outline: none;
}
#input-bottom {
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--input-bottom-raise, 16px);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#send-button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #000000;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: bottom right;
  transform: translateY(var(--send-button-offset, -6px));
}

/* Utility icon: tintable IT icon with per-instance positioning controls */
.it-icon {
  --it-icon-size: var(--domain-mode-icon-svg-size, 17.5px);
  --it-icon-color: #000000;
  width: var(--it-icon-size);
  height: var(--it-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--it-icon-color);
  border: none;
  background: none;
  padding: 0;
}

.it-icon svg {
  width: var(--it-icon-size);
  height: var(--it-icon-size);
  display: block;
}

.it-icon--abs {
  position: absolute;
  left: var(--it-icon-left, 0);
  top: var(--it-icon-top, 0);
}

.it-icon--input {
  --it-icon-size: 20px;
  --it-icon-color: #b7b7b7;
  --it-icon-hover-color: #2670e8;
  --it-icon-hover-scale: 1.1;
  --it-icon-offset-x: 6px;
  margin-left: var(--it-icon-offset-x);
  transform-origin: center;
  transform: translateY(var(--send-button-offset, -6px));
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.it-icon--input.icon-interactive:hover {
  color: var(--it-icon-hover-color);
  transform: translateY(var(--send-button-offset, -6px))
    scale(var(--it-icon-hover-scale));
}

.it-agent-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 10px;
  background: transparent;
  margin-left: var(--it-icon-offset-x, 6px);
  transform: translate(var(--agent-mode-shift, 0), var(--send-button-offset, -6px));
  transition: background-color 0.2s ease;
}

.it-agent-mode-toggle .it-icon--input {
  margin-left: 0;
  transform: none;
}

.it-agent-mode-toggle .it-icon--input.icon-interactive:hover {
  transform: scale(var(--it-icon-hover-scale));
}

.it-agent-mode-toggle.active {
  background: #ccdfff;
  --agent-mode-shift: -2px;
}

.it-agent-mode-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #2670e8;
  display: none;
  line-height: 1;
}

.it-agent-mode-toggle.active .it-agent-mode-label {
  display: inline-flex;
}

.it-agent-mode-toggle.active .it-icon--input {
  --it-icon-color: #2670e8;
  --it-icon-hover-color: #2670e8;
}

.it-agent-mode-toggle.fade-out,
.it-agent-mode-toggle.fade-out .it-icon--input,
.it-icon--input.fade-out {
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.it-icon--input.spin-open svg {
  animation: it-spin-open 0.22s linear;
}

.it-icon--input.spin-close svg {
  animation: it-spin-close 0.22s linear;
}

@keyframes it-spin-open {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes it-spin-close {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.it-agent-mode-exit {
  border: none;
  background: none;
  padding: 0;
  width: 20px;
  height: 20px;
  color: #2670e8;
  display: none;
  align-items: center;
  justify-content: center;
}

.it-agent-mode-exit svg {
  width: 18px;
  height: 18px;
  display: block;
}

.it-agent-mode-toggle.active .it-agent-mode-exit {
  display: inline-flex;
}

.domain-mode-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0px;
}

.domain-mode-cluster .it-agent-mode-toggle {
  margin-left: 0;
}

.domain-mode-cluster.feature-sparkle-a.feature-sparkle-a-play > .it-agent-mode-toggle .it-icon--input,
.domain-mode-cluster.feature-sparkle-a.feature-sparkle-a-play > .domain-agent-toggle .it-icon--input {
  animation: feature-icon-green-pop 2.4s ease-in-out 1;
}

.domain-mode-cluster.feature-sparkle-a > .it-agent-mode-toggle .it-icon--input svg,
.domain-mode-cluster.feature-sparkle-a > .domain-agent-toggle .it-icon--input svg {
  opacity: 1;
}

.domain-mode-cluster.feature-sparkle-a #it-agent-mode-button { animation-delay: 0s; }
.domain-mode-cluster.feature-sparkle-a #hr-agent-mode-button { animation-delay: 0.6s; }
.domain-mode-cluster.feature-sparkle-a #finance-agent-mode-button { animation-delay: 1.2s; }
.domain-mode-cluster.feature-sparkle-a #sales-ops-agent-mode-button { animation-delay: 1.8s; }

@keyframes feature-icon-green-pop {
  0%, 100% {
    color: #b7b7b7;
    transform: scale(1);
    filter: none;
  }
  10% {
    color: #2670e8;
    transform: scale(1.18);
    filter: none;
  }
  22% {
    color: #b7b7b7;
    transform: scale(1);
    filter: none;
  }
}

.domain-mode-cluster.feature-sparkle-b.feature-sparkle-b-play > .it-agent-mode-toggle .it-icon--input,
.domain-mode-cluster.feature-sparkle-b.feature-sparkle-b-play > .domain-agent-toggle .it-icon--input {
  animation: feature-icon-color-swipe 2.4s linear 1;
}

.domain-mode-cluster.feature-sparkle-b #it-agent-mode-button { animation-delay: 0s; }
.domain-mode-cluster.feature-sparkle-b #hr-agent-mode-button { animation-delay: 0.24s; }
.domain-mode-cluster.feature-sparkle-b #finance-agent-mode-button { animation-delay: 0.48s; }
.domain-mode-cluster.feature-sparkle-b #sales-ops-agent-mode-button { animation-delay: 0.72s; }

@keyframes feature-icon-color-swipe {
  0%, 100% {
    color: #b7b7b7;
    filter: none;
  }
  14% {
    color: #ff7a18;
    filter: none;
  }
  24% {
    color: #ff9f1c;
    filter: none;
  }
  34% {
    color: #ffb703;
    filter: none;
  }
  44% {
    color: #ff6b35;
    filter: none;
  }
  56% {
    color: #ff4d6d;
    filter: none;
  }
  68% {
    color: #b7b7b7;
    filter: none;
  }
}

.domain-agent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--domain-toggle-padding-y, 4px)
    var(--domain-toggle-padding-x, 6px);
  border-radius: var(--domain-toggle-radius, 10px);
  height: var(--domain-toggle-height, auto);
  background: transparent;
  transform: translateY(var(--send-button-offset, -6px));
  transition: background-color 0.2s ease;
}

.domain-agent-toggle .it-icon--input {
  margin-left: 0;
  transform: none;
}

.domain-agent-toggle.active {
  background: #ccdfff;
  min-width: var(--domain-toggle-active-min-width, 64px);
  width: var(--domain-toggle-active-width, auto);
  height: var(--domain-toggle-active-height, 28px);
  padding: 0 var(--domain-toggle-padding-x, 6px);
  box-sizing: border-box;
}

#hr-agent-toggle.active {
  position: relative;
  background: transparent;
}

#hr-agent-toggle.active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--hr-pill-right-inset, 0px);
  left: var(--hr-pill-left-inset, 0px);
  background: #ccdfff;
  border-radius: var(--domain-toggle-radius, 10px);
  z-index: 0;
}

#hr-agent-toggle.active > * {
  position: relative;
  z-index: 1;
}

#finance-agent-toggle.active {
  position: relative;
  background: transparent;
}

#finance-agent-toggle.active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--finance-pill-right-inset, 0px);
  left: var(--finance-pill-left-inset, 0px);
  background: #ccdfff;
  border-radius: var(--domain-toggle-radius, 10px);
  z-index: 0;
}

#finance-agent-toggle.active > * {
  position: relative;
  z-index: 1;
}

#sales-ops-agent-toggle.active {
  position: relative;
  background: transparent;
}

#sales-ops-agent-toggle.active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--sales-ops-pill-right-inset, 0px);
  left: var(--sales-ops-pill-left-inset, 0px);
  background: #ccdfff;
  border-radius: var(--domain-toggle-radius, 10px);
  z-index: 0;
}

#sales-ops-agent-toggle.active > * {
  position: relative;
  z-index: 1;
}

.domain-agent-mode-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #2670e8;
  display: none;
  line-height: 1;
}

.domain-agent-toggle.active .domain-agent-mode-label {
  display: inline-flex;
}

.domain-agent-mode-exit {
  border: none;
  background: none;
  padding: 0;
  width: 20px;
  height: 20px;
  color: #2670e8;
  display: none;
  align-items: center;
  justify-content: center;
}

.domain-agent-mode-exit svg {
  width: 18px;
  height: 18px;
  display: block;
}

.domain-agent-toggle.active .domain-agent-mode-exit {
  display: inline-flex;
}

.domain-agent-toggle.active .domain-agent-mode-exit,
.domain-agent-toggle.active .domain-agent-mode-exit svg {
  color: #2670e8;
  fill: currentColor;
}

.domain-agent-toggle.active .domain-agent-mode-exit:hover,
.domain-agent-toggle.active .domain-agent-mode-exit:hover svg {
  color: #0017bb;
  fill: currentColor;
}

.it-agent-mode-toggle.active .it-agent-mode-exit:hover,
.it-agent-mode-toggle.active .it-agent-mode-exit:hover svg {
  color: #0017bb;
  fill: currentColor;
}

.domain-agent-toggle .domain-mode-button {
  transform: none;
}

.domain-agent-toggle.active .domain-mode-button {
  color: #2670e8;
  --it-icon-color: #2670e8;
  --it-icon-hover-color: #2670e8;
}

.domain-mode-button {
  border: none;
  background: none;
  padding: 0;
  border-radius: 10px;
  color: var(--it-icon-color, #b7b7b7);
  width: var(--domain-mode-icon-size, 30px);
  height: var(--domain-mode-icon-size, 30px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.domain-mode-button--hr {
  margin-left: 0;
}

.domain-mode-button--finance svg {
  width: var(--domain-mode-icon-svg-size, 17.5px);
  height: var(--domain-mode-icon-svg-size, 17.5px);
}

.domain-mode-button--hr svg {
  width: var(--hr-icon-size, 17.5px) !important;
  height: var(--hr-icon-size, 17.5px) !important;
  transform: translateX(1px);
}

.domain-mode-button--finance {
  margin-left: 0;
}

.domain-mode-button.icon-interactive:hover {
  color: var(--it-icon-hover-color, #2670e8);
  transform: scale(var(--it-icon-hover-scale, 1.1));
  transform-origin: center;
}


/* Initial input position */
#input-container.initial {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: auto;
  transform: translate(-50%, -50%);
  border-top: none;
  flex-direction: column;
}
#input-container.initial #prompt-input {
  margin-right: 0;
}
#input-container.initial #input-title {
  display: block;
  color: #000;
  margin: 2rem 0 1.5rem;
  text-align: center;
  font-size: var(--greeting-title-size);
}
#input-title {
  display: none;
}
#input-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

#dashboard.profiles-open #input-row,
#dashboard.profiles-open #input-bottom {
  padding-left: 1rem;
  padding-right: 1rem;
}

#dashboard.companies-open #input-row,
#dashboard.companies-open #input-bottom {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ------------------------------------
   When profiles panel is open,
   shrink & center input-bottom
   to match input-row’s inset.
   ------------------------------------ */
   #dashboard.profiles-open #input-bottom {
    /* subtract 1rem left + 1rem right = 2rem total */
   width: calc(100% - 2rem);
    /* center it within the container */
    margin: 0 auto;
  }

#dashboard.companies-open #input-bottom {
  width: calc(100% - 2rem);
  margin: 0 auto;
}

/* Header container */
#header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: 5rem;
  padding: 0 var(--space-lg);
  background: rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.icon-interactive {
  cursor: pointer; /* Shows pointer on hover */
}

/* Tooltip styling */

/* Tooltip container for JS-driven tips */
.tooltip-floating {
  position: absolute;
  background: #333;
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  max-width: calc(100vw - 1rem);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

/* Icon base class for elegant UX */
.icon-interactive svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.icon-interactive svg:hover {
  opacity: 1;
  transform: scale(1.05);
}

.it-icon svg,
.it-agent-mode-exit svg {
  fill: currentColor;
}

/* Reuse icon-interactive behavior for the send button */
#send-button.icon-interactive {
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style for the send button's icon */
#send-button.icon-interactive svg {
  width: 32px;
  height: 32px;
  fill: #000000;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#send-button.icon-interactive svg:hover {
  opacity: 1;
  transform: scale(1.1);
}

#send-button:disabled {
  cursor: not-allowed;
}

#send-button:disabled svg {
  opacity: 0.4;
  transform: none;
}

/* Menu icon on the left */
#menu-icon {
  position: absolute;
  left: 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
}
#menu-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

#menu-icon.new::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #1e90ff;
  border-radius: 50%;
}

/* Sidebar container */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
}

#sidebar.open {
  width: var(--sidebar-width);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
}

/* Main view shifts right when sidebar is visible */
#chat-container.sidebar-push {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}

#dashboard.sidebar-push #chat-container.sidebar-push {
  margin-left: 0;
  width: 100%;
}

#chat-container.sidebar-push #messages,
#chat-container.sidebar-push #messages-divider,
#chat-container.sidebar-push #input-row,
#chat-container.sidebar-push #input-bottom {
  margin-left: auto;
  margin-right: auto;
}

#chat-container.sidebar-push #input-container,
#dashboard.sidebar-push #chat-container.sidebar-push #input-container,
#dashboard.sidebar-push.profiles-open #input-container {
  width: 100%;
}

#dashboard.profiles-open #input-container,
#dashboard.sidebar-push.profiles-open #input-container {
  width: var(--chat-width);
}

#dashboard.sidebar-push.profiles-open #profiles-panel {
  flex-basis: 60%;
}

#dashboard.sidebar-push.companies-open #input-container {
  width: 100%;
}

#dashboard.companies-open #input-container,
#dashboard.sidebar-push.companies-open #input-container {
  width: var(--chat-width);
}

#dashboard.sidebar-push.companies-open #companies-panel {
  flex-basis: 60%;
}

#close-sidebar {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

#sidebar-title {
  color: #646464;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: 600;
  margin-top: 2.5rem;
  padding: var(--space-sm);
  border-bottom: 1px solid #eee;
}

#thread-list {
  margin-top: 0;
  padding: 0 var(--space-sm);
  overflow-y: auto;
  flex: 1 1 auto;
}

#delete-all {
  width: 100%;
  background: none;
  border: none;
  color: #d9534f;
  padding: var(--space-sm) 0;
  cursor: pointer;
  font-size: 0.85rem;
  border-top: 1px solid #eee;
}

.thread-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-xs);
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid #eee;
}

.thread-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.thread-item button {
  background: none;
  border: none;
  cursor: pointer;
}

.thread-item button.icon-interactive svg {
  fill: #000000;
}

#close-sidebar svg {
  stroke: #000000;
  fill: none;
  transform: rotate(180deg);
}

#close-sidebar svg:hover {
  transform: rotate(180deg) scale(1.05);
}

#collapse-profiles svg {
  stroke: #555555;
  fill: none;
}

#collapse-profiles svg:hover {
  transform: scale(1.05);
}

#collapse-profiles {
  margin-right: var(--collapse-button-margin-right); /* adjust spacing on right of icon */
  color: #555555; /* ensure icon inherits lighter gray stroke */
}

/* Apply elegant behavior */
#menu-icon.icon-interactive svg {
  fill: none; /* keeps outline style */
  stroke: #ffffff;
}

/* Centered logo */
#header-container #logo {
  height: 80%;
  width: auto;
}

#new-chat {
  position: absolute;
  left: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #ffffff;
}
#new-chat svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#new-chat svg:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Logout icon on the right */
#logout-icon {
  position: absolute;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #ffffff;
}
#logout-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#logout-icon svg:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Fixed footer label */
#page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  font-size: 0.75rem;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 1000;
}

body.sidebar-push #page-footer {
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}
/* Login page styles */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-page .login-logo {
  display: block;
  margin: 1rem auto;
  height: 4rem;
}

.page-logo {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.login-page #messages {
  display: none;
}

#login-section {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#login-container {
  width: 20vw;
  max-width: 300px;
  padding: var(--space-2xl);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin: 0;
  position: relative;
}

#login-container.loading {
  width: auto;
  max-width: none;
  justify-content: center;
}

#login-button {
  padding: var(--space-sm) var(--space-2xl);
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  cursor: pointer;
}

#loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
}

.loading-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.welcome-title {
  color: #ffffff;
  margin: 0;
  font-size: 1.5rem;
}

.welcome-subtitle {
  color: #ffffff;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

/* Login page title */
.login-title {
  color: var(--login-title-color);
  font-size: var(--login-title-font-size);
  font-family: var(--login-title-font-family);
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  #sidebar.open {
    width: var(--sidebar-width);
  }
  #chat-container.sidebar-push {
    margin-left: 0;
    width: 100%;
  }
  #login-container {
    width: 80vw;
    max-width: 300px;
  }
}

.hidden {
  display: none !important;
}

#confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#confirm-modal .modal-content {
  background: #ffffff;
  padding: var(--space-lg);
  border-radius: 8px;
  max-width: 90%;
  text-align: center;
}

#confirm-modal .modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

#confirm-modal button {
  border: none;
  cursor: pointer;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 4px;
}

#confirm-cancel {
  background: #cccccc;
}

.feature-announcement {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--footer-height) + 1rem);
  z-index: 2200;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: left 0.28s ease, top 0.28s ease, right 0.28s ease, bottom 0.28s ease, transform 0.28s ease;
}

.feature-announcement.is-focused {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate3d(-50%, -50%, 0);
}

.feature-announcement.is-dismissing {
  pointer-events: none;
  animation: feature-announcement-swipe-out 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-announcement.is-focused.is-dismissing {
  animation-name: feature-announcement-swipe-out-focused;
}

@keyframes feature-announcement-swipe-out {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  to {
    transform: translate3d(120px, 0, 0);
    opacity: 0;
  }
}

@keyframes feature-announcement-swipe-out-focused {
  from {
    transform: translate3d(-50%, -50%, 0);
    opacity: 1;
  }
  to {
    transform: translate3d(calc(-50% + 120px), -50%, 0);
    opacity: 0;
  }
}

.feature-announcement-card {
  position: relative;
  width: min(28rem, calc(100vw - 1.5rem));
  padding: 0.9rem 0.9rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #f7f8fa;
  background: rgba(15, 22, 37, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 55px rgba(3, 10, 24, 0.5);
  transition: width 0.28s ease, transform 0.2s ease, box-shadow 0.22s ease;
  cursor: zoom-in;
  transform-origin: bottom right;
}

.feature-announcement:not(.is-focused) .feature-announcement-card:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 64px rgba(3, 10, 24, 0.56);
}

.feature-announcement.is-focused .feature-announcement-card {
  width: min(56rem, calc(80vw - 0.25rem));
  cursor: default;
}

.feature-announcement-card button,
.feature-announcement-card a,
.feature-announcement-card video {
  cursor: pointer;
}

.feature-announcement.is-focused .feature-announcement-card:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 64px rgba(3, 10, 24, 0.56);
}

.feature-announcement-close {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.feature-announcement-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9fd0ff;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

#feature-announcement-title {
  margin: 0 1.6rem 0.25rem 0;
  font-size: 0.98rem;
  line-height: 1.2;
}

.feature-announcement-copy {
  margin: 0 0 0.45rem 0;
  color: rgba(241, 244, 250, 0.82);
  font-size: 0.83rem;
}

#feature-announcement-video {
  width: 100%;
  max-height: min(42vh, 23rem);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
}

.feature-announcement.is-focused #feature-announcement-video {
  max-height: min(84vh, 50rem);
}

#feature-announcement-video::cue {
  font-size: 0.8em;
}

@media (max-width: 700px) {
  .feature-announcement {
    right: 0.65rem;
    left: 0.65rem;
    bottom: calc(var(--footer-height) + 0.7rem);
  }
  .feature-announcement.is-focused {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
  }
  .feature-announcement-card {
    width: 100%;
    transform-origin: center bottom;
  }
  .feature-announcement.is-focused .feature-announcement-card {
    width: min(100vw - 0.1rem, 50rem);
  }
}

#confirm-ok {
  background: #d9534f;
  color: #ffffff;
}

#toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

#toast.show {
  opacity: 1;
}


#toast-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  --spot-x: 0px;
  --spot-y: 0px;
  --spot-radius: 0px;
  background: radial-gradient(
    circle var(--spot-radius) at var(--spot-x) var(--spot-y),
    transparent 0,
    transparent var(--spot-radius),
    rgba(0, 0, 0, 0.5) var(--spot-radius)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1400;
}

#toast-overlay.show {
  opacity: 1;
}
