:root {
  --sample-ink: #764632;
  --sample-ink-soft: #a26f56;
  --sample-line: rgba(183, 113, 67, .13);
  --sample-hot: #ff7f73;
  --sample-glass: rgba(255, 251, 245, .68);
  --sample-paper: rgba(255, 250, 244, .78);
  --sample-shadow-main: 0 26px 60px rgba(125, 72, 39, .11);
  --sample-shadow-note: 0 28px 58px rgba(122, 68, 35, .16), 0 10px 24px rgba(122, 68, 35, .08);
  --sample-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

#appShell.xhaus-chat-home[hidden] {
  display: none !important;
}

#appShell.xhaus-chat-home {
  --design-w: 1480;
  --design-h: 820;
  --scale: 1;
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--sample-ink) !important;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 243, 219, .92) 0 13%, transparent 35%),
    linear-gradient(135deg, #fff9ef 0%, #ffe7c8 48%, #f6bd82 100%) !important;
  font-family: var(--sample-font) !important;
}

#appShell.xhaus-chat-home,
#appShell.xhaus-chat-home * {
  box-sizing: border-box;
  letter-spacing: 0;
}

#appShell.xhaus-chat-home button,
#appShell.xhaus-chat-home input,
#appShell.xhaus-chat-home textarea {
  font: inherit;
}

#appShell.xhaus-chat-home button {
  cursor: pointer;
}

.sample-scene-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(90deg, rgba(255, 248, 237, .12), rgba(255, 226, 190, .34)),
    url("./assets/chat-bg-new.png") center / cover no-repeat;
}

.sample-scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .48), transparent 24%),
    linear-gradient(90deg, rgba(255, 250, 240, .34), rgba(255, 225, 188, .08));
  pointer-events: none;
}

.sample-dust {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: .48;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, .72) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 30%, rgba(255, 202, 145, .42) 0 2px, transparent 3px);
  background-size: 120px 120px, 190px 190px, 240px 240px;
  animation: sample-drift 18s linear infinite;
}

@keyframes sample-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-32px, 22px, 0); }
}

.sample-wrap {
  position: relative;
  width: calc(var(--design-w) * 1px * var(--scale));
  height: calc(var(--design-h) * 1px * var(--scale));
  margin: 16px auto;
}

.sample-board {
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(var(--design-w) * 1px);
  height: calc(var(--design-h) * 1px);
  transform: scale(var(--scale));
  transform-origin: top left;
}

.xhaus-chat-home .glass {
  border: 1px solid var(--sample-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(255, 247, 236, .18)),
    var(--sample-glass);
  box-shadow: 0 16px 38px rgba(132, 76, 37, .085);
  backdrop-filter: blur(30px) saturate(1.22);
  -webkit-backdrop-filter: blur(30px) saturate(1.22);
}

.xhaus-chat-home .top-brand {
  position: absolute;
  left: 62px;
  top: 2px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 206px;
  height: 54px;
  padding: 0 16px;
  border-radius: 22px;
  background: rgba(255, 249, 238, .14);
}

.xhaus-chat-home .brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 14px 28px rgba(255, 126, 102, .18), inset 0 1px rgba(255, 255, 255, .9);
}

.xhaus-chat-home .brand-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.xhaus-chat-home .brand-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #70442f;
  font-size: 18px;
  font-weight: 950;
}

.xhaus-chat-home .brand-copy span {
  color: #b88c72;
  font-size: 12px;
  font-weight: 650;
}

.xhaus-chat-home .top-status {
  position: absolute;
  left: 392px;
  top: 0;
  display: flex;
  width: 600px;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.xhaus-chat-home .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 142px;
  height: 42px;
  border: 1px solid rgba(190, 125, 82, .16);
  border-radius: 17px;
  background: rgba(255, 250, 242, .64);
  color: #8a553c;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 12px 26px rgba(121, 72, 40, .07);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.xhaus-chat-home .pill-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 168, 96, .28);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 249, 240, .95), rgba(255, 230, 199, .64));
  color: #ff9855;
  font-size: 17px;
}

.xhaus-chat-home .dot,
.xhaus-chat-home .pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6bcb75;
  box-shadow: 0 0 0 7px rgba(104, 201, 117, .12);
}

.xhaus-chat-home .is-bad .dot,
.xhaus-chat-home .is-bad .pulse {
  background: #ff7f73;
  box-shadow: 0 0 0 7px rgba(255, 127, 115, .12);
}

.xhaus-chat-home .is-warn .dot,
.xhaus-chat-home .is-warn .pulse {
  background: #f7b463;
  box-shadow: 0 0 0 7px rgba(247, 180, 99, .14);
}

.xhaus-chat-home .pulse-muted {
  background: #b8d7a6;
}

.xhaus-chat-home .butler-pill {
  min-width: 224px;
  padding: 0 14px;
  justify-content: space-between;
  border: 1px solid rgba(190, 125, 82, .16);
}

.xhaus-chat-home .avatar {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: #f8d6be;
  box-shadow: 0 9px 18px rgba(143, 83, 52, .15);
}

.xhaus-chat-home .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.xhaus-chat-home .top-icons {
  position: absolute;
  right: 62px;
  top: 0;
  display: flex;
  height: 54px;
  align-items: center;
  gap: 12px;
}

.xhaus-chat-home .circle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--sample-line);
  border-radius: 50%;
  background: rgba(255, 250, 242, .66);
  color: #a77558;
  box-shadow: 0 12px 26px rgba(121, 72, 40, .08);
  font-size: 13px;
}

.xhaus-chat-home .bgm-toggle {
  position: relative;
  cursor: pointer;
  color: #e2a11e;
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.xhaus-chat-home .bgm-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 248, 230, .82);
  box-shadow: 0 14px 30px rgba(121, 72, 40, .12);
}

.xhaus-chat-home .bgm-toggle:focus-visible {
  outline: 2px solid rgba(255, 125, 106, .72);
  outline-offset: 3px;
}

.xhaus-chat-home .bgm-toggle.is-muted::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #ff5a55;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .86), 0 4px 9px rgba(255, 90, 85, .28);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-42deg);
}

.xhaus-chat-home .sidebar {
  position: absolute;
  left: 54px;
  top: 78px;
  display: flex;
  width: 182px;
  height: 704px;
  flex-direction: column;
  overflow: visible;
  padding: 18px 16px;
  border-radius: 30px;
}

.xhaus-chat-home .new-chat {
  position: relative;
  z-index: 2;
  height: 52px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #ff736d, #ff9d82);
  color: #fff;
  box-shadow: 0 18px 38px rgba(255, 113, 102, .28), inset 0 1px rgba(255, 255, 255, .46);
  font-size: 16px;
  font-weight: 950;
}

