:root {
  color-scheme: light;
  /* All rem-based detail sizes track a percentage of the phone viewport. */
  font-size: clamp(90%, 4.10256vw, 115%);
  --ink: #1b2340;
  --muted: #5f6b82;
  --line: #e6eaf3;
  --paper: #fff;
  --wash: #f5f7fb;
  --blue: #5478e8;
  --blue-2: #edf2ff;
  --purple: #8b6ce0;
  --green: #239b78;
  --orange: #cf843a;
  --red: #c85265;
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

@media (min-width: 47.5625rem) and (hover: hover) and (pointer: fine) {
  :root { font-size: clamp(100%, 1.0582vw, 115%); }
}

* { box-sizing: border-box; }
*:focus-visible { outline: 0.1875rem solid #365fc9; outline-offset: 0.125rem; }
.sr-only { position: absolute; width: 0.0625rem; height: 0.0625rem; padding: 0; margin: -0.0625rem; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body { margin: 0; color: var(--ink); background: var(--wash); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 16.25rem 1fr; }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 1.375rem 0.9375rem 1rem; background: #fbfcfe; border-right: 0.0625rem solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.6875rem; padding: 0 0.5625rem 1.625rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.125rem; height: 2.125rem; color: white; font-size: 1.125rem; border-radius: 0.75rem; background: linear-gradient(145deg, #7797ff, #836adf); box-shadow: 0 0.3125rem 0.8125rem #6d80dd3b; }
.brand small { display: block; margin-top: 0.125rem; color: var(--muted); font-size: 0.625rem; letter-spacing: .12em; text-transform: uppercase; }
.new-chat { width: 100%; padding: 0.75rem 0.8125rem; display: flex; gap: 0.5625rem; align-items: center; border: 0.0625rem solid #dce4fb; border-radius: 0.75rem; background: #f0f4ff; color: #4a67c8; font-weight: 600; box-shadow: 0 0.125rem 0.4375rem #506dc40b; }
.section-label { padding: 1.5625rem 0.625rem 0.625rem; color: #66718a; font-size: 0.625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.conversation-list { display: flex; flex: 1; flex-direction: column; gap: 0.25rem; overflow-y: auto; }
.conversation-row { display: flex; align-items: center; gap: 0.125rem; min-width: 0; }
.conversation { width: 100%; padding: 0.625rem 0.6875rem; border: 0; border-radius: 0.625rem; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #59647e; background: transparent; font-size: 0.8125rem; }
.conversation:hover, .conversation.active { color: var(--ink); background: #eef2fa; }
.conversation-delete { flex: none; padding: 0.3125rem 0.4375rem; border: 0; border-radius: 0.4375rem; color: #66718a; background: transparent; font-size: 0.6875rem; }
.conversation-delete:hover { color: #b84f60; background: #fff0f2; }
.conversation-delete.confirm { color: #b84f60; }
.profile { display: flex; gap: 0.625rem; align-items: center; padding: 0.875rem 0.4375rem 0; border-top: 0.0625rem solid var(--line); }
.avatar { flex: none; display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: #eee8ff; color: #7258c1; font-size: 0.8125rem; font-weight: 700; }
.profile-copy { min-width: 0; flex: 1; font-size: 0.75rem; font-weight: 600; }
.profile-copy small { display: block; margin-top: 0.1875rem; color: var(--muted); font-weight: 400; }
.logout { border: 0; background: none; color: #96a0b5; font-size: 0.75rem; }
.sidebar { overflow: visible; }
.mascot-menu { position: absolute; z-index: 6; left: calc(100% + 0.5rem); bottom: 1.125rem; display: grid; min-width: 8.75rem; padding: 0.375rem; border: 0.0625rem solid var(--line); border-radius: 0.75rem; background: var(--paper); box-shadow: 0 0.75rem 2rem #17213a24; }
.mascot-menu[hidden] { display: none; }
.mascot-choice { padding: 0.5625rem 0.625rem; border: 0; border-radius: 0.5rem; color: var(--ink); background: transparent; text-align: left; font-size: 0.75rem; }
.mascot-choice:hover, .mascot-choice[aria-checked="true"] { background: var(--blue-2); }
.main { min-width: 0; height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 4.1875rem; display: flex; align-items: center; justify-content: space-between; padding: 0 2.125rem; border-bottom: 0.0625rem solid #e9edf4; background: #ffffffb8; backdrop-filter: blur(1rem); }
.topbar h1 { margin: 0; font-size: 0.875rem; font-weight: 600; }
.topbar-meta { display: flex; align-items: center; gap: 0.5rem; color: #647089; font-size: 0.6875rem; }
.status-dot { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #35b28b; box-shadow: 0 0 0 0.1875rem #35b28b1b; }
.status-dot.off { background: #d99a49; box-shadow: 0 0 0 0.1875rem #d99a491b; }
.content { flex: 1; min-height: 0; overflow: auto; }
.timeline { width: min(53.125rem, calc(100% - 2.75rem)); margin: 0 auto; padding: 2.375rem 0 2.8125rem; }
.welcome { max-width: 42.5rem; margin: 13vh auto 1.875rem; text-align: center; }
.welcome-icon { display: grid; place-items: center; margin: 0 auto 1.375rem; width: 4.125rem; height: 4.125rem; border-radius: 1.4375rem; color: #fff; font-size: 1.75rem; background: linear-gradient(145deg, #819eff, #927ce8); box-shadow: 0 0.75rem 1.875rem #7085e044; }
.welcome h2 { margin: 0; font-size: clamp(1.5625rem, 4vw, 2.125rem); letter-spacing: -.045em; }
.welcome p { margin: 0.75rem auto 1.625rem; max-width: 29.375rem; color: var(--muted); font-size: 0.875rem; line-height: 1.75; }
.suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.suggestion { border: 0.0625rem solid var(--line); border-radius: 62.4375rem; background: #fff; color: #66718b; padding: 0.5625rem 0.8125rem; font-size: 0.75rem; }
.suggestion:hover { border-color: #b8c7fa; color: #4e68c4; }
.message-row { display: flex; gap: 0.75rem; margin: 1.3125rem 0; align-items: flex-start; }
.message-row.user { justify-content: flex-end; }
.message-row .avatar { width: 1.9375rem; height: 1.9375rem; font-size: 0.75rem; }
.message-body { max-width: min(43.125rem, 83%); min-width: 0; }
.message-name { margin: 0 0 0.4375rem 0.125rem; color: #626f88; font-size: 0.625rem; font-weight: 600; letter-spacing: .04em; }
.bubble { padding: 0.8125rem 1rem; border: 0.0625rem solid #e8ecf4; border-radius: 0.25rem 1rem 1rem 1rem; background: #fff; box-shadow: 0 0.25rem 0.875rem #29396408; font-size: 0.875rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.markdown-content { white-space: normal; overflow-wrap: anywhere; }
.user-message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.markdown-content > :first-child { margin-top: 0; }
.markdown-content > :last-child { margin-bottom: 0; }
.markdown-content p { margin: 0 0 0.625rem; }
.markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4 { margin: 0.875rem 0 0.4375rem; font-size: 1.05em; }
.markdown-content ul, .markdown-content ol { margin: 0.3125rem 0 0.625rem; padding-left: 1.375rem; }
.markdown-content li { padding-left: 0.125rem; }
.markdown-content blockquote { margin: 0.5rem 0; padding: 0.125rem 0 0.125rem 0.75rem; border-left: 0.1875rem solid #cbd5ef; color: #687590; }
.markdown-content pre { max-width: 100%; overflow: auto; padding: 0.6875rem; border-radius: 0.5625rem; color: #e9edfb; background: #252d45; white-space: pre; }
.markdown-content code { padding: 0.0625rem 0.25rem; border-radius: 0.25rem; color: #5f568e; background: #f0eef8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.markdown-content pre code { padding: 0; color: inherit; background: transparent; }
.markdown-content a { color: #4e6fd4; text-decoration: underline; text-underline-offset: 0.125rem; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 0.5rem 0 0.75rem; }
.markdown-content table { border-collapse: collapse; min-width: 100%; font-size: 0.75rem; }
.markdown-content th, .markdown-content td { padding: 0.375rem 0.5rem; border: 0.0625rem solid #e3e8f1; text-align: left; }
.message-text-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.125rem; margin: 0.1875rem 0 0; }
.message-row.user .message-text-actions { justify-content: flex-end; }
.message-text-action { display: grid; width: 2rem; height: 2rem; padding: 0; place-items: center; border: 0; border-radius: 0.625rem; background: transparent; cursor: pointer; opacity: .36; transition: opacity .15s ease; }
.message-text-action:hover, .message-text-action:focus-visible { opacity: .9; }
.message-text-action .muse-icon { width: .9375rem; height: .9375rem; }
.message-text-action[aria-pressed="true"] { opacity: 1; color: #345ead; background: rgba(118, 160, 227, .12); }
.message-text-action[aria-expanded="true"] { opacity: .85; background: rgba(118, 160, 227, .08); }
.message-row.assistant .bubble.voice-bar-bubble { width: min(19rem, 100%); padding: .55rem .7rem; }
.voice-bar { display: flex; align-items: center; gap: .7rem; min-height: 2.35rem; }
.voice-bar-play { display: grid; flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #f1f4f7; cursor: pointer; }
.voice-bar-play:hover, .voice-bar-play:focus-visible { background: #e7eef5; }
.voice-bar-play .muse-icon { width: 1rem; height: 1rem; opacity: .7; }
.voice-bar-progress { flex: 1; min-width: 3.5rem; height: .2rem; border: 0; border-radius: 1rem; appearance: none; background: #e3e9ee; }
.voice-bar-progress::-webkit-progress-bar { border-radius: 1rem; background: #e3e9ee; }
.voice-bar-progress::-webkit-progress-value { border-radius: 1rem; background: #879aab; }
.voice-bar-progress::-moz-progress-bar { border-radius: 1rem; background: #879aab; }
.voice-bar-status { flex: 0 0 auto; color: #71808b; font-size: .6875rem; white-space: nowrap; }
.message-row.assistant .bubble.voice-bar-text { margin-top: .5rem; }
.message-row.assistant .bubble.voice-bar-text[hidden] { display: none; }
.voice-input-button { display: grid; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.voice-input-button .muse-icon { width: 1.25rem; height: 1.25rem; opacity: .65; }
.voice-input-button:hover .muse-icon, .voice-input-button:focus-visible .muse-icon { opacity: 1; }
.voice-input-button[aria-pressed="true"] { background: rgba(214, 72, 92, .13); }
.voice-input-button[aria-pressed="true"] .muse-icon { opacity: 1; filter: sepia(1) saturate(5) hue-rotate(300deg); }
.voice-settings-body { display: grid; gap: .875rem; padding: 1.25rem; }
.voice-settings-body .admin-help { margin: 0; }
.voice-settings-choices { display: grid; gap: .5rem; }
.voice-settings-choice { display: flex; align-items: center; gap: .5rem; }
.voice-settings-select { flex: 1; min-height: 2.6rem; padding: .55rem .75rem; text-align: left; border: 1px solid var(--line); border-radius: .625rem; background: #fff; color: var(--ink); cursor: pointer; }
.voice-settings-select[aria-checked="true"] { border-color: #7297d6; background: #f0f5ff; }
.voice-settings-select[aria-checked="true"]::before { content: '✓ '; }
.voice-settings-preview { min-height: 2.6rem; }
.account-voice-settings { justify-self: start; }
.my-dingdang-dialog { width: min(43rem, calc(100vw - 1.5rem)); }
.my-dingdang-body { display: grid; gap: 1rem; max-height: min(75vh, 47rem); overflow-y: auto; padding: 1.25rem; }
.my-dingdang-intro { margin: 0; color: #5b6676; font-size: .875rem; }
.my-dingdang-section { padding: 1rem; border: .0625rem solid #e7e9ed; border-radius: 1rem; background: #fff; }
.my-dingdang-section h2 { margin: 0; font-size: 1rem; color: #202936; }
.my-dingdang-section > p { margin: .35rem 0 .85rem; color: #637082; font-size: .8125rem; line-height: 1.5; }
.my-mascot-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.my-mascot-choice { display: grid; justify-items: center; gap: .25rem; padding: .5rem; border: .0625rem solid #dfe3e9; border-radius: .875rem; background: #fafbfc; cursor: pointer; color: #29333e; }
.my-mascot-choice img { display: block; width: 4.75rem; height: 4.75rem; object-fit: contain; }
.my-mascot-choice img { mix-blend-mode: multiply; }
.my-mascot-choice strong { font-size: .875rem; }
.my-mascot-check { font-size: .75rem; color: #657080; }
.my-mascot-choice[aria-checked="true"] { border-color: #7191bd; background: #f2f6fb; }
.my-mascot-choice[aria-checked="true"] .my-mascot-check { color: #345a8d; font-weight: 600; }
.my-dingdang-dialog .voice-settings-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.my-dingdang-dialog .voice-settings-choice { min-width: 0; }
.my-dingdang-dialog .voice-settings-select { display: flex; justify-content: flex-start; align-items: center; gap: .5rem; min-width: 0; }
.my-dingdang-dialog .voice-settings-select > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-dingdang-section > .my-voice-note { margin: .8rem 0 0; font-size: .75rem; }
.my-dingdang-section > .my-voice-sample { margin: -.3rem 0 .85rem; padding: .5rem .7rem; border-radius: .6rem; background: #f6f8fa; color: #48576a; font-size: .75rem; }
.voice-settings-preview[aria-pressed="true"] { color: #345a8d; background: #e9f1fb; }
.my-aic-status { display: inline-block; margin-bottom: .65rem; padding: .25rem .65rem; border-radius: 99rem; background: #eef4ee; color: #3e7850; font-size: .8125rem; font-weight: 600; }
.my-aic-line { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.my-aic-code { min-width: 0; overflow-wrap: anywhere; padding: .45rem .6rem; border-radius: .5rem; background: #f4f6f8; font-size: .8125rem; }
.my-dingdang-section > .my-aic-expiry, .my-dingdang-section > .my-aic-empty { margin: .65rem 0 0; }
@media (max-width: 43rem) { .my-dingdang-dialog .voice-settings-choices { grid-template-columns: 1fr; } }
.openmuse-ui .composer-footnote[data-voice-status="true"] { display: block; }
.answer-feedback-overlay { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(19, 32, 48, .36); backdrop-filter: blur(.5rem); }
.answer-feedback-panel { width: min(100%, 25rem); padding: 1.25rem; border: 0.0625rem solid rgba(255,255,255,.85); border-radius: 1.5rem; background: #fff; box-shadow: 0 1.5rem 4rem rgba(24, 46, 70, .18); color: #11191c; }
.answer-feedback-heading, .answer-feedback-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.answer-feedback-heading h2 { margin: 0; font-size: 1rem; font-weight: 650; }
.answer-feedback-close { display: grid; width: 2rem; height: 2rem; place-items: center; border: 0; border-radius: 50%; background: #f1f2f3; color: #53616b; cursor: pointer; }
.answer-feedback-close .muse-icon { width: 1rem; height: 1rem; margin: auto; }
.answer-rating-options { display: flex; gap: .75rem; margin: 1.25rem 0; }
.answer-rating-choice { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border: .0625rem solid #e6e9ed; border-radius: 1rem; background: #f5f6f7; cursor: pointer; }
.answer-rating-choice .muse-icon { width: 1.5rem; height: 1.5rem; }
.answer-rating-choice:hover, .answer-rating-choice[aria-pressed="true"] { border-color: #92c8ed; background: #e9f6ff; }
.answer-feedback-label { display: block; margin-bottom: .5rem; color: #56616a; font-size: .8125rem; }
.answer-feedback-comment { width: 100%; min-height: 6rem; padding: .75rem; border: .0625rem solid #dde5eb; border-radius: .875rem; outline: none; resize: vertical; color: #11191c; background: #fafbfc; line-height: 1.5; }
.answer-feedback-comment:focus-visible { border-color: #92c8ed; outline: .1875rem solid #e9f6ff; }
.answer-feedback-footer { margin-top: .875rem; color: #687680; font-size: .75rem; }
.answer-feedback-save { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; place-items: center; border: 0; border-radius: 50%; background: #c8e7ff; cursor: pointer; }
.answer-feedback-save:disabled { opacity: .5; cursor: wait; }
.answer-feedback-save .muse-icon { width: 1.25rem; height: 1.25rem; }
.markdown-content th { background: #f5f7fb; }
.user .bubble { color: #fff; border: 0; border-radius: 1rem 0.25rem 1rem 1rem; background: linear-gradient(135deg, #6887ee, #7a73df); box-shadow: 0 0.375rem 1.0625rem #6481e42b; }
.user .markdown-content code { color: #fff; background: #ffffff24; }
.user .markdown-content a { color: #fff; }
.card { margin: 0.9375rem 0 1.25rem 2.6875rem; padding: 1.0625rem; border: 0.0625rem solid #e5eaf3; border-radius: 0.9375rem; background: #fff; box-shadow: 0 0.375rem 1.375rem #28355d08; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.8125rem; }
.card-title { font-size: 0.8125rem; font-weight: 700; }
.card-subtitle { margin-top: 0.25rem; color: var(--muted); font-size: 0.6875rem; line-height: 1.5; }
.badge { flex: none; padding: 0.3125rem 0.5rem; border-radius: 62.4375rem; background: #f2f4f8; color: #5e6a82; font-size: 0.625rem; }
.badge.waiting { color: #a46c2e; background: #fff4e5; }
.badge.done { color: #238466; background: #e8f8f2; }
.badge.error { color: #b84f60; background: #fff0f2; }
.badge.partial { color: #94651f; background: #fff2d8; }
.candidate-list { display: grid; gap: 0.5625rem; }
.recommendation-summary { display: grid; gap: 0.3125rem; margin: 0 0 0.75rem; padding: 0.75rem; border: 0.0625rem solid #dce5ff; border-radius: 0.6875rem; background: #f7f9ff; color: #586987; font-size: 0.6875rem; line-height: 1.55; }
.recommendation-summary strong { color: #526dcc; font-size: 0.75rem; }
.recommendation-summary small { color: #72809b; }
.recommendation-summary .recommendation-missing { color: #a46c2e; }
.candidate { display: grid; grid-template-columns: 1.125rem 1fr auto; align-items: start; gap: 0.625rem; padding: 0.75rem; border: 0.0625rem solid #edf0f6; border-radius: 0.75rem; background: #fdfdff; }
.candidate:has(input:checked) { border-color: #9bb0fa; background: #f7f9ff; }
.candidate:has(input:checked) .candidate-title { color: #526dcc; }
.candidate input { margin: 0.25rem 0 0; accent-color: var(--blue); }
.candidate-title { font-size: 0.75rem; font-weight: 700; }
.candidate-desc { margin-top: 0.3125rem; color: #647089; font-size: 0.6875rem; line-height: 1.5; }
.candidate-skill { color: #5e6a82; font-size: 0.625rem; white-space: nowrap; }
.plan-list { display: flex; align-items: stretch; gap: 0.5rem; overflow-x: auto; padding: 0.125rem 0 0.25rem; }
.plan-node { flex: 1; min-width: 6.25rem; padding: 0.625rem; border: 0.0625rem solid var(--line); border-radius: 0.625rem; background: #fafbfe; }
.plan-node::before { content: ''; display: block; width: 0.4375rem; height: 0.4375rem; margin-bottom: 0.5625rem; border-radius: 50%; background: #a4adc0; }
.plan-node.done::before { background: #36ab87; }
.plan-node.running::before { background: #5c7ce8; box-shadow: 0 0 0 0.25rem #5c7ce81b; }
.plan-node.waiting::before { background: #e4a247; }
.plan-node strong { display: block; font-size: 0.625rem; }
.plan-node small { display: block; margin-top: 0.25rem; color: #8994aa; font-size: 0.5625rem; }
.plan-node .plan-dependency { color: #5d6c89; line-height: 1.45; white-space: normal; }
.plan-task-copy { color: #697690 !important; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.instruction-review-intro { margin: 0.625rem 0; }
.instruction-draft-list { display: grid; gap: 0.625rem; margin-top: 0.75rem; }
.instruction-draft { display: grid; gap: 0.4375rem; padding: 0.75rem; border: 0.0625rem solid var(--line); border-radius: 0.75rem; background: rgba(250, 251, 255, .8); }
.instruction-draft strong { color: var(--ink); font-size: 0.75rem; }
.instruction-draft textarea { width: 100%; min-height: 6rem; padding: 0.625rem 0.75rem; resize: vertical; border: 0.0625rem solid var(--line); border-radius: 0.625rem; outline: none; color: var(--ink); background: rgba(255, 255, 255, .8); font: inherit; font-size: 0.75rem; line-height: 1.6; }
.instruction-draft textarea:focus-visible { outline: 0.1875rem solid #365fc9; outline-offset: 0.125rem; }
.instruction-help { color: #8994aa; font-size: 0.625rem; }
.instruction-actions { justify-content: flex-start; }
.task-result { padding-top: 0.75rem; margin-top: 0.75rem; border-top: 0.0625rem solid #eef0f5; color: #54607b; font-size: 0.75rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-result.markdown { white-space: normal; }
.task-result.markdown hr { margin: 0.75rem 0; border: 0; border-top: 0.0625rem solid #dfe6f3; }
.task-result.markdown .markdown-content { overflow-wrap: anywhere; }
.task-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.task-actions textarea { flex-basis: 100%; min-height: 4rem; padding: 0.625rem; resize: vertical; border: 0.0625rem solid var(--line); border-radius: 0.625rem; outline: none; font-size: 0.75rem; }
.task-actions textarea:focus { border-color: #9aaff5; box-shadow: 0 0 0 0.1875rem #6582ea12; }
.task-actions textarea:focus-visible { outline: 0.1875rem solid #365fc9; outline-offset: 0.125rem; }
.file-chips, .message-attachments { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.file-chips { flex-basis: 100%; }
.file-chip, .attachment-download { display: inline-flex; align-items: center; gap: 0.375rem; max-width: 100%; padding: 0.375rem 0.5625rem; border: 0.0625rem solid #e4e9f2; border-radius: 62.4375rem; color: #63708b; background: #f8f9fc; font-size: 0.625rem; overflow-wrap: anywhere; }
.file-remove { width: 1rem; height: 1rem; padding: 0; border: 0; border-radius: 50%; color: #77829a; background: #e9edf5; line-height: 1; }
.message-attachments { margin-top: 0.4375rem; justify-content: flex-end; }
.attachment-download { cursor: pointer; }
.attachment-download:hover { color: #4e68c4; border-color: #cbd7fa; background: #f3f6ff; }
.media-attachments { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.625rem; }
.media-attachment { display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; max-width: min(100%, 18rem); }
.media-preview { display: block; width: min(100%, 18rem); padding: 0; border: 0; border-radius: 0.625rem; overflow: hidden; background: #f3f6ff; cursor: zoom-in; }
.media-preview img { display: block; width: 100%; max-height: 14rem; object-fit: contain; }
.media-video-open { padding: 0.75rem; border: 0.0625rem solid #d8dfeb; border-radius: 0.625rem; color: #415579; background: #f5f7fb; cursor: pointer; }
.media-video-preview { display: block; width: min(100%, 24rem); max-height: 18rem; border-radius: 0.625rem; background: #171b24; }
.media-lightbox-open { overflow: hidden; }
.media-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 2rem; background: rgba(12, 17, 29, .92); }
.media-lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.media-lightbox-caption { max-width: 100%; color: white; overflow-wrap: anywhere; }
.media-lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; color: #111; background: white; font-size: 1.6rem; cursor: pointer; }
.media-preview:focus-visible, .media-video-open:focus-visible, .media-lightbox-close:focus-visible { outline: 0.1875rem solid #365fc9; outline-offset: 0.125rem; }
.attachment-disclosure { margin: 0 0 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.625rem; color: #795f36; background: #fff8eb; font-size: 0.6875rem; line-height: 1.55; }
.primary, .secondary, .danger { border: 0; border-radius: 0.5625rem; padding: 0.5625rem 0.75rem; font-size: 0.6875rem; font-weight: 600; }
.primary { color: #fff; background: var(--blue); box-shadow: 0 0.25rem 0.625rem #5478e82b; }
.secondary { color: #5d6b89; background: #f0f3f8; }
.danger { color: #ae5662; background: #fff0f2; }
.composer-wrap { padding: 0.9375rem 1.375rem 1.3125rem; background: linear-gradient(0deg, var(--wash) 78%, #f5f7fb00); }
.composer { width: min(53.125rem, 100%); margin: 0 auto; padding: 0.6875rem 0.75rem 0.625rem 1.0625rem; border: 0.0625rem solid #e0e6f1; border-radius: 1.0625rem; background: #fff; box-shadow: 0 0.5rem 1.75rem #2d3c620d; }
.composer textarea { display: block; width: 100%; min-height: 2.8125rem; max-height: 11.25rem; padding: 0.25rem 0; border: 0; outline: 0; resize: none; color: var(--ink); font-size: 0.8125rem; line-height: 1.65; }
.composer textarea::placeholder { color: #a1aabd; }
.openmuse-ui .is-file-dragging .composer {
  outline: 0.125rem dashed #5478e8;
  outline-offset: 0.25rem;
  background: #edf5ff;
}
.composer-bottom { display: flex; align-items: center; justify-content: space-between; }
.composer-tools { display: flex; align-items: center; gap: 0.625rem; }
.attach-file { padding: 0.375rem 0.5625rem; border: 0.0625rem solid #e7ebf3; border-radius: 0.5rem; color: #75809a; background: #fafbfe; font-size: 0.625rem; }
.composer-hint { color: #9aa4b8; font-size: 0.625rem; }
.send { display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border: 0; border-radius: 0.6875rem; color: #fff; background: linear-gradient(135deg, #6c8bf0, #766fda); font-size: 1.0625rem; }
.send.is-stop { background: linear-gradient(135deg, #65718f, #4d5b79); cursor: pointer; }
.send.is-stop:disabled { opacity: .6; cursor: wait; }
.stop-glyph { display: block; width: .75rem; height: .75rem; border-radius: .16rem; background: currentColor; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 5; padding: 0.625rem 0.875rem; border: 0.0625rem solid #e5e9f0; border-radius: 0.625rem; color: #55617a; background: white; box-shadow: 0 0.4375rem 1.5625rem #1e29451b; font-size: 0.75rem; transform: translateX(-50%); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(ellipse at 22% 16%, #eaf0ff 0, transparent 40%), radial-gradient(ellipse at 90% 87%, #eee9ff 0, transparent 37%), #f6f8fc; }
.auth-card { width: min(26.25rem, 100%); padding: 2.125rem; border: 0.0625rem solid #e6eaf3; border-radius: 1.375rem; background: #ffffffd9; box-shadow: 0 1.125rem 3.75rem #3b4e7d12; backdrop-filter: blur(1.125rem); }
.auth-card .brand { padding: 0; margin-bottom: 1.875rem; }
.auth-card h1 { margin: 0 0 0.5rem; font-size: 1.5rem; letter-spacing: -.04em; }
.auth-card p { margin: 0 0 1.4375rem; color: var(--muted); font-size: 0.75rem; line-height: 1.6; }
.auth-card label { display: block; margin: 0.8125rem 0 0.4375rem; color: #66728c; font-size: 0.6875rem; font-weight: 600; }
.auth-card input { width: 100%; padding: 0.75rem; border: 0.0625rem solid var(--line); border-radius: 0.625rem; outline: none; background: #fff; font-size: 0.8125rem; }
.auth-card input:focus { border-color: #9aaef5; box-shadow: 0 0 0 0.1875rem #6080ea12; }
.auth-submit { width: 100%; margin-top: 1.25rem; padding: 0.75rem; border: 0; border-radius: 0.625rem; color: #fff; background: linear-gradient(135deg, #6887eb, #7b70da); font-size: 0.75rem; font-weight: 700; }
.auth-switch { display: block; margin: 1.0625rem auto 0; border: 0; color: #667bd0; background: transparent; font-size: 0.6875rem; }
.empty-history { padding: 1.25rem; text-align: center; color: #9aa4b8; font-size: 0.75rem; }
@media (max-width: 45rem) {
  .shell { display: block; }
  .sidebar { position: fixed; z-index: 4; inset: 0 auto 0 0; width: 17rem; box-shadow: 0.75rem 0 1.75rem #1523441a; transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .topbar { height: 3.5625rem; padding: 0 0.9375rem; }
  .mobile-menu { display: block !important; border: 0; color: #64708a; background: transparent; font-size: 1.125rem; }
  .timeline { width: calc(100% - 1.75rem); padding-top: 1.3125rem; }
  .welcome { margin-top: 8vh; }
  .card { margin-left: 0; padding: 0.8125rem; }
  .candidate { grid-template-columns: 1.125rem 1fr; }
  .candidate-skill { grid-column: 2; }
  .composer-wrap { padding: 0.6875rem 0.75rem 0.8125rem; }
  .composer { border-radius: 0.875rem; }
}
.mobile-menu { display: none; }
.admin-dialog { width: min(57.5rem, calc(100vw - 1.75rem)); max-height: min(88vh, 56.25rem); padding: 0; border: 0.0625rem solid var(--line); border-radius: 1.125rem; color: var(--ink); background: #fff; box-shadow: 0 1.5rem 5rem #1a254333; }
.admin-dialog::backdrop { background: #202a3d66; backdrop-filter: blur(0.25rem); }
.plugins-panel { display: grid; gap: 1.25rem; padding: 1.25rem; overflow: auto; max-height: 70vh; }
.plugins-intro { margin: 0; line-height: 1.6; }
.plugins-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; align-items: start; }
.plugin-card { min-width: 0; padding: 1.25rem; border: 0.0625rem solid #e5e9ee; border-radius: 1.25rem; background: #fff; box-shadow: 0 0.375rem 1.5rem rgba(25,48,65,.055); }
.plugin-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.plugin-card-copy { display: grid; min-width: 0; gap: 0.375rem; }
.plugin-card-kicker { color: #64748b; font-size: 0.6875rem; font-weight: 600; }
.plugin-card-title { margin: 0; color: var(--ink); font-size: 1.125rem; line-height: 1.35; }
.plugin-card-description { margin: 0; color: #64708a; font-size: 0.8125rem; line-height: 1.55; }
.plugin-switch { display: flex; flex: none; align-items: center; gap: 0.5rem; cursor: pointer; }
.plugin-switch-status { color: #64708a; font-size: 0.75rem; white-space: nowrap; }
.plugin-switch input { appearance: none; position: relative; width: 2.625rem; height: 1.5rem; margin: 0; border: 0.0625rem solid #d1d9df; border-radius: 1rem; background: #e8edf0; cursor: pointer; transition: background .2s ease; }
.plugin-switch input::after { position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; box-shadow: 0 0.0625rem 0.25rem rgba(18,40,52,.2); content: ''; transition: transform .2s ease; }
.plugin-switch input:checked { border-color: #2783bf; background: #2783bf; }
.plugin-switch input:checked::after { transform: translateX(1.125rem); }
.plugin-switch input:focus-visible { outline: 0.1875rem solid #aad7f1; outline-offset: 0.1875rem; }
.plugin-switch input:disabled { cursor: progress; opacity: .6; }
.plugin-card-detail { margin-top: 1.25rem; padding-top: 1.125rem; border-top: 0.0625rem solid #e9ecef; }
.plugin-detail-description { margin: 0 0 1.125rem; color: #64708a; font-size: 0.8125rem; line-height: 1.6; }
.plugin-detail-title { margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.4; }
.plugin-detail-empty { margin: 0; color: #697176; font-size: 0.8125rem; }
.plugin-data-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 0.0625rem solid #edf0f2; }
.plugin-data-content { min-width: 0; overflow-wrap: anywhere; font-size: 0.8125rem; line-height: 1.5; }
.plugin-data-row button { flex: none; }
.plugin-data-clear { margin-top: 0.875rem; }
.plugin-selection-toolbar {
  position: fixed;
  z-index: 1600;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(48, 70, 56, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.45rem 1.35rem rgba(29, 50, 43, 0.16);
}
.plugin-selection-action {
  border: 0;
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: transparent;
  color: #354d40;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
}
.plugin-selection-action:hover, .plugin-selection-action:focus-visible { background: #ecf5ee; outline: none; }
@media (max-width: 32rem) {
  .plugin-card { padding: 1rem; }
  .plugin-card-header { gap: 0.625rem; }
  .plugin-switch { flex-direction: column-reverse; align-items: flex-end; }
}
.admin-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 1.0625rem 1.25rem; border-bottom: 0.0625rem solid var(--line); background: #fff; }
.admin-body { display: grid; gap: 1.25rem; padding: 1.25rem; }
.admin-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.admin-bulk input { width: 11.875rem; min-width: 0; padding: 0.5625rem 0.625rem; border: 0.0625rem solid var(--line); border-radius: 0.5625rem; font: inherit; font-size: 0.75rem; }
.admin-users { display: grid; gap: 0.5rem; overflow-x: auto; }
.admin-user { display: grid; grid-template-columns: 1.25rem minmax(13.75rem, 1fr) 6.5625rem auto auto auto auto auto; min-width: 53.75rem; gap: 0.5rem; align-items: center; padding: 0.625rem; border: 0.0625rem solid var(--line); border-radius: 0.6875rem; }
.admin-user-details { min-width: 0; display: grid; gap: 0.25rem; }
.admin-user-details small, .admin-help { color: var(--muted); font-size: 0.6875rem; overflow-wrap: anywhere; }
.admin-quota, .admin-identity-form input, .admin-identity-form select { min-width: 0; padding: 0.5625rem 0.625rem; border: 0.0625rem solid var(--line); border-radius: 0.5625rem; color: var(--ink); background: white; font: inherit; font-size: 0.75rem; }
.admin-identity-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5625rem; padding-top: 1rem; border-top: 0.0625rem solid var(--line); }
.admin-identity-form h3, .admin-identity-form p { grid-column: 1 / -1; margin: 0; }
.admin-identity-form .primary { grid-column: 1 / -1; justify-self: start; }
.admin-identity-form h3 { font-size: 0.8125rem; }
.admin-help { line-height: 1.6; }
.admin-setup-warning { padding: 0.5625rem 0.625rem; border-radius: 0.5rem; color: #9b6427; background: #fff6e9; }
.admin-audit { padding-top: 1rem; border-top: 0.0625rem solid var(--line); }
.admin-audit summary { cursor: pointer; color: #5d6b89; font-size: 0.75rem; font-weight: 700; }
.admin-audit-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0.75rem 0; }
.admin-audit-form input, .admin-audit-form select { min-width: 0; padding: 0.5rem 0.5625rem; border: 0.0625rem solid var(--line); border-radius: 0.5rem; color: var(--ink); background: #fff; font: inherit; font-size: 0.6875rem; }
.admin-audit-rows { display: grid; gap: 0.4375rem; max-height: 21.25rem; overflow: auto; }
.admin-audit-row { display: grid; gap: 0.25rem; padding: 0.5625rem; border: 0.0625rem solid var(--line); border-radius: 0.5625rem; }
.admin-audit-row strong { font-size: 0.6875rem; }
.admin-audit-row small { color: var(--muted); font-size: 0.625rem; }
.admin-audit-row code { white-space: pre-wrap; overflow-wrap: anywhere; color: #66718b; font-size: 0.625rem; }
.account-form { display: grid; gap: 0.625rem; padding: 1.25rem; }
.account-form input { width: 100%; min-width: 0; padding: 0.625rem 0.75rem; border: 0.0625rem solid var(--line); border-radius: 0.5625rem; color: var(--ink); background: #fff; font: inherit; font-size: 0.75rem; }
.account-form .admin-help { margin: 0; }
.account-form .primary { justify-self: start; }
.account-health { display: grid; gap: 0.4375rem; margin: 0 1.25rem 1.25rem; padding-top: 0.875rem; border-top: 0.0625rem solid var(--line); }
.account-health p { margin: 0; }
@media (max-width: 38.75rem) {
  .admin-dialog { max-height: 92vh; }
  .admin-body { padding: 0.8125rem; }
  .admin-user { grid-template-columns: 1.25rem minmax(0, 1fr) auto; }
  .admin-user-details { grid-column: 1 / -1; }
  .admin-user > button { grid-column: span 1; }
  .admin-user > .admin-quota { grid-column: 2; }
  .admin-identity-form { grid-template-columns: 1fr; }
  .admin-identity-form h3, .admin-identity-form p, .admin-identity-form .primary { grid-column: 1; }
  .admin-audit-form { grid-template-columns: 1fr 1fr; }
}
/* v2.1 selected visual system: fresh liquid-pastel surfaces with restrained wheat-gold mascots. */
:root {
  --ink: #43516d;
  --muted: #77859f;
  --line: rgba(137, 157, 205, .22);
  --paper: rgba(255, 255, 255, .78);
  --wash: #f5f7ff;
  --blue: #7185d5;
  --blue-2: #e4e9ff;
  --purple: #857bd1;
  --green: #68a990;
  --orange: #c69a60;
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root body {
  background:
    radial-gradient(ellipse at 8% 4%, rgba(210, 222, 255, .82), transparent 31rem),
    radial-gradient(ellipse at 95% 2%, rgba(255, 224, 213, .65), transparent 27rem),
    radial-gradient(ellipse at 79% 100%, rgba(208, 239, 229, .60), transparent 34rem),
    linear-gradient(145deg, #f9fbff 0%, #f5f6ff 48%, #f7fbff 100%);
}

:root .sidebar {
  background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(242, 246, 255, .64));
  border-color: rgba(255, 255, 255, .82);
  box-shadow: 0.75rem 0 2.625rem rgba(85, 104, 157, .07), inset -0.0625rem 0 rgba(129, 151, 201, .12);
  backdrop-filter: blur(1.5rem) saturate(145%);
}
:root .brand { color: #465675; }
:root .brand-mark {
  width: 2.375rem; height: 2.375rem; overflow: hidden; border: 0.0625rem solid rgba(255, 255, 255, .92); border-radius: 0.8125rem;
  background: linear-gradient(145deg, #fbfdff, #e2e9ff); box-shadow: 0 0.4375rem 0.9375rem rgba(93, 113, 172, .13), inset 0 0.0625rem #fff;
}
:root .brand-mark img { width: 3.4375rem; height: 3.4375rem; margin: -0.5625rem; object-fit: contain; mix-blend-mode: multiply; filter: saturate(.78) brightness(1.08); }
:root .new-chat {
  border-color: rgba(255, 255, 255, .9); border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(235, 240, 255, .76));
  box-shadow: 0 0.5rem 1.125rem rgba(92, 112, 171, .08), inset 0 0.0625rem rgba(255, 255, 255, .96); color: #6075c4;
}
:root .conversation:hover,
:root .conversation.active { color: #53627d; background: rgba(229, 235, 251, .72); }
:root .profile { border-color: rgba(137, 157, 205, .18); }
:root .topbar {
  border-color: rgba(255, 255, 255, .68); background: rgba(255, 255, 255, .45);
  box-shadow: 0 0.0625rem rgba(133, 153, 205, .08); backdrop-filter: blur(1.375rem) saturate(145%);
}
:root .topbar h1 { color: #53627d; }
.topbar-tools { display: flex; min-width: 0; align-items: center; gap: 0.875rem; }
:root .topbar-meta { color: #8391aa; }
:root .dingdang-state-stage {
  display: flex; align-items: center; gap: 0.5rem; width: 12.125rem; min-width: 0; min-height: 3.25rem; overflow: hidden;
  padding: 0.3125rem 0.375rem 0.3125rem 0.75rem; border: 0.0625rem solid rgba(255, 255, 255, .9); border-radius: 1.0625rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(234, 240, 255, .67) 58%, rgba(244, 239, 255, .68));
  box-shadow: 0 0.5rem 1.1875rem rgba(87, 106, 164, .09), inset 0 0.0625rem #fff; backdrop-filter: blur(1.125rem) saturate(150%);
}
:root .dingdang-state-copy { display: grid; min-width: 0; gap: 0.25rem; }
:root .dingdang-state-kicker { overflow: hidden; color: #8391aa; font-size: 0.625rem; font-weight: 700; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
:root .dingdang-state-copy strong { overflow: hidden; color: #53627d; font-size: 0.6875rem; font-weight: 750; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
:root .dingdang-state-avatar {
  position: relative; width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; overflow: hidden; border-radius: 0.8125rem;
  background: radial-gradient(circle at 44% 18%, rgba(255, 255, 255, .94), transparent 48%), linear-gradient(145deg, #fbfdff, #e2e9ff);
  box-shadow: inset 0 0.0625rem #fff, 0 0.1875rem 0.4375rem rgba(90, 110, 171, .1);
}
:root .dingdang-state-avatar img { width: 3.625rem; height: 3.625rem; margin: -0.5rem 0 0 -0.5625rem; object-fit: contain; transform-origin: 50% 85%; mix-blend-mode: multiply; filter: saturate(.76) brightness(1.1) contrast(.95); }
:root .dingdang-state-stage[data-state="idle"] .dingdang-state-avatar img { animation: dingdang-idle 5.2s ease-in-out infinite; }
:root .dingdang-state-stage[data-state="thinking"] .dingdang-state-avatar img { animation: dingdang-thinking 1.9s ease-in-out infinite; }
:root .dingdang-state-stage[data-state="collaborating"] .dingdang-state-avatar img { animation: dingdang-collaborating 1.3s ease-in-out infinite; }
:root .dingdang-state-stage[data-state="attention"] .dingdang-state-avatar img { animation: dingdang-attention .78s ease-in-out infinite alternate; }
:root .dingdang-state-stage[data-state="thinking"] .dingdang-state-kicker { color: #7d83c6; }
:root .dingdang-state-stage[data-state="collaborating"] .dingdang-state-kicker { color: #669885; }
:root .dingdang-state-stage[data-state="attention"] .dingdang-state-kicker { color: #ae8651; }

:root .content { background: transparent; }
:root .timeline { padding-top: 2rem; }
:root .welcome {
  max-width: 47.5rem; margin: 7vh auto 2.125rem; padding: 1.875rem 2.125rem 2rem; border: 0.0625rem solid rgba(255, 255, 255, .84); border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(246, 249, 255, .56));
  box-shadow: 0 1.25rem 2.8125rem rgba(85, 103, 159, .09), inset 0 0.0625rem rgba(255, 255, 255, .96); backdrop-filter: blur(1.375rem) saturate(145%);
}
:root .welcome-mascot {
  width: 5.125rem; height: 5.125rem; margin: 0 auto 0.6875rem; overflow: hidden; border: 0.0625rem solid rgba(255, 255, 255, .92); border-radius: 1.5rem;
  background: linear-gradient(145deg, #fbfdff, #e7edff); box-shadow: 0 0.5625rem 1.1875rem rgba(86, 106, 169, .13), inset 0 0.0625rem #fff;
}
:root .welcome-mascot img { width: 7.5rem; height: 7.5rem; margin: -1.25rem 0 0 -1.25rem; object-fit: contain; mix-blend-mode: multiply; filter: saturate(.8) brightness(1.07); }
:root .welcome-copy { margin-bottom: 0.5rem; color: #8997b0; font-size: 0.5625rem; font-weight: 750; letter-spacing: .17em; }
:root .welcome h2 { color: #465570; font-weight: 760; }
:root .welcome p { color: #7c8aa2; }
:root .suggestion {
  border-color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .66); color: #687795;
  box-shadow: 0 0.3125rem 0.875rem rgba(85, 104, 161, .05), inset 0 0.0625rem #fff;
}
:root .suggestion:hover { border-color: rgba(123, 142, 218, .36); background: rgba(255, 255, 255, .9); color: #6075c4; }
:root .message-row { gap: 0.6875rem; }
:root .mascot-avatar { overflow: hidden; border: 0.0625rem solid rgba(255, 255, 255, .9); border-radius: 0.6875rem; background: linear-gradient(145deg, #fbfdff, #e5ebff); box-shadow: 0 0.25rem 0.5625rem rgba(86, 106, 169, .1); }
:root .mascot-avatar img { width: 2.875rem; height: 2.875rem; object-fit: contain; mix-blend-mode: multiply; filter: saturate(.78) brightness(1.08); }
:root .message-name { color: #8491a8; }
:root .bubble {
  border-color: rgba(255, 255, 255, .88); border-radius: 0.3125rem 1.0625rem 1.0625rem 1.0625rem;
  background: rgba(255, 255, 255, .72); box-shadow: 0 0.5rem 1.375rem rgba(85, 103, 159, .06), inset 0 0.0625rem #fff; backdrop-filter: blur(0.875rem);
}
:root .user .bubble { border: 0.0625rem solid rgba(255, 255, 255, .52); border-radius: 1.0625rem 0.3125rem 1.0625rem 1.0625rem; background: linear-gradient(135deg, #8293df, #7185d5); box-shadow: 0 0.4375rem 1rem rgba(96, 113, 190, .17); }
:root .card {
  border-color: rgba(255, 255, 255, .84); border-radius: 1.1875rem; background: rgba(255, 255, 255, .7);
  box-shadow: 0 0.8125rem 1.75rem rgba(85, 104, 161, .07), inset 0 0.0625rem rgba(255, 255, 255, .94); backdrop-filter: blur(1.125rem) saturate(145%);
}
:root .candidate,
:root .plan-node { border-color: rgba(135, 154, 203, .18); border-radius: 0.875rem; background: rgba(248, 250, 255, .67); }
:root .candidate:has(input:checked) { border-color: rgba(113, 133, 213, .42); background: rgba(237, 241, 255, .82); }
:root .composer-wrap { background: linear-gradient(0deg, rgba(245, 247, 255, .96) 72%, rgba(245, 247, 255, 0)); }
:root .composer {
  border-color: rgba(255, 255, 255, .9); border-radius: 1.375rem; background: rgba(255, 255, 255, .78);
  box-shadow: 0 0.6875rem 1.8125rem rgba(85, 103, 159, .09), inset 0 0.0625rem rgba(255, 255, 255, .98); backdrop-filter: blur(1.25rem) saturate(145%);
}
:root .attach-file { border-color: rgba(137, 157, 205, .2); border-radius: 0.6875rem; background: rgba(248, 250, 255, .8); color: #7081a3; }
:root .send { border: 0.0625rem solid rgba(255, 255, 255, .76); border-radius: 0.875rem; background: linear-gradient(145deg, #8496e6, #6e80cf); box-shadow: 0 0.5rem 0.9375rem rgba(95, 113, 191, .2), inset 0 0.0625rem rgba(255, 255, 255, .45); }
:root .send.is-stop { background: linear-gradient(145deg, #65718f, #4d5b79); }
:root .primary { border-radius: 0.75rem; background: linear-gradient(135deg, #8293df, #6e81cf); box-shadow: 0 0.4375rem 0.875rem rgba(96, 113, 190, .16), inset 0 0.0625rem rgba(255, 255, 255, .35); }
:root .secondary { border: 0.0625rem solid rgba(133, 153, 205, .22); border-radius: 0.6875rem; background: rgba(255, 255, 255, .7); color: #6577b8; }
:root .mascot-menu { border-color: rgba(255, 255, 255, .88); border-radius: 1rem; background: rgba(255, 255, 255, .9); box-shadow: 0 0.875rem 2.125rem rgba(56, 74, 124, .17); backdrop-filter: blur(1.125rem); }
:root .mascot-menu-heading { padding: 0.5rem 0.625rem 0.25rem; color: #8a97ad; font-size: 0.625rem; font-weight: 750; letter-spacing: .04em; }
:root .mascot-choice:hover,
:root .mascot-choice[aria-checked="true"] { background: #edf1ff; color: #6075c4; }
:root .auth-page { background: radial-gradient(ellipse at 22% 16%, #eaf0ff 0, transparent 40%), radial-gradient(ellipse at 90% 87%, #eee9ff 0, transparent 37%), #f6f8fc; }
:root .auth-card { border-color: rgba(255, 255, 255, .86); background: rgba(255, 255, 255, .78); box-shadow: 0 1.125rem 3.75rem rgba(59, 78, 125, .1); backdrop-filter: blur(1.125rem); }

@keyframes dingdang-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-0.125rem) rotate(-1.5deg); } }
@keyframes dingdang-thinking { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-0.1875rem) rotate(2deg); } }
@keyframes dingdang-collaborating { 0%, 100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(-0.125rem) translateY(-0.125rem); } }
@keyframes dingdang-attention { from { transform: translateY(0) scale(1); } to { transform: translateY(-0.125rem) scale(1.035); } }

@media (max-width: 56.25rem) {
  .topbar-tools { gap: 0.5rem; }
  .topbar-meta span:not(.status-dot) { display: none; }
  .topbar-meta { min-width: 0.4375rem; }
}
@media (max-width: 45rem) {
  :root .timeline { padding-top: 1.125rem; }
  :root .welcome { margin-top: 5vh; padding: 1.375rem 1.125rem 1.5rem; border-radius: 1.4375rem; }
  :root .welcome-mascot { width: 4.375rem; height: 4.375rem; border-radius: 1.25rem; }
  :root .welcome-mascot img { width: 6.5rem; height: 6.5rem; margin: -1.0625rem; }
  :root .dingdang-state-stage { width: auto; min-height: 2.75rem; padding: 0.125rem; border-radius: 0.875rem; }
  :root .dingdang-state-copy { display: none; }
  :root .dingdang-state-avatar { width: 2.375rem; height: 2.375rem; flex-basis: 2.375rem; border-radius: 0.6875rem; }
  :root .dingdang-state-avatar img { width: 3.375rem; height: 3.375rem; margin: -0.5rem 0 0 -0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dingdang-state-stage *, .brand-mark, .send { animation: none !important; transition-duration: .01ms !important; }
}

/* Conversation-first Agent review and progressive execution details. */
.execution-review { display: grid; gap: .9rem; margin-top: 1rem; }
.review-instruction { display: grid; gap: .5rem; }
.review-instruction textarea { box-sizing: border-box; width: 100%; min-height: 5rem; padding: .75rem; border: .0625rem solid var(--border, #ddd); border-radius: .75rem; font: inherit; resize: vertical; background: rgba(255,255,255,.75); }
.review-disclosure, .review-preparing { font-size: .88em; color: var(--muted, #666); line-height: 1.6; }
.selection-options > summary, .execution-process > summary { cursor: pointer; padding: .85rem 0; }
.execution-process { border-block: .0625rem solid rgba(0,0,0,.08); margin-block: .7rem; }
.execution-process > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; list-style: none; }
.execution-process > summary::before { content: '▸'; }
.execution-process[open] > summary::before { content: '▾'; }
.execution-process > summary > span { font-size: .85em; color: var(--muted, #666); }
.composer-task-context { display: flex; align-items: center; gap: .6rem; padding: .4rem .8rem; font-size: .85em; }
.composer-task-context[hidden] { display: none; }
.composer-task-context > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.composer-task-context select { max-width: 60%; border-radius: .5rem; padding: .35rem; font: inherit; }
.conversation-stop { white-space: nowrap; flex-shrink: 0; }
.conversation-action-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 47.5rem) { .composer-task-context { flex-wrap: wrap; } .composer-task-context > span, .composer-task-context select { max-width: 100%; } }
.execution-progress { padding: .6rem .25rem; margin-block: .6rem; }
.execution-progress-heading { margin: 0 0 .5rem; font-weight: 600; }
.execution-progress-lines { padding: 0; margin: .3rem 0; list-style: none; display: grid; gap: .35rem; font-size: .92em; color: var(--muted, #626970); }
.execution-progress-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: .65rem; }
.progress-text-action { padding: .2rem 0; border: 0; background: transparent; color: #35596b; font: inherit; cursor: pointer; text-underline-offset: .2em; }
.progress-text-action:hover { text-decoration: underline; }
.progress-text-action:disabled { opacity: .5; cursor: wait; }
.execution-process-content[hidden] { display: none; }
.execution-process-content { border-inline-start: .125rem solid rgba(0,0,0,.1); padding-inline-start: .8rem; margin-top: 1rem; }
.execution-process-content > .card { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: .6rem 0; }
.execution-selection-note { font-size: .9em; color: var(--muted, #626970); margin-block: .4rem; }
.task-attention { display: grid; gap: .7rem; padding-block: 1rem; }
.task-attention > .progress-text-action, .task-attention > button { justify-self: start; }

.process-instructions { display: grid; gap: .5rem; margin-block: .5rem 1rem; }
.process-instruction-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }

.admin-tabs { display: flex; gap: .5rem; padding: .75rem 1.25rem 0; }
.admin-tabs [aria-current="page"] { color: var(--ink); background: #edf2f7; font-weight: 700; }
.admin-body[hidden] { display: none; }
.admin-audit h2 { margin: 0; }
.admin-audit-row { min-width: 0; }

/* Compact administrator pages and quota editor. */
.admin-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.openmuse-ui .admin-user { gap: .35rem .5rem; padding: .6rem .75rem; }
.openmuse-ui .admin-user[hidden] { display: none; }
.openmuse-ui .admin-user-details { flex: 1 1 100%; padding-left: 1.5rem; }
.openmuse-ui .admin-user-select { position: absolute; margin-top: .25rem; }
.openmuse-ui .admin-user { position: relative; }
.openmuse-ui .admin-user > button { padding: .35rem .6rem; font-size: .7rem; min-height: 0; }
.admin-quota-dialog { width: min(36rem, calc(100vw - 2rem)); }
.admin-quota-dialog h2 { margin: 0; }
.admin-audit-rows { max-height: none; overflow: visible; }
.admin-audit-row code { max-height: 3.5rem; overflow: auto; }
@media (min-width: 60rem) {
  .openmuse-ui .admin-user-details { flex: 1 1 22rem; padding-left: 1.5rem; }
}

.openmuse-ui .admin-tabs { padding-bottom: .65rem; border-bottom: 1px solid #eef0f2; }
.openmuse-ui .admin-tabs > button[aria-current="page"] { background: #edf2f5; color: #11191c; font-weight: 700; }
.admin-user-toolbar { display: flex; flex-wrap: wrap; gap: .65rem; align-items: start; }
.admin-user-toolbar > details { flex: 1 1 16rem; min-width: 0; }
.admin-user-toolbar > details[open] { flex-basis: 100%; }
.openmuse-ui .admin-pagination { padding: .3rem .25rem; }
.openmuse-ui .admin-pagination > span { text-align: center; }
.openmuse-ui .admin-pagination > button { border: 1px solid #e6ebee; padding: .4rem .8rem; }
.openmuse-ui .admin-pagination > button:disabled { opacity: .4; cursor: default; }
.openmuse-ui .admin-user { border-color: #e9edef; border-radius: .8rem; }
.openmuse-ui .admin-user:hover { background: #fafbfc; }
.openmuse-ui .admin-quota-dialog .admin-body { gap: 1rem; }
.openmuse-ui .admin-quota-dialog .admin-body > button { justify-self: end; padding: .6rem 1.1rem; background: #edf2f5; }

/* Stable console viewport and direct page navigation. */
.openmuse-ui #admin-dialog[open] { width: 85vw; height: 88dvh; max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); box-sizing: border-box; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; }
#admin-dialog > .admin-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; }
.admin-page-jump, .admin-page-jump label { display: flex; align-items: center; gap: .4rem; }
.admin-page-jump { margin: 0; margin-left: auto; }
.openmuse-ui .admin-page-jump input { width: 3.5rem; min-width: 0; padding: .4rem; border: 1px solid #e6ebee; border-radius: .5rem; font: inherit; font-size: .75rem; background: #fff; color: var(--ink); }
.openmuse-ui .admin-page-jump button { border: 1px solid #e6ebee; padding: .4rem .8rem; }
@media (max-width: 47.5rem) {
  .openmuse-ui #admin-dialog[open] { width: calc(100vw - 1.5rem); height: 92dvh; max-width: calc(100vw - 1.5rem); }
  .admin-pagination > span { flex: 1 1 8rem; }
}

/* One-time identity confirmation and the two My Dingdang pages. */
.my-dingdang-tabs { display: flex; gap: .5rem; }
.my-dingdang-tabs button { flex: 1; }
.my-dingdang-tabs button[aria-pressed="true"] { color: #283a31; background: #e7efe8; border-color: #9fb7a4; }
.my-dingdang-page { display: grid; gap: 1rem; }
.my-dingdang-page[hidden] { display: none; }
.identity-onboarding { width: min(42rem, calc(100vw - 1.5rem)); background: #fff; }
.identity-onboarding .my-dingdang-body { max-height: 75dvh; }
.identity-profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.identity-profile-field { display: grid; align-content: start; gap: .4rem; min-width: 0; font-size: .875rem; }
.identity-profile-field input, .identity-profile-field textarea { width: 100%; box-sizing: border-box; padding: .7rem .8rem; border: 1px solid #c9d0d8; border-radius: .6rem; font: inherit; color: #202936; background: white; }
.identity-profile-field textarea { min-height: 5rem; resize: vertical; }
.identity-profile-field:has(textarea), .identity-publish-note, .identity-agreement, .identity-profile-form > .error, .identity-profile-form > button { grid-column: 1 / -1; }
.identity-profile-field small { color: #637082; font-size: .75rem; }
.identity-publish-note { font-size: .8125rem; line-height: 1.7; padding: .75rem; background: #f4f6f7; border-radius: .6rem; margin: 0; }
.identity-agreement { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; line-height: 1.6; }
.identity-agreement input { width: auto; margin-top: .2rem; flex: none; }
.identity-facts { display: grid; gap: .75rem; margin: 1rem 0; }
.identity-fact { display: grid; grid-template-columns: 6rem minmax(0,1fr); gap: .75rem; font-size: .875rem; }
.identity-fact dt { color: #637082; }
.identity-fact dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 35rem) { .identity-profile-form { grid-template-columns: 1fr; } .identity-onboarding .my-dingdang-body { padding: 1rem; } }

/* Locally authenticated cooperation remains visible in each owner's history. */
.conversation-row.is-cooperation { background: #edf8f5; border-radius: 10px; }
.conversation-row.is-cooperation.is-current { background: #ddf1eb; }
.conversation-row.is-cooperation .conversation { background: transparent; }
.cooperation-icon { color: #127b67; font-weight: 700; }
.cooperation-receipt { padding: 0; border: 0; background: transparent; color: #7a8087; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.cooperation-message .bubble { border: 1px solid #cbd5df; background: #f1f5f9; }
.cooperation-message-source { font-size: 12px; font-weight: 500; color: #637587; margin-bottom: 8px; }
.cooperation-request .bubble { background: #eef2f7; border-color: #bccbd9; }

/* Account search and details. */
.openmuse-ui .admin-user-search { width: 100%; box-sizing: border-box; padding: .7rem .9rem; border: 1px solid #e6ebee; border-radius: .8rem; font: inherit; background: #fafbfc; }
.admin-user-detail-dialog { width: min(65rem, calc(100vw - 2rem)); }
.admin-user-detail-data { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.6; padding: .8rem; background: #f6f8fa; border-radius: .7rem; }

/* Administrator task status. */
.admin-task-list { display: grid; gap: .75rem; }
.admin-task-card { border: 1px solid #e6ebee; border-radius: .8rem; padding: .9rem; display: grid; gap: .6rem; min-width: 0; }
.admin-task-card > button { justify-self: end; }
.admin-task-request { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 6rem; overflow: auto; }
.admin-task-card summary { cursor: pointer; font-size: .8rem; }
.admin-task-page { width: 3.5rem; padding: .4rem; border: 1px solid #e6ebee; border-radius: .5rem; }
