.mc[hidden], .mc [hidden] { display: none !important; }
.mc { --mc-ink: #2b1b1d; --mc-blue: #8e1f2b; --mc-line: #e6e1e2; font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; color: var(--mc-ink); }
.mc button, .mc textarea, .mc a { font: inherit; }
.mc button { cursor: pointer; }
.mc button:focus-visible, .mc a:focus-visible, .mc textarea:focus-visible { outline: 3px solid #c9a24b; outline-offset: 3px; }
/* Starts as a 56px circle matching the contact button; the label slides out on hover/keyboard focus. */
.mc-launch { position: fixed; right: 28px; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 9998; display: flex; align-items: center; height: 56px; padding: 0; border: 0; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #8e1f2b 0%, #641119 100%); box-shadow: 0 4px 16px rgba(0,0,0,.28); overflow: hidden; transition: box-shadow .25s ease, opacity .2s ease, transform .25s ease; }
.mc-launch-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; color: #c9a24b; }
.mc-launch-icon svg { width: 34px; height: 34px; fill: currentColor; }
.mc-launch-text { display: grid; max-width: 0; opacity: 0; white-space: nowrap; line-height: 1.25; text-align: left; transition: max-width .3s ease, opacity .2s ease, padding .3s ease; }
.mc-launch-text strong { font-size: 14.5px; font-weight: 700; letter-spacing: .03em; }
.mc-launch-text small { margin-top: .1rem; color: #f7e9e7; font-size: 11.5px; font-weight: 400; }
/* Expansion only on mouse/keyboard computers. On phones a tap (or focus returning to the button when the
   panel closes) would otherwise leave it stuck open. */
@media (hover: hover) and (pointer: fine) {
  .mc-launch:hover, .mc-launch:focus-visible { box-shadow: 0 8px 26px rgba(100,17,25,.38); }
  .mc-launch:hover .mc-launch-text, .mc-launch:focus-visible .mc-launch-text { max-width: 220px; opacity: 1; padding-right: 1.2rem; }
  .mc-starters button:hover { border-color: #c9aaad; box-shadow: 0 4px 14px #8e1f2b14; transform: translateY(-1px); }
}
/* AI takes the corner; the floating contact button (56px circle) moves up above it, its settings untouched. */
body:has(#gc-concierge:not([hidden]) .mc-launch) #fcp-root { bottom: calc(28px + 56px + 14px); }
/* Full-height side panel sliding in from the right, so long conversations have room. */
/* Centred 600px window; phones get the full screen (see the 520px breakpoint). --mc-vh tracks the on-screen keyboard. */
.mc-dialog { position: fixed; inset: 0; width: min(600px, calc(100vw - 2rem)); height: min(880px, calc(var(--mc-vh, 100dvh) - 3rem)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--mc-line); border-radius: 18px; background: #fff; color: var(--mc-ink); box-shadow: 0 30px 90px #6411194d; overflow: hidden; }
.mc-dialog[open] { animation: mc-panel-in 280ms cubic-bezier(.2, .8, .2, 1) both; }
.mc-dialog[open]::backdrop { animation: mc-fade-in 280ms ease-out both; }
@keyframes mc-panel-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mc-fade-in { from { opacity: 0; } to { opacity: 1; } }
.mc-dialog[open] { display: flex; flex-direction: column; }
.mc-dialog::backdrop { background: rgba(100, 17, 25, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html:has(.mc-dialog[open]) { overflow: hidden; }
.mc-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 1.1rem 1.5rem; background: linear-gradient(135deg, #8e1f2b 0%, #641119 100%); color: #fff; flex-shrink: 0; }
.mc-eyebrow { display: block; color: #c9a24b; letter-spacing: .16em; font-size: 10px; font-weight: 600; }
.mc-header h2 { font-size: 19px; letter-spacing: .02em; margin: .2rem 0 0; color: #fff; }
.mc-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; min-width: 0; min-height: 0; padding: 0 !important; border: 1px solid #ffffff40; border-radius: 50%; background: #ffffff10; color: #fff; font-size: 22px !important; line-height: 1 !important; transition: background .2s, border-color .2s; }
.mc-close:hover { background: #ffffff26; border-color: #ffffff80; }
.mc-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem 1.5rem 1rem; background: #f6f3ea; }
.mc-body p { margin: 0 0 .75rem; }
.mc-intro { font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: .01em; color: var(--mc-blue); }
.mc-starters { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.25rem 0; }
.mc-starters button, .mc-copy { padding: .75rem .9rem; border: 1px solid #e6e1e2; border-radius: 12px; background: #fff; color: var(--mc-blue); min-height: 48px; font-size: 14px; text-align: left; box-shadow: 0 1px 2px #8e1f2b0d; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mc-message { margin: 1rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mc-message--user { margin-left: 3rem; padding: .7rem 1rem; border-radius: 16px 16px 4px 16px; background: var(--mc-blue); color: #fff; }
.mc-message--assistant { padding: .25rem 0; line-height: 1.85; }
.mc-tour-link { color: #8e1f2b; font-weight: 600; text-decoration: underline; text-decoration-color: #8e1f2b55; text-underline-offset: 3px; }
.mc-tour-link:hover { text-decoration-color: currentColor; }
.mc-message { animation: mc-message-in 220ms ease-out both; }
.mc-cards .mc-card { animation: mc-message-in 260ms ease-out both; }
.mc-cards .mc-card:nth-child(2) { animation-delay: 80ms; }
.mc-cards .mc-card:nth-child(3) { animation-delay: 160ms; }
.mc-is-thinking .mc-status::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 24px 2px 10px;
  border-radius: 50%; background: currentColor; box-shadow: 9px 0 currentColor, 18px 0 currentColor;
  animation: mc-thinking 1.2s ease-in-out infinite;
}
@keyframes mc-message-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mc-thinking {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-message, .mc-cards .mc-card, .mc-is-thinking .mc-status::after, .mc-dialog[open], .mc-dialog[open]::backdrop { animation: none; }
  .mc-launch, .mc-launch-text { transition: none; }
}
.mc-status { color: #635557; font-size: 13px; }
.mc-retry { min-height: 44px; margin: .25rem 0 .5rem; padding: 0 1.2rem; border: 1px solid var(--mc-blue); border-radius: 10px; background: #fff; color: var(--mc-blue); font-size: 14px; font-weight: 600; }
.mc-retry:hover { background: #f7e9e7; }
.mc-retry:focus-visible { outline: 3px solid #f0b54a; outline-offset: 2px; }
.mc-form { display: flex; align-items: flex-end; gap: .5rem; margin: .75rem 1rem .35rem; padding: .35rem .35rem .35rem 1rem; border: 1px solid #d8c6c8; border-radius: 26px; background: #fff; flex-shrink: 0; transition: border-color .2s, box-shadow .2s; }
.mc-form:focus-within { border-color: var(--mc-blue); box-shadow: 0 0 0 3px #8e1f2b1a; }
.mc textarea { display: block; min-width: 0; border: 1px solid #d8c6c8; border-radius: 8px; padding: .65rem; background: #fff; color: var(--mc-ink); resize: vertical; font-size: 16px; }
.mc-form textarea { flex: 1; min-height: 40px; max-height: 120px; border: 0 !important; padding: .5rem 0 !important; resize: none; outline: none; background: transparent; line-height: 1.5; }
.mc-form textarea:focus-visible { outline: none; }
.mc-send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; border: 0; border-radius: 50%; background: var(--mc-blue); color: #fff; }
.mc-send svg { width: 20px; height: 20px; }
.mc-send:hover { background: #641119; }
.mc button:disabled { opacity: .6; cursor: wait; }
.mc-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 1.25rem .7rem; flex-shrink: 0; }
.mc-footer button { flex: none; background: transparent; border: 0; padding: .4rem .2rem; color: #8e1f2b; font-size: 13px; font-weight: 600; min-height: 36px; }
.mc-footer button:hover { text-decoration: underline; text-underline-offset: 3px; }
.mc-footer .mc-reset { color: #635557; font-weight: 500; }
.mc-footer small { flex: 1; min-width: 0; color: #8c7e80; font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-handoff { border-top: 1px solid var(--mc-line); margin-top: 1rem; padding-top: 1rem; }
.mc-handoff label { display: block; font-weight: 600; margin-bottom: .5rem; }
.mc-handoff textarea { width: 100%; margin-bottom: .6rem; }
.mc-handoff p { font-size: 12px; color: #635557; margin-top: .6rem; }
.mc-lines { display: flex; flex-wrap: wrap; gap: .5rem; }
.mc-lines a { border: 1px solid var(--mc-line); border-radius: 8px; padding: .6rem; color: var(--mc-blue); }
.mc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 520px) {
  .mc-dialog { inset: 0 auto auto 0; top: var(--mc-top, 0px); width: 100vw; height: var(--mc-vh, 100dvh); margin: 0; border: 0; border-radius: 0; }
  .mc-header { padding-top: max(1rem, env(safe-area-inset-top)); }
  .mc-body { padding: 1.25rem 1rem 1rem; }
  .mc-form { margin: .6rem .75rem .2rem; }
  .mc-footer { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
}

/* Simple vertical list: square thumbnail on the left, name, summary, transfer and buttons on the right. */
.mc-cards { display: grid; gap: .75rem; margin: .5rem 0 1rem; }
.mc-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--mc-line); border-radius: 14px; background: #fff; box-shadow: 0 2px 10px #8e1f2b0f; }
.mc-card-media { position: relative; display: block; min-height: 100%; background: #f7e9e7; }
.mc-card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-card-rank { position: absolute; top: .5rem; left: .5rem; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--mc-blue); font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px #0003; }
.mc-card-body { display: grid; gap: .4rem; padding: .8rem .95rem .9rem; }
.mc-card-title { margin: 0; font-size: 15.5px; line-height: 1.4; color: var(--mc-ink); }
.mc-card-title small { display: block; margin-top: .05rem; color: #635557; font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.mc-card-summary { margin: 0; color: #4e3b3e; font-size: 13.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mc-card-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.mc-btn { white-space: nowrap; }
.mc-btn { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 .95rem; border-radius: 9px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.mc-btn--primary { background: var(--mc-blue); color: #fff; }
.mc-btn--primary:hover { background: #641119; color: #fff; }
.mc-btn--ghost { border: 1px solid #d8c6c8; color: var(--mc-blue); background: #fff; }
.mc-btn--ghost:hover { border-color: var(--mc-blue); }
.mc-btn:focus-visible { outline: 3px solid #f0b54a; outline-offset: 2px; }
@media (max-width: 480px) {
  .mc-launch { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); }
  body:has(#gc-concierge:not([hidden]) .mc-launch) #fcp-root { bottom: calc(18px + 56px + 12px); }
}

.mc-card-kind { position: absolute; right: .5rem; bottom: .5rem; padding: .1rem .5rem; border-radius: 999px; background: #c9a24b; color: #fff; font-size: 11.5px; font-weight: 700; }
.mc-card-meta { margin: 0; color: #8a6a24; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.mc-card-title { font-size: 15px; }
@media (max-width: 520px) {
  .mc-card { grid-template-columns: 96px minmax(0, 1fr); }
  .mc-btn { min-height: 40px; }
}