.xhaus-chat-home .nav {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.xhaus-chat-home .nav-item {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #9b6c54;
  font-size: 13px;
  text-align: left;
}

.xhaus-chat-home .nav-item.active {
  border-color: rgba(255, 150, 115, .28);
  background: rgba(255, 241, 222, .56);
  color: #ff7767;
  box-shadow: inset 4px 0 0 rgba(255, 126, 101, .78);
}

.xhaus-chat-home .nav-icon {
  width: 18px;
  color: #a57960;
  font-size: 12px;
  text-align: center;
}

.xhaus-chat-home .mascot-area {
  position: relative;
  z-index: 12;
  height: 214px;
  margin-top: auto;
  overflow: visible;
}

.xhaus-chat-home .mascot-card {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  overflow: visible;
  border: 1px solid rgba(224, 158, 108, .08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 246, 234, .12), rgba(255, 236, 212, .06));
  box-shadow: inset 0 1px rgba(255, 255, 255, .22);
}

.xhaus-chat-home .mascot-bubble {
  position: absolute;
  left: 8px;
  top: -54px;
  z-index: 14;
  max-width: 112px;
  padding: 10px 14px;
  border: 1px solid rgba(221, 153, 103, .22);
  border-radius: 15px 15px 15px 7px;
  background: rgba(255, 253, 247, .94);
  color: #b67a5d;
  box-shadow: 0 10px 20px rgba(133, 78, 44, .08);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.xhaus-chat-home .mascot-bubble::after {
  content: "♡";
  margin-left: 4px;
  color: #f49a8d;
  font-weight: 800;
}

.xhaus-chat-home .mascot-sparkles {
  position: absolute;
  inset: 18px 6px 10px;
  z-index: 11;
  pointer-events: none;
}

.xhaus-chat-home .mascot-sparkles span {
  position: absolute;
  display: block;
  color: rgba(247, 169, 134, .88);
  opacity: .9;
  text-shadow: 0 0 12px rgba(255, 214, 174, .7);
}

.xhaus-chat-home .mascot-sparkles span:nth-child(1) { right: 14px; top: 28px; font-size: 11px; }
.xhaus-chat-home .mascot-sparkles span:nth-child(2) { right: 42px; top: 66px; font-size: 9px; }
.xhaus-chat-home .mascot-sparkles span:nth-child(3) { right: 18px; bottom: 26px; font-size: 10px; }
.xhaus-chat-home .mascot-sparkles span:nth-child(4) { right: 40px; bottom: 16px; font-size: 8px; }

.xhaus-chat-home .bear-pop {
  position: absolute;
  left: -72px;
  bottom: -22px;
  z-index: 12;
  width: 364px;
  height: 264px;
  background: url("./assets/bear-cutout.png") left bottom / contain no-repeat;
  filter: drop-shadow(0 18px 18px rgba(113, 70, 42, .16));
  pointer-events: none;
}

.xhaus-chat-home .chat {
  position: absolute;
  left: 278px;
  top: 78px;
  display: grid;
  width: 612px;
  height: 704px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 27px 28px 20px;
  border: 1px solid rgba(183, 113, 67, .12);
  container-type: inline-size;
  container-name: chat-shell;
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 229, 198, .22), transparent 24%),
    linear-gradient(180deg, rgba(255, 253, 249, .78), rgba(255, 248, 238, .60)),
    rgba(255, 251, 245, .66);
  box-shadow: var(--sample-shadow-main);
  backdrop-filter: blur(30px) saturate(1.18);
  -webkit-backdrop-filter: blur(30px) saturate(1.18);
}

.xhaus-chat-home .chat::before {
  content: "";
  position: absolute;
  top: 48px;
  right: 42px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 158, .17), transparent 66%);
  filter: blur(8px);
}

.xhaus-chat-home .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.xhaus-chat-home .hero {
  position: relative;
  z-index: 1;
  padding: 0 24px 14px;
}

.xhaus-chat-home .hero h1 {
  margin: 0;
  color: #7a4a32;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.24;
}

.xhaus-chat-home .hero h1 span {
  color: #ff837a;
}

.xhaus-chat-home .hero p {
  margin: 7px 0 0;
  color: #a67860;
  font-size: 15px;
  font-weight: 500;
}

.xhaus-chat-home .quick {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
}

.xhaus-chat-home .chip {
  height: 37px;
  padding: 0 16px;
  border: 1px solid rgba(216, 148, 99, .22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 238, 219, .50));
  color: #8c6048;
  box-shadow: inset 0 1px rgba(255, 255, 255, .82), 0 8px 18px rgba(136, 76, 35, .05);
  font-size: 13px;
  font-weight: 850;
}

.xhaus-chat-home .visual {
  position: relative;
  min-height: 0;
  margin: 0 6px 16px;
  overflow: hidden;
  border: 1px solid rgba(216, 148, 99, .11);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 222, 194, .20), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, .40), rgba(255, 239, 219, .16));
}

.xhaus-chat-home .visual::before {
  content: "";
  position: absolute;
  inset: 38px 50px;
  border: 1px solid rgba(212, 150, 104, .11);
  border-radius: 31px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .50), rgba(255, 246, 235, .26));
  box-shadow: 0 22px 70px rgba(132, 78, 43, .06), inset 0 1px rgba(255, 255, 255, .7);
}

.xhaus-chat-home .visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(221, 153, 103, .18);
  border-radius: inherit;
  pointer-events: none;
}

.xhaus-chat-home .orb-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b68a70;
  text-align: center;
  pointer-events: none;
  transition: opacity .18s ease;
}

.xhaus-chat-home .messages:not(:empty) ~ .orb-wrap {
  opacity: 0;
}

.xhaus-chat-home .messages .message:only-child:not(.is-user) {
  display: none !important;
}

.xhaus-chat-home .messages:has(.message:only-child:not(.is-user)) ~ .orb-wrap {
  opacity: 1;
}

.xhaus-chat-home .orb {
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .94) 0 13%, transparent 24%),
    linear-gradient(135deg, rgba(255, 174, 143, .50), rgba(255, 226, 180, .64));
  color: #fff;
  box-shadow: 0 24px 54px rgba(215, 136, 92, .15), inset 0 1px rgba(255, 255, 255, .68);
  font-size: 38px;
  animation: sample-breathe 4s ease-in-out infinite;
}

@keyframes sample-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.025); }
}

.xhaus-chat-home .orb-title {
  color: #95644b;
  font-size: 18px;
  font-weight: 950;
}

.xhaus-chat-home .orb-subtitle {
  margin-top: 8px;
  color: #bd9278;
  font-size: 12px;
}

.xhaus-chat-home .messages {
  position: absolute !important;
  inset: 16px !important;
  z-index: 2;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 10px 12px !important;
  background: transparent !important;
}

.xhaus-chat-home .history-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 4;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(216, 148, 99, .18);
  border-radius: 18px;
  background: rgba(255, 252, 247, .94);
  box-shadow: 0 18px 36px rgba(132, 76, 39, .12);
}

.xhaus-chat-home .history-panel[hidden] {
  display: none !important;
}

.xhaus-chat-home .message {
  display: flex;
  margin: 0 0 12px;
}

.xhaus-chat-home .message.is-user {
  justify-content: flex-end;
}

