:root {
  --mgc-black: #050608;
  --mgc-panel: #0b0e11;
  --mgc-panel-2: #11161a;
  --mgc-green: #1b9b50;
  --mgc-green-dark: #137a3d;
  --mgc-gold: #c9b037;
  --mgc-text: #f5f7f6;
  --mgc-muted: #aab4ae;
  --mgc-border: rgba(255,255,255,.10);
  --mgc-white: #ffffff;
  --mgc-shadow: 0 24px 70px rgba(0,0,0,.34);
}

#mg-concierge-root, #mg-concierge-root * { box-sizing: border-box; }
#mg-concierge-root { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.4; }

.mgc-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 2147483000;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(201,176,55,.45); border-radius: 999px;
  background: var(--mgc-black); color: var(--mgc-white);
  box-shadow: 0 12px 35px rgba(0,0,0,.30); cursor: pointer;
  padding: 10px 15px 10px 10px; transition: transform .18s ease, box-shadow .18s ease;
}
.mgc-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(0,0,0,.40); }
.mgc-launcher:focus-visible, .mgc-icon-btn:focus-visible, .mgc-chip:focus-visible, .mgc-send:focus-visible, .mgc-btn:focus-visible, .mgc-input:focus-visible, .mgc-select:focus-visible, .mgc-textarea:focus-visible { outline: 3px solid rgba(27,155,80,.35); outline-offset: 2px; }
.mgc-launcher-logo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mgc-green); color: #fff; font-weight: 800; letter-spacing: -.5px; }
.mgc-launcher-copy { display: flex; flex-direction: column; align-items: flex-start; }
.mgc-launcher-title { font-weight: 750; font-size: 13px; }
.mgc-launcher-sub { color: #c9d1cc; font-size: 11px; margin-top: 1px; }

.mgc-nudge {
  position: fixed; right: 22px; bottom: 84px; z-index: 2147482999;
  max-width: 260px; padding: 11px 13px; border-radius: 12px;
  color: #121514; background: #fff; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 13px;
  animation: mgc-rise .25s ease both;
}
@keyframes mgc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.mgc-panel {
  position: fixed; right: 22px; bottom: 84px; z-index: 2147483001;
  width: min(420px, calc(100vw - 32px)); height: min(690px, calc(100vh - 110px));
  background: var(--mgc-panel); color: var(--mgc-text); border: 1px solid var(--mgc-border);
  border-radius: 20px; overflow: hidden; box-shadow: var(--mgc-shadow);
  display: flex; flex-direction: column; transform-origin: bottom right;
  animation: mgc-open .2s ease both;
}
@keyframes mgc-open { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.mgc-hidden { display: none !important; }

.mgc-header { padding: 16px 16px 13px; background: linear-gradient(135deg, #050608 0%, #0c1711 100%); border-bottom: 1px solid var(--mgc-border); }
.mgc-head-row { display: flex; align-items: center; gap: 11px; }
.mgc-brandmark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: var(--mgc-green); color: #fff; font-weight: 850; letter-spacing: -.7px; }
.mgc-head-copy { min-width: 0; flex: 1; }
.mgc-head-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.mgc-head-sub { margin-top: 2px; color: #bfc8c2; font-size: 11.5px; }
.mgc-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 10.5px; color: #a9b4ad; }
.mgc-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mgc-green); box-shadow: 0 0 0 4px rgba(27,155,80,.11); }
.mgc-header-actions { display: flex; gap: 5px; }
.mgc-icon-btn { width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255,255,255,.055); color: #fff; cursor: pointer; font-size: 17px; }
.mgc-icon-btn:hover { background: rgba(255,255,255,.10); }

.mgc-messages { flex: 1; overflow-y: auto; padding: 16px 14px 10px; scroll-behavior: smooth; }
.mgc-messages::-webkit-scrollbar { width: 8px; }
.mgc-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }
.mgc-message { display: flex; margin: 0 0 12px; }
.mgc-message.user { justify-content: flex-end; }
.mgc-bubble { max-width: 86%; padding: 11px 13px; border-radius: 14px; font-size: 13.2px; word-break: break-word; }
.mgc-message.assistant .mgc-bubble { background: var(--mgc-panel-2); border: 1px solid var(--mgc-border); color: #f3f6f4; border-top-left-radius: 5px; }
.mgc-message.user .mgc-bubble { background: var(--mgc-green); color: #fff; border-top-right-radius: 5px; }
.mgc-bubble strong { color: inherit; }
.mgc-bubble a { color: #86dba8; text-decoration: underline; }
.mgc-message.user .mgc-bubble a { color: #fff; }
.mgc-meta { margin: 4px 3px 0; font-size: 9.5px; color: #78827c; }
.mgc-message.user .mgc-meta { text-align: right; }

.mgc-quick-wrap { margin: 3px 0 14px; }
.mgc-quick-label { margin: 0 0 8px; color: var(--mgc-muted); font-size: 11px; }
.mgc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mgc-chip { border: 1px solid rgba(201,176,55,.32); background: rgba(201,176,55,.06); color: #eee7bf; border-radius: 999px; padding: 7px 9px; font-size: 11.2px; cursor: pointer; }
.mgc-chip:hover { background: rgba(201,176,55,.12); }

.mgc-typing { display: inline-flex; gap: 4px; align-items: center; padding: 11px 14px; background: var(--mgc-panel-2); border: 1px solid var(--mgc-border); border-radius: 14px 14px 14px 5px; }
.mgc-typing span { width: 5px; height: 5px; border-radius: 50%; background: #9eaaa2; animation: mgc-dot 1s infinite ease-in-out; }
.mgc-typing span:nth-child(2) { animation-delay: .15s; }
.mgc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mgc-dot { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }

.mgc-composer { padding: 10px 12px 12px; border-top: 1px solid var(--mgc-border); background: #080b0d; }
.mgc-input-row { display: flex; align-items: flex-end; gap: 7px; padding: 7px; background: #111519; border: 1px solid var(--mgc-border); border-radius: 14px; }
.mgc-chat-input { resize: none; max-height: 112px; min-height: 38px; flex: 1; border: 0; outline: 0; padding: 9px 8px 7px; background: transparent; color: #fff; font: inherit; font-size: 13px; line-height: 1.35; }
.mgc-chat-input::placeholder { color: #7e8882; }
.mgc-send { width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 10px; background: var(--mgc-green); color: white; cursor: pointer; font-size: 17px; font-weight: 700; }
.mgc-send:hover { background: var(--mgc-green-dark); }
.mgc-send:disabled { opacity: .5; cursor: not-allowed; }
.mgc-footer-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 8px; }
.mgc-small-link { color: #8f9a93; font-size: 9.5px; text-decoration: none; }
.mgc-small-link:hover { color: #c9d0cc; }
.mgc-human { border: 0; background: transparent; color: #b8c0bb; padding: 0; font-size: 10px; cursor: pointer; }
.mgc-human:hover { color: #fff; }

.mgc-form-card { margin: 6px 0 14px; padding: 14px; border: 1px solid var(--mgc-border); background: #0e1215; border-radius: 15px; }
.mgc-form-title { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.mgc-form-sub { margin: 0 0 13px; color: var(--mgc-muted); font-size: 11px; }
.mgc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mgc-field { margin-bottom: 9px; }
.mgc-field.full { grid-column: 1 / -1; }
.mgc-label { display: block; margin: 0 0 5px; color: #c7cfca; font-size: 10.5px; font-weight: 650; }
.mgc-input, .mgc-select, .mgc-textarea { width: 100%; border: 1px solid var(--mgc-border); border-radius: 9px; background: #080b0d; color: #fff; padding: 9px 10px; font: inherit; font-size: 12px; }
.mgc-select { appearance: auto; }
.mgc-textarea { resize: vertical; min-height: 68px; }
.mgc-check { display: flex; gap: 8px; align-items: flex-start; color: #b5beb8; font-size: 9.8px; margin: 5px 0 11px; }
.mgc-check input { margin-top: 2px; accent-color: var(--mgc-green); }
.mgc-btn-row { display: flex; gap: 8px; }
.mgc-btn { flex: 1; border-radius: 10px; padding: 10px 11px; font: inherit; font-size: 11.5px; font-weight: 750; cursor: pointer; }
.mgc-btn-primary { border: 1px solid var(--mgc-green); background: var(--mgc-green); color: #fff; }
.mgc-btn-primary:hover { background: var(--mgc-green-dark); }
.mgc-btn-secondary { border: 1px solid rgba(201,176,55,.42); background: transparent; color: #e0d493; }
.mgc-form-error { color: #ffb1b1; background: rgba(255,80,80,.08); border: 1px solid rgba(255,80,80,.18); border-radius: 8px; padding: 8px; margin-bottom: 9px; font-size: 10.5px; }
.mgc-summary { font-size: 11.5px; color: #dfe5e1; }
.mgc-summary-row { display: grid; grid-template-columns: 105px 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.mgc-summary-row:last-child { border-bottom: 0; }
.mgc-summary-key { color: #89958e; }

@media (max-width: 640px) {
  .mgc-launcher { right: 14px; bottom: 14px; }
  .mgc-nudge { right: 14px; bottom: 77px; }
  .mgc-panel { inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 0; }
  .mgc-header { padding-top: max(15px, env(safe-area-inset-top)); }
  .mgc-composer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .mgc-grid { grid-template-columns: 1fr; }
  .mgc-field.full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mgc-panel, .mgc-nudge, .mgc-typing span { animation: none !important; }
  .mgc-messages { scroll-behavior: auto; }
}
