:root {
  --alfred-ink: #09081a;
  --alfred-indigo: #070816;
  --alfred-deep: #03040d;
  --alfred-violet: #8b5cf6;
  --alfred-purple: #6d28d9;
  --alfred-magenta: #d946ef;
  --alfred-pink: #f472b6;
  --alfred-blue: #3b82f6;
  --alfred-cyan: #22d3ee;
  --alfred-teal: #2dd4bf;
  --alfred-gold: #d9b968;
  --alfred-warm: #f8f5ff;
  --alfred-muted: #aaa9c7;
  --alfred-line: rgba(184, 132, 255, .30);
  --alfred-line-soft: rgba(132, 153, 255, .16);
  --alfred-glass: rgba(9, 8, 28, .88);
  --alfred-panel: rgba(7, 7, 25, .64);
  --alfred-panel-soft: rgba(255, 255, 255, .055);
  --alfred-input: rgba(255, 255, 255, .065);
  --alfred-shadow: rgba(2, 2, 14, .52);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.alfred-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--alfred-warm);
  font-family: "Open Sans", sans-serif;
  background:
    radial-gradient(circle at 10% -4%, rgba(34, 211, 238, .17), transparent 31%),
    radial-gradient(circle at 88% 7%, rgba(217, 70, 239, .19), transparent 34%),
    radial-gradient(circle at 56% 112%, rgba(59, 130, 246, .14), transparent 38%),
    linear-gradient(145deg, rgba(14, 11, 39, .96), var(--alfred-glass) 52%, rgba(4, 5, 17, .97));
  border: 1px solid rgba(193, 151, 255, .30);
  border-radius: 26px;
  box-shadow:
    0 32px 90px var(--alfred-shadow),
    0 0 0 1px rgba(34, 211, 238, .04),
    inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.alfred-shell::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: .30;
  background-image:
    linear-gradient(rgba(101, 129, 255, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.alfred-shell::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  padding: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: conic-gradient(
    from 200deg at 50% 50%,
    transparent 0 7%,
    rgba(34, 211, 238, .72) 12%,
    rgba(139, 92, 246, .62) 20%,
    transparent 28% 54%,
    rgba(244, 114, 182, .58) 63%,
    rgba(59, 130, 246, .54) 71%,
    transparent 79% 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .62;
}

.alfred-shell button,
.alfred-shell textarea {
  font: inherit;
}

.alfred-shell button {
  cursor: pointer;
}

.alfred-shell button:focus-visible,
.alfred-shell textarea:focus-visible,
.alfred-launcher:focus-visible {
  outline: 2px solid var(--alfred-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(217, 70, 239, .18);
}

.alfred-shell-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 122px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--alfred-line);
  background:
    linear-gradient(90deg, rgba(4, 6, 22, .66), rgba(89, 45, 157, .13) 54%, rgba(217, 70, 239, .07)),
    rgba(9, 8, 27, .32);
  box-shadow: inset 0 -1px 0 rgba(34, 211, 238, .05);
}

.alfred-shell-head::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -1px;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--alfred-cyan), var(--alfred-magenta), transparent);
  opacity: .72;
}

.alfred-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.alfred-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  overflow: hidden;
  border: 1px solid rgba(199, 167, 255, .46);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 62%, rgba(34, 211, 238, .24), transparent 33%),
    conic-gradient(from 210deg, rgba(59, 130, 246, .24), rgba(217, 70, 239, .24), rgba(139, 92, 246, .25), rgba(45, 212, 191, .15), rgba(59, 130, 246, .24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 10px 35px rgba(90, 43, 180, .20);
}

.alfred-portrait::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(34, 211, 238, .16);
  border-radius: 18px;
}

.alfred-portrait::after {
  content: "";
  position: absolute;
  inset: auto 18% 4px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--alfred-blue), var(--alfred-cyan), var(--alfred-pink));
  filter: blur(8px);
  opacity: .82;
  animation: alfred-glow 4.8s ease-in-out infinite alternate;
}

.alfred-portrait img {
  position: relative;
  z-index: 1;
  width: 95%;
  height: 106%;
  object-fit: contain;
  filter: drop-shadow(0 11px 13px rgba(0, 0, 0, .42));
}

.alfred-overline {
  display: block;
  color: var(--alfred-gold);
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .22em;
}

.alfred-identity h2 {
  margin: 3px 0 1px;
  color: var(--alfred-warm);
  font-size: 1.72rem;
  font-weight: 680;
  letter-spacing: -.045em;
  text-shadow: 0 0 24px rgba(139, 92, 246, .20);
}

.alfred-identity h2 small {
  color: var(--alfred-cyan);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.alfred-identity p {
  margin: 0;
  color: var(--alfred-muted);
  font-size: .67rem;
}

.alfred-identity p i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--alfred-cyan);
  box-shadow: 0 0 14px var(--alfred-cyan), 0 0 25px rgba(139, 92, 246, .68);
  animation: alfred-status-pulse 2.8s ease-in-out infinite;
}

.alfred-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.alfred-head-actions button {
  min-height: 35px;
  padding: 7px 12px;
  color: var(--alfred-warm);
  font-size: .63rem;
  font-weight: 720;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(139, 92, 246, .07));
  border: 1px solid var(--alfred-line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.alfred-head-actions button:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, .48);
  background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(217, 70, 239, .15));
  transform: translateY(-1px);
}

.alfred-head-actions .alfred-close {
  width: 35px;
  padding: 0;
  font-size: 1.2rem;
}

.alfred-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 464px;
}

