:root {
  --ink: #172033;
  --muted: #778096;
  --line: #e7e8ef;
  --panel: #ffffff;
  --soft: #f5f5fa;
  --purple: #6658d9;
  --purple-dark: #4d40bc;
  --purple-soft: #eeeafd;
  --green: #23a67a;
  --red: #d65c68;
  --orange: #ef9a43;
  --shadow: 0 20px 50px rgba(45, 39, 88, .10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #f4f4f8;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  overflow: hidden;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.eyebrow { display: block; color: #918aa8; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.app-shell { display: grid; grid-template-columns: 82px 300px minmax(0, 1fr); grid-template-rows: minmax(0,1fr); width: 100%; height: 100%; }
.nav-rail {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 16px;
  color: #746d91;
  background: linear-gradient(180deg,#f7f7fc 0%,#f1f0f8 100%);
  border-right: 1px solid rgba(91,78,143,.08);
  box-shadow: 8px 0 26px rgba(31,26,54,.06);
}
.nav-rail::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 31%,rgba(118,101,224,.12),transparent 25%); }
.brand-mark {
  position: relative; z-index: 2; width: 50px; height: 50px; padding: 5px; overflow: hidden; border: 1px solid rgba(102,88,217,.12); border-radius: 17px; cursor: pointer;
  background: #fff;
  box-shadow: 0 12px 28px rgba(73,61,139,.16), inset 0 0 0 1px rgba(255,255,255,.72);
  transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease;
}
.brand-mark:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 30px rgba(73,61,139,.21); }
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: 11px; object-fit: contain; }
.rail-nav {
  position: absolute; z-index: 3; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 62px; margin: 0; padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.76); border-radius: 25px;
  background: rgba(255,255,255,.70); box-shadow: 0 20px 45px rgba(48,39,93,.15), inset 0 0 0 1px rgba(102,88,217,.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  isolation: isolate;
  transform: translate(-50%,-50%);
}
.rail-nav::before { content: ""; position: absolute; inset: 5px; z-index: -1; border-radius: 20px; background: linear-gradient(180deg,rgba(244,242,255,.84),rgba(255,255,255,.38)); }
.rail-button {
  --dock-scale: 1; --dock-shift-x: 0px; --dock-shift-y: 0px;
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(100,90,143,.08); border-radius: 50%; color: #77718b;
  background: rgba(250,250,253,.94); cursor: pointer; font-size: 10px;
  box-shadow: 0 5px 14px rgba(56,47,93,.08);
  transform: translate3d(var(--dock-shift-x),var(--dock-shift-y),0) scale(var(--dock-scale));
  transform-origin: center; will-change: transform;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .13s cubic-bezier(.2,.8,.2,1);
}
.rail-button:hover { z-index: 5; color: #fff; border-color: rgba(104,88,217,.45); background: linear-gradient(135deg,#8173e8,#5e50ca); box-shadow: 0 12px 24px rgba(86,70,190,.31); }
.rail-button.active { color: #fff; border-color: rgba(94,78,205,.5); background: linear-gradient(135deg,#7768df,#5546bb); box-shadow: 0 10px 24px rgba(80,63,183,.32), inset 0 0 0 1px rgba(255,255,255,.18); }
.rail-button.active::before { content: ""; position: absolute; left: -14px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #7565df; box-shadow: 0 0 0 4px rgba(117,101,223,.14),0 0 12px rgba(93,76,207,.55); transform: translateY(-50%); }
.rail-button > span:last-child { position: absolute; left: calc(100% + 17px); top: 50%; min-width: max-content; padding: 7px 10px; border: 1px solid rgba(86,75,132,.12); border-radius: 9px; color: #fff; background: rgba(35,29,58,.94); box-shadow: 0 10px 25px rgba(30,24,52,.2); font-size: 10px; font-weight: 750; letter-spacing: .02em; opacity: 0; pointer-events: none; transform: translate(-6px,-50%) scale(.96); transition: .16s ease; }
.rail-button > span:last-child::before { content: ""; position: absolute; right: 100%; top: 50%; border: 5px solid transparent; border-right-color: rgba(35,29,58,.94); transform: translateY(-50%); }
.rail-button:hover > span:last-child, .rail-button:focus-visible > span:last-child { opacity: 1; transform: translate(0,-50%) scale(1); }
.rail-button:focus-visible { outline: 3px solid rgba(102,88,217,.23); outline-offset: 3px; }
.rail-icon { display: grid; place-items: center; width: 21px; height: 21px; line-height: 1; }
.rail-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-spacer { flex: 1; }
.rail-create { position: relative; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(102,88,217,.18); border-radius: 15px; color: #685bd0; background: rgba(255,255,255,.74); box-shadow: 0 8px 20px rgba(62,51,112,.1); cursor: pointer; font-size: 24px; transition: .22s ease; }
.rail-create:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg,#7d6ee6,#5d4fc7); box-shadow: 0 12px 24px rgba(86,70,190,.28); transform: translateY(-2px) scale(1.05); }
.rail-user { position: relative; z-index: 2; width: 44px; height: 44px; margin-top: 14px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: #7466c7; box-shadow: 0 8px 19px rgba(73,58,151,.25); cursor: pointer; font-weight: 800; transition: .22s ease; }
.rail-user:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 24px rgba(73,58,151,.32); }
.rail-user i { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border: 2px solid #f3f2f9; border-radius: 50%; background: #42d39c; }

.context-panel { z-index: 3; display: flex; flex-direction: column; min-width: 0; padding: 24px 18px 16px; background: rgba(252,252,254,.98); border-right: 1px solid var(--line); }
.context-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.context-head h1 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.03em; }
.soft-icon { width: 36px; height: 36px; border: 1px solid #e3e1eb; border-radius: 12px; background: #fff; cursor: pointer; font-size: 21px; box-shadow: 0 6px 15px rgba(45,39,88,.05); }
.soft-icon:hover { color: var(--purple); border-color: #cbc4ef; }
.identity-strip { display: grid; grid-template-columns: 42px minmax(0,1fr) 30px; align-items: center; gap: 10px; margin-top: 19px; padding: 12px; border: 1px solid #ebe9f1; border-radius: 15px; background: linear-gradient(135deg,#fff,#f8f6ff); }
.identity-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#7770d8,#5143b7); font-weight: 800; box-shadow: 0 8px 16px rgba(89,71,188,.24); }
.identity-copy { min-width: 0; }
.identity-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.identity-copy > span { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 11px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #31bd8b; box-shadow: 0 0 0 3px rgba(49,189,139,.13); }
.logout-button { width: 28px; height: 28px; border: 0; border-radius: 9px; color: #8a849b; background: transparent; cursor: pointer; }
.logout-button:hover { color: var(--red); background: #fff0f1; }
.context-section { margin-top: 24px; min-height: 0; }
.conversation-section { display: flex; flex: 1; flex-direction: column; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 9px; color: #766f89; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.section-heading button { border: 0; color: var(--purple); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.section-heading-actions { display: flex; align-items: center; gap: 7px; }
.count-badge { display: grid; place-items: center; min-width: 21px; height: 19px; padding: 0 6px; border-radius: 9px; color: #746d87; background: #eceaf2; font-size: 10px; }
.agent-mini-list { display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow: auto; scrollbar-width: thin; }
.agent-mini {
  display: grid; grid-template-columns: 38px minmax(0,1fr) 9px; align-items: center; gap: 9px;
  width: 100%; padding: 9px; border: 1px solid transparent; border-radius: 13px; text-align: left; background: transparent; cursor: pointer;
}
.agent-mini:hover, .agent-mini.selected { border-color: #dfdaf8; background: #f4f1ff; }
.mini-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--agent-color); font-weight: 900; box-shadow: 0 7px 14px color-mix(in srgb, var(--agent-color) 25%, transparent); }
.agent-mini-copy { min-width: 0; }
.agent-mini-copy strong, .agent-mini-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-mini-copy strong { font-size: 13px; }
.agent-mini-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.mini-state { width: 7px; height: 7px; border-radius: 50%; background: #35bd8a; }
.agent-mini.running .mini-state { background: var(--agent-color); box-shadow: 0 0 0 4px color-mix(in srgb,var(--agent-color) 18%,transparent); animation: monitor-pulse 1.5s ease-in-out infinite; }
.agent-mini.running .agent-mini-copy span { color: var(--agent-color); font-weight: 750; }
.mini-state.archived { background: #bbb6c5; }
.search-box { display: flex; align-items: center; gap: 8px; height: 36px; margin-bottom: 8px; padding: 0 10px; border: 1px solid #e8e6ed; border-radius: 11px; color: #aaa5b5; background: #fff; }
.search-box:focus-within { border-color: #bdb4ef; box-shadow: 0 0 0 3px #eeeafd; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.conversation-list { flex: 1; min-height: 90px; overflow: auto; scrollbar-width: thin; }
.project-tree { padding: 1px 0 8px; }
.project-root-drop { display: flex; align-items: center; gap: 7px; margin: 1px 0 5px; padding: 7px 8px; border: 1px dashed #dedbe7; border-radius: 9px; color: #8c8698; background: #fbfbfd; font-size: 9px; cursor: default; }
.project-root-drop::before { content: "⌂"; color: #7166bd; font-size: 12px; }
.project-root-drop.selected { color: #6658d9; border-color: #cfc8ef; background: #f4f1ff; }
.project-root-drop.drop-target { color: var(--purple); border-color: #9e91e4; background: #f0edff; }
.project-branch { position: relative; }
.project-children { margin-left: 12px; padding-left: 7px; border-left: 1px solid #e4e1ea; }
.project-row { display: grid; grid-template-columns: 20px minmax(0,1fr) auto 24px; align-items: center; gap: 3px; min-height: 34px; margin: 1px 0; padding: 3px 2px 3px 3px; border-radius: 9px; cursor: pointer; }
.project-row:hover, .project-row.selected { background: #f0eef9; }
.project-row.drop-target { box-shadow: inset 0 0 0 1px #9d90e5; background: #ede9ff; }
.project-toggle { display: grid; place-items: center; width: 20px; height: 24px; border: 0; color: #9c96a8; background: transparent; cursor: pointer; font-size: 9px; }
.project-folder { position: relative; min-width: 0; display: flex; align-items: center; gap: 6px; }
.project-folder::before { content: ""; flex: 0 0 auto; width: 15px; height: 11px; border-radius: 2px 3px 3px 3px; background: #d7b65f; box-shadow: inset 0 -2px 0 rgba(126,92,19,.12); }
.project-folder::after { content: ""; position: absolute; left: 1px; top: 5px; width: 7px; height: 3px; border-radius: 2px 2px 0 0; background: #e0c06d; }
.project-folder strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.project-count { min-width: 17px; padding: 2px 5px; border-radius: 8px; color: #9891a4; background: #ebe9f0; text-align: center; font-size: 8px; }
.tree-menu-button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; color: #9b95a5; background: transparent; cursor: pointer; font-size: 12px; letter-spacing: 1px; }
.tree-menu-button:hover { color: var(--purple); background: #e8e4fa; }
.conversation-item { display: grid; grid-template-columns: 22px minmax(0,1fr) 24px; align-items: center; gap: 5px; width: 100%; margin: 1px 0; padding: 6px 2px 6px 5px; border: 0; border-radius: 9px; text-align: left; background: transparent; cursor: pointer; }
.conversation-item:hover { background: #f4f3f8; }
.conversation-item.active { color: var(--purple-dark); background: #eeebfb; }
.conversation-item.dragging { opacity: .45; }
.conversation-icon { position: relative; width: 15px; height: 12px; margin-left: 2px; border: 1.5px solid #aaa5b8; border-radius: 5px; }
.conversation-icon::after { content: ""; position: absolute; left: 2px; bottom: -4px; width: 4px; height: 4px; border-left: 1.5px solid #aaa5b8; transform: skew(-24deg); }
.conversation-copy { min-width: 0; }
.conversation-copy strong, .conversation-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy strong { font-size: 11px; font-weight: 700; }
.conversation-copy span { margin-top: 3px; color: #9a94a8; font-size: 8px; }
.item-context-menu { position: fixed; z-index: 90; width: 164px; padding: 5px; border: 1px solid #dedbe6; border-radius: 11px; background: rgba(255,255,255,.98); box-shadow: 0 15px 38px rgba(31,26,53,.2); backdrop-filter: blur(8px); }
.item-context-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 9px; border: 0; border-radius: 7px; color: #5f596b; text-align: left; background: transparent; cursor: pointer; font-size: 9px; }
.item-context-menu button:hover { color: var(--purple); background: #f1eefc; }
.item-context-menu button.danger { color: var(--red); }
.item-context-menu hr { height: 1px; margin: 4px 3px; border: 0; background: #ece9f0; }
.empty-list { padding: 18px 10px; color: #aaa5b4; text-align: center; font-size: 11px; }
.isolation-card { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px; border: 1px solid #e3efe9; border-radius: 13px; background: #f1faf6; }
.shield-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #229c73; background: #dff4ea; font-weight: 900; }
.isolation-card strong, .isolation-card small { display: block; }
.isolation-card strong { color: #30725d; font-size: 11px; }
.isolation-card small { margin-top: 3px; color: #79a291; font-size: 9px; line-height: 1.4; }

.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: #f5f5f8; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 28px; border-bottom: 1px solid #e5e5eb; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); }
.crumbs span { display: block; color: #918a9f; font-size: 10px; }
.crumbs strong { display: block; margin-top: 4px; font-size: 17px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.background-picker-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.background-picker-button span { color: #6e62c7; font-size: 15px; line-height: 1; }
.secure-pill { display: flex; align-items: center; gap: 7px; margin-right: 5px; padding: 8px 12px; border: 1px solid #e5ece8; border-radius: 20px; color: #638074; background: #f8fcfa; font-size: 10px; }
.secure-pill i { width: 7px; height: 7px; border-radius: 50%; background: #30b983; box-shadow: 0 0 0 3px #e3f5ee; }
.primary-button, .secondary-button { height: 38px; padding: 0 15px; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 750; transition: .18s ease; }
.primary-button { border: 0; color: #fff; background: linear-gradient(135deg,#7767e2,#5a4bc7); box-shadow: 0 9px 18px rgba(93,75,198,.22); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 11px 22px rgba(93,75,198,.3); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button span { margin-right: 5px; }
.secondary-button { border: 1px solid #e0dee7; color: #615b70; background: #fff; }
.secondary-button:hover { border-color: #bfb7ea; color: var(--purple); background: #faf9ff; }
.primary-button.large, .secondary-button.large { height: 42px; padding: 0 18px; }
.view { display: none; flex: 1; min-height: 0; overflow: auto; }
.view.active { display: block; }
.office-layout { display: grid; grid-template-columns: minmax(620px,1fr) 320px; gap: 18px; height: 100%; padding: 18px; }
.office-stage-card, .activity-panel { min-width: 0; min-height: 0; border: 1px solid #e5e4eb; border-radius: 19px; background: #fff; box-shadow: 0 12px 36px rgba(48,43,78,.06); }
.office-stage-card { display: flex; flex-direction: column; overflow: hidden; }
.office-card-head { display: flex; align-items: center; justify-content: space-between; min-height: 102px; padding: 20px 24px; border-bottom: 1px solid #eceaf1; }
.office-card-head h2 { margin: 4px 0; font-size: 22px; letter-spacing: -.03em; }
.office-card-head p { margin: 0; color: var(--muted); font-size: 11px; }
.office-stats { display: flex; gap: 25px; }
.office-stats div { min-width: 54px; }
.office-stats strong, .office-stats span { display: block; }
.office-stats strong { font-size: 21px; }
.office-stats span { margin-top: 3px; color: #9993a7; font-size: 9px; }
.office-scene { position: relative; flex: 1; min-height: 480px; overflow: hidden; background: #dfe2f0; perspective: 900px; isolation: isolate; }
.office-scene::before, .office-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .28s ease; }
.office-scene::before { z-index: 0; background-image: var(--workspace-background-image); background-position: center; background-size: cover; transform: scale(1.012); }
.office-scene::after {
  z-index: 1;
  inset: -14px;
  background: linear-gradient(45deg,rgba(242,246,253,.72) 0%,rgba(242,246,253,.61) 18%,rgba(242,246,253,.47) 36%,rgba(242,246,253,.32) 54%,rgba(242,246,253,.19) 70%,rgba(242,246,253,.08) 85%,rgba(242,246,253,0) 100%);
  -webkit-backdrop-filter: blur(13px) saturate(.88);
  backdrop-filter: blur(13px) saturate(.88);
  -webkit-mask-image: linear-gradient(45deg,#000 0%,rgba(0,0,0,.90) 18%,rgba(0,0,0,.74) 36%,rgba(0,0,0,.56) 54%,rgba(0,0,0,.36) 70%,rgba(0,0,0,.16) 85%,transparent 100%);
  mask-image: linear-gradient(45deg,#000 0%,rgba(0,0,0,.90) 18%,rgba(0,0,0,.74) 36%,rgba(0,0,0,.56) 54%,rgba(0,0,0,.36) 70%,rgba(0,0,0,.16) 85%,transparent 100%);
}
.office-scene.has-photo-background::before, .office-scene.has-photo-background::after { opacity: 1; }
.office-scene.has-photo-background[data-background-tone="dark"]::after { background: linear-gradient(45deg,rgba(20,28,46,.60) 0%,rgba(20,28,46,.50) 18%,rgba(20,28,46,.39) 36%,rgba(20,28,46,.28) 54%,rgba(20,28,46,.17) 70%,rgba(20,28,46,.07) 85%,rgba(20,28,46,0) 100%); -webkit-backdrop-filter: blur(13px) saturate(.9) brightness(.92); backdrop-filter: blur(13px) saturate(.9) brightness(.92); }
.office-scene.has-photo-background .scene-skyline { opacity: 0; }
.office-scene.has-photo-background .scene-wall { z-index: 2; border-color: transparent; background: transparent; box-shadow: none; }
.office-scene.has-photo-background .scene-wall::after { display: none; }
.office-scene.has-photo-background .scene-floor { z-index: 2; inset: 57% 0 0; background: linear-gradient(180deg,transparent,rgba(94,75,67,.17) 30%,rgba(75,58,53,.48)); }
.office-scene.has-photo-background[data-background-tone="dark"] .scene-floor { background: linear-gradient(180deg,transparent,rgba(12,18,29,.18) 28%,rgba(12,17,28,.64)); }
.office-scene.has-photo-background[data-background-category="feierkang-brand"] .scene-floor,
.office-scene.has-photo-background[data-background-category="feierkang-brand"] .floor-rug { display: none; }
.office-scene.has-photo-background .floor-rug { opacity: .27; }
.office-scene.has-photo-background .office-logo, .office-scene.has-photo-background .wall-board { backdrop-filter: blur(10px); }
.scene-skyline { position: absolute; inset: 0 0 48% 0; background: linear-gradient(180deg,#d9dcf4 0%,#eef0fb 72%,#cacde4 73%,#c1c5dc 100%); overflow: hidden; }
.scene-skyline::before { content: ""; position: absolute; width: 82px; height: 82px; right: 11%; top: 35px; border-radius: 50%; background: rgba(255,246,204,.85); box-shadow: 0 0 45px rgba(255,242,178,.9); }
.sky-building { position: absolute; bottom: 0; border-radius: 4px 4px 0 0; background: linear-gradient(90deg,rgba(102,105,145,.25),rgba(126,132,172,.42)); box-shadow: inset 0 10px 0 rgba(255,255,255,.1); }
.sky-building::after { content: ""; position: absolute; inset: 12px 8px; background: repeating-linear-gradient(180deg,rgba(247,239,190,.56) 0 5px,transparent 5px 13px), repeating-linear-gradient(90deg,transparent 0 10px,rgba(247,239,190,.38) 10px 15px); opacity: .7; }
.b1 { left: 1%; width: 12%; height: 58%; }.b2 { left: 15%; width: 17%; height: 82%; }.b3 { left: 34%; width: 13%; height: 48%; }
.b4 { right: 35%; width: 15%; height: 71%; }.b5 { right: 17%; width: 16%; height: 51%; }.b6 { right: 1%; width: 14%; height: 78%; }
.scene-wall { position: absolute; left: 4%; right: 4%; top: 7%; height: 38%; border: 10px solid #f6f2ea; border-bottom-width: 14px; border-radius: 5px; background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.01)); box-shadow: 0 8px 0 #aaa6ad, 0 14px 22px rgba(51,47,70,.14); }
.scene-wall::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; background: #f6f2ea; box-shadow: -2px 0 0 #aaa6ad; }
.office-logo { position: absolute; z-index: 2; left: 3%; top: 8%; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #645e78; background: rgba(255,255,255,.9); box-shadow: 0 5px 14px rgba(53,48,77,.1); }
.office-logo span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #fff; background: var(--purple); font-size: 14px; font-weight: 900; font-style: italic; }
.office-logo strong { font-size: 7px; letter-spacing: .1em; line-height: 1.25; }
.wall-board { position: absolute; z-index: 2; right: 3%; top: 9%; width: 155px; padding: 9px 11px; border: 4px solid #efede7; border-radius: 4px; background: #394455; box-shadow: 0 5px 10px rgba(27,30,45,.18); }
.wall-board span, .wall-board strong { display: block; color: #fff; }.wall-board span { color: #aab4c2; font-size: 7px; }.wall-board strong { margin-top: 4px; font-size: 8px; }
.wall-board i { display: block; width: 70%; height: 3px; margin-top: 6px; border-radius: 2px; background: linear-gradient(90deg,#8c7ee7 70%,#566172 70%); }
.wall-clock { position: absolute; z-index: 2; left: 48%; top: 8%; width: 34px; height: 34px; border: 4px solid #f7f5ee; border-radius: 50%; background: #fff; box-shadow: 0 4px 8px rgba(48,43,66,.15); }
.wall-clock span, .wall-clock b { position: absolute; left: 15px; top: 7px; width: 2px; height: 10px; border-radius: 2px; background: #686278; transform-origin: bottom; }
.wall-clock b { height: 8px; transform: rotate(125deg); }
.plant { position: absolute; z-index: 4; bottom: -24px; width: 44px; height: 78px; }
.plant-left { left: 1%; }.plant-right { right: 1%; }
.plant i { position: absolute; bottom: 22px; left: 15px; width: 17px; height: 42px; border-radius: 100% 0 100% 0; background: #4a9a78; transform-origin: bottom; }
.plant i:nth-child(2) { transform: rotate(-43deg); background: #5dad86; }.plant i:nth-child(3) { transform: rotate(43deg); background: #367f65; }
.plant b { position: absolute; bottom: 0; left: 9px; width: 32px; height: 29px; border-radius: 5px 5px 13px 13px; background: #d28b58; box-shadow: inset 0 5px 0 #e5a776; }
.scene-floor { position: absolute; inset: 44% 0 0; background: linear-gradient(135deg,#c7ad91 25%,#bfa587 25% 50%,#c9b092 50% 75%,#bea184 75%); background-size: 80px 80px; transform-origin: top; }
.scene-floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(255,255,255,.18),rgba(70,50,40,.05)); }
.floor-rug { position: absolute; left: 22%; right: 22%; bottom: 10%; height: 45%; border: 4px solid rgba(255,255,255,.15); border-radius: 50%; background: radial-gradient(ellipse,#b0a5d3 0 55%,#8e82bc 56% 64%,#c4bce0 65%); opacity: .55; transform: rotateX(62deg); }
.agent-floor { position: absolute; z-index: 5; inset: 18% 12% 4%; display: grid; grid-template-columns: repeat(2,minmax(180px,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 3% 7%; align-items: center; }
.office-agent { position: relative; min-width: 0; height: 100%; border: 0; background: transparent; cursor: default; }
.office-agent.selected .office-computer { filter: drop-shadow(0 0 12px color-mix(in srgb,var(--agent-color) 45%,transparent)); }
.office-computer { position: absolute; z-index: 2; left: 50%; bottom: 12px; display: block; width: min(270px,98%); aspect-ratio: 3 / 2; transform: translateX(-50%); filter: drop-shadow(0 12px 12px rgba(38,43,74,.16)); }
.office-computer > img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.office-desk { position: absolute; left: 8%; right: 8%; bottom: 9%; height: 48px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg,#87644f 0 10px,#69493a 10px 100%); box-shadow: 0 12px 12px rgba(58,42,35,.18); }
.office-desk::before, .office-desk::after { content: ""; position: absolute; bottom: -22px; width: 8px; height: 27px; border-radius: 0 0 3px 3px; background: #49372f; }
.office-desk::before { left: 13px; }.office-desk::after { right: 13px; }
.office-monitor { position: absolute; z-index: 3; left: 25%; top: 14%; display: flex; flex-direction: column; width: 45%; height: 36%; padding: 5px 6px; overflow: hidden; border: 0; border-radius: 8px; color: #dce7f8; background: rgba(12,25,47,.08); box-shadow: none; text-align: left; }
.office-monitor::before, .office-monitor::after { display: none; }
.monitor-topline { position: relative; z-index: 1; display: grid; grid-template-columns: 6px minmax(0,1fr) auto; align-items: center; gap: 4px; min-height: 9px; }
.monitor-topline i { width: 5px; height: 5px; border-radius: 50%; background: #35bd8a; box-shadow: 0 0 6px rgba(53,189,138,.65); }
.monitor-topline b { overflow: hidden; color: #eaf2ff; text-overflow: ellipsis; white-space: nowrap; font-size: 7px; letter-spacing: .04em; }
.monitor-topline em { color: #8ca1bd; font-size: 6px; font-style: normal; }
.monitor-task { position: relative; z-index: 1; display: -webkit-box; min-height: 23px; margin-top: 3px; overflow: hidden; color: #fff; font-size: 7px; font-weight: 780; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.monitor-stage { position: relative; z-index: 1; margin-top: auto; overflow: hidden; color: #91a5c1; text-overflow: ellipsis; white-space: nowrap; font-size: 6px; }
.monitor-progress { position: relative; z-index: 1; height: 2px; margin-top: 4px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.12); }
.monitor-progress i { display: block; width: var(--monitor-progress,0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--agent-color),#76d7ff); transition: width .25s ease; }
.agent-character { position: absolute; z-index: 4; left: 50%; bottom: 24px; width: 114px; height: 123px; margin-left: -138px; padding: 0; border: 0; outline: 0; background: transparent; cursor: pointer; }
.workspace-pet-sprite { position: absolute; left: 50%; bottom: 0; display: block; width: 114px; height: 123px; background-image: var(--pet-spritesheet); background-position: 0 0; background-size: 800% 1100%; background-repeat: no-repeat; filter: drop-shadow(0 10px 10px rgba(40,34,64,.24)); transform: translateX(-50%); transform-origin: 50% 86%; }
.workspace-pet-sprite[data-pet-state="idle"] { background-position-y: 0; animation: workspace-pet-frames-6 2.4s steps(1,end) infinite; }
.workspace-pet-sprite[data-pet-state="jumping"] { background-position-y: 40%; animation: workspace-pet-frames-5 .9s steps(1,end) infinite; }
.workspace-pet-sprite[data-pet-state="failed"] { background-position-y: 50%; animation: workspace-pet-frames-8 1.35s steps(1,end) infinite; }
.workspace-pet-sprite[data-pet-state="waiting"] { background-position-y: 60%; animation: workspace-pet-frames-6 1.7s steps(1,end) infinite; }
.workspace-pet-sprite[data-pet-state="running"] { background-position-y: 70%; animation: workspace-pet-frames-6 .78s steps(1,end) infinite; }
.workspace-pet-sprite[data-pet-state="review"] { background-position-y: 80%; animation: workspace-pet-frames-6 1.18s steps(1,end) infinite; }
.agent-character > span { position: absolute; z-index: 2; left: 50%; bottom: -8px; padding: 3px 6px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; color: #625878; background: rgba(255,255,255,.9); box-shadow: 0 4px 10px rgba(45,35,65,.12); font-size: 6px; font-weight: 800; opacity: 0; transform: translate(-50%,4px); transition: .18s ease; white-space: nowrap; }
.agent-character:hover > span, .agent-character:focus-visible > span { opacity: 1; transform: translate(-50%,0); }
.agent-character:hover .workspace-pet-sprite, .agent-character:focus-visible .workspace-pet-sprite { filter: drop-shadow(0 0 11px color-mix(in srgb,var(--agent-color) 45%,transparent)) drop-shadow(0 8px 8px rgba(40,34,64,.22)); }
.agent-character:focus-visible { border-radius: 18px; box-shadow: 0 0 0 3px rgba(255,255,255,.9),0 0 0 5px color-mix(in srgb,var(--agent-color) 55%,transparent); }
.agent-nameplate { position: absolute; z-index: 6; left: 50%; bottom: -2px; width: 90%; transform: translateX(-50%); padding: 7px 9px; border: 1px solid rgba(255,255,255,.75); border-radius: 11px; background: rgba(255,255,255,.88); box-shadow: 0 7px 16px rgba(50,42,65,.12); backdrop-filter: blur(7px); text-align: left; }
.agent-nameplate strong, .agent-nameplate span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-nameplate strong { font-size: 10px; }.agent-nameplate span { margin-top: 2px; color: #878193; font-size: 7px; }
.office-agent.running .office-computer { filter: drop-shadow(0 0 18px color-mix(in srgb,var(--agent-color) 62%,transparent)) drop-shadow(0 12px 12px rgba(38,43,74,.16)); }
.office-agent.running .monitor-topline i { background: #76d7ff; box-shadow: 0 0 8px #76d7ff; animation: monitor-pulse 1.25s ease-in-out infinite; }
.office-agent.running .monitor-task { color: #fff; }
.office-agent:not(.running) .monitor-progress { opacity: .45; }
@keyframes workspace-pet-frames-5 { 0%,19% { background-position-x: 0; } 20%,39% { background-position-x: 14.2857%; } 40%,59% { background-position-x: 28.5714%; } 60%,79% { background-position-x: 42.8571%; } 80%,99% { background-position-x: 57.1429%; } 100% { background-position-x: 0; } }
@keyframes workspace-pet-frames-6 { 0%,15% { background-position-x: 0; } 16%,31% { background-position-x: 14.2857%; } 32%,47% { background-position-x: 28.5714%; } 48%,63% { background-position-x: 42.8571%; } 64%,79% { background-position-x: 57.1429%; } 80%,99% { background-position-x: 71.4286%; } 100% { background-position-x: 0; } }
@keyframes workspace-pet-frames-8 { 0%,11% { background-position-x: 0; } 12%,23% { background-position-x: 14.2857%; } 24%,35% { background-position-x: 28.5714%; } 36%,47% { background-position-x: 42.8571%; } 48%,59% { background-position-x: 57.1429%; } 60%,71% { background-position-x: 71.4286%; } 72%,83% { background-position-x: 85.7143%; } 84%,99% { background-position-x: 100%; } 100% { background-position-x: 0; } }
@keyframes monitor-pulse { 0%,100% { opacity: .55; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.18); } }
.office-empty { position: absolute; z-index: 8; right: 6%; bottom: 7%; display: flex; flex-direction: column; align-items: center; padding: 15px 20px; border: 1px dashed rgba(84,72,132,.35); border-radius: 13px; background: rgba(255,255,255,.75); backdrop-filter: blur(8px); }
.office-empty strong { font-size: 11px; }.office-empty span { margin-top: 3px; color: #8a8496; font-size: 8px; }.office-empty button { margin-top: 8px; border: 0; color: var(--purple); background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.activity-panel { display: flex; flex-direction: column; padding: 18px; overflow: hidden; }
.activity-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #efedf2; }
.activity-head h3 { margin: 4px 0 0; font-size: 17px; }
.live-badge { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 10px; color: #248966; background: #eaf8f2; font-size: 8px; font-weight: 900; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #2dbc88; box-shadow: 0 0 0 3px rgba(45,188,136,.15); }
.activity-agent-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 13px; padding: 11px; border: 1px solid #e7e3ef; border-radius: 13px; background: linear-gradient(135deg,#fff,#f7f5ff); }
.activity-agent-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--activity-agent-color,var(--purple)); box-shadow: 0 8px 17px color-mix(in srgb,var(--activity-agent-color,var(--purple)) 25%,transparent); font-size: 12px; font-weight: 900; }
.activity-agent-copy { min-width: 0; }.activity-agent-copy strong,.activity-agent-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.activity-agent-copy strong { font-size: 12px; }.activity-agent-copy span { margin-top: 4px; color: #918a9b; font-size: 8px; }
.activity-agent-status { padding: 5px 7px; border-radius: 9px; color: #337e64; background: #e9f7f1; font-size: 8px; font-weight: 900; }.activity-agent-status.running { color: #6355bd; background: #eeebff; }.activity-agent-status.success { color: #2d8565; background: #e7f7f0; }.activity-agent-status.error { color: #b04d57; background: #fff0f1; }
.activity-task-card { margin-top: 10px; padding: 11px; border-radius: 13px; color: #5f586f; background: #f5f3fa; }
.activity-task-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.activity-task-head span { color: #9891a3; font-size: 8px; }.activity-task-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5b50b6; font-size: 9px; }
.activity-task-card p { min-height: 30px; margin: 8px 0; color: #6f687c; font-size: 9px; line-height: 1.5; }
.activity-progress { height: 4px; overflow: hidden; border-radius: 4px; background: #dfdbe9; }.activity-progress i { display: block; width: var(--activity-progress,0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#8b7be8,#5d4fc5); transition: width .25s ease; }
.activity-task-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: #9a93a3; font-size: 7px; }.activity-task-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.activity-task-meta span:first-child { flex: 1; }
.activity-list-head { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding: 0 2px; }.activity-list-head strong { font-size: 9px; }.activity-list-head span { color: #a19aa9; font-size: 7px; }
.timeline { flex: 1; min-height: 100px; margin: 9px 0 11px; overflow: auto; scrollbar-width: thin; }
.timeline-item { position: relative; padding: 0 0 17px 30px; }
.timeline-item::before { content: ""; position: absolute; left: 10px; top: 17px; bottom: -2px; width: 1px; background: #e3e0eb; }
.timeline-item:last-child::before { display: none; }
.timeline-mark { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 21px; height: 21px; border: 3px solid #f1eff8; border-radius: 50%; color: #fff; background: var(--event-color,#7d6dde); font-size: 8px; font-weight: 900; }
.timeline-copy strong, .timeline-copy span, .timeline-copy small { display: block; }
.timeline-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }.timeline-title-row em { flex: 0 0 auto; padding: 2px 5px; border-radius: 6px; color: #766bb4; background: #eeebfa; font-size: 6px; font-style: normal; font-weight: 800; }
.timeline-copy strong { min-width: 0; padding-top: 1px; font-size: 9px; }.timeline-copy span { margin-top: 4px; color: #817a8e; font-size: 8px; line-height: 1.48; }.timeline-copy small { margin-top: 4px; color: #b0aab7; font-size: 7px; }
.timeline-empty { padding: 18px 8px; color: #9c95a6; text-align: center; font-size: 8px; line-height: 1.55; }
.quick-command { padding: 13px; border: 1px solid #e7e3fa; border-radius: 14px; background: linear-gradient(145deg,#f8f6ff,#f0edfc); }
.quick-command > span { color: #948ba6; font-size: 8px; }.quick-command > strong { display: block; margin-top: 4px; font-size: 12px; }
.quick-prompts { display: flex; flex-direction: column; gap: 5px; margin-top: 9px; }
.quick-prompts button { padding: 7px 8px; border: 1px solid #e1dcf7; border-radius: 9px; color: #6d6680; text-align: left; background: rgba(255,255,255,.78); cursor: pointer; font-size: 8px; }
.quick-prompts button:hover { color: var(--purple); border-color: #beb4ef; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; padding: 30px 34px 22px; }
.page-intro h2 { margin: 5px 0; font-size: 27px; letter-spacing: -.04em; }.page-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.agent-library-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 34px 16px; padding: 11px 13px; border: 1px solid #e7e5eb; border-radius: 13px; background: #fff; }
.filter-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f1f0f5; }
.filter-tabs button { padding: 7px 13px; border: 0; border-radius: 8px; color: #858092; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.filter-tabs button.active { color: #5247af; background: #fff; box-shadow: 0 4px 10px rgba(50,43,78,.08); }
.library-security { display: flex; align-items: center; gap: 6px; color: #5e8978; font-size: 9px; }
.agent-library { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 15px; padding: 0 34px 34px; }
.agent-card { position: relative; min-height: 235px; padding: 18px; border: 1px solid #e5e3eb; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(51,44,81,.055); overflow: hidden; transition: .2s ease; }
.agent-card::before { content: ""; position: absolute; width: 160px; height: 160px; right: -70px; top: -85px; border-radius: 50%; background: color-mix(in srgb,var(--agent-color) 11%,transparent); }
.agent-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--agent-color) 30%,#e5e3eb); box-shadow: 0 16px 34px rgba(51,44,81,.09); }
.agent-card.archived { opacity: .64; filter: grayscale(.3); }
.agent-card-head { position: relative; display: flex; align-items: center; gap: 12px; }
.card-avatar { display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid rgba(255,255,255,.8); border-radius: 16px; color: #fff; background: var(--agent-color); box-shadow: 0 8px 19px color-mix(in srgb,var(--agent-color) 27%,transparent); font-size: 17px; font-weight: 900; }
.agent-card-title { min-width: 0; flex: 1; }.agent-card-title strong, .agent-card-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.agent-card-title strong { font-size: 15px; }.agent-card-title span { margin-top: 5px; color: #9590a0; font-size: 9px; }
.agent-menu { width: 30px; height: 30px; border: 0; border-radius: 9px; color: #8f899b; background: #f5f4f8; cursor: pointer; }
.agent-description { height: 47px; margin: 16px 0 13px; color: #6f697b; font-size: 10px; line-height: 1.6; overflow: hidden; }
.capability-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 49px; }
.capability-tags span { padding: 5px 7px; border: 1px solid color-mix(in srgb,var(--agent-color) 14%,#eceaf1); border-radius: 8px; color: #756f82; background: color-mix(in srgb,var(--agent-color) 5%,#fff); font-size: 8px; }
.agent-card-actions { display: flex; gap: 7px; margin-top: 15px; }.agent-card-actions button { flex: 1; height: 34px; border-radius: 10px; cursor: pointer; font-size: 9px; font-weight: 800; }.agent-start { border: 0; color: #fff; background: var(--agent-color); }.agent-edit { border: 1px solid #e4e1ea; color: #756e82; background: #fff; }
.create-agent-card { display: grid; place-items: center; min-height: 235px; border: 1px dashed #c9c3da; border-radius: 18px; color: #867f94; background: rgba(255,255,255,.54); cursor: pointer; }
.create-agent-card:hover { border-color: #9285da; color: var(--purple); background: #faf9ff; }
.create-agent-inner { text-align: center; }.create-agent-inner span { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 11px; border-radius: 16px; color: var(--purple); background: #ebe7fd; font-size: 25px; }.create-agent-inner strong, .create-agent-inner small { display: block; }.create-agent-inner strong { font-size: 12px; }.create-agent-inner small { margin-top: 5px; color: #aaa4b4; font-size: 8px; }

.chat-view.active { display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.chat-header { display: flex; align-items: center; min-height: 74px; padding: 12px 28px; border-bottom: 1px solid #eceaf0; }
.chat-agent-avatar { display: grid; place-items: center; width: 44px; height: 44px; margin-right: 11px; border: 0; border-radius: 14px; color: #fff; background: var(--agent-color,var(--purple)); box-shadow: 0 8px 17px color-mix(in srgb,var(--agent-color,var(--purple)) 25%,transparent); cursor: pointer; font-weight: 900; }
.chat-agent-copy { min-width: 0; }.chat-agent-copy span { color: #9791a1; font-size: 8px; }.chat-agent-copy h2 { margin: 3px 0 0; font-size: 15px; }
.chat-status { display: flex; align-items: center; gap: 6px; margin-left: 20px; padding: 6px 9px; border-radius: 12px; color: #59907b; background: #edf8f3; font-size: 8px; }.chat-status i { width: 6px; height: 6px; border-radius: 50%; background: #2fba85; }.chat-status.running i { animation: pulse 1s infinite; }.chat-header .secondary-button { margin-left: auto; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.75); } }
.chat-body { position: relative; flex: 1; min-height: 0; overflow: auto; background: linear-gradient(180deg,#fbfbfd,#fff); }
.chat-welcome { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.welcome-orbit { position: relative; display: grid; place-items: center; width: 86px; height: 86px; margin-bottom: 20px; border: 1px solid #ddd7f8; border-radius: 50%; background: radial-gradient(circle,#fff 0 40%,#f0edfc 41% 63%,transparent 64%); }
.welcome-orbit > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 15px; color: #fff; background: var(--agent-color,var(--purple)); box-shadow: 0 10px 25px color-mix(in srgb,var(--agent-color,var(--purple)) 27%,transparent); font-weight: 900; }
.welcome-orbit i, .welcome-orbit b { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #42bd91; box-shadow: 0 0 0 4px #e8f8f2; }.welcome-orbit i { right: 4px; top: 19px; }.welcome-orbit b { left: 4px; bottom: 19px; background: #e79b4e; box-shadow: 0 0 0 4px #fff2e6; }
.chat-welcome h2 { margin: 7px 0; font-size: 23px; letter-spacing: -.04em; }.chat-welcome p { max-width: 520px; margin: 0; color: #858092; font-size: 11px; line-height: 1.6; }
.welcome-prompts { display: grid; grid-template-columns: repeat(2,minmax(170px,250px)); gap: 9px; margin-top: 22px; }.welcome-prompts button { padding: 11px 13px; border: 1px solid #e6e3ed; border-radius: 12px; color: #625d6d; text-align: left; background: #fff; cursor: pointer; font-size: 9px; box-shadow: 0 7px 17px rgba(44,38,70,.04); }.welcome-prompts button:hover { color: var(--purple); border-color: #c8c0ef; }
.message-stream { display: none; max-width: 840px; min-height: 100%; margin: 0 auto; padding: 30px 26px 40px; }.message-stream.has-messages { display: block; }
.message { display: flex; gap: 11px; margin: 0 0 22px; }.message.user { flex-direction: row-reverse; }.message-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: var(--agent-color,var(--purple)); font-size: 10px; font-weight: 900; }.message.user .message-avatar { background: #353047; }
.message-content { max-width: min(690px,80%); }.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: #9c96a5; font-size: 8px; }.message.user .message-meta { justify-content: flex-end; }
.message-bubble { padding: 12px 14px; border: 1px solid #ebe8f1; border-radius: 5px 15px 15px 15px; color: #373243; background: #fff; box-shadow: 0 7px 18px rgba(47,40,75,.045); font-size: 11px; line-height: 1.72; word-break: break-word; }.message.user .message-bubble { border: 0; border-radius: 15px 5px 15px 15px; color: #fff; background: linear-gradient(135deg,#6d5fd5,#5144b5); }.message.error .message-bubble { color: #a64651; border-color: #f2ccd0; background: #fff6f7; }
.message-bubble h1,.message-bubble h2,.message-bubble h3 { margin: 12px 0 6px; font-size: 13px; }.message-bubble p { margin: 0 0 8px; }.message-bubble p:last-child { margin-bottom: 0; }.message-bubble ul,.message-bubble ol { margin: 6px 0; padding-left: 19px; }.message-bubble code { padding: 2px 4px; border-radius: 4px; background: #f1eff5; font-family: Consolas,monospace; font-size: 10px; }.message.user .message-bubble code { background: rgba(255,255,255,.14); }.message-bubble pre { overflow: auto; padding: 10px; border-radius: 9px; background: #282434; color: #f5f2ff; }
.assistant-progress { margin-bottom: 9px; padding: 10px; border-radius: 11px; background: #f7f5fd; }.assistant-state { display: flex; align-items: center; gap: 7px; color: #6c6381; font-size: 9px; }.assistant-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--agent-color,var(--purple)); animation: pulse 1s infinite; }.assistant-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }.tool-pill { padding: 5px 7px; border: 1px solid #ded9f0; border-radius: 8px; color: #7b738c; background: #fff; font-size: 8px; }
.assistant-files { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }.assistant-files a { padding: 7px 9px; border: 1px solid #dcd7ef; border-radius: 9px; color: #5e52bc; text-decoration: none; background: #f7f5ff; font-size: 8px; }
.chat-header .secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.composer-area { padding: 9px 24px 14px; border-top: 1px solid #efedf2; background: #fff; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 6px; max-width: 900px; margin: 0 auto 7px; }.attachment-chip { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid #ded9eb; border-radius: 9px; color: #6c6578; background: #faf9fd; font-size: 8px; }.attachment-chip button { border: 0; color: #aaa3b1; background: transparent; cursor: pointer; }
.composer { display: flex; align-items: flex-end; gap: 8px; max-width: 900px; margin: 0 auto; padding: 8px; border: 1px solid #dad6e4; border-radius: 16px; background: #fff; box-shadow: 0 9px 24px rgba(44,38,68,.075); }.composer:focus-within { border-color: #b8aeeb; box-shadow: 0 0 0 3px #f0edfc,0 9px 24px rgba(44,38,68,.08); }.composer textarea { flex: 1; min-height: 38px; max-height: 140px; padding: 9px 4px 5px; border: 0; outline: 0; resize: none; color: #302b3a; background: transparent; font-size: 11px; line-height: 1.5; }.composer-tool { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 10px; color: #746d80; background: #f4f2f7; cursor: pointer; }.composer-tool:hover { color: var(--purple); background: #eeeafd; }.feishu-tool { color: #fff; background: #2f77ee; font-weight: 900; }.send-button { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#7667dc,#5144b5); box-shadow: 0 7px 15px rgba(84,68,182,.26); cursor: pointer; font-size: 19px; }.send-button:disabled { opacity: .45; cursor: wait; }
.composer-meta { display: flex; justify-content: space-between; max-width: 900px; margin: 7px auto 0; color: #aaa4b2; font-size: 8px; }.composer-meta strong { color: #7b7488; }

.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 125px; margin: 0 34px 20px; border: 1px dashed #bdb5da; border-radius: 17px; color: #756d87; background: linear-gradient(135deg,#faf9ff,#f5f3fc); cursor: pointer; }.file-drop.dragging { border-color: var(--purple); background: #efebff; }.file-drop > span { font-size: 25px; color: var(--purple); }.file-drop strong { margin-top: 4px; font-size: 12px; }.file-drop small { margin-top: 5px; color: #9b95a7; font-size: 9px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 12px; padding: 0 34px 34px; }.file-card { display: grid; grid-template-columns: 43px minmax(0,1fr) 34px; align-items: center; gap: 11px; padding: 14px; border: 1px solid #e5e3e9; border-radius: 15px; background: #fff; box-shadow: 0 7px 18px rgba(42,36,67,.04); }.file-icon { display: grid; place-items: center; width: 43px; height: 48px; border-radius: 9px; color: #5f53bd; background: #eeeafd; font-size: 9px; font-weight: 900; }.file-copy { min-width: 0; }.file-copy strong,.file-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-copy strong { font-size: 10px; }.file-copy span { margin-top: 5px; color: #9c96a6; font-size: 8px; }.file-download { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #e0ddea; border-radius: 9px; color: #6f687d; text-decoration: none; background: #fff; }

.modal { position: fixed; z-index: 50; inset: 0; display: none; place-items: center; padding: 24px; background: rgba(24,20,40,.56); backdrop-filter: blur(9px); }.modal.open { display: grid; }
.login-card { display: grid; grid-template-columns: 1.08fr .92fr; width: min(980px,96vw); min-height: 580px; overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: 25px; background: #fff; box-shadow: 0 35px 90px rgba(21,17,38,.32); }
.login-visual { position: relative; display: flex; flex-direction: column; padding: 34px 40px; color: #fff; background: radial-gradient(circle at 72% 25%,rgba(153,134,245,.65),transparent 32%),linear-gradient(145deg,#2d2549,#1c1730 68%,#151122); overflow: hidden; }.login-visual::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.3) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.3) 1px,transparent 1px); background-size: 32px 32px; transform: perspective(500px) rotateX(65deg) translateY(33%); transform-origin: bottom; }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }.login-brand span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: linear-gradient(135deg,#9b8bf7,#6252d1); font-weight: 900; font-style: italic; }.login-brand strong { font-size: 13px; letter-spacing: .04em; }
.login-office { position: relative; z-index: 2; width: 280px; height: 230px; margin: 34px auto 10px; }.login-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(197,187,255,.3); border-radius: 50%; transform: translate(-50%,-50%); }.orbit-one { width: 210px; height: 115px; transform: translate(-50%,-50%) rotate(-18deg); }.orbit-two { width: 255px; height: 165px; transform: translate(-50%,-50%) rotate(22deg); }.login-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 82px; height: 82px; border: 1px solid rgba(255,255,255,.35); border-radius: 25px; background: linear-gradient(145deg,#8775e8,#5948bc); box-shadow: 0 0 0 14px rgba(135,117,232,.09),0 18px 45px rgba(11,8,25,.38); transform: translate(-50%,-50%); font-size: 24px; font-weight: 900; }.login-person { position: absolute; display: grid; place-items: center; width: 43px; height: 43px; border: 4px solid #28213f; border-radius: 15px; color: #fff; background: #5fb897; box-shadow: 0 10px 22px rgba(10,7,22,.3); font-size: 11px; font-weight: 900; }.p1 { left: 10px; top: 43px; }.p2 { right: 3px; top: 62px; background: #df8c64; }.p3 { left: 55px; bottom: 9px; background: #597fc5; }
.login-copy { position: relative; z-index: 2; }.login-copy > span { color: #9d91d6; font-size: 9px; font-weight: 900; letter-spacing: .15em; }.login-copy h2 { margin: 8px 0 10px; font-size: 27px; line-height: 1.32; letter-spacing: -.04em; }.login-copy p { max-width: 410px; margin: 0; color: #aaa3bf; font-size: 10px; line-height: 1.7; }.login-features { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: auto; }.login-features span { padding: 7px 9px; border: 1px solid rgba(198,188,255,.14); border-radius: 9px; color: #b9b1d0; background: rgba(255,255,255,.04); font-size: 8px; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 50px 52px; }.login-form h2 { margin: 8px 0; font-size: 25px; letter-spacing: -.04em; }.login-form > p { margin: 0 0 26px; color: #888294; font-size: 10px; line-height: 1.6; }.login-form label { display: block; margin-bottom: 17px; }.login-form label > span { display: block; margin-bottom: 7px; color: #625c6f; font-size: 10px; font-weight: 750; }.login-form input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #dcd9e3; border-radius: 11px; outline: 0; color: #2d2936; background: #fbfbfc; font-size: 12px; }.login-form input:focus { border-color: #a99ee6; box-shadow: 0 0 0 3px #f0edfc; }.code-field { display: grid; grid-template-columns: minmax(0,1fr) 105px; gap: 8px; }.code-field button { border: 1px solid #d9d5e6; border-radius: 11px; color: #655ab9; background: #f7f5ff; cursor: pointer; font-size: 10px; font-weight: 800; }.login-submit { height: 48px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#7565da,#5143b6); box-shadow: 0 12px 25px rgba(81,67,182,.26); cursor: pointer; font-size: 12px; font-weight: 800; }.login-submit span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 6px; background: #2d75eb; }.login-status { min-height: 18px; margin-top: 11px; color: #887e9e; text-align: center; font-size: 9px; }.login-status.error { color: var(--red); }.login-status.success { color: var(--green); }.login-note { display: flex; gap: 9px; margin-top: 22px; padding: 11px; border-radius: 11px; color: #747080; background: #f5f4f8; }.login-note span { color: #5d9a83; }.login-note p { margin: 0; font-size: 8px; line-height: 1.55; }

.agent-form-card { width: min(880px,96vw); max-height: 92vh; overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 23px; background: #fff; box-shadow: 0 30px 80px rgba(25,20,43,.28); }.agent-form-head { display: flex; justify-content: space-between; padding: 25px 28px 20px; border-bottom: 1px solid #ebe9ef; }.agent-form-head h2 { margin: 5px 0; font-size: 22px; }.agent-form-head p { margin: 0; color: #8b8596; font-size: 10px; }.modal-close { width: 35px; height: 35px; border: 1px solid #e6e2ea; border-radius: 11px; color: #8c8695; background: #fff; cursor: pointer; font-size: 20px; }.agent-form-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(250px,.65fr); gap: 24px; padding: 23px 28px; }.form-fields label, .agent-style-panel > label { display: block; margin-bottom: 15px; }.form-fields label > span, .agent-style-panel > label > span, .capability-field > span { display: block; margin-bottom: 7px; color: #625d6c; font-size: 10px; font-weight: 800; }.form-fields input,.form-fields textarea,.agent-style-panel input { width: 100%; padding: 10px 11px; border: 1px solid #dedbe5; border-radius: 10px; outline: 0; color: #2f2a38; background: #fcfcfd; font-size: 10px; }.form-fields input,.agent-style-panel input:not([type="color"]) { height: 40px; }.form-fields textarea { min-height: 70px; resize: vertical; line-height: 1.55; }.form-fields .instruction-input { min-height: 150px; }.form-fields input:focus,.form-fields textarea:focus,.agent-style-panel input:focus { border-color: #aa9fe6; box-shadow: 0 0 0 3px #f1effc; }.agent-style-panel { padding: 16px; border: 1px solid #e8e5ed; border-radius: 16px; background: #faf9fc; }.agent-preview { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; padding: 18px; border-radius: 13px; background: linear-gradient(145deg,#fff,#f2effd); }.preview-avatar { display: grid; place-items: center; width: 65px; height: 65px; border: 4px solid rgba(255,255,255,.8); border-radius: 20px; color: #fff; background: var(--preview-color,#6658d9); box-shadow: 0 13px 24px color-mix(in srgb,var(--preview-color,#6658d9) 28%,transparent); font-size: 20px; font-weight: 900; }.agent-preview strong { margin-top: 10px; font-size: 13px; }.agent-preview span { margin-top: 4px; color: #9690a1; font-size: 8px; }.agent-style-panel input[type="color"] { height: 37px; padding: 4px; cursor: pointer; }.capability-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }.capability-grid label { position: relative; }.capability-grid input { position: absolute; opacity: 0; pointer-events: none; }.capability-grid span { display: block; padding: 7px 6px; border: 1px solid #e3e0e9; border-radius: 8px; color: #7b7584; text-align: center; background: #fff; cursor: pointer; font-size: 8px; }.capability-grid input:checked + span { color: #5a4fbc; border-color: #c9c1ef; background: #efecfc; }.form-policy { display: flex; gap: 8px; margin-top: 14px; padding: 9px; border-radius: 9px; color: #527e6c; background: #edf8f3; }.form-policy p { margin: 0; font-size: 7px; line-height: 1.55; }.agent-form-actions { display: flex; align-items: center; gap: 9px; padding: 16px 28px 22px; border-top: 1px solid #efedf2; }.action-spacer { flex: 1; }.danger-link { border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.compact-modal-card { width: min(480px,96vw); overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(25,20,43,.3); }
.compact-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 17px; border-bottom: 1px solid #ece9f0; }
.compact-modal-head h2 { margin: 5px 0; font-size: 20px; }
.compact-modal-head p { margin: 0; color: #8c8697; font-size: 9px; line-height: 1.5; }
.compact-modal-body { padding: 21px 24px; }
.compact-modal-body label { display: block; }
.compact-modal-body label > span { display: block; margin-bottom: 7px; color: #625d6c; font-size: 10px; font-weight: 800; }
.compact-modal-body input, .compact-modal-body select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #dedbe5; border-radius: 10px; outline: 0; color: #302b39; background: #fcfcfd; font-size: 10px; }
.compact-modal-body input:focus, .compact-modal-body select:focus { border-color: #aa9fe6; box-shadow: 0 0 0 3px #f1effc; }
.folder-policy { display: flex; gap: 9px; margin-top: 15px; padding: 10px; border-radius: 10px; color: #5e796e; background: #f0f8f5; }
.folder-policy > span { color: #35a17b; font-size: 15px; }.folder-policy p { margin: 0; font-size: 8px; line-height: 1.55; }
.conversation-delete-warning { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #f1d3d6; border-radius: 11px; color: #8e5158; background: #fff7f8; }
.conversation-delete-warning span { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: #fff; background: #d86670; font-weight: 900; }.conversation-delete-warning p { margin: 0; font-size: 8px; line-height: 1.55; }
.compact-modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid #efedf2; }
.background-picker-card { display: flex; flex-direction: column; width: min(1040px,96vw); max-height: 92vh; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 23px; background: #f8f7fb; box-shadow: 0 32px 90px rgba(22,18,39,.34); }
.background-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 23px 26px 18px; border-bottom: 1px solid #e8e5ed; background: rgba(255,255,255,.92); }
.background-picker-head h2 { margin: 5px 0; font-size: 21px; }
.background-picker-head p { margin: 0; color: #898394; font-size: 9px; }
.background-picker-toolbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 24px; border-bottom: 1px solid #ebe8ef; background: #fff; }
.background-picker-toolbar button { height: 31px; padding: 0 12px; border: 1px solid #e0dde7; border-radius: 17px; color: #746e7e; background: #fff; cursor: pointer; font-size: 9px; font-weight: 750; }
.background-picker-toolbar button:hover, .background-picker-toolbar button.active { color: #5c4fbd; border-color: #c6beed; background: #efecfc; }
.background-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; min-height: 220px; padding: 18px 24px 22px; overflow: auto; }
.background-option { position: relative; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden; padding: 0; border: 3px solid transparent; border-radius: 14px; background: #ddd9e5; box-shadow: 0 8px 20px rgba(43,37,66,.1); cursor: pointer; text-align: left; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.background-option:hover { transform: translateY(-3px); box-shadow: 0 13px 27px rgba(43,37,66,.17); }
.background-option.selected { border-color: #7565d8; box-shadow: 0 0 0 3px #e8e4fb,0 13px 27px rgba(80,65,173,.2); }
.background-option img { width: 100%; height: 100%; object-fit: cover; }
.background-option-shade { position: absolute; inset: 44% 0 0; background: linear-gradient(180deg,transparent,rgba(16,14,25,.78)); }
.background-option-copy { position: absolute; z-index: 2; left: 11px; right: 40px; bottom: 9px; color: #fff; }
.background-option-copy strong, .background-option-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.background-option-copy strong { font-size: 10px; }.background-option-copy small { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 7px; }
.background-recommended { position: absolute; z-index: 2; left: 9px; top: 9px; padding: 4px 7px; border-radius: 9px; color: #fff; background: rgba(52,43,100,.75); backdrop-filter: blur(8px); font-size: 7px; font-style: normal; font-weight: 800; }
.background-selected-mark { position: absolute; z-index: 3; right: 9px; bottom: 9px; display: none; place-items: center; width: 24px; height: 24px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: #6c5bd0; box-shadow: 0 5px 12px rgba(32,24,76,.28); font-size: 11px; font-style: normal; }
.background-option.selected .background-selected-mark { display: grid; }
.background-picker-actions { display: flex; align-items: center; gap: 9px; padding: 14px 24px 19px; border-top: 1px solid #e8e5ed; background: #fff; }
.background-current { flex: 1; min-width: 0; }.background-current span, .background-current strong { display: block; }.background-current span { color: #9993a2; font-size: 8px; }.background-current strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.pet-picker-card { display: flex; flex-direction: column; width: min(760px,94vw); max-height: 88vh; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 23px; background: #f8f7fb; box-shadow: 0 32px 90px rgba(22,18,39,.34); }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; min-height: 250px; padding: 24px; overflow: auto; }
.pet-option { position: relative; display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: center; gap: 16px; min-height: 190px; padding: 16px; border: 3px solid transparent; border-radius: 18px; color: #3f394b; text-align: left; background: linear-gradient(145deg,#fff,#f0edfb); box-shadow: 0 11px 28px rgba(43,37,66,.11); cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.pet-option:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(43,37,66,.17); }
.pet-option.selected { border-color: #7565d8; box-shadow: 0 0 0 3px #e8e4fb,0 16px 34px rgba(80,65,173,.19); }
.pet-option-stage { position: relative; display: grid; place-items: center; width: 128px; height: 145px; overflow: hidden; border-radius: 17px; background: radial-gradient(circle at 50% 65%,rgba(136,118,223,.18),transparent 52%),linear-gradient(180deg,#eff3ff,#e7e0f7); }
.pet-option-stage .workspace-pet-sprite { width: 112px; height: 121px; }
.pet-option-copy strong, .pet-option-copy small { display: block; }.pet-option-copy strong { font-size: 18px; }.pet-option-copy small { margin-top: 8px; color: #817a8d; font-size: 10px; line-height: 1.55; }
.pet-option > em { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 10px; color: #fff; background: #6556c8; font-size: 7px; font-style: normal; font-weight: 800; }
.pet-selected-mark { position: absolute; right: 12px; bottom: 12px; display: none; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: #6c5bd0; box-shadow: 0 5px 12px rgba(32,24,76,.24); font-size: 12px; font-style: normal; }
.pet-option.selected .pet-selected-mark { display: grid; }
.pet-coming-soon { flex: 1; color: #9a93a3; text-align: right; font-size: 8px; }
.danger-button { height: 38px; padding: 0 15px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#df727b,#c6505b); box-shadow: 0 8px 18px rgba(198,80,91,.2); cursor: pointer; font-size: 10px; font-weight: 800; }
.danger-button:hover { background: linear-gradient(135deg,#d96670,#b9434e); }
.delete-project-options { display: grid; gap: 10px; padding: 20px 24px; }
.delete-choice { display: grid; grid-template-columns: 40px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 11px; width: 100%; padding: 13px; border: 1px solid #e3e0e8; border-radius: 13px; text-align: left; background: #fff; cursor: pointer; }
.delete-choice > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #fff; background: #3aaf83; font-size: 17px; }
.delete-choice strong { align-self: end; font-size: 11px; }.delete-choice small { align-self: start; margin-top: 3px; color: #938d9c; font-size: 8px; line-height: 1.4; }
.delete-choice:hover { border-color: #a79ce5; background: #faf9ff; }.delete-choice.remove > span { background: #d86670; }.delete-choice.remove:hover { border-color: #e5a7ad; background: #fff7f8; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 26px; min-width: 180px; max-width: 440px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: #fff; text-align: center; background: rgba(39,33,56,.92); box-shadow: 0 15px 40px rgba(20,16,34,.26); opacity: 0; pointer-events: none; transform: translate(-50%,14px); transition: .22s; font-size: 10px; }.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 72px 270px minmax(0,1fr); }
  .office-layout { grid-template-columns: minmax(500px,1fr) 280px; }
  .agent-floor { grid-template-columns: repeat(2,minmax(150px,1fr)); }
  .office-stats { gap: 14px; }
  .secure-pill { display: none; }
  .background-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1400px) and (min-width: 941px) {
  .app-shell { grid-template-columns: 72px 280px minmax(0,1fr); }
  .office-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 13px; padding: 14px; }
  .office-card-head { padding-inline: 20px; }
  .office-stats { gap: 13px; }
  .office-stats div { min-width: 46px; }
  .activity-panel { padding: 16px; }
  .agent-floor { inset-inline: 10%; gap: 3% 6%; }
}
@media (max-width: 940px) {
  body { overflow: auto; }
  .app-shell { grid-template-columns: 68px minmax(0,1fr); }
  .context-panel { display: none; }
  .workspace { min-height: 100vh; }
  .office-layout { grid-template-columns: 1fr; height: auto; }
  .activity-panel { min-height: 320px; }
  .office-stage-card { min-height: 690px; }
  .login-card { grid-template-columns: 1fr; width: min(560px,96vw); }.login-visual { display: none; }
}
@media (max-width: 680px) {
  .app-shell { grid-template-columns: 1fr; }
  .nav-rail { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; flex-direction: row; justify-content: center; height: 76px; padding: 8px 10px; border: 0; background: linear-gradient(180deg,rgba(248,248,252,.45),rgba(242,241,248,.96)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .brand-mark,.rail-create,.rail-user { display: none; }.rail-nav { position: relative; left: auto; top: auto; flex-direction: row; justify-content: center; gap: 9px; width: auto; margin: 0; padding: 7px 10px; border-radius: 24px; transform: none; }.rail-button { width: 43px; height: 43px; }.rail-button.active::before { left: 50%; top: auto; bottom: -10px; transform: translateX(-50%); }.rail-button > span:last-child { display: none; }.rail-icon { width: 20px; height: 20px; }
  .workspace { padding-bottom: 64px; }.workspace-topbar { min-height: 68px; padding: 0 15px; }.workspace-topbar .secondary-button { display: none; }.workspace-topbar .background-picker-button { display: inline-flex; padding: 0 10px; }.primary-button { padding: 0 10px; }.topbar-actions { gap: 5px; }
  .office-layout { padding: 10px; }.office-card-head { align-items: flex-start; flex-direction: column; gap: 12px; }.office-scene { min-height: 580px; }.agent-floor { grid-template-columns: 1fr 1fr; inset-inline: 2%; }.office-agent { transform: scale(.88); }.office-agent:hover { transform: scale(.88) translateY(-3px); }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 15px; padding: 22px 16px 16px; }.agent-library-toolbar { margin: 0 16px 14px; }.library-security { display: none; }.agent-library,.file-grid { padding: 0 16px 85px; }.file-drop { margin: 0 16px 17px; }
  .chat-header { padding: 10px 14px; }.chat-header .secondary-button { width: 95px; padding: 0 8px; font-size: 9px; }.chat-status { display: none; }.composer-area { padding-inline: 10px; }.composer-meta { display: none; }.welcome-prompts { grid-template-columns: 1fr; width: 100%; }.message-content { max-width: 87%; }
  .modal { padding: 10px; }.login-form { padding: 34px 25px; }.agent-form-grid { grid-template-columns: 1fr; padding: 18px; }.agent-form-head,.agent-form-actions { padding-inline: 18px; }.agent-style-panel { order: -1; }.capability-grid { grid-template-columns: repeat(3,1fr); }.background-picker-head { padding: 18px; }.background-picker-toolbar { padding: 11px 15px; }.background-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 14px; }.background-picker-actions { padding: 12px 15px 15px; }.background-current { display: none; }.pet-grid { grid-template-columns: 1fr; padding: 14px; }.pet-option { grid-template-columns: 105px minmax(0,1fr); min-height: 160px; }.pet-option-stage { width: 105px; height: 125px; }.pet-option-stage .workspace-pet-sprite { width: 94px; height: 102px; }.pet-coming-soon { display: none; }
}
