.gp-gastroai-root {
  position: fixed;
  z-index: 99995;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gp-gastroai-root.gp-gastroai-integrated .gp-gastroai-launcher {
  display: none !important;
}

.gp-gastroai-root.gp-gastroai-integrated .gp-gastroai-dock {
  gap: 0;
}

.gp-gastroai-root.gp-gastroai-has-side-toggle .gp-gastroai-dock {
  display: none !important;
}

.gp-gastroai-root.has-inline-alert {
  top: 78px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
}

.gp-gastroai-root.has-inline-alert .gp-gastroai-alert-panel {
  top: 56px;
  bottom: auto;
  right: 0;
  left: auto;
}

.gp-gastroai-alert-inline {
  border: 1px solid #d8e0ea;
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #ffffff;
  color: #1e2a38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  box-shadow: 0 8px 24px rgba(8, 20, 36, 0.14);
}

.gp-gastroai-alert-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(8, 20, 36, 0.18);
}

.gp-gastroai-alert-inline .gp-gastroai-alert-icon {
  font-size: 21px;
  color: #263446;
}

.gp-gastroai-alert-inline .gp-gastroai-alert-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #2fb86f;
}

.gp-fm-item--ai {
  border-color: #c8d8ef;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
}

.gp-fm-item--ai .gp-fm-label {
  font-weight: 800;
}

.gp-fm-tab .gp-fm-tab-ai {
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #f8be2e;
}