.alfred-history {
  padding: 18px 12px;
  border-right: 1px solid var(--alfred-line);
  background:
    linear-gradient(180deg, rgba(78, 44, 141, .12), transparent 48%),
    var(--alfred-panel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.alfred-history header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 11px;
}

.alfred-history header strong {
  font-size: .64rem;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.alfred-history header button {
  padding: 5px 9px;
  color: var(--alfred-cyan);
  font-size: .57rem;
  background: rgba(34, 211, 238, .05);
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 8px;
}

.alfred-history > div {
  display: grid;
  gap: 6px;
}

.alfred-history > div > button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  text-align: left;
  color: var(--alfred-warm);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.alfred-history > div > button:hover,
.alfred-history > div > button.active {
  border-color: rgba(184, 132, 255, .32);
  background: linear-gradient(135deg, rgba(59, 130, 246, .09), rgba(217, 70, 239, .09));
  transform: translateX(2px);
}

.alfred-history > div > button.active {
  box-shadow: inset 2px 0 0 var(--alfred-cyan);
}

.alfred-history button strong {
  overflow: hidden;
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alfred-history button span,
.alfred-history p {
  margin: 0;
  color: var(--alfred-muted);
  font-size: .52rem;
}

.alfred-dialogue {
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto auto;
  min-width: 0;
  background: linear-gradient(160deg, rgba(24, 20, 58, .12), transparent 42%);
}

.alfred-messages {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 520px;
  padding: 26px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, .38) transparent;
}

.alfred-welcome {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  padding: 22px;
  text-align: center;
}

.alfred-vine-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: #fff;
  border: 1px solid rgba(34, 211, 238, .38);
  border-radius: 14px;
  background: conic-gradient(from 40deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .28), rgba(217, 70, 239, .24), rgba(34, 211, 238, .14));
  box-shadow: 0 0 34px rgba(139, 92, 246, .24), inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: rotate(45deg);
}

.alfred-vine-mark::first-letter {
  transform: rotate(-45deg);
}

.alfred-welcome h3 {
  margin: 0;
  color: var(--alfred-warm);
  font-size: 1.28rem;
  letter-spacing: -.025em;
}

.alfred-welcome p {
  max-width: 590px;
  margin: 8px 0 19px;
  color: var(--alfred-muted);
  font-size: .72rem;
  line-height: 1.7;
}

.alfred-starters,
.alfred-followups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.alfred-starters button,
.alfred-followups button {
  padding: 8px 12px;
  color: var(--alfred-warm);
  font-size: .6rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, .09), rgba(139, 92, 246, .09));
  border: 1px solid rgba(139, 92, 246, .30);
  border-radius: 999px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.alfred-starters button:hover,
.alfred-followups button:hover {
  border-color: rgba(34, 211, 238, .48);
  background: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(217, 70, 239, .14));
  transform: translateY(-1px);
}

.alfred-message {
  align-self: flex-start;
  width: min(84%, 760px);
  padding: 14px 16px;
  border: 1px solid var(--alfred-line-soft);
  border-radius: 8px 18px 18px 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(139, 92, 246, .045));
  box-shadow: 0 12px 30px rgba(3, 3, 16, .13), inset 0 1px 0 rgba(255, 255, 255, .045);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.alfred-message.user {
  align-self: flex-end;
  border-color: rgba(89, 144, 255, .34);
  border-radius: 18px 8px 18px 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(109, 40, 217, .14));
}

.alfred-message.error {
  border-color: rgba(244, 114, 182, .56);
}

.alfred-message-role {
  display: block;
  margin-bottom: 5px;
  color: var(--alfred-gold);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.alfred-message.user .alfred-message-role {
  color: var(--alfred-cyan);
}

.alfred-message-copy {
  color: var(--alfred-warm);
  font-size: .72rem;
  line-height: 1.67;
}

.alfred-citations {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--alfred-line-soft);
}

.alfred-citations > span {
  color: var(--alfred-muted);
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.alfred-citations a {
  color: var(--alfred-gold);
  font-size: .59rem;
  text-decoration: none;
}

.alfred-citations a:hover {
  color: var(--alfred-cyan);
  text-decoration: underline;
}

.alfred-message-tools {
  display: flex;
  gap: 11px;
  margin-top: 10px;
}

.alfred-message-tools button {
  padding: 0;
  color: var(--alfred-muted);
  font-size: .55rem;
  background: transparent;
  border: 0;
}

.alfred-message-tools button:hover {
  color: var(--alfred-cyan);
}

.alfred-followups {
  justify-content: flex-start;
  margin-top: 12px;
}

.alfred-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--alfred-line);
  background: rgba(4, 5, 18, .68);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.alfred-composer label {
  min-width: 0;
}

.alfred-composer textarea {
  width: 100%;
  min-height: 56px;
  max-height: 160px;
  padding: 15px 16px;
  resize: vertical;
  box-sizing: border-box;
  color: var(--alfred-warm);
  line-height: 1.45;
  background: var(--alfred-input);
  border: 1px solid rgba(155, 130, 220, .28);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: border-color .2s ease, background .2s ease;
}

.alfred-composer textarea:hover {
  border-color: rgba(34, 211, 238, .32);
}

.alfred-composer textarea::placeholder {
  color: #8383a5;
}

