Files
DemonGatanjieu-Anomalous_Mo…/web/styles/09-prompt-drawers.css
T

1213 lines
29 KiB
CSS

/* Sidebar Docked Mode for Prompt Translator */
.anomalous-translator-overlay.is-sidebar {
background: transparent !important;
backdrop-filter: none !important;
pointer-events: none !important;
padding: 0 !important;
justify-content: flex-end !important;
align-items: stretch !important;
}
.anomalous-translator-modal.is-sidebar {
pointer-events: auto !important;
width: var(--amb-translator-width, 460px) !important;
min-width: 350px !important;
max-width: 92vw !important;
height: 100vh !important;
max-height: 100vh !important;
border-radius: 0 !important;
border-top: none !important;
border-bottom: none !important;
border-right: none !important;
border-left: 1px solid rgba(56, 189, 248, 0.3) !important;
background: rgba(13, 17, 26, 0.95) !important;
backdrop-filter: blur(24px) !important;
box-shadow: -10px 0 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.08) !important;
animation: anmSlideInRight 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.anomalous-translator-resize-handle {
display: none;
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 6px;
cursor: ew-resize;
z-index: 50;
transition: background 0.15s ease;
}
.anomalous-translator-modal.is-sidebar .anomalous-translator-resize-handle {
display: block;
}
.anomalous-translator-resize-handle:hover,
.anomalous-translator-resize-handle.is-resizing {
background: rgba(56, 189, 248, 0.5);
}
.anomalous-translator-mode-btn {
border: 1px solid rgba(56, 189, 248, 0.25) !important;
color: #7dd3fc !important;
font-size: 0.76rem !important;
padding: 3px 6px !important;
border-radius: 6px !important;
cursor: pointer;
background: rgba(15, 23, 42, 0.6);
white-space: nowrap;
transition: all 0.15s ease;
}
.anomalous-translator-mode-btn:hover {
background: rgba(56, 189, 248, 0.2) !important;
color: #ffffff !important;
border-color: #38bdf8 !important;
}
@keyframes anmSlideInRight {
from {
transform: translateX(100%);
opacity: 0.4;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Sidebar Dock Left Mode */
.anomalous-translator-overlay.is-sidebar.is-dock-left {
justify-content: flex-start !important;
}
.anomalous-translator-modal.is-sidebar.is-dock-left {
border-left: none !important;
border-right: 1px solid rgba(56, 189, 248, 0.3) !important;
box-shadow: 10px 0 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.08) !important;
animation: anmSlideInLeft 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.anomalous-translator-modal.is-sidebar.is-dock-left .anomalous-translator-resize-handle {
left: auto;
right: 0;
}
@keyframes anmSlideInLeft {
from {
transform: translateX(-100%);
opacity: 0.4;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.anomalous-translator-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
background: rgba(15, 23, 42, 0.95);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
gap: 8px;
}
.anomalous-translator-title-group {
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
flex-shrink: 0;
}
.anomalous-translator-icon {
font-size: 1.15rem;
}
.anomalous-translator-title {
margin: 0;
font-size: 0.95rem;
font-weight: 600;
color: #f1f5f9;
white-space: nowrap;
}
.anomalous-translator-header-right {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
margin-left: auto;
}
.anomalous-translator-lang-wrap {
display: flex;
align-items: center;
gap: 4px;
font-size: 0.78rem;
color: #94a3b8;
white-space: nowrap;
}
.anomalous-translator-lang-wrap span {
white-space: nowrap;
}
.anomalous-translator-select {
background: #1e293b;
border: 1px solid rgba(255, 255, 255, 0.15);
color: #e2e8f0;
font-size: 0.76rem;
border-radius: 6px;
padding: 3px 6px;
max-width: 120px;
cursor: pointer;
}
.anomalous-translator-close {
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
color: #e2e8f0;
font-size: 1.25rem;
line-height: 1;
cursor: pointer;
padding: 3px 8px;
border-radius: 6px;
transition: all 0.15s ease;
flex-shrink: 0;
margin-left: 2px;
}
.anomalous-translator-close:hover {
color: #ffffff;
background: #ef4444 !important;
border-color: #ef4444 !important;
transform: scale(1.08);
}
.anomalous-translator-body {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px 14px;
overflow-y: auto;
flex: 1;
}
.anomalous-translator-pane {
display: flex;
flex-direction: column;
gap: 6px;
background: rgba(30, 41, 59, 0.5);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 10px;
padding: 10px 12px;
}
.anomalous-translator-modal.is-sidebar .anomalous-translator-pane {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.anomalous-translator-pane-label {
font-size: 0.78rem;
font-weight: 600;
color: #94a3b8;
display: flex;
align-items: center;
justify-content: space-between;
}
.anomalous-translator-textarea {
width: 100%;
min-height: 80px;
background: #090d16;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #f8fafc;
font-family: inherit;
font-size: 0.88rem;
line-height: 1.5;
padding: 8px 10px;
resize: vertical;
box-sizing: border-box;
transition: border-color 0.2s;
}
.anomalous-translator-modal.is-sidebar .anomalous-translator-textarea {
flex: 1;
min-height: 72px;
resize: none;
}
.anomalous-translator-textarea:focus {
border-color: #38bdf8;
outline: none;
box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.anomalous-translator-textarea.is-target {
color: #38bdf8;
background: #070b13;
}
.anomalous-translator-action-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
flex-wrap: wrap;
margin-top: 2px;
}
.anomalous-translator-action-group {
display: flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
}
.anomalous-translator-modal.is-sidebar .anomalous-btn-sm {
padding: 3px 7px !important;
font-size: 0.76rem !important;
white-space: nowrap !important;
}
.anomalous-translator-mid-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 8px;
background: rgba(15, 23, 42, 0.75);
border: 1px solid rgba(56, 189, 248, 0.2);
border-radius: 8px;
margin: 1px 0;
gap: 6px;
box-sizing: border-box;
}
.anomalous-translator-swap-btn {
background: #1e293b;
border: 1px solid rgba(56, 189, 248, 0.35);
color: #38bdf8;
border-radius: 10px;
padding: 2px 10px;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
display: inline-flex;
align-items: center;
gap: 4px;
white-space: nowrap;
flex-shrink: 0;
}
.anomalous-translator-swap-btn:hover {
background: #0284c7;
color: #ffffff;
border-color: #38bdf8;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.anomalous-translator-chips-wrap {
display: flex;
flex-wrap: wrap;
gap: 4px;
max-height: 56px;
overflow-y: auto;
padding: 4px 2px;
}
.anomalous-translator-chip {
display: inline-flex;
align-items: center;
padding: 2px 7px;
background: rgba(56, 189, 248, 0.1);
border: 1px solid rgba(56, 189, 248, 0.28);
border-radius: 10px;
color: #7dd3fc;
font-size: 0.72rem;
cursor: pointer;
transition: all 0.15s ease;
user-select: none;
}
.anomalous-translator-chip:hover {
background: rgba(56, 189, 248, 0.25);
border-color: #38bdf8;
color: #ffffff;
transform: translateY(-1px);
}
.anomalous-translator-toast {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(15, 23, 42, 0.95);
border: 1px solid #38bdf8;
color: #38bdf8;
padding: 8px 18px;
border-radius: 20px;
font-size: 0.82rem;
font-weight: 500;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
z-index: 100;
pointer-events: none;
animation: anmFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
transition: opacity 0.4s ease;
}
.anomalous-translator-toast.is-error {
border-color: #f87171;
color: #f87171;
}
.anomalous-translator-toast.is-fade-out {
opacity: 0;
}
.anomalous-mixer-block-btn.is-translate {
font-size: 0.78rem;
padding: 2px 4px;
opacity: 0.8;
}
.anomalous-mixer-block-btn.is-translate:hover {
opacity: 1;
color: #38bdf8;
background: rgba(56, 189, 248, 0.18);
}
/* ==========================================================================
PROMPT STUDIO: Minimalist Sidebar Drawer & Floating Action Dock
========================================================================== */
.anomalous-prompt-studio-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 999990;
pointer-events: none; /* Canvas passthrough: pan/zoom canvas freely */
overflow: hidden;
}
.anomalous-prompt-studio-drawer {
position: absolute;
top: 0;
right: 0;
width: 580px;
max-width: 90vw;
height: 100vh;
background: var(--amb-bg-page, #121316);
border-left: 1px solid var(--amb-border, rgba(255, 255, 255, 0.12));
box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
pointer-events: auto;
display: flex;
flex-direction: column;
z-index: 999991;
box-sizing: border-box;
}
.anomalous-prompt-studio-drawer.is-dock-left {
right: auto;
left: 0;
border-left: none;
border-right: 1px solid var(--amb-border, rgba(255, 255, 255, 0.12));
box-shadow: 8px 0 32px rgba(0, 0, 0, 0.6);
}
/* Edge Resize Handle */
.anomalous-studio-resize-handle {
position: absolute;
top: 0;
left: -4px;
width: 8px;
height: 100%;
cursor: ew-resize;
z-index: 100;
transition: background 0.15s ease;
}
.anomalous-prompt-studio-drawer.is-dock-left .anomalous-studio-resize-handle {
left: auto;
right: -4px;
}
.anomalous-studio-resize-handle:hover,
.anomalous-studio-resize-handle.is-resizing {
background: #38bdf8;
box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}
/* Drawer Workbench Base */
.anomalous-prompt-studio-drawer .anomalous-prompt-workbench {
background: transparent;
padding: 0;
height: 100%;
display: flex;
flex-direction: column;
}
/* Shared drawer geometry. Dock direction only changes column order and separators. */
.anomalous-prompt-studio-drawer.is-dock-left .anomalous-prompt-workbench-grid,
.anomalous-prompt-studio-drawer:not(.is-dock-left) .anomalous-prompt-workbench-grid {
display: grid !important;
flex-direction: row !important;
gap: 0 !important;
padding: 0 !important;
flex: 1;
min-height: 0;
}
.anomalous-prompt-studio-drawer.is-dock-left .anomalous-prompt-workbench-grid {
grid-template-columns: 190px minmax(0, 1fr) !important;
}
.anomalous-prompt-studio-drawer:not(.is-dock-left) .anomalous-prompt-workbench-grid {
grid-template-columns: minmax(0, 1fr) 190px !important;
}
.anomalous-prompt-studio-drawer.is-dock-left .anomalous-workbench-left-panel,
.anomalous-prompt-studio-drawer:not(.is-dock-left) .anomalous-workbench-left-panel {
flex: none !important;
width: 190px !important;
max-height: 100% !important;
padding: 8px 10px !important;
border-left: none !important;
background: rgba(18, 20, 24, 0.7) !important;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.anomalous-prompt-studio-drawer.is-dock-left .anomalous-workbench-left-panel {
order: 1 !important;
border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.anomalous-prompt-studio-drawer:not(.is-dock-left) .anomalous-workbench-left-panel {
order: 2 !important;
border-right: none !important;
}
.anomalous-prompt-studio-drawer.is-dock-left .anomalous-workbench-right-panel,
.anomalous-prompt-studio-drawer:not(.is-dock-left) .anomalous-workbench-right-panel {
flex: 1 !important;
max-height: 100% !important;
padding: 8px 12px 52px !important;
position: relative;
box-sizing: border-box;
background: rgba(14, 15, 18, 0.5) !important;
display: flex;
flex-direction: column;
}
.anomalous-prompt-studio-drawer.is-dock-left .anomalous-workbench-right-panel {
order: 2 !important;
}
.anomalous-prompt-studio-drawer:not(.is-dock-left) .anomalous-workbench-right-panel {
order: 1 !important;
border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
border-left: none !important;
}
/* Column Headers & Action Buttons */
.anomalous-workbench-col-header {
display: flex;
align-items: center;
justify-content: space-between;
height: 30px;
padding: 0 2px;
margin-bottom: 6px;
flex-shrink: 0;
}
.anomalous-workbench-col-title {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 0.84rem;
font-weight: 600;
color: #f1f5f9;
white-space: nowrap;
}
.anomalous-workbench-col-title .anomalous-sub-counter {
font-size: 0.72rem;
color: #64748b;
font-weight: normal;
}
.anomalous-workbench-header-actions {
display: inline-flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
}
.anomalous-workbench-header-actions button.anomalous-icon-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
border-radius: 5px;
color: #94a3b8;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-workbench-header-actions button.anomalous-icon-btn:hover {
color: #ffffff;
background: rgba(56, 189, 248, 0.18);
border-color: rgba(56, 189, 248, 0.4);
}
/* Category Pills: 5 equal 2-char chips */
.anomalous-workbench-category-pills {
display: flex;
align-items: center;
gap: 3px;
flex-wrap: nowrap;
margin: 4px 0 8px;
}
.anomalous-workbench-pill {
flex: 1 1 0;
text-align: center;
padding: 3px 0;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.03);
color: #94a3b8;
font-size: 0.72rem;
cursor: pointer;
transition: all 0.15s ease;
line-height: 1.3;
white-space: nowrap;
}
.anomalous-workbench-pill:hover {
color: #f1f5f9;
background: rgba(255, 255, 255, 0.08);
}
.anomalous-workbench-pill.is-active {
color: #38bdf8;
background: rgba(56, 189, 248, 0.15);
border-color: rgba(56, 189, 248, 0.4);
font-weight: 600;
}
/* Compact Source Cards in 190px */
.anomalous-source-cards-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 4px;
padding-right: 2px;
}
.anomalous-source-card-compact {
display: flex;
align-items: center;
gap: 7px;
padding: 6px 9px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-left: 3px solid #64748b;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
user-select: none;
min-width: 0;
box-sizing: border-box;
}
.anomalous-source-card-compact.is-cat-base {
border-left-color: #38bdf8 !important;
}
.anomalous-source-card-compact.is-cat-style {
border-left-color: #c084fc !important;
}
.anomalous-source-card-compact.is-cat-subject {
border-left-color: #4ade80 !important;
}
.anomalous-source-card-compact.is-cat-trigger {
border-left-color: #fb923c !important;
}
.anomalous-source-card-compact:hover,
.anomalous-source-card-compact.is-preview-active {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.22);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
transform: translateX(2px);
}
.anomalous-source-card-compact.is-cat-base:hover,
.anomalous-source-card-compact.is-cat-base.is-preview-active {
border-color: rgba(56, 189, 248, 0.4);
background: rgba(56, 189, 248, 0.12);
}
.anomalous-source-card-compact.is-cat-style:hover,
.anomalous-source-card-compact.is-cat-style.is-preview-active {
border-color: rgba(192, 132, 252, 0.4);
background: rgba(192, 132, 252, 0.12);
}
.anomalous-source-card-compact.is-cat-subject:hover,
.anomalous-source-card-compact.is-cat-subject.is-preview-active {
border-color: rgba(74, 222, 128, 0.4);
background: rgba(74, 222, 128, 0.12);
}
.anomalous-source-card-compact.is-cat-trigger:hover,
.anomalous-source-card-compact.is-cat-trigger.is-preview-active {
border-color: rgba(251, 146, 60, 0.4);
background: rgba(251, 146, 60, 0.12);
}
.anomalous-source-card-dot {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
}
.anomalous-source-card-label {
display: flex;
flex-direction: column;
min-width: 0;
flex: 1;
}
.anomalous-source-origin,
.anomalous-source-sync-status {
color: var(--amb-text-muted, #94a3b8);
font-size: 0.68rem;
overflow-wrap: anywhere;
}
.anomalous-source-sync-status {
padding: 4px 12px;
}
.anomalous-source-card-name {
font-size: 0.76rem;
font-weight: 500;
color: #f1f5f9;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
.anomalous-source-card-compact:hover .anomalous-source-card-name,
.anomalous-source-card-compact.is-preview-active .anomalous-source-card-name {
color: #ffffff;
}
.anomalous-source-card-add-icon {
font-size: 0.72rem;
color: #64748b;
opacity: 0;
transition: opacity 0.15s;
flex-shrink: 0;
padding: 0 4px;
border-radius: 3px;
}
.anomalous-source-card-compact:hover .anomalous-source-card-add-icon,
.anomalous-source-card-compact.is-preview-active .anomalous-source-card-add-icon {
opacity: 1;
color: #38bdf8;
background: rgba(56, 189, 248, 0.18);
}
/* Eye-Catching Prompt Card Hover Preview Popover (Replaces unstyled browser tooltip) */
.anomalous-card-preview-popover {
position: fixed;
z-index: 1000005;
width: 320px;
max-width: calc(100vw - 32px);
background: rgba(18, 20, 26, 0.98);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(56, 189, 248, 0.35);
border-radius: 10px;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.18);
display: flex;
flex-direction: column;
overflow: visible;
pointer-events: auto;
animation: anmPopoverIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.anomalous-card-preview-popover.is-dock-left::before,
.anomalous-card-preview-popover.is-dock-right::before {
display: none;
}
.anomalous-card-preview-popover.is-pinned {
border-color: #38bdf8 !important;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.35) !important;
}
.anomalous-popover-copy-btn,
.anomalous-popover-pin-btn,
.anomalous-popover-add-btn {
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 4px;
color: #cbd5e1;
font-size: 0.7rem;
font-weight: 500;
padding: 2px 7px;
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
}
.anomalous-popover-copy-btn:hover,
.anomalous-popover-pin-btn:hover {
background: rgba(56, 189, 248, 0.15);
border-color: rgba(56, 189, 248, 0.4);
color: #38bdf8;
}
.anomalous-popover-pin-btn.is-active {
background: rgba(56, 189, 248, 0.25) !important;
border-color: #38bdf8 !important;
color: #38bdf8 !important;
font-weight: 600;
}
.anomalous-popover-close-btn {
background: transparent;
border: 1px solid transparent;
color: #94a3b8;
font-size: 0.75rem;
padding: 1px 6px;
cursor: pointer;
border-radius: 4px;
transition: all 0.15s ease;
line-height: 1.2;
}
.anomalous-popover-close-btn:hover {
background: rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.4);
color: #f87171;
}
.anomalous-popover-add-btn {
background: rgba(56, 189, 248, 0.15);
border-color: rgba(56, 189, 248, 0.35);
color: #38bdf8;
}
.anomalous-popover-add-btn:hover {
background: rgba(56, 189, 248, 0.28);
border-color: rgba(56, 189, 248, 0.6);
color: #ffffff;
}
@keyframes anmPopoverIn {
from { opacity: 0; transform: scale(0.96) translateX(-4px); }
to { opacity: 1; transform: scale(1) translateX(0); }
}
.anomalous-popover-header {
padding: 10px 12px 6px;
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
display: flex;
flex-direction: column;
gap: 4px;
}
.anomalous-popover-tags {
display: flex;
align-items: center;
gap: 6px;
}
.anomalous-popover-cat {
padding: 2px 7px;
border-radius: 4px;
font-size: 0.68rem;
font-weight: 600;
line-height: 1.2;
border: 1px solid transparent;
}
.anomalous-popover-role {
padding: 2px 7px;
border-radius: 4px;
font-size: 0.68rem;
font-weight: 600;
line-height: 1.2;
}
.anomalous-popover-role.is-positive {
background: rgba(56, 189, 248, 0.15);
color: #38bdf8;
border: 1px solid rgba(56, 189, 248, 0.35);
}
.anomalous-popover-role.is-negative {
background: rgba(251, 113, 133, 0.15);
color: #fb7185;
border: 1px solid rgba(251, 113, 133, 0.35);
}
.anomalous-popover-title {
font-size: 0.86rem;
font-weight: 600;
color: #f8fafc;
line-height: 1.35;
word-break: break-word;
}
.anomalous-popover-body {
padding: 8px 12px;
}
.anomalous-popover-snippet {
margin: 0;
padding: 8px 10px;
background: rgba(0, 0, 0, 0.45);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
color: #38bdf8;
font-family: Consolas, Monaco, "Courier New", monospace;
font-size: 0.76rem;
line-height: 1.45;
white-space: pre-wrap;
word-break: break-word;
max-height: 140px;
overflow-y: auto;
}
.anomalous-popover-footer {
padding: 6px 12px 7px;
font-size: 0.7rem;
color: #94a3b8;
display: flex;
align-items: center;
background: rgba(0, 0, 0, 0.25);
border-top: 1px solid rgba(255, 255, 255, 0.04);
}
/* Assembly Dropzone Notice */
.anomalous-assembly-dropzone {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
min-height: 260px;
padding: 40px 20px;
border: 1px dashed rgba(255, 255, 255, 0.1);
border-radius: 12px;
background: rgba(255, 255, 255, 0.015);
color: #64748b;
text-align: center;
box-sizing: border-box;
transition: all 0.2s ease;
}
.anomalous-assembly-dropzone:hover,
.anomalous-assembly-dropzone.is-drag-over {
border-color: rgba(56, 189, 248, 0.4);
background: rgba(56, 189, 248, 0.04);
}
/* Weight Wheel Pill in Assembled Blocks */
.anomalous-block-weight-pill {
display: inline-flex;
align-items: center;
background: rgba(0, 0, 0, 0.45);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
padding: 0 4px;
font-size: 0.72rem;
font-family: monospace, sans-serif;
color: #38bdf8;
cursor: ns-resize;
user-select: none;
gap: 2px;
transition: all 0.15s;
}
.anomalous-block-weight-pill:hover {
border-color: #38bdf8;
box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}
.anomalous-block-weight-btn {
background: transparent;
border: none;
color: #94a3b8;
cursor: pointer;
font-size: 0.7rem;
padding: 0 2px;
line-height: 1;
transition: color 0.15s;
}
.anomalous-block-weight-btn:hover {
color: #fff;
}
/* Floating Action Dock (Slides up only when blocks exist) */
.anomalous-floating-action-dock {
position: absolute;
bottom: 8px;
left: 8px;
right: 8px;
height: 38px;
background: rgba(22, 25, 32, 0.94);
backdrop-filter: blur(16px);
border: 1px solid rgba(56, 189, 248, 0.35);
border-radius: 20px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(56, 189, 248, 0.18);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
z-index: 20;
animation: anmSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
box-sizing: border-box;
}
.anomalous-floating-dock-left {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.72rem;
color: #94a3b8;
white-space: nowrap;
}
.anomalous-floating-dock-right {
display: flex;
align-items: center;
gap: 5px;
}
/* Independent Popout Prompt Inspector Modal */
.anomalous-prompt-inspector-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
animation: anmFadeIn 0.2s ease;
}
.anomalous-prompt-inspector-modal {
width: 780px;
max-width: 92vw;
height: 520px;
max-height: 88vh;
background: var(--amb-bg-panel, #181a20);
border: 1px solid var(--amb-border, rgba(255, 255, 255, 0.16));
border-radius: 14px;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.2);
display: flex;
flex-direction: column;
overflow: hidden;
animation: anmScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.anomalous-inspector-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: rgba(255, 255, 255, 0.03);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.anomalous-inspector-body {
flex: 1;
min-height: 0;
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 10px;
}
.anomalous-inspector-textarea {
flex: 1;
width: 100%;
box-sizing: border-box;
background: rgba(0, 0, 0, 0.35);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #e2e8f0;
font-family: Consolas, Monaco, "Courier New", monospace;
font-size: 0.88rem;
line-height: 1.6;
padding: 12px;
resize: none;
outline: none;
transition: border-color 0.15s;
}
.anomalous-inspector-textarea:focus {
border-color: #38bdf8;
box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.anomalous-inspector-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: rgba(255, 255, 255, 0.03);
border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@keyframes anmScaleUp {
from { transform: scale(0.95); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
@keyframes anmSlideUp {
from { transform: translateY(12px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
/* Unified Positive / Negative Role Badges & Cross-Role Tail Indicators */
.anomalous-card-role-tag {
font-size: 0.65rem;
font-weight: 700;
line-height: 1;
padding: 1px 4px;
border-radius: 3px;
letter-spacing: 0.2px;
flex-shrink: 0;
user-select: none;
}
.anomalous-card-role-tag.is-positive {
color: #38bdf8;
background: rgba(56, 189, 248, 0.14);
border: 1px solid rgba(56, 189, 248, 0.28);
}
.anomalous-card-role-tag.is-negative {
color: #fb7185;
background: rgba(244, 63, 94, 0.14);
border: 1px solid rgba(244, 63, 94, 0.28);
}
.anomalous-mixer-tab-btn.is-role-positive.is-active {
background: rgba(56, 189, 248, 0.16) !important;
color: #38bdf8 !important;
border: 1px solid rgba(56, 189, 248, 0.35) !important;
box-shadow: 0 0 10px rgba(56, 189, 248, 0.15) !important;
}
.anomalous-mixer-tab-btn.is-role-negative.is-active {
background: rgba(244, 63, 94, 0.16) !important;
color: #fb7185 !important;
border: 1px solid rgba(244, 63, 94, 0.35) !important;
box-shadow: 0 0 10px rgba(244, 63, 94, 0.15) !important;
}
.anomalous-mixer-block.is-cross-role {
border-style: dashed;
border-color: rgba(251, 113, 133, 0.45);
background: rgba(251, 113, 133, 0.05);
}
.anomalous-mixer-block.is-role-positive.is-cross-role {
border-color: rgba(56, 189, 248, 0.45);
background: rgba(56, 189, 248, 0.05);
}
.anomalous-mixer-role-badge {
padding: 2px 6px;
border-radius: 4px;
font-size: 0.68rem;
font-weight: 700;
line-height: 1.3;
display: inline-flex;
align-items: center;
gap: 3px;
cursor: pointer;
user-select: none;
white-space: nowrap;
flex-shrink: 0;
transition: all 0.15s ease;
border: 1px solid transparent;
}
.anomalous-mixer-cat-badge {
padding: 2px 6px;
border-radius: 4px;
font-size: 0.68rem;
font-weight: 600;
line-height: 1.3;
white-space: nowrap;
flex-shrink: 0;
cursor: pointer;
user-select: none;
}
.anomalous-mixer-role-badge.is-positive {
color: #38bdf8;
background: rgba(56, 189, 248, 0.14);
border-color: rgba(56, 189, 248, 0.28);
}
.anomalous-mixer-role-badge.is-negative {
color: #fb7185;
background: rgba(244, 63, 94, 0.14);
border-color: rgba(244, 63, 94, 0.28);
}
.anomalous-mixer-role-badge.is-cross-role {
border-style: dashed;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.anomalous-mixer-role-badge:hover {
transform: scale(1.04);
filter: brightness(1.15);
}
.anomalous-mixer-block-btn.is-transfer:hover {
color: #38bdf8;
background: rgba(56, 189, 248, 0.15);
}
/* ========================================================================= */