/* Right rail: focused creative asset shortcuts. */

body.chat-shell .workspace-rail .rail-quick-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
}

body.chat-shell .workspace-rail .rail-quick-action {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 58px;
    padding: 0 10px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 11px;
    color: rgba(234, 232, 247, 0.76);
    text-align: left;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.018), transparent 48%),
        rgba(19, 20, 29, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 5px 16px rgba(0, 0, 0, 0.08);
}

body.chat-shell .workspace-rail .rail-quick-action:hover {
    color: #f8f6ff;
    border-color: rgba(137, 120, 255, 0.3);
    background:
        linear-gradient(110deg, rgba(124, 108, 255, 0.12), rgba(71, 111, 171, 0.035)),
        rgba(23, 24, 34, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 20px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px) translateX(1px);
}

body.chat-shell .workspace-rail .rail-quick-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid rgba(143, 129, 246, 0.13);
    border-radius: 9px;
    color: #9f93ff;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.08), transparent 45%),
        rgba(124, 108, 255, 0.105);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.chat-shell .workspace-rail .rail-quick-icon svg {
    width: 14px;
    height: 14px;
}

body.chat-shell .workspace-rail .rail-quick-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

body.chat-shell .workspace-rail .rail-quick-copy strong {
    overflow: hidden;
    color: rgba(244, 242, 253, 0.84);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.chat-shell .workspace-rail .rail-quick-copy small {
    overflow: hidden;
    color: rgba(187, 181, 211, 0.4);
    font-size: 8px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.chat-shell .workspace-rail .rail-quick-arrow {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 7px;
    color: rgba(179, 171, 214, 0.35);
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.chat-shell .workspace-rail .rail-quick-arrow svg {
    width: 12px;
    height: 12px;
}

body.chat-shell .workspace-rail .rail-quick-action:hover .rail-quick-arrow {
    color: #afa3ff;
    background: rgba(129, 112, 237, 0.08);
    transform: translateX(2px);
}

body.chat-shell .workspace-rail .rail-quick-action[data-rail-action="assets"] .rail-quick-icon {
    border-color: rgba(81, 161, 211, 0.14);
    color: #74b8e3;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.08), transparent 45%),
        rgba(70, 139, 190, 0.095);
}

body.chat-shell.theme-light .workspace-rail .rail-quick-action {
    border-color: rgba(52, 47, 84, 0.08);
    color: rgba(43, 39, 67, 0.68);
    background:
        linear-gradient(120deg, rgba(111, 91, 218, 0.018), transparent 52%),
        rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 5px 17px rgba(47, 39, 90, 0.035);
}

body.chat-shell.theme-light .workspace-rail .rail-quick-action:hover {
    color: #332c67;
    border-color: rgba(102, 86, 219, 0.22);
    background: linear-gradient(110deg, rgba(113, 96, 224, 0.075), rgba(255, 255, 255, 0.97));
    box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(52, 42, 104, 0.07);
}

body.chat-shell.theme-light .workspace-rail .rail-quick-icon {
    border-color: rgba(105, 89, 215, 0.11);
    color: #6959d7;
    background: rgba(105, 89, 215, 0.075);
}

body.chat-shell.theme-light .workspace-rail .rail-quick-copy strong { color: rgba(42, 37, 64, 0.82); }
body.chat-shell.theme-light .workspace-rail .rail-quick-copy small { color: rgba(66, 58, 91, 0.42); }
body.chat-shell.theme-light .workspace-rail .rail-quick-arrow { color: rgba(74, 65, 106, 0.32); }

body.chat-shell.theme-light .workspace-rail .rail-quick-action[data-rail-action="assets"] .rail-quick-icon {
    border-color: rgba(65, 143, 194, 0.12);
    color: #3f8dbc;
    background: rgba(67, 145, 197, 0.07);
}

@media (max-height: 720px) and (min-width: 1181px) {
    body.chat-shell .workspace-rail .rail-quick-action { height: 48px; }
}
