/* R181 guest Command Deck: the login page shell (html[data-dlc-guest]) and the sample deck frame (/guest/deck). */

/* ---------- shell: the sample deck fills the screen; the existing form shows only when asked ---------- */
html[data-dlc-guest] body { background: #05060a; }
.dlc-guest-frame {
  position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 0; background: #05060a;
  transition: filter .28s ease, transform .28s ease;
}
html[data-dlc-guest]:not(.dlc-guest-auth) body > :not(.dlc-guest-frame):not(.dlc-guest-chat) { visibility: hidden !important; pointer-events: none !important; }
html[data-dlc-guest] #grid, html[data-dlc-guest] .veil { display: none !important; }   /* the form's own background */
html[data-dlc-guest].dlc-guest-auth .dlc-guest-frame { filter: blur(7px) brightness(.55); transform: scale(1.01); pointer-events: none; }
html[data-dlc-guest].dlc-guest-auth body > main.stage, html[data-dlc-guest].dlc-guest-auth #authOverlayRoot { position: relative; z-index: 2; }
html[data-dlc-guest].dlc-guest-auth #authLanguageSwitch, html[data-dlc-guest].dlc-guest-auth #systemReadiness { z-index: 3; }
.dlc-guest-auth-close {
  position: fixed !important; top: 18px; left: 18px; z-index: 5 !important; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: rgba(10,12,18,.72); color: #fff; font: 600 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
html[data-dlc-guest]:not(.dlc-guest-auth) .dlc-guest-auth-close { display: none; }

/* ---------- shell: free Mintus chat ---------- */
.dlc-guest-chat {
  position: fixed; right: 24px; bottom: 24px; z-index: 6; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100vh - 48px));
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; color: #eef1f6;
  background: rgba(14,16,24,.96); border: 1px solid rgba(233,196,106,.35); box-shadow: 0 24px 70px rgba(0,0,0,.55);
  font: 14px/1.5 "Be Vietnam Pro", "Lexend Deca", system-ui, sans-serif;
}
.dlc-guest-chat[hidden] { display: none; }
.dlc-guest-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dlc-guest-chat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.dlc-guest-chat-titles { display: grid; gap: 2px; min-width: 0; flex: 1; }
.dlc-guest-chat-titles strong { font-size: 15px; color: #f4d58d; }
.dlc-guest-chat-titles small { font-size: 12px; color: rgba(238,241,246,.68); }
.dlc-guest-chat-close { border: 0; background: none; color: inherit; font-size: 24px; cursor: pointer; padding: 4px 8px; }
.dlc-guest-chat-list { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.dlc-guest-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; white-space: normal; overflow-wrap: anywhere; }
.dlc-guest-msg-assistant { align-self: flex-start; background: rgba(255,255,255,.07); }
.dlc-guest-msg-user { align-self: flex-end; background: #e9c46a; color: #1b1406; }
.dlc-guest-msg-note { align-self: center; max-width: 96%; background: transparent; color: rgba(238,241,246,.72); font-size: 13px; text-align: center; }
.dlc-guest-chat-cta, .dlc-guest-chat-signup {
  display: inline-block; margin: 8px 4px 0; padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: #e9c46a; color: #1b1406; font: 600 13px/1.2 inherit;
}
.dlc-guest-chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.dlc-guest-chat-form textarea {
  flex: 1; resize: none; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.35);
  color: inherit; padding: 9px 11px; font: inherit;
}
.dlc-guest-chat-send { border: 0; border-radius: 12px; padding: 0 16px; background: #e9c46a; color: #1b1406; font-weight: 700; cursor: pointer; }
.dlc-guest-chat-send:disabled { opacity: .55; cursor: wait; }
.dlc-guest-chat-foot { display: flex; align-items: center; gap: 6px; padding: 0 14px 12px; font-size: 12px; color: rgba(238,241,246,.68); }
.dlc-guest-chat-left { flex: 1; }
.dlc-guest-chat-foot .dlc-guest-chat-signup { margin: 0; }
.dlc-guest-chat-signin { border: 1px solid rgba(255,255,255,.24); background: none; color: inherit; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; }
@media (max-width: 640px) {
  .dlc-guest-chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); }
}

/* ---------- frame: the sample badge ---------- */
.dlc-guest-badge {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 60; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  font: 600 12px/1.3 system-ui, sans-serif; color: #fff; background: rgba(10,12,18,.78); border: 1px solid rgba(255,255,255,.2);
}
@media (max-width: 900px) {  /* the header is full on a tablet or phone: the badge sits just above the Dock */
  .dlc-guest-badge { top: auto; left: 12px; bottom: 96px; transform: none; }
}