.gp-gastroai-side-toggle {
  position: fixed;
  z-index: 100001;
  top: 20px;
  left: 12px;
  width: 58px;
  height: 58px;
  border: 1px solid #f1c443;
  border-radius: 14px;
  background: linear-gradient(180deg, #183149 0%, #0e1f33 100%);
  box-shadow: 0 10px 24px rgba(5, 18, 34, 0.38);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.16s ease;
}

.gp-gastroai-side-toggle.is-ready {
  opacity: 1;
  visibility: visible;
}

.gp-gastroai-side-toggle--quick {
  width: 64px;
  height: 64px;
  border-width: 2px;
  border-radius: 16px;
}

.gp-gastroai-side-toggle:hover {
  transform: translateY(-1px);
}

.gp-gastroai-side-toggle.is-open {
  box-shadow: 0 0 0 2px rgba(85, 208, 146, 0.6), 0 12px 28px rgba(5, 18, 34, 0.44);
}

.gp-gastroai-side-toggle-avatar {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  background: #13273a;
}

.gp-gastroai-side-toggle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gp-gastroai-side-toggle-indicator {
  position: absolute;
  right: -6px;
  top: -8px;
  min-width: 28px;
  height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8be2e;
  color: #1d2733;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.gp-gastroai-side-toggle.is-disabled {
  opacity: 0.92;
}

@media (max-width: 782px) {
  .gp-gastroai-side-toggle {
    width: 52px;
    height: 52px;
  }

  .gp-gastroai-alert-inline {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    margin-left: 6px;
  }

  .gp-gastroai-alert-inline .gp-gastroai-alert-icon {
    font-size: 19px;
  }

  .gp-gastroai-root.has-inline-alert {
    top: 58px !important;
    right: 10px !important;
  }
}

.gp-gastroai-dock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gp-gastroai-dismiss {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
}

.gp-gastroai-dismiss:hover,
.gp-gastroai-dismiss:focus-visible {
  transform: translateY(-1px);
}

.gp-gastroai-launcher,
.gp-gastroai-alert {
  border: 0;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.gp-gastroai-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  background: linear-gradient(135deg, #d84a56, #f08b4e);
}

.gp-gastroai-launcher:hover,
.gp-gastroai-alert:hover {
  transform: translateY(-1px);
}

.gp-gastroai-restore {
  position: fixed;
  z-index: 99996;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(216, 74, 86, 0.26);
  border-radius: 999px;
  background: rgba(18, 29, 42, 0.96);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.gp-gastroai-pos-left + .gp-gastroai-restore {
  left: 22px;
  bottom: 96px;
}

.gp-gastroai-pos-right + .gp-gastroai-restore {
  right: 22px;
  bottom: 96px;
}

.gp-gastroai-restore:hover,
.gp-gastroai-restore:focus-visible {
  transform: translateY(-1px);
}

.gp-gastroai-launcher-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}

.gp-gastroai-launcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gp-gastroai-launcher-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.gp-gastroai-alert {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #123a66, #0d253f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gp-gastroai-alert-icon {
  font-size: 19px;
  line-height: 1;
}

.gp-gastroai-alert-count {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  padding: 0 4px;
}

.gp-gastroai-alert-panel,
.gp-gastroai-panel {
  position: absolute;
  bottom: 56px;
  width: min(94vw, 468px);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(9, 15, 24, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}

.gp-gastroai-panel {
  height: min(78vh, 620px);
}

.gp-gastroai-alert-panel {
  height: min(52vh, 400px);
}

.gp-gastroai-pos-left .gp-gastroai-panel,
.gp-gastroai-pos-left .gp-gastroai-alert-panel {
  left: 0;
}

.gp-gastroai-pos-right .gp-gastroai-panel,
.gp-gastroai-pos-right .gp-gastroai-alert-panel {
  right: 0;
}

.gp-gastroai-alert-panel {
  margin-bottom: 10px;
}

.gp-gastroai-root.is-fullscreen .gp-gastroai-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}

@media (max-width: 782px) {
  .gp-gastroai-root.is-fullscreen .gp-gastroai-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}

.gp-gastroai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(8, 12, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gp-gastroai-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gp-gastroai-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(238, 116, 125, 0.18) 0%, rgba(247, 186, 72, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.gp-gastroai-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gp-gastroai-header-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gp-gastroai-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.gp-gastroai-header-copy p {
  margin: 1px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.2;
}

.gp-gastroai-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gp-gastroai-controls button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.gp-gastroai-toggle {
  width: 40px !important;
  font-weight: 700;
}

.gp-gastroai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gp-gastroai-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.gp-gastroai-msg-user {
  justify-content: flex-end;
}

.gp-gastroai-msg-assistant {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  justify-content: flex-start;
  align-items: start;
  gap: 8px;
}

.gp-gastroai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(238, 116, 125, 0.2) 0%, rgba(247, 186, 72, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
}

.gp-gastroai-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gp-fm-ic.gp-fm-ic--avatar {
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gp-fm-ic-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  color: #0e1f33;
  font-size: 11px;
  font-weight: 800;
}

.gp-fm-ic-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gp-gastroai-bubble {
  max-width: 90%;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.gp-gastroai-bubble a {
  color: #8ad6ff;
  text-decoration: underline;
}

.gp-gastroai-msg-user .gp-gastroai-bubble a {
  color: #ffffff;
}

.gp-gastroai-msg-user .gp-gastroai-bubble {
  background: #118a53;
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.gp-gastroai-msg-assistant .gp-gastroai-bubble {
  background: rgba(255, 255, 255, 0.14);
  color: #f4f7fb;
  border-bottom-left-radius: 6px;
  max-width: 100%;
}

.gp-gastroai-msg-assistant .gp-gastroai-bubble.gp-gastroai-bubble--assistant {
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 11px;
}

.gp-gastroai-answer {
  display: grid;
  gap: 12px;
}

.gp-gastroai-answer-body {
  display: grid;
  gap: 7px;
  padding: 12px 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 24, 41, 0.28) 0%, rgba(10, 20, 35, 0.16) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.gp-gastroai-answer-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 157, 64, 0.2) 0%, rgba(19, 115, 98, 0.24) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 28px rgba(4, 14, 28, 0.22);
}

.gp-gastroai-answer-hero-media {
  width: 104px;
  height: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}

.gp-gastroai-answer-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-gastroai-answer-hero-media.is-fallback {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.gp-gastroai-answer-hero-caption {
  display: grid;
  gap: 5px;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  padding: 12px 12px 12px 0;
}

.gp-gastroai-answer-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  color: #ffd98b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gp-gastroai-answer-hero-title {
  font-size: 15px;
  line-height: 1.34;
  color: #ffffff;
}

.gp-gastroai-answer-hero-caption small {
  font-size: 12px;
  color: #9fd6ff;
  font-weight: 600;
}

.gp-gastroai-answer-hero-excerpt {
  color: #deebf8;
  font-size: 12px;
  line-height: 1.5;
}

.gp-gastroai-answer-summary {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.gp-gastroai-answer-summary-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(248, 190, 46, 0.18);
  color: #ffd776;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gp-gastroai-answer-summary-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.56;
  font-weight: 700;
  color: #f8fcff;
}

.gp-gastroai-answer-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  color: #ffffff;
}

.gp-gastroai-answer-paragraph {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #e3ecf5;
}

.gp-gastroai-answer-paragraph.is-lead {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
  color: #f8fcff;
}

.gp-gastroai-answer-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.gp-gastroai-answer-list li {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
  color: #eef6ff;
}

.gp-gastroai-answer a {
  color: #9fd6ff;
}

.gp-gastroai-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 10px;
  max-width: 100%;
  grid-column: 2;
}

.gp-gastroai-cards-heading {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(17, 138, 83, 0.18);
  color: #c6f8df;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gp-gastroai-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f7fb;
  box-shadow: 0 10px 24px rgba(5, 18, 34, 0.2);
}

.gp-gastroai-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.gp-gastroai-card-media {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gp-gastroai-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-gastroai-card-media.is-fallback {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(237, 115, 60, 0.72) 0%, rgba(20, 133, 114, 0.78) 100%);
}

.gp-gastroai-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gp-gastroai-card-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(248, 190, 46, 0.18);
  color: #ffd776;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gp-gastroai-card-title {
  font-size: 14px;
  line-height: 1.34;
  color: #ffffff;
}

.gp-gastroai-card-meta {
  color: #9ed0ff;
  font-size: 12px;
  line-height: 1.4;
}

.gp-gastroai-card-excerpt {
  color: #d9e4ef;
  font-size: 12px;
  line-height: 1.48;
}

.gp-gastroai-cards-more {
  color: #a8b9cc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 1px 0;
}

.gp-gastroai-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 0;
}