.xhaus-chat-home .bubble {
  max-width: min(460px, 82%);
  padding: 12px 14px;
  border: 1px solid rgba(216, 148, 99, .13);
  border-radius: 18px;
  background: rgba(255, 252, 247, .78);
  color: #7c5038;
  box-shadow: 0 12px 24px rgba(132, 76, 39, .07);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.xhaus-chat-home .message.is-user .bubble {
  border-color: transparent;
  background: linear-gradient(135deg, #ff8b78, #ffb073);
  color: #fff;
}

.xhaus-chat-home .composer {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 11px;
  height: 66px;
  margin: 0 6px;
  padding: 0 12px;
  border: 1px solid rgba(216, 148, 99, .19);
  border-radius: 22px;
  background: rgba(255, 251, 245, .75);
  box-shadow: inset 0 1px rgba(255, 255, 255, .86), 0 14px 28px rgba(136, 76, 35, .07);
}

.xhaus-chat-home .plus {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff8ef, #ffe9d3);
  color: #bb7c58;
  box-shadow: 0 8px 18px rgba(136, 76, 35, .08);
  font-size: 24px;
}

.xhaus-chat-home .composer input {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sample-ink);
  outline: 0;
  font-size: 14px;
}

.xhaus-chat-home .composer input::placeholder {
  color: #c4a087;
}

.xhaus-chat-home .tools {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a97a61;
  font-size: 18px;
}

.xhaus-chat-home .send {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #ff756d, #ffa16f);
  color: #fff;
  box-shadow: 0 15px 30px rgba(255, 116, 104, .24), inset 0 1px rgba(255, 255, 255, .40);
  font-size: 21px;
}

.xhaus-chat-home .send span {
  width: auto;
  height: auto;
  border: 0;
  transform: none;
}

.xhaus-chat-home .note {
  position: absolute !important;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid rgba(183, 113, 67, .12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .56), rgba(255, 248, 238, .52));
  box-shadow: var(--sample-shadow-note), inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(255, 255, 255, .20);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
}

.xhaus-chat-home .note::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -18px;
  left: 12px;
  z-index: -1;
  height: 34px;
  background: radial-gradient(ellipse at center, rgba(132, 76, 39, .24), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.xhaus-chat-home .note::after {
  content: "";
  position: absolute;
  top: -65px;
  right: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 198, .48), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

.xhaus-chat-home .runtime-panel {
  display: block !important;
}

.xhaus-chat-home .butlers {
  left: 966px !important;
  top: 58px !important;
  z-index: 6;
  width: 448px !important;
  height: 248px !important;
  transform: rotate(-2.1deg);
}

.xhaus-chat-home .lower-control-row {
  position: static !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
}

.xhaus-chat-home .skills {
  left: 978px !important;
  top: 318px !important;
  z-index: 5;
  width: 430px !important;
  height: 238px !important;
  transform: rotate(1.25deg);
}

.xhaus-chat-home .memory {
  left: 886px !important;
  top: 566px !important;
  z-index: 4;
  width: 426px !important;
  height: 196px !important;
  transform: rotate(-1.15deg);
}

.xhaus-chat-home .satellite {
  left: 1318px !important;
  top: 566px !important;
  z-index: 3;
  width: 176px !important;
  height: 190px !important;
  padding: 16px 14px 12px !important;
  transform: rotate(1.8deg);
}

.xhaus-chat-home .panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #835037;
  font-size: 19px;
  font-weight: 950;
}

.xhaus-chat-home .panel-head span span {
  color: #ff8b7d;
}

.xhaus-chat-home .panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ad8065;
  font-size: 11px;
  font-weight: 800;
}

.xhaus-chat-home .text-action {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.xhaus-chat-home .butler-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 76px repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
}

.xhaus-chat-home .persona-choice-wrap {
  display: block;
  min-width: 0;
}

.xhaus-chat-home .persona-choice-wrap.is-create {
  order: -1;
}

.xhaus-chat-home .persona-choice {
  display: grid;
  width: 100%;
  height: 102px;
  place-items: center;
  align-content: center;
  padding: 8px;
  border: 1px solid rgba(221, 153, 103, .22);
  border-radius: 17px;
  background: rgba(255, 248, 237, .60);
  color: #8a5a42;
  box-shadow: inset 0 1px rgba(255, 255, 255, .62);
  text-align: center;
}

.xhaus-chat-home .persona-choice-wrap.is-active .persona-choice {
  border-color: rgba(255, 129, 121, .62);
  box-shadow: 0 16px 28px rgba(255, 129, 121, .10), inset 0 1px rgba(255, 255, 255, .74);
}

.xhaus-chat-home .persona-choice-wrap.is-active {
  position: relative;
}

.xhaus-chat-home .persona-choice-wrap.is-active::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #ff837a;
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 131, 122, .24);
  font-size: 10px;
}

.xhaus-chat-home .persona-card-img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}

.xhaus-chat-home .persona-card-plus {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #b88768;
  font-size: 27px;
  font-weight: 300;
}

.xhaus-chat-home .persona-card-title {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #8a5a42;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhaus-chat-home .persona-card-desc {
  display: block;
  width: 100%;
  overflow: hidden;
  margin-top: 3px;
  color: #b9947b;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhaus-chat-home .persona-delete {
  display: none;
}

.xhaus-chat-home .butler-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 26px auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #9b6a51;
  font-size: 11px;
}

.xhaus-chat-home .ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhaus-chat-home .mini-btn,
.xhaus-chat-home .tool-button,
.xhaus-chat-home .small-button,
.xhaus-chat-home .force-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(222, 153, 103, .22);
  border-radius: 12px;
  background: rgba(255, 248, 238, .68);
  color: #b5795d;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.xhaus-chat-home .runtime-hidden-controls,
.xhaus-chat-home .skill-card > .doc-title,
.xhaus-chat-home .skill-card > textarea,
.xhaus-chat-home .skill-card > .force-toggle,
.xhaus-chat-home .skill-card > .wide-action,
.xhaus-chat-home .skill-card > .expand-button,
.xhaus-chat-home .skill-card > .result-line,
.xhaus-chat-home .memory-card > .doc-title,
.xhaus-chat-home .memory-card > textarea,
.xhaus-chat-home .memory-card > .expand-button,
.xhaus-chat-home .drawer-close {
  display: none !important;
}

.xhaus-chat-home .skill-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  height: calc(100% - 36px);
  margin: 0;
  overflow: hidden;
}

.xhaus-chat-home .managed-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 40px 18px 18px;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(190, 125, 82, .10);
  background: transparent;
  color: #8c6048;
  box-shadow: none;
  font-size: 12px;
}

.xhaus-chat-home .managed-icon,
.xhaus-chat-home .skill-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff776d, #ffad75);
  color: #fff;
  box-shadow: 0 9px 18px rgba(255, 126, 101, .15);
  font-size: 12px;
}

.xhaus-chat-home .managed-main {
  min-width: 0;
}

