/* Right rail visual pass. Geometry stays owned by the existing rail styles. */

.workspace-rail {
    font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
}

body.chat-shell:not(.theme-light) .workspace-rail {
    --rail-accent: #8d9fff;
    --rail-muted: #8e9bb0;
    background: #090c12;
    border-left-color: #1d2635;
    color: #eef2f8;
}

body.chat-shell:not(.theme-light) .workspace-rail-header {
    border-bottom-color: #202a39;
}

body.chat-shell:not(.theme-light) .workspace-rail-brand-icon {
    border-color: rgba(141, 159, 255, 0.46);
    color: #b3c2ff;
    background: #151d30;
    box-shadow: 0 4px 14px rgba(61, 78, 168, 0.18);
}

body.chat-shell:not(.theme-light) .workspace-rail-brand-copy strong {
    color: #f7f9fd;
    font-weight: 700;
}

body.chat-shell:not(.theme-light) .workspace-rail-brand-copy small {
    color: #8793a7;
}

body.chat-shell:not(.theme-light) .workspace-rail-online {
    background: #4fd4b0;
    box-shadow: 0 0 0 3px rgba(79, 212, 176, 0.12), 0 0 9px rgba(79, 212, 176, 0.48);
}

body.chat-shell:not(.theme-light) .workspace-rail-card {
    border-color: #253044;
    background: #111722;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.chat-shell:not(.theme-light) .rail-account-card {
    background: linear-gradient(145deg, #151e2e, #111722);
}

body.chat-shell:not(.theme-light) .rail-avatar {
    border-color: rgba(174, 182, 255, 0.58);
    background: #665bd1;
    box-shadow: 0 5px 15px rgba(78, 67, 181, 0.28);
}

body.chat-shell:not(.theme-light) .rail-account-copy strong {
    color: #f4f7fc;
}

body.chat-shell:not(.theme-light) .rail-account-copy small,
body.chat-shell:not(.theme-light) .rail-wallet-copy small {
    color: #9aa7ba;
}

body.chat-shell:not(.theme-light) .rail-wallet-row {
    border-top-color: #293449;
}

body.chat-shell:not(.theme-light) .rail-wallet-copy strong {
    color: #ffffff;
}

body.chat-shell:not(.theme-light) .rail-primary-btn {
    color: #ffffff;
    border-color: #8175f2;
    background: #665bd1;
    box-shadow: 0 5px 14px rgba(76, 64, 184, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.chat-shell:not(.theme-light) .rail-primary-btn:hover {
    background: #7569e4;
    box-shadow: 0 7px 17px rgba(76, 64, 184, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.chat-shell:not(.theme-light) .workspace-rail-section-title {
    color: #c2ccdc;
}

body.chat-shell:not(.theme-light) .workspace-rail-section-title small {
    color: #69768c;
}

/* The asset shortcuts remain a quiet list, not another card inside a card. */
body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-grid {
    border: 0;
    background: transparent;
}

body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-action {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-action:hover {
    border-color: transparent;
    background: #141c29;
    box-shadow: none;
    transform: none;
}

body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-icon,
body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-action[data-rail-action="assets"] .rail-quick-icon,
body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-action[data-rail-action="usage"] .rail-quick-icon {
    border-color: #2c3b58;
    color: #aebeff;
    background: #172238;
    box-shadow: none;
}

body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-copy strong {
    color: #e8edf6;
}

body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-copy small {
    color: #8d9ab0;
}

body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-arrow {
    color: #74839a;
}

body.chat-shell:not(.theme-light) .workspace-rail .rail-quick-action:hover .rail-quick-arrow {
    color: #aebeff;
    background: rgba(141, 159, 255, 0.1);
}

body.chat-shell:not(.theme-light) .rail-current-card {
    background: #111722;
}

body.chat-shell:not(.theme-light) .workspace-rail-card-title {
    color: #c2ccdc;
}

body.chat-shell:not(.theme-light) .rail-title-icon-pulse,
body.chat-shell:not(.theme-light) .rail-title-icon-notice,
body.chat-shell:not(.theme-light) .rail-notice-arrow {
    color: #9eaeff;
}

body.chat-shell:not(.theme-light) .rail-current-model {
    border-color: #29364b;
    background: #0c1119;
}

body.chat-shell:not(.theme-light) .rail-model-orb {
    background: #182641;
    box-shadow: none;
}

body.chat-shell:not(.theme-light) .rail-model-orb i {
    background: #9eaeff;
    box-shadow: 0 0 10px rgba(158, 174, 255, 0.58);
}

body.chat-shell:not(.theme-light) .rail-current-copy strong {
    color: #edf1f8;
}

body.chat-shell:not(.theme-light) .rail-current-copy small {
    color: #8d9ab0;
}

body.chat-shell:not(.theme-light) .rail-ready-badge {
    border-color: rgba(88, 207, 166, 0.32);
    color: #80d9b9;
    background: rgba(62, 170, 132, 0.1);
}

/* Keep the announcement compact, as in the reference layout. */
body.chat-shell:not(.theme-light) .rail-notice-card {
    flex: 0 0 auto;
    min-height: 0;
    background: #111722;
}

body.chat-shell:not(.theme-light) .rail-notice-card:hover {
    border-color: #465f94;
    background: #151e2d;
}

body.chat-shell:not(.theme-light) .rail-notice-body {
    margin-top: 10px;
    gap: 5px;
}

body.chat-shell:not(.theme-light) .rail-notice-body strong {
    color: #e8edf6;
}

body.chat-shell:not(.theme-light) .rail-notice-body > span {
    color: #909db1;
}

body.chat-shell:not(.theme-light) .rail-notice-body small {
    color: #6f7d93;
}

body.chat-shell.theme-light .workspace-rail {
    background: #f6f7fb;
    border-left-color: #dfe3ec;
    color: #25283b;
}

body.chat-shell.theme-light .workspace-rail-header {
    border-bottom-color: #dfe3ec;
}

body.chat-shell.theme-light .workspace-rail-brand-icon {
    border-color: rgba(103, 91, 209, 0.3);
    color: #675bd1;
    background: #f0efff;
    box-shadow: 0 4px 13px rgba(91, 78, 190, 0.1);
}

body.chat-shell.theme-light .workspace-rail-brand-copy strong {
    color: #29263e;
}

body.chat-shell.theme-light .workspace-rail-brand-copy small {
    color: #77738a;
}

body.chat-shell.theme-light .workspace-rail-online {
    background: #43b996;
    box-shadow: 0 0 0 3px rgba(67, 185, 150, 0.1);
}

body.chat-shell.theme-light .workspace-rail-card {
    border-color: #dfe3ec;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(40, 44, 74, 0.035);
}

body.chat-shell.theme-light .rail-account-card {
    background: linear-gradient(145deg, #ffffff, #fbfbfe);
}

body.chat-shell.theme-light .rail-avatar {
    border-color: rgba(103, 91, 209, 0.2);
    background: #7165d7;
    box-shadow: 0 5px 15px rgba(92, 78, 190, 0.18);
}

body.chat-shell.theme-light .rail-account-copy strong,
body.chat-shell.theme-light .rail-wallet-copy strong {
    color: #292c40;
}

body.chat-shell.theme-light .rail-account-copy small,
body.chat-shell.theme-light .rail-wallet-copy small {
    color: #727b90;
}

body.chat-shell.theme-light .rail-wallet-row {
    border-top-color: #e3e6ef;
}

body.chat-shell.theme-light .rail-primary-btn {
    color: #ffffff;
    border-color: #7669df;
    background: #6d62d5;
    box-shadow: 0 5px 14px rgba(89, 75, 191, 0.18);
}

body.chat-shell.theme-light .rail-primary-btn:hover {
    background: #7a6ee4;
}

body.chat-shell.theme-light .workspace-rail-section-title {
    color: #5d6073;
}

body.chat-shell.theme-light .workspace-rail-section-title small {
    color: #9693a4;
}

body.chat-shell.theme-light .workspace-rail .rail-quick-grid {
    border: 0;
    background: transparent;
}

body.chat-shell.theme-light .workspace-rail .rail-quick-action {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body.chat-shell.theme-light .workspace-rail .rail-quick-action:hover {
    border-color: transparent;
    background: #eeeffa;
    box-shadow: none;
    transform: none;
}

body.chat-shell.theme-light .workspace-rail .rail-quick-icon,
body.chat-shell.theme-light .workspace-rail .rail-quick-action[data-rail-action="assets"] .rail-quick-icon,
body.chat-shell.theme-light .workspace-rail .rail-quick-action[data-rail-action="usage"] .rail-quick-icon {
    border-color: #e0def7;
    color: #6f63d7;
    background: #f0efff;
    box-shadow: none;
}

body.chat-shell.theme-light .workspace-rail .rail-quick-copy strong {
    color: #39394d;
}

body.chat-shell.theme-light .workspace-rail .rail-quick-copy small {
    color: #798196;
}

body.chat-shell.theme-light .workspace-rail .rail-quick-arrow {
    color: #9a9caf;
}

body.chat-shell.theme-light .workspace-rail .rail-quick-action:hover .rail-quick-arrow {
    color: #6f63d7;
    background: rgba(111, 99, 215, 0.08);
}

body.chat-shell.theme-light .rail-current-card {
    background: #ffffff;
}

body.chat-shell.theme-light .workspace-rail-card-title {
    color: #5c6074;
}

body.chat-shell.theme-light .rail-title-icon-pulse,
body.chat-shell.theme-light .rail-title-icon-notice,
body.chat-shell.theme-light .rail-notice-arrow {
    color: #6f63d7;
}

body.chat-shell.theme-light .rail-current-model {
    border-color: #e0e3ed;
    background: #f7f7fb;
}

body.chat-shell.theme-light .rail-model-orb {
    background: #efeeff;
    box-shadow: none;
}

body.chat-shell.theme-light .rail-model-orb i {
    background: #766be1;
    box-shadow: 0 0 9px rgba(118, 107, 225, 0.38);
}

body.chat-shell.theme-light .rail-current-copy strong {
    color: #37384b;
}

body.chat-shell.theme-light .rail-current-copy small {
    color: #7d8599;
}

body.chat-shell.theme-light .rail-ready-badge {
    border-color: rgba(62, 170, 132, 0.22);
    color: #3a9e7c;
    background: rgba(62, 170, 132, 0.08);
}

body.chat-shell.theme-light .rail-notice-card {
    flex: 0 0 auto;
    min-height: 0;
    background: #ffffff;
}

body.chat-shell.theme-light .rail-notice-card:hover {
    border-color: #bbb3ec;
    background: #fbfaff;
}

body.chat-shell.theme-light .rail-notice-body {
    margin-top: 10px;
    gap: 5px;
}

body.chat-shell.theme-light .rail-notice-body strong {
    color: #3c3b50;
}

body.chat-shell.theme-light .rail-notice-body > span {
    color: #778096;
}

body.chat-shell.theme-light .rail-notice-body small {
    color: #9a9caf;
}
