@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.chat-bubble {
  position: relative;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  opacity: 0;
  margin-bottom: 8px;
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chat-bubble.user {
  background-color: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 0;
  margin-left: auto;
}

.chat-bubble.bot {
  background-color: #ffffff;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.chat-bubble.pdf-bubble {
  background-color: #ffffff;
  padding: 4px;
  width: 260px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 12px;
  border-top-left-radius: 0;
  width: fit-content;
  margin-bottom: 8px;
  opacity: 0;
  animation: pop-in 0.3s forwards;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #b4b4b4;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-nav-menu] {
  width: max-content;
  min-width: max-content;
  white-space: nowrap;
}

[data-lang-switcher]:focus-within [data-lang-menu] {
  opacity: 1;
  pointer-events: auto;
  --tw-translate-y: 0;
}

.hero-bg {
  background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
}

.hero-title {
  line-height: 1.3;
  overflow: visible;
}

.hero-title span {
  padding-bottom: 0.08em;
}

.cta-primary {
  background-color: #0b5c2a !important;
  color: #ffffff !important;
}

.cta-primary:hover {
  background-color: #094522 !important;
}

.cta-secondary {
  color: #1f2937 !important;
  border-color: #cbd5e1 !important;
}

.cta-secondary:hover {
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  background-color: #f8fafc !important;
}

.field-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.field-error:focus {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35);
  outline: none;
}

@media (max-width: 639px) {
  .tool-item-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tool-item-field {
    width: 100%;
    min-width: 0;
  }

  .tool-item-field--desc {
    grid-column: 1 / -1;
  }

  .tool-item-action {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: 0;
  }
}

.cmp-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  font-family: "Inter", sans-serif;
}

.cmp-root [hidden] {
  display: none !important;
}

.cmp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.cmp-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  padding: 20px 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  pointer-events: auto;
}

.cmp-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  pointer-events: auto;
}

.cmp-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.cmp-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.cmp-text a {
  color: #0f7a38;
  font-weight: 600;
}