.xhaus-chat-home .managed-title,
.xhaus-chat-home .managed-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhaus-chat-home .managed-title {
  color: #8c6048;
  font-size: 12px;
  font-weight: 850;
}

.xhaus-chat-home .managed-meta {
  margin-top: 1px;
  color: #c29d85;
  font-size: 9px;
}

.xhaus-chat-home .managed-switch {
  width: 36px;
  height: 21px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7d72, #ffa36f);
}

.xhaus-chat-home .managed-switch::after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  margin-left: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}

.xhaus-chat-home .item-actions,
.xhaus-chat-home .managed-placeholder-action {
  display: contents;
}

.xhaus-chat-home .item-actions .managed-edit,
.xhaus-chat-home .item-actions .managed-delete,
.xhaus-chat-home .managed-placeholder-action {
  display: inline-flex;
  width: 18px;
  min-width: 0;
  height: 24px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9d6c52;
  box-shadow: none;
  font-size: 0;
}

.xhaus-chat-home .item-actions .managed-edit::before,
.xhaus-chat-home .managed-placeholder-action::before {
  content: "✎";
  font-size: 12px;
}

.xhaus-chat-home .item-actions .managed-delete::before {
  content: "⌫";
  font-size: 12px;
}

.xhaus-chat-home .tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin: -2px 0 6px;
}

.xhaus-chat-home .tab {
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(218, 151, 101, .16);
  border-radius: 10px 10px 0 0;
  background: rgba(255, 247, 235, .54);
  color: #a57960;
  font-size: 11px;
  font-weight: 900;
}

.xhaus-chat-home .tab.active {
  background: rgba(255, 253, 248, .74);
  color: #ff776d;
}

.xhaus-chat-home .memory-expand-source,
.xhaus-chat-home .memory-list {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.xhaus-chat-home .memory-list {
  display: grid;
  gap: 8px;
  max-height: 104px;
  overflow: hidden;
}

.xhaus-chat-home .memory-list .managed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 44px;
  height: auto;
  padding: 8px 12px;
  border: 1px solid rgba(218, 151, 101, .14);
  border-radius: 12px;
  background: rgba(255, 252, 247, .56);
  color: #8c6048;
  font-size: 10px;
  line-height: 1.2;
}

.xhaus-chat-home .memory-list .managed-icon,
.xhaus-chat-home .memory-list .managed-switch,
.xhaus-chat-home .memory-list .item-actions {
  display: none;
}

.xhaus-chat-home .memory-list .managed-title {
  color: #8c6048;
  font-size: 11px;
  font-weight: 800;
}

.xhaus-chat-home .memory-list .managed-meta {
  color: #a2745b;
  font-size: 10px;
}

.xhaus-chat-home .satellite {
  background:
    linear-gradient(90deg, rgba(255, 252, 247, .78), rgba(255, 246, 234, .20)),
    url("./assets/satellite-bg.png") center / cover no-repeat !important;
}

.xhaus-chat-home .satellite::after {
  background: radial-gradient(circle, rgba(255, 241, 218, .38), transparent 70%);
}

.xhaus-chat-home .satellite .eyebrow {
  margin: 0 0 4px;
  color: #e56f63;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.xhaus-chat-home .satellite h3 {
  position: relative;
  z-index: 2;
  max-width: 132px;
  margin: 0 0 8px;
  color: #835037;
  font-size: 16px;
  line-height: 1.16;
}

.xhaus-chat-home .satellite p {
  position: relative;
  z-index: 2;
  max-width: 138px;
  margin: 0;
  color: #a6785d;
  font-size: 10px;
  line-height: 1.42;
}

.xhaus-chat-home .satellite .mini-btn {
  position: absolute;
  left: 16px;
  bottom: 72px;
  z-index: 3;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff836f, #ffad72);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 130, 105, .22);
  font-size: 10px;
}

.xhaus-chat-home .control-backdrop,
.control-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(112, 69, 42, .24);
  backdrop-filter: blur(8px);
}

.control-backdrop[hidden] {
  display: none !important;
}

body.control-open .xhaus-chat-home .runtime-panel.is-open,
body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card,
body.control-open .xhaus-chat-home .lower-control-row.is-open .memory-card {
  position: fixed !important;
  top: 72px !important;
  right: 72px !important;
  left: auto !important;
  z-index: 40 !important;
  display: block !important;
  width: 520px !important;
  height: auto !important;
  max-height: calc(100dvh - 120px) !important;
  transform: none !important;
  overflow: auto !important;
}

body.control-open .xhaus-chat-home .runtime-panel.is-open .activate-card,
body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card,
body.control-open .xhaus-chat-home .lower-control-row.is-open .memory-card {
  padding: 20px !important;
}

body.control-open .xhaus-chat-home .runtime-panel.is-open .runtime-hidden-controls {
  display: grid !important;
  gap: 10px;
}

body.control-open .xhaus-chat-home .runtime-panel.is-open .runtime-log {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(216, 148, 99, .16);
  border-radius: 14px;
  background: rgba(255, 252, 247, .72);
  color: #7c5038;
  white-space: pre-wrap;
}

body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card > .doc-title,
body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card > textarea,
body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card > .force-toggle,
body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card > .wide-action,
body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card > .expand-button,
body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card > .result-line,
body.control-open .xhaus-chat-home .lower-control-row.is-open .memory-card > .doc-title,
body.control-open .xhaus-chat-home .lower-control-row.is-open .memory-card > textarea,
body.control-open .xhaus-chat-home .lower-control-row.is-open .memory-card > .expand-button,
body.control-open .xhaus-chat-home .drawer-close {
  display: inline-flex !important;
}

body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card > textarea,
body.control-open .xhaus-chat-home .lower-control-row.is-open .memory-card > textarea {
  display: block !important;
}

body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-card > .doc-title,
body.control-open .xhaus-chat-home .lower-control-row.is-open .memory-card > .doc-title,
body.control-open .xhaus-chat-home .lower-control-row.is-open textarea,
body.control-open .xhaus-chat-home .runtime-panel.is-open input {
  width: 100%;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid rgba(216, 148, 99, .18);
  border-radius: 14px;
  background: rgba(255, 252, 247, .78);
  color: #7c5038;
  outline: 0;
}

body.control-open .xhaus-chat-home .lower-control-row.is-open .skill-list,
body.control-open .xhaus-chat-home .lower-control-row.is-open .memory-list {
  max-height: 220px;
  overflow: auto;
}

body.control-open .xhaus-chat-home .lower-control-row.is-open[data-active="skill"] .memory-card,
body.control-open .xhaus-chat-home .lower-control-row.is-open[data-active="memory"] .skill-card,
body.control-open .xhaus-chat-home .lower-control-row.is-open .satellite-card {
  display: none !important;
}