.gp-gastroai-links a {
  color: #e9f5ff;
  text-decoration: none;
  font-size: 11px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.gp-gastroai-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.gp-gastroai-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gp-gastroai-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e2329;
  font-size: 14px;
  line-height: 1.2;
}

.gp-gastroai-send {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #12a368;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gp-gastroai-send:disabled,
.gp-gastroai-input:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.gp-gastroai-hint {
  margin: 0;
  padding: 0 12px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.gp-gastroai-alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.gp-gastroai-alert-header h4 {
  margin: 0;
  font-size: 13px;
  color: #ffffff;
}

.gp-gastroai-alert-mark-all {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
}

.gp-gastroai-alert-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.gp-gastroai-alert-item {
  display: block;
  text-decoration: none;
  color: #e5edf4;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gp-gastroai-alert-item.is-unread {
  border-color: rgba(255, 195, 0, 0.8);
  background: rgba(255, 195, 0, 0.15);
}

.gp-gastroai-alert-item-title {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
}

.gp-gastroai-alert-item-message {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.94;
}

.gp-gastroai-alert-item-time {
  margin-top: 5px;
  font-size: 10px;
  opacity: 0.8;
}

.gp-gastroai-alert-empty {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  padding: 10px 2px;
}

.gp-gastroai-alert-all-link {
  display: block;
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #dff5ff;
  text-decoration: none;
  font-size: 12px;
  text-align: center;
}

.gp-gastroai-root.is-disabled .gp-gastroai-launcher {
  background: linear-gradient(135deg, #69717a, #4b5259);
}

.gp-gastroai-root.is-disabled .gp-gastroai-toggle {
  background: rgba(230, 101, 101, 0.4);
}
