/* White + violet, drawn from the supplied Lizz films. */
:root {
  --ink:#2c223f; --muted:#80758f; --violet:#7750c9; --violet-deep:#633bb5;
  --line:#e9e2f2; --paper:#fdfbff; --wash:#f5f0fb; --blue:var(--violet);
  font-family:Inter,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
  background:var(--paper); color:var(--ink);
}
body,.main {background:var(--paper); color:var(--ink)}
.main {background:radial-gradient(ellipse at 60% 0,#f4edfd80,transparent 55%),var(--paper)}
.rail {background:#f7f2fc; border-color:var(--line)}
.rail-brand {display:grid;place-items:center;width:50px;height:50px;margin-top:-6px;flex-shrink:0}
.rail-brand img {display:block;width:100%;height:100%;object-fit:contain}
.rail-button {color:#8b7a9e;transition:background .18s,color .18s}
.rail-button:hover {background:#eee4f9;color:var(--violet-deep)}
.rail-button.active {background:#e8dcf8;color:#7243bd}
.rail-button.active:before {content:'';position:absolute;left:-14px;width:3px;height:18px;border-radius:4px;background:#9a72d7}
.topbar {background:transparent;padding:16px 22px;height:72px}
.chats-toggle {color:#56436e;border:1px solid #ece4f5;box-shadow:0 3px 16px #68469d08}
.chats-toggle svg {color:#8b6daf}
.thread-heading {color:#91839f}
.scope select {color:#8a779e}
.scope select:focus {color:var(--violet-deep)}
.content {scrollbar-color:#ded0ee transparent}
.chat-body {width:min(800px,100%);padding-top:30px}
.day {color:#a092ae;letter-spacing:.3px}
.bubble {background:#f0ebf6;color:#3c304d;line-height:1.85;padding:14px 18px;
  border:1px solid #e9e0f380;font-size:15px;box-shadow:0 2px 3px #5b3d7d03}
.user .bubble {background:linear-gradient(130deg,#e5d4fb,#d9c1f6);color:#432660;border-color:#d7c0f0;line-height:1.85}
.task-card {background:#faf7fe;border-color:#e9dff4;padding:14px 16px}
.task-card:hover {background:#f2eafc;border-color:#d9c6ef}
.task-head {color:#6a5182}.task-head svg {color:#a181c2}.task-sub {color:#94829f}
.system-note {color:#927da3}.suggestions {margin-left:0;gap:9px}
.suggestions button {background:white;border:1px solid #e9dff3;color:#806791;padding:9px 14px}
.suggestions button:hover {background:#efe5fc;color:#6c3db0}
.compose-area {background:linear-gradient(0deg,#fdfbff 65%,#fdfbff00);padding-bottom:17px}
.compose-box {background:#ffffffed;border:1px solid #e4d7f2;border-radius:26px;
  padding:15px 17px;box-shadow:0 6px 30px #64409c0c,0 1px 4px #64409c06}
.compose-box:focus-within {border-color:#b998e0;box-shadow:0 0 0 3px #ece0fa70,0 8px 30px #64409c0c}
.compose-box textarea {color:var(--ink)}.compose-box textarea::placeholder {color:#ae9bbb}
.composer-line .icon {color:#9b83b2}.composer-line .icon:hover {background:#f2eafb}
.send {background:linear-gradient(135deg,#a37be2,#7546be);color:#fff;width:34px;height:34px;box-shadow:0 3px 10px #7546be26}
.send:hover {background:#7141bc}.compose-note {color:#a594b2;font-size:10px}
.profile-panel {background:linear-gradient(180deg,#f4ecfc,#faf7fd 58%,#f6f1fa);border-color:var(--line);padding:0 20px 14px}
.profile-close {color:#ab96bf;top:17px}.profile-close:hover {background:#e9ddf5}
.profile-identity {padding:58px 0 24px}
.portrait-wrap {width:min(240px,100%);height:auto;aspect-ratio:1;margin:0 auto 18px;
  border-radius:30px;isolation:isolate;box-shadow:0 15px 36px #6b389f26,0 0 0 5px #ffffffb3;
  background:#34206b;overflow:hidden;animation:none}
.avatar-media {position:relative;width:100%;height:100%;overflow:hidden;border-radius:inherit}
.avatar-layer {position:absolute;inset:0;opacity:0;z-index:0}
.avatar-layer.is-current {opacity:1;z-index:1}
.avatar-layer.is-entering {z-index:2;transition:opacity .95s cubic-bezier(.4,0,.2,1)}
.avatar-layer.is-entering.is-visible {opacity:1}
.avatar-video,.avatar-poster {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.avatar-video {opacity:0}.avatar-layer.has-video .avatar-video {opacity:1}
.portrait-wrap:after {content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffff26;pointer-events:none}
.avatar-caption {display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 8px;color:#a18bb6;font-size:10px}
.avatar-caption>span {width:15px;height:1px;background:#cdb5e3}
.profile-identity h1 {font-size:26px;color:#50346e;font-weight:600;letter-spacing:-.6px;margin:6px 0 8px}
.connection-state {font-size:12px;color:#9a82af}.connection-state.online>span {background:#9a71d0;width:6px;height:6px;box-shadow:0 0 0 3px #e9ddf6}
.working-status {color:#957ca7;font-size:11px;max-width:250px;margin:10px auto 0}
.avatar-status-line {display:flex;justify-content:center;align-items:center;gap:9px;margin-top:9px;min-height:20px;color:#947aa8;font-size:10px}
.avatar-motion {font-size:10px;color:#aa94ba;padding:2px 6px;border:1px solid #e4d7ef;border-radius:9px}
.avatar-motion:hover {background:#ede2f7;color:#744ba0}
.profile-tabs {background:#eae0f2;padding:5px}.profile-tabs button {color:#a18bb5;height:31px}
.profile-tabs button.selected {color:#7f4eb6;background:#fff;box-shadow:0 2px 9px #6a448c0c}
.profile-tabs button:not(:last-child):after {background:#d6c4e5}
.profile-tab-content {padding-top:20px;scrollbar-color:#ddcdec transparent}
.activity-date {color:#ac94bd;letter-spacing:.4px}.activity-row {padding:12px 7px;gap:12px}
.activity-row:hover {background:#f0e7f8}.activity-icon {background:#ede5f4;color:#a184b9;border:1px solid #e6d9f0}
.activity-icon.running {background:#e3d2f7;color:#8652be}.activity-info strong {color:#624777;font-size:13px;line-height:1.7;font-weight:500}
.activity-info>span {color:#887194;font-size:12px}.activity-info small {color:#9682a4;font-size:10px}
.permission-row,.profile-tab-content .memory-summary,.page-content>.activity-row {border-color:var(--line)}
.permission-row {color:#785b90}.permission-row small {color:#a78cb9}.panel-note {color:#a18ab3}
.memory-summary {color:#80648f}.schedule-empty {color:#a48cb7}.schedule-empty h3 {color:#7e6092}
.chat-drawer {background:#faf6fe;border-color:var(--line);box-shadow:14px 0 40px #50316d0c}
.drawer-heading h2 {color:#63457e}.new-chat {border-color:#e6d8f2;background:white;color:#7e5a9e}
.search-input {background:#f0e8f7;color:#6b5083}.search-input::placeholder {color:#ac94bc}
.thread {color:#9880ac}.thread:hover,.thread.current {background:#eadef8;color:#78539a}
.drawer-footer {color:#ad98bd}.page-content h1 {color:#5b3c74}.lead,.list-row p,.empty {color:#a08bad}
.list-row>.iconbox {background:#f0e8f8;color:#a586bf}.badge {background:#efe5f8;color:#9b7aaf}
.primary {background:var(--violet)}.secondary {background:#eee3f9;color:#8b62a7}.text-button {color:#9268b0}
.file-chip {background:#eee4f9;color:#86629e}.file-hash {color:#ab94bb}.company.active {background:#f6effc;border-color:#c9a8e3}
.memory-field {background:white;border-color:#e5d7ef;color:#705084}
dialog {background:#fdfaff;color:#593d6e;border-color:#e5d6f1;box-shadow:0 24px 90px #47256725}
dialog::backdrop {background:#31203f35;backdrop-filter:blur(4px)}dialog p,.step p {color:#9680a8}
.preview {background:#faf6fe;border-color:#e9ddf3;color:#78588c}.step .dot {background:#e9daf7;color:#9c76b8}
.step:before {border-color:#e3d4ed}#toast {background:#684782;box-shadow:0 5px 24px #50316d20}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {outline-color:#b292dd}
.avatar-toggle {box-shadow:0 0 0 2px #e3d1f3}.avatar-toggle img {object-fit:cover}
.connection-state,.working-status,.avatar-status-line,.system-note {color:#857092}
.compose-note,.day,.thread-heading {color:#94819f}
@media(min-width:1500px) {.shell.profile-open{grid-template-columns:76px minmax(0,1fr) 380px}.chat-drawer{left:76px}}
@media(max-width:1100px) and (min-width:761px) {
  .profile-panel{padding-left:16px;padding-right:16px}.portrait-wrap{width:208px;height:auto}.profile-identity{padding-top:58px}
  .topbar{padding:14px}.bubble{font-size:14px}
}
@media(max-width:760px) {
  .profile-panel{width:min(360px,calc(100% - 54px));box-shadow:-12px 0 40px #50316d1a}
  .portrait-wrap{width:min(218px,100%);height:auto}.profile-identity{padding-top:56px}
  .topbar{height:64px;padding:10px}.compose-area{padding:10px 12px}.compose-box{padding:12px;border-radius:24px}
  .bubble{font-size:14px;padding:12px 15px}.rail-brand{width:42px;height:42px;margin-top:-4px}
  .rail-button.active:before{left:-8px}.compose-note{font-size:8px}
}
@media(max-height:720px) and (min-width:761px) {
  .profile-identity{padding-top:46px;padding-bottom:17px}.portrait-wrap{width:174px;height:auto;margin-bottom:14px}
  .profile-identity h1{font-size:23px}.avatar-caption{display:none}
}
@media(prefers-reduced-motion:reduce) {.avatar-layer.is-entering,.rail-button{transition:none}.portrait-wrap{animation:none}}