.cmp-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.cmp-actions-main {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cmp-button {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cmp-button:focus-visible {
  outline: 2px solid #0f7a38;
  outline-offset: 2px;
}

.cmp-button-primary {
  background: #0f7a38;
  color: #ffffff;
}

.cmp-button-primary:hover {
  background: #0b5c2a;
}

.cmp-button-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.cmp-button-secondary:hover {
  background: #e2e8f0;
}

.cmp-button-outline {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.cmp-button-outline:hover {
  background: #f8fafc;
}

.cmp-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cmp-option {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 14px;
  color: #0f172a;
}

.cmp-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
  margin-top: 2px;
}

.cmp-option span small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}

.cmp-option-disabled {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .cmp-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@keyframes mock-fade {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mock-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.mock-ui-animate {
  animation: mock-fade 0.45s ease;
}

.mock-ui-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.mock-ui-main {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.mock-ui-main.mock-ui-dim {
  filter: blur(2px);
  transform: scale(0.98);
}

[data-mock-ui-interactive="false"] button,
[data-mock-ui-interactive="false"] input,
[data-mock-ui-interactive="false"] select,
[data-mock-ui-interactive="false"] textarea,
[data-mock-ui-interactive="false"] a {
  pointer-events: none;
}

.mock-ui-summary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-ui-summary-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mock-ui-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.mock-ui-summary-subtitle {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.mock-ui-summary-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  background: #e2e8f0;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.mock-ui-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
}

.mock-ui-sparkline-bar {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e 0%, #0f7a38 100%);
  opacity: 0.65;
}

.mock-ui-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mock-ui-tag {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.mock-ui-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mock-ui-kpi {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.mock-ui-kpi-label {
  font-size: 10px;
  color: #94a3b8;
}

.mock-ui-kpi-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.mock-ui-kpi-note {
  font-size: 10px;
  color: #16a34a;
  margin-top: 3px;
}

.mock-ui-kpi-note.muted {
  color: #64748b;
}

.mock-ui-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-ui-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.mock-ui-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mock-ui-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.mock-ui-section-action {
  font-size: 10px;
  font-weight: 600;
  color: #22c55e;
}

.mock-ui-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mock-ui-item-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mock-ui-item-icon {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: #e2e8f0;
}

.mock-ui-item-icon.success {
  background: #22c55e;
}

.mock-ui-item-icon.warning {
  background: #f59e0b;
}

.mock-ui-item-icon.danger {
  background: #ef4444;
}

.mock-ui-item-icon.info {
  background: #3b82f6;
}

.mock-ui-item-title {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
}

.mock-ui-item-meta {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.mock-ui-item-right {
  text-align: right;
}

.mock-ui-item-value {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.mock-ui-status {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 999px;
  margin-top: 4px;
  font-weight: 700;
}

.mock-ui-status.success {
  background: #dcfce7;
  color: #166534;
}

.mock-ui-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.mock-ui-status.danger {
  background: #fee2e2;
  color: #991b1b;
}

.mock-ui-status.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.mock-ui-status.neutral {
  background: #e2e8f0;
  color: #475569;
}

.mock-ui-footnote {
  font-size: 10px;
  color: #94a3b8;
}

.mock-ui-top {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mock-ui-top-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #94a3b8;
  font-weight: 700;
}

.mock-ui-top-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.mock-ui-top-sector {
  font-size: 12px;
  color: #0f172a;
  font-weight: 600;
}

.mock-ui-top-tagline {
  font-size: 11px;
  color: #64748b;
}

.mock-ui-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-ui-top-chip {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.mock-ui-top-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.3);
}

.mock-ui-nav {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 8px 10px;
}

.mock-ui-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  transition: color 0.2s ease;
  cursor: pointer;
}

.mock-ui-tab.active {
  color: #4f46e5;
}

.mock-ui-tab span {
  font-size: 9px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mock-ui-fab-button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 24px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s ease;
}

.mock-ui-fab-button:active {
  transform: scale(0.9);
}

.mock-ui-chat-overlay {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 90;
}

.mock-ui-chat-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mock-ui-hidden {
  display: none !important;
}

.mock-ui-chat-overlay .chat-bubble {
  font-size: 11px;
  padding: 8px 10px;
}

.mock-ui-add-button {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 24px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s ease;
}

.mock-ui-add-button:active {
  transform: scale(0.9);
}

.mock-ui-add-overlay {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 70;
}

.mock-ui-add-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mock-ui-add-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(1px);
}

.mock-ui-add-sheet {
  position: relative;
  background: #ffffff;
  border-radius: 2rem 2rem 0 0;
  padding: 24px 20px 32px;
  box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.18);
  border-top: 1px solid #f1f5f9;
  transform: translateY(18px);
  transition: transform 0.2s ease;
}

.mock-ui-add-overlay.is-open .mock-ui-add-sheet {
  transform: translateY(0);
}

.mock-ui-add-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  margin: 0 auto 10px;
}

.mock-ui-add-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 10px;
}

.mock-ui-add-item {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mock-ui-add-item:active {
  transform: scale(0.98);
  background: #f8fafc;
}

.mock-ui-add-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mock-ui-add-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  display: block;
}

.mock-ui-add-meta {
  font-size: 10px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.mock-ui-add-cancel {
  width: 100%;
  border: none;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.mock-ui-selector {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mock-ui-selector.active {
  border-color: #22c55e;
  color: #166534;
  background: #f0fdf4;
  font-weight: 600;
}

.mock-ui-chatbot {
  position: absolute;
  right: 16px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 20;
}

.mock-ui-chatbot-button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 24px rgba(34, 197, 94, 0.35);
  animation: mock-float 3.6s ease-in-out infinite;
  cursor: pointer;
}

.mock-ui-chatbot-hint {
  font-size: 10px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

@keyframes mock-focus {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.mock-ui-focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35), 0 10px 24px rgba(34, 197, 94, 0.2);
  animation: mock-focus 1.6s ease;
}

.mock-ui-beat {
  opacity: 0.75;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mock-ui-beat-dot {
  background: #e2e8f0;
  box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.4);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mock-ui-beat-title {
  transition: color 0.2s ease;
}

.mock-ui-beat.is-active {
  opacity: 1;
  transform: translateX(2px);
}

.mock-ui-beat.is-active .mock-ui-beat-dot {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.mock-ui-beat.is-active .mock-ui-beat-title {
  color: #0f172a;
}

.mock-ui-story {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 88px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  z-index: 30;
}

.mock-ui-story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.mock-ui-story-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
  font-weight: 700;
}

.mock-ui-story-step {
  font-size: 9px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 999px;
}

.mock-ui-story-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.mock-ui-story-text {
  font-size: 10px;
  color: #475569;
  margin-top: 2px;
  line-height: 1.4;
}