.alfred-composer-actions {
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.alfred-composer-actions button {
  padding: 0 15px;
  color: var(--alfred-warm);
  font-size: .63rem;
  font-weight: 760;
  border-radius: 13px;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.alfred-composer-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.alfred-mic {
  background: rgba(139, 92, 246, .06);
  border: 1px solid var(--alfred-line);
}

.alfred-mic span {
  margin-right: 5px;
  color: var(--alfred-cyan);
  text-shadow: 0 0 10px var(--alfred-cyan);
}

.alfred-mic.recording {
  border-color: rgba(244, 114, 182, .62);
  background: rgba(244, 114, 182, .13);
}

.alfred-mic.recording span {
  color: var(--alfred-pink);
}

.alfred-send {
  color: #fff !important;
  background: linear-gradient(135deg, #3867dc, #7c3fe4 54%, #d946c7);
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: 0 9px 28px rgba(95, 50, 204, .30), inset 0 1px 0 rgba(255, 255, 255, .20);
}

.alfred-send span {
  margin-left: 8px;
}

.alfred-send:disabled {
  opacity: .55;
  cursor: wait;
}

.alfred-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 18px 11px;
  color: var(--alfred-muted);
  font-size: .52rem;
}

.alfred-status .error {
  color: #ff9ac8;
}

.alfred-status small {
  font-size: inherit;
}

.alfred-status > button {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #171027;
  font-size: .54rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--alfred-gold), #f0d98e);
  border: 0;
  border-radius: 999px;
}

.alfred-popover {
  position: fixed;
  right: 22px;
  bottom: 102px;
  z-index: 1200;
  width: min(540px, calc(100vw - 28px));
  filter: drop-shadow(0 30px 90px rgba(2, 2, 14, .60));
}

.alfred-popover:not([hidden]) .alfred-shell {
  animation: alfred-arrive .28s cubic-bezier(.2, .75, .25, 1);
}

.alfred-popover .alfred-shell-head {
  min-height: 94px;
  padding: 10px 14px;
}

.alfred-popover .alfred-portrait {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border-radius: 19px;
}

.alfred-popover .alfred-portrait::before {
  border-radius: 14px;
}

.alfred-popover .alfred-identity h2 {
  font-size: 1.32rem;
}

.alfred-popover .alfred-workspace {
  display: block;
  min-height: 0;
}

.alfred-popover .alfred-history {
  position: absolute;
  z-index: 5;
  inset: 0 auto 0 0;
  width: 216px;
  transform: translateX(-105%);
  transition: transform .24s cubic-bezier(.2, .75, .25, 1);
}

.alfred-popover .alfred-history.open {
  transform: translateX(0);
  box-shadow: 22px 0 44px rgba(2, 2, 14, .36);
}

.alfred-popover .alfred-messages {
  height: 390px;
  max-height: 45vh;
  padding: 18px;
}

.alfred-popover .alfred-message {
  width: 90%;
}

.alfred-popover .alfred-composer {
  grid-template-columns: 1fr;
}

.alfred-popover .alfred-composer-actions {
  justify-content: flex-end;
}

.alfred-popover .alfred-status small {
  display: none;
}

.alfred-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1199;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  height: 68px;
  padding: 6px 17px 6px 7px;
  color: var(--alfred-warm);
  background:
    linear-gradient(var(--alfred-indigo), var(--alfred-deep)) padding-box,
    conic-gradient(from 220deg, var(--alfred-cyan), var(--alfred-violet), var(--alfred-magenta), var(--alfred-blue), var(--alfred-cyan)) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 20px 54px rgba(2, 2, 14, .45), inset 0 1px 0 rgba(255, 255, 255, .10);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.alfred-launcher > .alfred-launcher-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .30);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .20), rgba(139, 92, 246, .16) 44%, transparent 72%);
  box-shadow: 0 0 24px rgba(139, 92, 246, .22);
}

.alfred-launcher > .alfred-launcher-portrait::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--alfred-indigo);
  border-radius: 50%;
  background: var(--alfred-cyan);
  box-shadow: 0 0 11px var(--alfred-cyan);
}

.alfred-launcher img {
  width: 96%;
  height: 108%;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .38));
}

.alfred-launcher strong {
  display: grid;
  text-align: left;
  font-size: .73rem;
  letter-spacing: -.01em;
}

.alfred-launcher small {
  margin-top: 2px;
  color: var(--alfred-cyan);
  font-size: .48rem;
  letter-spacing: .13em;
  text-shadow: 0 0 11px rgba(34, 211, 238, .55);
}

.alfred-launcher:hover {
  transform: translateY(-3px);
  filter: saturate(1.10);
  box-shadow: 0 25px 62px rgba(2, 2, 14, .52), 0 0 34px rgba(139, 92, 246, .19);
}

[data-alfred-embedded] {
  display: block;
  margin: 20px 0 22px;
}

[data-alfred-embedded] > .alfred-shell {
  box-shadow: 0 30px 78px rgba(37, 22, 84, .15), inset 0 1px 0 rgba(255, 255, 255, .10);
}

[data-theme="light"] .alfred-shell {
  --alfred-warm: #1d1935;
  --alfred-muted: #625e7a;
  --alfred-line: rgba(109, 40, 217, .20);
  --alfred-line-soft: rgba(89, 92, 173, .15);
  --alfred-glass: rgba(247, 244, 255, .90);
  --alfred-panel: rgba(241, 237, 253, .82);
  --alfred-panel-soft: rgba(94, 56, 157, .055);
  --alfred-input: rgba(255, 255, 255, .72);
  --alfred-shadow: rgba(56, 39, 93, .17);
  background:
    radial-gradient(circle at 10% -4%, rgba(34, 211, 238, .13), transparent 31%),
    radial-gradient(circle at 88% 7%, rgba(217, 70, 239, .12), transparent 35%),
    radial-gradient(circle at 56% 112%, rgba(59, 130, 246, .10), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .97), var(--alfred-glass) 54%, rgba(239, 237, 251, .96));
}

[data-theme="light"] .alfred-shell-head {
  background: linear-gradient(90deg, rgba(255, 255, 255, .75), rgba(139, 92, 246, .075), rgba(217, 70, 239, .045));
}

[data-theme="light"] .alfred-history {
  background: linear-gradient(180deg, rgba(139, 92, 246, .075), transparent 48%), var(--alfred-panel);
}

[data-theme="light"] .alfred-dialogue {
  background: linear-gradient(160deg, rgba(139, 92, 246, .04), transparent 42%);
}

[data-theme="light"] .alfred-message {
  background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(139, 92, 246, .045));
  box-shadow: 0 12px 26px rgba(66, 49, 108, .07), inset 0 1px 0 rgba(255, 255, 255, .75);
}