/* Main-page replica hard overrides: keep old console layout rules from leaking into the sample board. */
#appShell.xhaus-chat-home .sample-board > .runtime-panel.butlers:not(.is-open) {
  position: absolute !important;
  left: 966px !important;
  top: 58px !important;
  z-index: 6 !important;
  display: block !important;
  width: 448px !important;
  height: 248px !important;
  max-height: none !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(183, 113, 67, .12) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 248, 238, .54)) !important;
  box-shadow: var(--sample-shadow-note), inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(255, 255, 255, .20) !important;
  backdrop-filter: blur(28px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.18) !important;
  overflow: hidden !important;
  transform: rotate(-2.1deg) !important;
}

#appShell.xhaus-chat-home .runtime-panel:not(.is-open) > .activate-card {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .panel-head.compact {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choices {
  display: grid !important;
  grid-template-columns: 76px repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 102px !important;
  gap: 10px !important;
  height: 102px !important;
  max-height: none !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  padding: 0 !important;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choice-wrap,
#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choice {
  min-height: 0 !important;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choice {
  height: 102px !important;
  padding: 8px !important;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-card-img {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover !important;
  object-position: 50% 18% !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) {
  position: static !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .skill-card,
#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card,
#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .satellite-card {
  position: absolute !important;
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border: 1px solid rgba(183, 113, 67, .12) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .56), rgba(255, 248, 238, .52)) !important;
  box-shadow: var(--sample-shadow-note), inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(255, 255, 255, .20) !important;
  backdrop-filter: blur(28px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.18) !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .skill-card {
  left: 978px !important;
  top: 318px !important;
  z-index: 5 !important;
  width: 430px !important;
  height: 238px !important;
  padding: 18px 20px !important;
  transform: rotate(1.25deg) !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card {
  left: 886px !important;
  top: 566px !important;
  z-index: 4 !important;
  width: 426px !important;
  height: 196px !important;
  padding: 18px 20px !important;
  transform: rotate(-1.15deg) !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .satellite-card.satellite {
  left: 1318px !important;
  top: 566px !important;
  z-index: 3 !important;
  width: 176px !important;
  height: 190px !important;
  padding: 16px 14px 12px !important;
  transform: rotate(1.8deg) !important;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, .78), rgba(255, 246, 234, .20)),
    url("./assets/satellite-bg.png") center / cover no-repeat !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .satellite-card.satellite #satelliteStatus {
  display: -webkit-box !important;
  max-height: 42px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  word-break: break-word;
}

@media (max-width: 1100px) {
  #appShell.xhaus-chat-home {
    overflow: auto !important;
  }

  .sample-wrap {
    margin-left: 12px;
  }
}

/* Requested interaction polish, scoped to the main sample page only. */
#appShell.xhaus-chat-home #xhausStatus,
#appShell.xhaus-chat-home #openclawStatus {
  min-width: 64px !important;
  width: 64px !important;
  height: 42px !important;
  padding: 0 8px !important;
  gap: 8px !important;
}

#appShell.xhaus-chat-home #xhausStatus .status-text,
#appShell.xhaus-chat-home #openclawStatus .status-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

#appShell.xhaus-chat-home .top-status {
  left: 430px !important;
  width: 450px !important;
  justify-content: flex-start !important;
}

#appShell.xhaus-chat-home .butler-pill {
  min-width: 206px !important;
  justify-content: center !important;
  gap: 10px !important;
}

#appShell.xhaus-chat-home .visual::before,
#appShell.xhaus-chat-home .orb-wrap {
  display: none !important;
}

#appShell.xhaus-chat-home .composer {
  --model-paper: #fffaf3;
  --model-paper-hover: #fff6ea;
  --model-line: rgba(180, 111, 77, .28);
  --model-line-hover: rgba(180, 111, 77, .44);
  --model-ink: #6f4633;
  --model-ink-soft: #9a6a52;
  --model-focus: rgba(204, 121, 82, .22);
  --model-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  position: relative !important;
  display: grid !important;
  grid-template-areas:
    "plus input send"
    "tools tools tools" !important;
  grid-template-columns: 46px minmax(0, 1fr) 48px !important;
  grid-template-rows: 48px 38px !important;
  column-gap: 12px !important;
  row-gap: 8px !important;
  height: auto !important;
  min-height: 110px !important;
  margin: 0 6px !important;
  padding: 8px 12px !important;
  overflow: visible !important;
}

#appShell.xhaus-chat-home .composer .plus {
  grid-area: plus;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
}

#appShell.xhaus-chat-home .composer #messageInput {
  grid-area: input;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  line-height: 42px !important;
}

#appShell.xhaus-chat-home .composer .tools {
  grid-area: tools;
  display: grid !important;
  grid-template-columns: minmax(0, 170px) minmax(0, 196px) max-content;
  align-items: center !important;
  justify-content: end;
  gap: 12px !important;
  width: 100%;
  min-width: 0 !important;
  height: 38px !important;
  overflow: visible !important;
}

#appShell.xhaus-chat-home .composer .tools > span {
  display: inline-flex !important;
  width: 20px !important;
  height: 20px !important;
  align-items: center !important;
  justify-content: center !important;
  color: #a8795f !important;
  font-size: 16px !important;
}

#appShell.xhaus-chat-home .composer .send-button {
  grid-area: send;
  position: relative !important;
  display: inline-grid !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: linear-gradient(135deg, #ff756d, #ffa16f) !important;
  box-shadow: 0 15px 30px rgba(255, 116, 104, .24), inset 0 1px rgba(255, 255, 255, .40) !important;
  color: transparent !important;
  overflow: hidden !important;
  transform: none !important;
}

#appShell.xhaus-chat-home .composer .send-button::before {
  content: "➤";
  color: #fff;
  font-size: 22px;
  line-height: 1;
  transform: translateX(1px);
}

#appShell.xhaus-chat-home .composer .send-button span {
  display: none !important;
}

#appShell.xhaus-chat-home .composer .model-picker {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
}

#appShell.xhaus-chat-home .composer #modelSelect {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 38px;
  padding: 0 34px 0 13px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--model-line);
  border-radius: 12px;
  outline: 0;
  background-color: var(--model-paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5 6 6.25 10.75 1.5' fill='none' stroke='%23855a44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(250, 236, 219, .44));
  background-repeat: no-repeat, no-repeat;
  background-position: right 13px center, 0 0;
  background-size: 12px 8px, 100% 100%;
  box-shadow: inset 0 1px rgba(255, 255, 255, .94), 0 5px 14px rgba(112, 65, 42, .055);
  color: var(--model-ink);
  font-family: var(--model-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease;
}

#appShell.xhaus-chat-home .composer #modelSelect:not(:disabled):hover {
  border-color: var(--model-line-hover);
  background-color: var(--model-paper-hover);
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), 0 7px 17px rgba(112, 65, 42, .08);
}

#appShell.xhaus-chat-home .composer #modelSelect:focus-visible {
  border-color: rgba(181, 102, 65, .62);
  box-shadow: 0 0 0 3px var(--model-focus), inset 0 1px rgba(255, 255, 255, .96);
}

#appShell.xhaus-chat-home .composer #modelSelect:disabled {
  cursor: not-allowed;
  color: rgba(111, 70, 51, .54);
  opacity: .72;
}

