:root {
  --dlyog-assist-navy: #14314f;
  --dlyog-assist-navy-deep: #0b2138;
  --dlyog-assist-teal: #2a8b8b;
  --dlyog-assist-ice: #eef7f7;
  --dlyog-assist-text: #15304a;
  --dlyog-assist-muted: #607286;
  --dlyog-assist-border: rgba(20, 49, 79, 0.12);
  --dlyog-assist-shadow: 0 28px 60px rgba(8, 25, 43, 0.24);
}

.dlyog-assist {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.dlyog-assist__teaser {
  position: absolute;
  right: 12px;
  bottom: 84px;
  max-width: 290px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dlyog-assist-text);
  box-shadow: 0 20px 40px rgba(11, 33, 56, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  transform-origin: bottom right;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.dlyog-assist__teaser[hidden] {
  display: block;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
}

.dlyog-assist__teaser-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dlyog-assist-teal);
  margin-bottom: 6px;
}

.dlyog-assist__teaser p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
}

.dlyog-assist__toggle {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 35%),
    linear-gradient(145deg, #2a8b8b, #14314f 72%);
  box-shadow: 0 18px 38px rgba(9, 27, 46, 0.34);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dlyog-assist__toggle:hover,
.dlyog-assist__toggle:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(9, 27, 46, 0.4);
  outline: none;
}

.dlyog-assist__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.4rem;
}

.dlyog-assist__panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(390px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 112px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(247, 250, 252, 0.94);
  box-shadow: var(--dlyog-assist-shadow);
  backdrop-filter: blur(22px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.dlyog-assist__panel[hidden] {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
}

.dlyog-assist__header {
  padding: 18px 20px 16px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--dlyog-assist-navy), var(--dlyog-assist-teal));
}

.dlyog-assist__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dlyog-assist__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.dlyog-assist__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dlyog-assist__subtitle {
  margin: 4px 0 0;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.82);
}

.dlyog-assist__close {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
}

.dlyog-assist__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.dlyog-assist__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  background:
    radial-gradient(circle at top, rgba(42, 139, 139, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(242, 246, 249, 0.98));
}

.dlyog-assist__bubble {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 0.94rem;
  box-shadow: 0 10px 22px rgba(16, 37, 60, 0.08);
}

.dlyog-assist__bubble--bot {
  color: var(--dlyog-assist-text);
  background: #fff;
  border-top-left-radius: 8px;
}

.dlyog-assist__bubble--user {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, var(--dlyog-assist-teal), var(--dlyog-assist-navy));
  border-top-right-radius: 8px;
}

.dlyog-assist__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.dlyog-assist__chip {
  border: 1px solid rgba(20, 49, 79, 0.1);
  background: #fff;
  color: var(--dlyog-assist-text);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dlyog-assist__chip:hover,
.dlyog-assist__chip:focus-visible {
  transform: translateY(-1px);
  background: var(--dlyog-assist-ice);
  border-color: rgba(42, 139, 139, 0.28);
  outline: none;
}

.dlyog-assist__footer {
  padding: 14px 14px 16px;
  border-top: 1px solid var(--dlyog-assist-border);
  background: rgba(255, 255, 255, 0.86);
}

.dlyog-assist__quick-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.dlyog-assist__quick-actions .dlyog-assist__chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 12px;
}

.dlyog-assist__composer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dlyog-assist__input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(20, 49, 79, 0.12);
  border-radius: 16px;
  padding: 13px 14px;
  font-size: 0.94rem;
  color: var(--dlyog-assist-text);
  background: #fff;
}

.dlyog-assist__input:focus {
  outline: none;
  border-color: rgba(42, 139, 139, 0.52);
  box-shadow: 0 0 0 4px rgba(42, 139, 139, 0.12);
}

.dlyog-assist__send {
  border: 0;
  min-width: 54px;
  height: 50px;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--dlyog-assist-navy), var(--dlyog-assist-teal));
  box-shadow: 0 12px 24px rgba(20, 49, 79, 0.24);
}

.dlyog-assist__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--dlyog-assist-teal), var(--dlyog-assist-navy));
}

@media (max-width: 640px) {
  .dlyog-assist {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }

  .dlyog-assist__panel {
    width: 100%;
    height: min(76vh, 620px);
  }

  .dlyog-assist__teaser {
    right: 0;
    max-width: calc(100vw - 44px);
  }

  .dlyog-assist__toggle {
    margin-left: auto;
    display: block;
  }
}