[data-theme="light"] .alfred-message.user {
  background: linear-gradient(135deg, rgba(59, 130, 246, .10), rgba(109, 40, 217, .10));
}

[data-theme="light"] .alfred-composer {
  background: rgba(239, 237, 250, .78);
}

[data-theme="light"] .alfred-composer textarea {
  color: var(--alfred-warm);
}

[data-theme="light"] .alfred-head-actions button,
[data-theme="light"] .alfred-mic {
  background: rgba(255, 255, 255, .58);
}

[data-theme="light"] .alfred-launcher {
  color: #f8f5ff;
  background:
    linear-gradient(#0b0920, #050511) padding-box,
    conic-gradient(from 220deg, var(--alfred-cyan), var(--alfred-violet), var(--alfred-magenta), var(--alfred-blue), var(--alfred-cyan)) border-box;
  box-shadow: 0 18px 48px rgba(49, 35, 88, .24), inset 0 1px 0 rgba(255, 255, 255, .10);
}

@keyframes alfred-glow {
  to {
    transform: translateX(7%) scale(1.08);
    opacity: 1;
  }
}

@keyframes alfred-status-pulse {
  0%, 100% { opacity: .72; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.10); }
}

@keyframes alfred-arrive {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .alfred-workspace {
    grid-template-columns: 1fr;
  }

  .alfred-history {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 0;
    width: 224px;
    transform: translateX(-105%);
    transition: transform .24s cubic-bezier(.2, .75, .25, 1);
  }

  .alfred-history.open {
    transform: translateX(0);
    box-shadow: 22px 0 46px rgba(2, 2, 14, .38);
  }

  .alfred-shell-head {
    align-items: flex-start;
  }

  .alfred-head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .alfred-shell {
    border-radius: 20px;
  }

  .alfred-shell-head {
    min-height: 92px;
    padding: 11px;
  }

  .alfred-identity {
    gap: 10px;
  }

  .alfred-portrait {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 18px;
  }

  .alfred-portrait::before {
    border-radius: 13px;
  }

  .alfred-overline {
    font-size: .47rem;
    letter-spacing: .16em;
  }

  .alfred-identity h2 {
    font-size: 1.2rem;
  }

  .alfred-identity p {
    max-width: 150px;
    font-size: .55rem;
    line-height: 1.35;
  }

  .alfred-head-actions {
    gap: 5px;
  }

  .alfred-head-actions button:not(.alfred-close) {
    min-height: 31px;
    padding: 6px 8px;
    font-size: .54rem;
  }

  .alfred-messages {
    max-height: 430px;
    padding: 15px;
  }

  .alfred-message {
    width: 92%;
    padding: 12px 13px;
  }

  .alfred-composer {
    grid-template-columns: 1fr;
  }

  .alfred-composer-actions {
    justify-content: flex-end;
  }

  .alfred-composer-actions button {
    min-height: 42px;
  }

  .alfred-status {
    display: block;
  }

  .alfred-status small {
    display: none;
  }

  .alfred-launcher {
    right: 12px;
    bottom: 12px;
    min-width: 60px;
    width: 60px;
    height: 60px;
    padding: 4px;
  }

  .alfred-launcher > .alfred-launcher-portrait {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .alfred-launcher > strong {
    display: none;
  }

  .alfred-popover {
    inset: auto 7px 78px;
    width: auto;
  }

  .alfred-popover .alfred-messages {
    height: 360px;
    max-height: 42vh;
  }

  .alfred-popover .alfred-shell {
    max-height: calc(100dvh - 92px);
    border-radius: 20px;
  }
}

/* V0.9.9.472B stable command panel, retained as canonical structure */
.alfred-launcher {
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 56px;
  min-width: 56px;
  max-width: 176px;
  height: 56px;
  min-height: 56px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--alfred-launcher-border, #d8b968) 72%, transparent);
  border-radius: 999px;
  color: var(--alfred-launcher-text, #f4edd3);
  background: var(--alfred-launcher-background, #0d1f18);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--alfred-launcher-shadow, #000) 38%, transparent);
  transition: width 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  transform-origin: right center;
  isolation: isolate;
}

.alfred-launcher:hover,
.alfred-launcher:focus-visible {
  width: 176px;
  min-width: 176px;
  transform: translateY(-2px);
  box-shadow: 0 19px 48px color-mix(in srgb, var(--alfred-launcher-shadow, #000) 46%, transparent);
}

.alfred-launcher:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold, #d8b968) 78%, #fff);
  outline-offset: 3px;
}

.alfred-launcher .alfred-launcher-portrait {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.alfred-launcher .alfred-launcher-portrait::before,
.alfred-launcher .alfred-launcher-portrait::after {
  display: none;
  content: none;
}

.alfred-launcher .alfred-launcher-portrait img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .28));
}

.alfred-launcher > .alfred-launcher-label {
  position: relative;
  display: block;
  flex: 0 0 auto;
  place-items: initial;
  padding-right: 13px;
  overflow: hidden;
  color: inherit;
  font: 750 15px/1 "Open Sans", sans-serif;
  letter-spacing: .015em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(7px);
  transition: opacity 140ms ease 45ms, transform 160ms ease 35ms;
}

.alfred-launcher:hover .alfred-launcher-label,
.alfred-launcher:focus-visible .alfred-launcher-label {
  opacity: 1;
  transform: translateX(0);
}

.alfred-popover {
  right: 16px;
  bottom: 84px;
  width: min(620px, calc(100vw - 32px));
  min-width: 0;
  max-width: none;
  height: min(720px, calc(100dvh - 112px));
  max-height: none;
  overflow: hidden;
  border-radius: 22px;
  transform: none;
  contain: layout paint;
}

.alfred-popover[hidden] {
  display: none !important;
}

.alfred-popover .alfred-shell,
.alfred-popover .alfred-workspace,
.alfred-popover .alfred-dialogue {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.alfred-popover .alfred-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.alfred-popover .alfred-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.alfred-popover .alfred-dialogue {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.alfred-popover .alfred-messages {
  min-height: 0;
  max-height: none;
  padding: 20px 22px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.alfred-popover .alfred-shell-head {
  min-height: 112px;
  padding: 18px 18px 16px;
  gap: 14px;
}

.alfred-popover .alfred-identity {
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.alfred-popover .alfred-portrait {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

.alfred-popover .alfred-identity-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.alfred-popover .alfred-overline {
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.alfred-popover .alfred-identity h2 {
  margin: 0;
  font-size: clamp(1.72rem, 2.7vw, 2.18rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1;
}

.alfred-popover .alfred-identity h2 small {
  font-size: .72em;
  font-weight: 760;
  letter-spacing: -.015em;
}

.alfred-popover .alfred-identity-copy > p {
  margin: 4px 0 0;
  font-size: .76rem;
  line-height: 1.35;
}

.alfred-mode {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  margin-top: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(216, 185, 104, .3);
  border-radius: 999px;
  color: #f8efd2;
  background: rgba(10, 45, 32, .78);
  font-size: .67rem;
  font-weight: 760;
  letter-spacing: .025em;
}

.alfred-mode i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78d89c;
  box-shadow: 0 0 0 3px rgba(120, 216, 156, .13);
}

.alfred-popover .alfred-composer,
.alfred-popover .alfred-status {
  flex: none;
}

.alfred-popover .alfred-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  min-height: 59px;
  padding: 10px 20px 12px;
}

.alfred-popover .alfred-status small {
  grid-column: 1 / -1;
}

.alfred-status-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.alfred-retry {
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #fff;
  background: #7f352b;
  font: 750 .72rem/1 "Open Sans", sans-serif;
  cursor: pointer;
}

.alfred-retry:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

[data-theme="light"] .alfred-mode {
  color: #fff;
  background: #174b36;
}

[data-theme="light"] .alfred-popover .alfred-identity-copy > p {
  color: #29271f;
}

@media (max-width: 720px) {
  .alfred-launcher {
    right: 10px;
    bottom: 10px;
    width: 54px;
    min-width: 54px;
    max-width: 168px;
    height: 54px;
    min-height: 54px;
  }

  .alfred-launcher:hover,
  .alfred-launcher:focus-visible {
    width: 168px;
    min-width: 168px;
  }

  .alfred-popover {
    inset: auto 10px 76px;
    width: auto;
    min-width: 0;
    height: min(720px, calc(100dvh - 88px));
    max-height: none;
    border-radius: 18px;
  }

  .alfred-popover .alfred-shell-head {
    min-height: 96px;
    padding: 13px;
  }

  .alfred-popover .alfred-portrait {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .alfred-popover .alfred-overline {
    font-size: .67rem;
  }

  .alfred-popover .alfred-identity h2 {
    font-size: 1.55rem;
  }

  .alfred-popover .alfred-identity-copy > p {
    display: none;
  }

  .alfred-mode {
    margin-top: 4px;
    font-size: .61rem;
  }

  .alfred-popover .alfred-messages {
    padding: 16px 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alfred-launcher,
  .alfred-launcher-label,
  .alfred-popover {
    transition: none !important;
    animation: none !important;
  }
}

.alfred-inline-link { color: var(--alfred-gold); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.alfred-inline-link:hover { color: var(--alfred-cyan); }
/* Live microphone energy indicator. No samples are stored. */
.alfred-mic-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 28px;
  height: 20px;
}

.alfred-mic-signal i {
  width: 2px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  opacity: .52;
  transition: height 90ms linear, opacity 160ms ease, filter 160ms ease;
}

.alfred-mic.recording .alfred-mic-signal i { height: var(--alfred-signal, 4px); }
.alfred-mic.recording .alfred-mic-signal i:nth-child(2),
.alfred-mic.recording .alfred-mic-signal i:nth-child(4) { transform: scaleY(.72); }
.alfred-mic.recording .alfred-mic-signal i:nth-child(1),
.alfred-mic.recording .alfred-mic-signal i:nth-child(5) { transform: scaleY(.45); }

.alfred-mic.recording {
  color: #eadfff;
  border-color: rgba(207, 143, 255, .58);
  background: linear-gradient(135deg, rgba(86, 42, 153, .38), rgba(17, 139, 159, .26));
}

.alfred-mic.recording.hearing {
  border-color: rgba(93, 235, 255, .82);
  box-shadow: 0 0 0 3px rgba(129, 76, 255, .1), 0 0 22px rgba(68, 220, 255, .16);
}

.alfred-mic.recording.hearing .alfred-mic-signal i {
  opacity: 1;
  background: linear-gradient(180deg, #f39cff, #66edff);
  filter: drop-shadow(0 0 4px rgba(100, 235, 255, .65));
}

.alfred-mic-label { margin-right: 0 !important; white-space: nowrap; }

@media (max-width: 480px) {
  .alfred-shell-head {
    gap: 8px;
  }

  .alfred-popover .alfred-shell-head {
    min-height: 84px;
  }

  .alfred-popover .alfred-portrait {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .alfred-head-actions button:not(.alfred-close) {
    padding-inline: 7px;
  }

  .alfred-composer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .alfred-composer-actions button {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alfred-shell *,
  .alfred-shell::before,
  .alfred-shell::after,
  .alfred-launcher,
  .alfred-popover .alfred-history {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* V0.4.4.92B data room theme */
/* Retained as the canonical light and dark theme layer. */
.alfred-shell {
  --alfred-warm: #f4edd3;
  --alfred-muted: #aeb9b0;
  --alfred-line: rgba(216, 185, 104, .22);
  --alfred-line-soft: rgba(216, 185, 104, .13);
  --alfred-glass: rgba(6, 15, 11, .96);
  --alfred-panel: rgba(11, 27, 19, .95);
  --alfred-panel-soft: rgba(255, 255, 255, .045);
  --alfred-input: rgba(255, 255, 255, .065);
  --alfred-shadow: rgba(0, 0, 0, .5);
  font-size: 16px;
  background:
    radial-gradient(circle at 84% 8%, rgba(48, 125, 77, .22), transparent 34%),
    radial-gradient(circle at 8% 95%, rgba(216, 185, 104, .1), transparent 38%),
    linear-gradient(145deg, rgba(13, 31, 23, .98), rgba(4, 10, 7, .98));
  border-color: rgba(216, 185, 104, .27);
  border-radius: 18px;
}

.alfred-shell::before { opacity: .13; }
.alfred-shell::after { background: linear-gradient(135deg, rgba(216,185,104,.65), transparent 28%, transparent 72%, rgba(72,148,96,.5)); opacity: .42; }
.alfred-shell-head { background: linear-gradient(90deg, rgba(4,12,8,.76), rgba(31,75,49,.14)); }
.alfred-shell-head::after { background: linear-gradient(90deg, transparent, var(--alfred-gold), transparent); }
.alfred-dialogue { background: linear-gradient(160deg, rgba(45,112,68,.055), transparent 45%); }
.alfred-history { background: linear-gradient(180deg, rgba(45,112,68,.12), transparent 50%), var(--alfred-panel); }
.alfred-message { background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(42,105,66,.045)); }
.alfred-message.user { background: linear-gradient(135deg, rgba(48,125,77,.18), rgba(216,185,104,.08)); }
.alfred-message-copy { font-size: 1rem; line-height: 1.66; }
.alfred-welcome p { font-size: .98rem; line-height: 1.66; }
.alfred-message-role { font-size: .66rem; }
.alfred-citations a,.alfred-message-tools button,.alfred-followups button,.alfred-starters button { font-size: .8rem; }
.alfred-composer { background: rgba(4, 12, 8, .68); }
.alfred-composer textarea { min-height: 62px; font-size: 1rem; line-height: 1.5; }
.alfred-composer-actions button { min-height: 46px; padding: 10px 16px; font-size: 1rem; font-weight: 750; }
.alfred-mic { border-color: rgba(216,185,104,.25); background: rgba(216,185,104,.05); }
.alfred-mic span { color: var(--alfred-gold); text-shadow: none; }
.alfred-send { background: linear-gradient(135deg, #285e40, #3c7851 58%, #a88b42); }
.alfred-status { padding: 9px 18px 13px; font-size: .67rem; }

[data-theme="dark"] .alfred-shell {
  color: #f4edd3;
  background:
    radial-gradient(circle at 84% 8%, rgba(48, 125, 77, .22), transparent 34%),
    radial-gradient(circle at 8% 95%, rgba(216, 185, 104, .1), transparent 38%),
    linear-gradient(145deg, rgba(13, 31, 23, .98), rgba(4, 10, 7, .98));
}

[data-theme="light"] .alfred-shell {
  --alfred-warm: #172119;
  --alfred-muted: #59635b;
  --alfred-line: rgba(47, 81, 56, .2);
  --alfred-line-soft: rgba(47, 81, 56, .13);
  --alfred-glass: rgba(250, 248, 238, .97);
  --alfred-panel: rgba(244, 246, 237, .97);
  --alfred-panel-soft: rgba(34, 83, 51, .055);
  --alfred-input: rgba(255, 255, 255, .86);
  --alfred-shadow: rgba(44, 53, 45, .18);
  color: #172119;
  background:
    radial-gradient(circle at 84% 8%, rgba(48, 125, 77, .12), transparent 34%),
    radial-gradient(circle at 8% 95%, rgba(156, 120, 32, .08), transparent 38%),
    linear-gradient(145deg, #fffdf6, #edf2ea);
  border-color: rgba(65, 92, 69, .24);
}

[data-theme="light"] .alfred-shell-head { background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(49,113,70,.08)); }
[data-theme="light"] .alfred-history { background: linear-gradient(180deg, rgba(49,113,70,.08), transparent 50%), var(--alfred-panel); }
[data-theme="light"] .alfred-dialogue { background: linear-gradient(160deg, rgba(49,113,70,.035), transparent 45%); }
[data-theme="light"] .alfred-message { background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(49,113,70,.04)); box-shadow: 0 10px 26px rgba(44,53,45,.06); }
[data-theme="light"] .alfred-message.user { background: linear-gradient(135deg, rgba(49,113,70,.1), rgba(156,120,32,.07)); }
[data-theme="light"] .alfred-composer { background: rgba(237,242,234,.9); }
[data-theme="light"] .alfred-head-actions button,[data-theme="light"] .alfred-mic { background: rgba(255,255,255,.72); }
/* Style Studio presentation variables */
[data-theme="light"] {
  --alfred-launcher-background: var(--alfred-launcher-background-light, #fcf8eb);
  --alfred-launcher-border: var(--alfred-launcher-border-light, #876825);
  --alfred-launcher-text: var(--alfred-launcher-text-light, #173b2e);
  --alfred-launcher-shadow: var(--alfred-launcher-shadow-light, #413314);
  --alfred-popup-background: var(--alfred-popup-background-light, #fffdf6);
  --alfred-popup-border: var(--alfred-popup-border-light, #415c45);
  --alfred-popup-text: var(--alfred-popup-text-light, #172119);
  --alfred-popup-accent: var(--alfred-popup-accent-light, #317146);
  --alfred-popup-shadow: var(--alfred-popup-shadow-light, #2c352d);
  --alfred-chat-body: var(--alfred-chat-body-light, #172119);
  --alfred-chat-user-bubble: var(--alfred-chat-user-bubble-light, #e2eee2);
  --alfred-chat-alfred-bubble: var(--alfred-chat-alfred-bubble-light, #ffffff);
  --alfred-chat-input-background: var(--alfred-chat-input-background-light, #ffffff);
  --alfred-chat-action-background: var(--alfred-chat-action-background-light, #317146);
  --alfred-chat-action-text: var(--alfred-chat-action-text-light, #ffffff);
  --alfred-portrait-border: var(--alfred-portrait-border-light, #71917a);
  --alfred-portrait-background: var(--alfred-portrait-background-light, #edf2ea);
  --alfred-portrait-glow: var(--alfred-portrait-glow-light, #317146);
}

[data-theme="dark"] {
  --alfred-launcher-background: var(--alfred-launcher-background-dark, #0d1f18);
  --alfred-launcher-border: var(--alfred-launcher-border-dark, #d8b968);
  --alfred-launcher-text: var(--alfred-launcher-text-dark, #f4edd3);
  --alfred-launcher-shadow: var(--alfred-launcher-shadow-dark, #000000);
  --alfred-popup-background: var(--alfred-popup-background-dark, #0d1f17);
  --alfred-popup-border: var(--alfred-popup-border-dark, #d8b968);
  --alfred-popup-text: var(--alfred-popup-text-dark, #f4edd3);
  --alfred-popup-accent: var(--alfred-popup-accent-dark, #d8b968);
  --alfred-popup-shadow: var(--alfred-popup-shadow-dark, #000000);
  --alfred-chat-body: var(--alfred-chat-body-dark, #f4edd3);
  --alfred-chat-user-bubble: var(--alfred-chat-user-bubble-dark, #173d29);
  --alfred-chat-alfred-bubble: var(--alfred-chat-alfred-bubble-dark, #15271d);
  --alfred-chat-input-background: var(--alfred-chat-input-background-dark, #14241c);
  --alfred-chat-action-background: var(--alfred-chat-action-background-dark, #3c7851);
  --alfred-chat-action-text: var(--alfred-chat-action-text-dark, #ffffff);
  --alfred-portrait-border: var(--alfred-portrait-border-dark, #d8b968);
  --alfred-portrait-background: var(--alfred-portrait-background-dark, #0b1b13);
  --alfred-portrait-glow: var(--alfred-portrait-glow-dark, #d8b968);
}
.alfred-popover {
  right: var(--alfred-launcher-offset-x, 14px);
  bottom: calc(var(--alfred-launcher-offset-y, 14px) + var(--alfred-launcher-height, 48px) + var(--alfred-popup-gap, 15px));
  width: min(var(--alfred-popup-width), calc(100vw - 28px));
}

.alfred-popover .alfred-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(var(--alfred-popup-max-height, 700px), calc(100dvh - 92px));
  max-height: var(--alfred-popup-max-height, 700px);
  overflow: auto;
  color: var(--alfred-popup-text, #f4edd3);
  border: var(--alfred-popup-border-width, 1px) solid var(--alfred-popup-border, #d8b968);
  border-radius: var(--alfred-popup-radius, 18px);
  background:
    radial-gradient(circle at 84% 8%, color-mix(in srgb, var(--alfred-popup-accent, #d8b968) 18%, transparent), transparent 34%),
    var(--alfred-popup-background, #0d1f17);
  box-shadow: 0 30px 90px color-mix(in srgb, var(--alfred-popup-shadow, #000000) 50%, transparent);
  opacity: var(--alfred-popup-opacity, .98);
  backdrop-filter: blur(var(--alfred-popup-blur, 28px)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--alfred-popup-blur, 28px)) saturate(145%);
}

.alfred-popover .alfred-workspace {
  min-height: 0;
}

.alfred-popover .alfred-dialogue {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.alfred-shell.embedded {
  width: 100%;
}

.alfred-popover .alfred-messages {
  height: auto;
  min-height: 0;
  max-height: none;
  gap: var(--alfred-popup-gap, 15px);
  padding: var(--alfred-popup-padding, 18px);
}

.alfred-popover .alfred-message-copy,
.alfred-popover .alfred-welcome p {
  color: var(--alfred-chat-body, #f4edd3);
  font-size: var(--alfred-chat-message-size);
  line-height: var(--alfred-chat-line-height, 1.66);
}

.alfred-popover .alfred-message {
  background: var(--alfred-chat-alfred-bubble, #15271d);
}

.alfred-popover .alfred-message.user {
  background: var(--alfred-chat-user-bubble, #173d29);
}

.alfred-popover .alfred-composer textarea {
  color: var(--alfred-chat-body, #f4edd3);
  font-size: var(--alfred-chat-input-size);
  background: var(--alfred-chat-input-background, #14241c);
}

.alfred-popover .alfred-composer-actions button {
  color: var(--alfred-chat-action-text, #ffffff) !important;
  font-size: var(--alfred-chat-action-size);
  background: var(--alfred-chat-action-background, #3c7851);
}

.alfred-popover .alfred-portrait {
  width: var(--alfred-portrait-size);
  height: var(--alfred-portrait-size);
  flex-basis: var(--alfred-portrait-size);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.alfred-popover .alfred-portrait img {
  width: 100%;
  height: 100%;
  object-position: var(--alfred-portrait-position-x, 50%) var(--alfred-portrait-position-y, 50%);
  transform: scale(var(--alfred-portrait-crop-scale, 1)) rotate(var(--alfred-portrait-rotation, 0deg));
}

.alfred-popover .alfred-portrait::after {
  content: none;
  display: none;
}
/* V0.9.9.492B final Alfred surface authority */
.alfred-launcher {
  isolation: isolate;
  gap: 8px;
  width: 98px;
  min-width: 98px;
  max-width: 260px;
  height: 98px;
  min-height: 98px;
  padding: 1px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transform: none;
  transform-origin: right center;
  will-change: width, transform, box-shadow;
  transition:
    width 520ms cubic-bezier(.22, 1, .36, 1),
    transform 360ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 400ms cubic-bezier(.22, 1, .36, 1),
    border-color 280ms ease;
}

.alfred-launcher::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #fffdf6, #edf2ea);
  box-shadow: 0 18px 46px rgba(27, 62, 46, .2);
  opacity: 0;
  pointer-events: none;
  transform: scaleX(.35);
  transform-origin: right center;
  transition:
    opacity 220ms ease,
    transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.alfred-launcher:hover::before,
.alfred-launcher:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.alfred-launcher:hover,
.alfred-launcher:focus-visible {
  width: 260px;
  min-width: 98px;
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 22px 52px color-mix(in srgb, var(--alfred-launcher-shadow, #000) 42%, transparent);
}

.alfred-launcher .alfred-launcher-portrait {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 96px;
  place-items: center;
  width: 96px;
  height: 96px;
  min-width: 96px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.alfred-launcher .alfred-launcher-portrait::before,
.alfred-launcher .alfred-launcher-portrait::after {
  display: none;
  content: none;
}

.alfred-launcher .alfred-launcher-portrait img {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  object-fit: contain;
  transform: none;
  filter: none;
  clip-path: none;
}

.alfred-launcher > .alfred-launcher-label {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  place-items: initial;
  width: auto;
  min-width: max-content;
  height: auto;
  padding-right: 16px;
  overflow: visible;
  color: #111;
  font: 750 16px/1 "Open Sans", sans-serif;
  letter-spacing: .015em;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  filter: blur(1.5px);
  pointer-events: none;
  transform: translateX(22px);
  transform-origin: left center;
  transition:
    opacity 320ms ease 40ms,
    filter 360ms ease 20ms,
    transform 480ms cubic-bezier(.22, 1, .36, 1);
}

.alfred-launcher > .alfred-launcher-label::before,
.alfred-launcher > .alfred-launcher-label::after {
  display: none;
  content: none;
}

.alfred-launcher:hover .alfred-launcher-label,
.alfred-launcher:focus-visible .alfred-launcher-label {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.alfred-popover {
  bottom: 108px;
  width: min(max(var(--alfred-popup-width, 820px), 820px), calc(100vw - 28px));
  border: 0;
  outline: 0;
}

.alfred-popover .alfred-shell {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  background-clip: border-box;
}

.alfred-popover .alfred-shell::after,
.alfred-popover .alfred-portrait::before,
.alfred-popover .alfred-portrait::after {
  content: none;
  display: none;
}

.alfred-popover .alfred-shell-head,
.alfred-popover .alfred-identity {
  align-items: flex-start;
}

.alfred-popover .alfred-portrait {
  transform: translateY(-10px);
}

.alfred-popover .alfred-head-actions {
  align-self: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 7px;
  margin-top: 0;
}

.alfred-popover .alfred-head-actions button {
  min-height: 35px;
  padding: 7px 12px;
  color: var(--alfred-popup-text, #f4edd3);
  font-size: .64rem;
  font-weight: 780;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--alfred-popup-border, #d8b968) 36%, transparent);
  background: color-mix(in srgb, var(--alfred-popup-background, #0d1f17) 88%, white 12%);
  box-shadow: none;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.alfred-popover .alfred-mode {
  width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  color: var(--alfred-chat-action-text, #fff);
  background: var(--alfred-chat-action-background, #3c7851);
}

.alfred-popover .alfred-mode i {
  flex: 0 0 auto;
  background: var(--alfred-gold, #d8b968);
  box-shadow: 0 0 0 3px rgba(216, 185, 104, .18), 0 0 10px rgba(216, 185, 104, .42);
}

[data-theme="light"] .alfred-popover .alfred-mode {
  color: #fff !important;
  background: var(--alfred-chat-action-background, #3c7851);
}

[data-theme="light"] .alfred-launcher,
[data-theme="dark"] .alfred-launcher {
  color: #111;
  background: transparent;
  box-shadow: none;
}

[data-theme="light"] .alfred-popover .alfred-head-actions button {
  color: #234f37;
  border-color: #cfd8cf;
  background: #fffdf6;
}

[data-theme="light"] .alfred-popover .alfred-head-actions button:hover,
[data-theme="light"] .alfred-popover .alfred-head-actions button:focus-visible {
  color: #fff;
  border-color: #2f6445;
  background: #2f6445;
  box-shadow: 0 8px 20px rgba(47, 100, 69, .2);
  transform: translateY(-2px);
}

[data-theme="dark"] .alfred-popover .alfred-head-actions button:hover,
[data-theme="dark"] .alfred-popover .alfred-head-actions button:focus-visible {
  color: #102218;
  border-color: #ead48f;
  background: #d2b25e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .alfred-launcher {
    width: 88px;
    min-width: 88px;
    max-width: 238px;
    height: 88px;
    min-height: 88px;
  }

  .alfred-launcher:hover,
  .alfred-launcher:focus-visible {
    width: 238px;
    min-width: 88px;
  }

  .alfred-launcher .alfred-launcher-portrait {
    flex-basis: 86px;
    width: 86px;
    height: 86px;
    min-width: 86px;
  }

  .alfred-launcher .alfred-launcher-portrait img {
    width: 86px;
    height: 86px;
  }

  .alfred-popover {
    inset: auto 10px 88px;
  }

  .alfred-popover .alfred-shell-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .alfred-popover .alfred-head-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
  }

  .alfred-popover .alfred-composer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alfred-popover .alfred-head-actions button:not(.alfred-close) {
    min-height: 30px;
    padding: 6px 8px;
    font-size: .52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alfred-launcher,
  .alfred-launcher::before,
  .alfred-launcher-label {
    transition-duration: 1ms !important;
  }
}