#appShell.xhaus-chat-home .composer .gui-model-picker {
  gap: 7px;
  min-width: 0;
  padding-left: 11px;
  border: 1px solid var(--model-line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .96), rgba(250, 237, 222, .62));
  box-shadow: inset 0 1px rgba(255, 255, 255, .94), 0 5px 14px rgba(112, 65, 42, .055);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

#appShell.xhaus-chat-home .composer .gui-model-picker:hover {
  border-color: var(--model-line-hover);
  background-color: var(--model-paper-hover);
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), 0 7px 17px rgba(112, 65, 42, .08);
}

#appShell.xhaus-chat-home .composer .gui-model-picker:focus-within {
  border-color: rgba(181, 102, 65, .62);
  box-shadow: 0 0 0 3px var(--model-focus), inset 0 1px rgba(255, 255, 255, .96);
}

#appShell.xhaus-chat-home .composer .model-picker-prefix {
  color: var(--model-ink-soft);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#appShell.xhaus-chat-home .composer #guiModelSelect {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 36px;
  padding: 0 32px 0 2px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5 6 6.25 10.75 1.5' fill='none' stroke='%23855a44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 8px;
  color: var(--model-ink);
  font-family: var(--model-serif);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: color .16s ease;
}

#appShell.xhaus-chat-home .composer #guiModelSelect:disabled,
#appShell.xhaus-chat-home .composer .gui-task-button:disabled {
  cursor: not-allowed;
  color: rgba(111, 70, 51, .54);
  opacity: .68;
}

#appShell.xhaus-chat-home .composer .gui-task-button {
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--model-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf2, #f8e8d6);
  box-shadow: inset 0 1px rgba(255, 255, 255, .94), 0 5px 14px rgba(112, 65, 42, .055);
  color: var(--model-ink);
  font-family: var(--model-serif);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

#appShell.xhaus-chat-home .composer .gui-task-button:not(:disabled):hover {
  border-color: var(--model-line-hover);
  background: linear-gradient(180deg, #fff7ec, #f4dfc9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), 0 7px 17px rgba(112, 65, 42, .08);
}

#appShell.xhaus-chat-home .composer .gui-task-button:focus-visible {
  outline: 0;
  border-color: rgba(181, 102, 65, .62);
  box-shadow: 0 0 0 3px var(--model-focus), inset 0 1px rgba(255, 255, 255, .96);
}

#appShell.xhaus-chat-home .composer #messageInput:disabled {
  cursor: wait;
  opacity: .66;
}

@media (prefers-reduced-motion: reduce) {
  #appShell.xhaus-chat-home .composer #modelSelect,
  #appShell.xhaus-chat-home .composer #guiModelSelect,
  #appShell.xhaus-chat-home .composer .gui-model-picker,
  #appShell.xhaus-chat-home .composer .gui-task-button {
    transition: none;
  }
}

@container chat-shell (max-width: 560px) {
  #appShell.xhaus-chat-home .composer .tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
    gap: 8px !important;
  }

  #appShell.xhaus-chat-home .composer .model-picker-prefix {
    display: none;
  }

  #appShell.xhaus-chat-home .composer .gui-task-button {
    padding: 0 8px;
    font-size: 0;
  }

  #appShell.xhaus-chat-home .composer .gui-task-button::after {
    content: "GUI";
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  #appShell.xhaus-chat-home .sample-wrap,
  #appShell.xhaus-chat-home .sample-board {
    width: 100%;
    height: 100%;
    margin: 0;
    transform: none;
  }

  #appShell.xhaus-chat-home .sample-board > :not(.chat) {
    display: none !important;
  }

  #appShell.xhaus-chat-home .chat {
    inset: 12px;
    width: auto;
    height: auto;
    padding: 20px 16px 14px;
    border-radius: 24px;
  }

  #appShell.xhaus-chat-home .hero {
    padding: 0 8px 12px;
  }

  #appShell.xhaus-chat-home .hero h1 {
    font-size: 22px;
  }

  #appShell.xhaus-chat-home .quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 12px;
  }

  #appShell.xhaus-chat-home .chip {
    width: 100%;
    padding: 0 8px;
  }

  #appShell.xhaus-chat-home .visual {
    margin-right: 0;
    margin-left: 0;
  }

  #appShell.xhaus-chat-home .composer {
    margin: 0 !important;
  }
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choices {
  display: flex !important;
  gap: 10px !important;
  height: 114px !important;
  max-height: 114px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 10px !important;
  scrollbar-color: rgba(178, 119, 82, .38) rgba(255, 247, 237, .48);
  scrollbar-width: thin;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choice-wrap {
  flex: 0 0 82px !important;
  width: 82px !important;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choice {
  width: 82px !important;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choices::-webkit-scrollbar {
  height: 6px;
}

#appShell.xhaus-chat-home .runtime-panel.butlers:not(.is-open) .persona-choices::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(178, 119, 82, .38);
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card {
  left: 870px !important;
  width: 452px !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .satellite-card.satellite {
  left: 1330px !important;
}

#appShell.xhaus-chat-home .satellite h3 {
  max-width: none !important;
  white-space: nowrap !important;
  font-size: 15px !important;
  line-height: 1.1 !important;
}

#appShell.xhaus-chat-home .satellite .mini-btn {
  bottom: 48px !important;
}

#appShell.xhaus-chat-home .memory-card > .wide-action {
  display: none !important;
}

body.control-open #appShell.xhaus-chat-home {
  z-index: 10000 !important;
  isolation: isolate;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
}

/* Keep the full-viewport backdrop below the board stacking context. The board
   supplies the in-board blur, while the sibling backdrop covers the viewport
   margins as well. The modal card remains above both layers. */
body.control-open #appShell.xhaus-chat-home .sample-board {
  z-index: 41 !important;
}

body.control-open #appShell.xhaus-chat-home .sample-board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(116, 70, 40, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

body.control-open #controlBackdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  z-index: 40 !important;
  background: rgba(116, 70, 40, .18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  pointer-events: auto !important;
}

body.control-open #appShell.xhaus-chat-home .sample-board > .runtime-panel.is-open,
body.control-open #appShell.xhaus-chat-home .sample-board > .lower-control-row.is-open {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  z-index: 60 !important;
  display: block !important;
  width: 1480px !important;
  height: 820px !important;
  max-height: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
}

body.control-open #appShell.xhaus-chat-home .sample-board > .runtime-panel.is-open > .activate-card,
body.control-open #appShell.xhaus-chat-home .sample-board > .lower-control-row.is-open > .control-card {
  position: absolute !important;
  left: 410px !important;
  top: 96px !important;
  z-index: 62 !important;
  display: block !important;
  width: 660px !important;
  height: 600px !important;
  max-height: none !important;
  padding: 24px !important;
  border: 1px solid rgba(196, 126, 83, .18) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 247, 236, .78)) !important;
  box-shadow: 0 34px 90px rgba(122, 68, 35, .26), inset 0 1px rgba(255, 255, 255, .8) !important;
  backdrop-filter: blur(28px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.18) !important;
  overflow: hidden !important;
  transform: none !important;
}

