/* Chat-only direct launch. Ordinary Home and existing workflows keep their layout. */
.chat-launcher[hidden], .chat-source-setup[hidden], .chat-actions[hidden] { display: none !important; }
body.chat-launcher-mode .app-header,
body.chat-launcher-mode > .bottom-nav,
body.chat-launcher-mode > .bottom-action,
body.chat-launcher-mode .bottom-space { display: none !important; }
body.chat-launcher-mode .app-shell {
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: 18px;
}
.chat-launcher {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 2px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(154,222,243,.48);
  border-radius: 23px;
  background: radial-gradient(circle at 90% 5%, rgba(65,184,215,.24), transparent 42%),
    linear-gradient(135deg, rgba(13,67,110,.72), rgba(4,28,62,.83));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.23),
    inset 0 0 24px rgba(120,224,246,.06),
    0 17px 34px rgba(0,7,30,.35);
  backdrop-filter: blur(12px) saturate(138%);
  -webkit-backdrop-filter: blur(12px) saturate(138%);
}
.chat-launcher::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126,234,248,.72), transparent);
  opacity: .72;
}
.chat-launcher-eyebrow {
  margin: 0 0 10px;
  color: #a6e7f5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.chat-launcher h2 {
  margin: 0;
  color: #f5fbff;
  font-size: 29px;
  line-height: 1.05;
}
.chat-source-text {
  min-height: 20px;
  margin: 11px 0 16px;
  color: #cee6f2;
  font-size: 12px;
  line-height: 1.35;
}
.chat-source-setup {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.chat-source-setup label { color: #f4fbff; font-size: 14px; font-weight: 700; }
.chat-source-setup input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(164,222,241,.48);
  border-radius: 11px;
  outline: none;
  background: rgba(4,27,58,.68);
  color: #f5fbff;
  font: inherit;
}
.chat-source-setup input:focus-visible { border-color: #a8efff; }
.chat-source-setup button {
  min-height: 43px;
  border: 1px solid rgba(121,231,240,.55);
  border-radius: 11px;
  background: linear-gradient(130deg, rgba(18,146,179,.75), rgba(8,85,141,.74));
  color: #fff;
  font-weight: 750;
}
.chat-source-setup button:disabled { opacity: .6; }
.chat-source-setup [role="alert"] { min-height: 15px; margin: 0; color: #ffb6c7; font-size: 11px; }
.chat-actions { display: grid; gap: 9px; }
.chat-actions button {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  min-height: 67px;
  padding: 9px 12px;
  border: 1px solid rgba(147,213,237,.34);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(52,126,169,.22), rgba(8,40,78,.39));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 5px 14px rgba(0,10,34,.15);
  color: #f6fcff;
  text-align: left;
  cursor: pointer;
}
.chat-actions button:focus-visible { outline: 2px solid #a8efff; outline-offset: 2px; }
.chat-actions button:active { transform: translateY(1px); }
.chat-actions button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(134,224,248,.55);
  border-radius: 10px;
  color: #a6edff;
  font-size: 22px;
}
.chat-actions button:nth-child(2) > span { color: #b5f4d9; border-color: rgba(127,231,196,.52); }
.chat-actions button:nth-child(3) > span { color: #d7c8ff; border-color: rgba(196,174,252,.52); }
.chat-actions button strong { align-self: end; font-size: 14px; line-height: 1.15; }
.chat-actions button small { align-self: start; margin-top: 2px; color: #b6d3e4; font-size: 10px; }
#quickShareChat:not([hidden]) {
  border-color: rgba(119,228,214,.54);
  background: rgba(10,111,128,.37);
  color: #e6fffb;
}
.workflow-document-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: rgba(55,133,179,.27);
  color: #c4efff;
  font-size: 30px;
}
.workflow-case-media button {
  border: 0;
  background: none;
  color: #b6e9ff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