body.control-open #appShell.xhaus-chat-home .sample-board > .runtime-panel.is-open {
  left: 0 !important;
  top: 0 !important;
}

body.control-open #appShell.xhaus-chat-home .sample-board > .runtime-panel.is-open > .activate-card {
  left: 330px !important;
  top: 82px !important;
  width: 820px !important;
  height: 620px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .panel-head,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .panel-head {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .drawer-close,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .drawer-close {
  display: inline-flex !important;
  width: 30px !important;
  height: 30px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 245, 235, .78) !important;
  color: #9d6a50 !important;
  font-size: 18px !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .panel-actions .mini-btn[data-open-control] {
  display: none !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-choices {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  height: 396px !important;
  max-height: 396px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px 4px 10px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-choice-wrap,
body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-choice {
  min-height: 176px !important;
  height: 176px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-choice {
  padding: 14px !important;
  border-radius: 20px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-card-img {
  width: 96px !important;
  height: 96px !important;
  margin-bottom: 10px !important;
  border-radius: 22px !important;
  object-fit: cover !important;
  object-position: 50% 18% !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-card-title {
  font-size: 14px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-card-desc {
  font-size: 11px !important;
  white-space: normal !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .butler-meta {
  margin-top: 16px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .runtime-hidden-controls {
  display: none !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .memory-card,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="memory"] > .skill-card,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open > .satellite-card {
  display: none !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="memory"] > .memory-card {
  display: grid !important;
  gap: 12px !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card {
  grid-template-rows: auto 46px 166px 34px 40px minmax(96px, 1fr) auto !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="memory"] > .memory-card {
  grid-template-rows: auto 46px 174px 40px auto minmax(120px, 1fr) !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .doc-title,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(214, 146, 98, .22) !important;
  border-radius: 15px !important;
  background: rgba(255, 252, 247, .82) !important;
  color: #744b35 !important;
  outline: 0 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .72) !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open textarea {
  min-height: 180px !important;
  resize: vertical !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .force-toggle,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .wide-action {
  display: inline-flex !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .force-toggle {
  width: max-content !important;
  height: 32px !important;
  min-height: 32px !important;
  gap: 8px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .force-toggle input {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .wide-action {
  width: max-content !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ff796e, #ffa370) !important;
  color: #fff !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .expand-button {
  display: none !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .doc-list {
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-item,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .memory-list .managed-item {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 44px 24px 24px !important;
  height: 48px !important;
  padding: 0 8px !important;
  border-radius: 14px !important;
  background: rgba(255, 251, 246, .60) !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-icon,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .memory-list .managed-icon {
  display: grid !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-switch,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .memory-list .managed-switch {
  display: block !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .item-actions,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .memory-list .item-actions {
  display: contents !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-main {
  min-width: 0 !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-title,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-meta {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-title {
  font-size: 12px !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-meta {
  font-size: 10px !important;
}

#appShell.xhaus-chat-home .message:not(.is-user)::before {
  content: none !important;
  display: none !important;
}

#appShell.xhaus-chat-home .brand-copy {
  align-items: center !important;
  line-height: 1 !important;
  transform: translateY(2px) !important;
}

#appShell.xhaus-chat-home .brand-copy span {
  display: none !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card {
  top: 548px !important;
}

#appShell.xhaus-chat-home .message:not(.is-user) {
  align-items: flex-start !important;
  gap: 12px !important;
}

#appShell.xhaus-chat-home .message-avatar {
  display: inline-flex !important;
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin-top: 4px !important;
  border-radius: 50% !important;
  background: rgba(255, 248, 238, .82) !important;
  box-shadow: 0 12px 28px rgba(135, 77, 43, .14) !important;
}

#appShell.xhaus-chat-home .message-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 20% !important;
}

#appShell.xhaus-chat-home .message:not(.is-user) .bubble {
  max-width: min(430px, calc(100% - 60px)) !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card {
  height: 220px !important;
}

#appShell.xhaus-chat-home .satellite .mini-btn {
  bottom: 30px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-choices {
  height: 412px !important;
  max-height: 412px !important;
  align-content: start !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-choice-wrap,
body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-choice {
  min-height: 190px !important;
  height: 190px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-choice {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  padding: 14px 12px !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-card-img {
  position: static !important;
  flex: 0 0 auto !important;
  width: 122px !important;
  height: 92px !important;
  margin: 0 auto 4px !important;
  border-radius: 22px !important;
  object-fit: cover !important;
  object-position: 50% 18% !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-card-title {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  color: #7b5139 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-card-desc {
  position: static !important;
  display: -webkit-box !important;
  width: 100% !important;
  min-height: 30px !important;
  margin: 0 !important;
  color: #c28d6f !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

body.control-open #appShell.xhaus-chat-home .runtime-panel.is-open .persona-card-plus {
  margin: 18px auto 8px !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card {
  gap: 10px !important;
  grid-template-rows: auto 42px 118px 32px 38px minmax(190px, 1fr) !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card > textarea {
  min-height: 118px !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card > .result-line {
  display: none !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card .doc-list {
  max-height: 196px !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card .managed-item {
  grid-template-columns: 34px minmax(0, 1fr) 44px 52px 52px !important;
  height: 42px !important;
  padding: 0 10px !important;
  column-gap: 6px !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card .managed-edit,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card .managed-delete {
  width: 48px !important;
  min-width: 48px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(212, 143, 96, .24) !important;
  border-radius: 11px !important;
  background: rgba(255, 247, 238, .78) !important;
  color: #9d6a50 !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card .managed-edit::before,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open[data-active="skill"] > .skill-card .managed-delete::before {
  content: none !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-edit,
body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-delete {
  display: inline-flex !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #9b6a51 !important;
  font-size: 0 !important;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-edit::before {
  content: "✎";
  font-size: 12px;
}

body.control-open #appShell.xhaus-chat-home .lower-control-row.is-open .managed-delete::before {
  content: "⌫";
  font-size: 12px;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card {
  height: 196px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card .memory-expand-source {
  height: 104px !important;
  max-height: 104px !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  padding-right: 0 !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card .doc-list {
  height: 104px !important;
  max-height: 104px !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 6px 28px 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(176, 119, 84, .48) transparent !important;
}


#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card .doc-list::-webkit-scrollbar {
  width: 6px !important;
}

#appShell.xhaus-chat-home .sample-board > .lower-control-row:not(.is-open) > .memory-card .doc-list::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(176, 119, 84, .48) !important;
}

#appShell.xhaus-chat-home .composer .send-button.is-generating {
  cursor: pointer !important;
  background: linear-gradient(135deg, #ff6f67, #ff9a6b) !important;
  box-shadow: 0 15px 30px rgba(255, 116, 104, .28), inset 0 1px rgba(255, 255, 255, .42) !important;
}

#appShell.xhaus-chat-home .composer .send-button.is-generating::before {
  content: "" !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) !important;
  transform: none !important;
}

#appShell.xhaus-chat-home .composer .send-button.is-generating::after {
  content: "" !important;
  position: absolute !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(255, 255, 255, .36) !important;
  border-top-color: rgba(255, 255, 255, .88) !important;
  animation: xhaus-output-spin .9s linear infinite !important;
}

#appShell.xhaus-chat-home .composer .send-button.is-generating span {
  display: none !important;
}

#appShell.xhaus-chat-home .bubble.is-pending {
  background: rgba(255, 250, 244, .78) !important;
  border-style: dashed !important;
}

#appShell.xhaus-chat-home .reply-pending {
  display: inline-flex !important;
  align-items: center !important;
  color: rgba(141, 87, 61, .72) !important;
  font-family: "KaiTi", "STKaiti", "Songti SC", serif !important;
  font-size: 15px !important;
  font-style: italic !important;
  letter-spacing: .04em !important;
  white-space: nowrap !important;
}

#appShell.xhaus-chat-home .reply-pending::after {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  margin-left: 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 128, 105, .78) !important;
  animation: xhaus-pending-pulse 1s ease-in-out infinite !important;
}

@keyframes xhaus-output-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes xhaus-pending-pulse {
  0%, 100% {
    opacity: .28;
    transform: scale(.75);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Viewport layers live directly under body so the scaled sample board can never
   clip a backdrop. This applies to detail, report, editor, and control layers. */
body > #controlBackdrop,
body > .detail-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
}

body > #controlBackdrop {
  z-index: 9000 !important;
}

body > .detail-overlay {
  z-index: 12000 !important;
}

body > .detail-overlay .detail-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(96, 61, 42, .34) !important;
  backdrop-filter: blur(16px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.05) !important;
}

/* The profile controls are useful, but must not crowd the document editor. */
body > .detail-overlay .editor-modal {
  width: min(980px, calc(100vw - 32px)) !important;
  height: min(850px, calc(100dvh - 32px)) !important;
  max-height: min(850px, calc(100dvh - 32px)) !important;
  min-height: 0 !important;
}

body > .detail-overlay .editor-modal .detail-head {
  flex: 0 0 auto !important;
}

body > .detail-overlay .editor-modal .editor-textarea {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* The avatar section belongs only to the four-step persona wizard. */
.profile-avatar-panel[hidden],
body > .detail-overlay .editor-modal:not(.is-profile-editor) .profile-avatar-panel {
  display: none !important;
}

body > .detail-overlay .editor-modal.is-profile-editor .profile-avatar-panel {
  flex: 0 0 auto !important;
  max-height: 272px !important;
  overflow: auto !important;
  gap: 10px !important;
  padding: 12px 20px 14px !important;
}

body > .detail-overlay .editor-modal.is-profile-editor .avatar-crop-shell,
body > .detail-overlay .editor-modal.is-profile-editor #avatarCropCanvas {
  width: 136px !important;
  height: 136px !important;
}

body > .detail-overlay .editor-modal.is-profile-editor .avatar-crop-shell {
  flex-basis: 136px !important;
}

body > .detail-overlay .editor-modal.is-profile-editor .avatar-gallery-item {
  width: 46px !important;
  height: 46px !important;
  flex-basis: 46px !important;
}

body > .detail-overlay .editor-modal.is-profile-editor .profile-copy-grid input {
  padding: 8px 10px !important;
}

/* Satellite actions share one stable size in both the compact and expanded views. */
#satelliteReportPanel .satellite-report-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

#satelliteReportPanel .satellite-observe-btn,
#satelliteReportPanel .satellite-open-report-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* The expanded Skill editor is a fixed shell. Its input and file list own
   their scrollbars, so the surrounding card never develops a page scrollbar. */
body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="skill"] > .skill-card {
  grid-template-rows: auto 42px 118px 32px 38px minmax(0, 1fr) !important;
  row-gap: 14px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="skill"] > .skill-card > textarea {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  resize: none !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(176, 119, 84, .48) transparent !important;
}

body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="skill"] > .skill-card .skill-list {
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 6px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(176, 119, 84, .48) transparent !important;
}

body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="skill"] > .skill-card > textarea::-webkit-scrollbar,
body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="skill"] > .skill-card .skill-list::-webkit-scrollbar {
  width: 6px !important;
}

body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="skill"] > .skill-card > textarea::-webkit-scrollbar-thumb,
body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="skill"] > .skill-card .skill-list::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(176, 119, 84, .48) !important;
}

#satelliteReportPanel .satellite-open-report-btn {
  border: 1px solid rgba(205, 132, 94, .3) !important;
  background: rgba(255, 251, 245, .82) !important;
  color: #9a6147 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  #satelliteReportPanel .satellite-report-head {
    gap: 8px !important;
  }

  #satelliteReportPanel .satellite-observe-btn,
  #satelliteReportPanel .satellite-open-report-btn {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
  }
}

/* Control panels leave the scaled board while open, so this layer can blur the
   true browser viewport and the active panel can remain above it. */
body.control-open #appShell.xhaus-chat-home .sample-board::after {
  display: none !important;
}

body.control-open #appShell.xhaus-chat-home > #controlBackdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 50 !important;
  width: 100vw !important;
  height: 100dvh !important;
  background: rgba(96, 61, 42, .34) !important;
  backdrop-filter: blur(16px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.05) !important;
}

body.control-open #appShell.xhaus-chat-home > .runtime-panel.is-open,
body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 60 !important;
  display: block !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  background: transparent !important;
  transform: none !important;
}

body.control-open #appShell.xhaus-chat-home > .runtime-panel.is-open > .activate-card,
body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open > .control-card {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: min(1000px, calc(100vw - 72px)) !important;
  height: min(720px, calc(100dvh - 72px)) !important;
  max-height: none !important;
  padding: 24px !important;
  overflow: auto !important;
  transform: translate(-50%, -50%) !important;
}

body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="skill"] > .memory-card,
body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open[data-active="memory"] > .skill-card,
body.control-open #appShell.xhaus-chat-home > .lower-control-row.is-open > .satellite-card {
  display: none !important;
}

@media (max-width: 760px) {
  body > .detail-overlay {
    padding: 12px !important;
  }

  body > .detail-overlay .editor-modal {
    width: min(100%, calc(100vw - 24px)) !important;
    height: calc(100dvh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
  }

  body > .detail-overlay .editor-modal.is-profile-editor .profile-avatar-toolbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body > .detail-overlay .editor-modal.is-profile-editor .profile-avatar-workbench {
    align-items: center !important;
    flex-direction: row !important;
  }

  body > .detail-overlay .editor-modal.is-profile-editor .avatar-crop-shell,
  body > .detail-overlay .editor-modal.is-profile-editor #avatarCropCanvas {
    width: 96px !important;
    height: 96px !important;
  }

  body > .detail-overlay .editor-modal.is-profile-editor .avatar-crop-shell {
    flex-basis: 96px !important;
  }
}
