Files
frontend/Client/src/app/styles.css
T
2026-10-15 10:35:55 +08:00

2350 lines
40 KiB
CSS

:root {
font-family:
Inter,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"PingFang SC",
"Microsoft YaHei",
sans-serif;
color: #dadde3;
background: #101113;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
--line: #292b30;
--muted: #7e838e;
--accent: #5ca5ff;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
button,
input,
textarea {
font: inherit;
}
button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
cursor: pointer;
color: inherit;
border: 0;
background: none;
}
button:disabled {
opacity: 0.4;
cursor: default;
}
button,
a,
input,
textarea {
-webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
outline: 2px solid #5ca5ff;
outline-offset: 3px;
}
input,
textarea {
min-width: 0;
color: #e3e6ed;
background: #17191e;
border: 1px solid #363a43;
border-radius: 7px;
padding: 11px 12px;
}
input::placeholder,
textarea::placeholder {
color: #707681;
}
input {
width: 100%;
}
button:hover:not(:disabled) {
color: #f5f7fc;
}
svg {
flex-shrink: 0;
stroke-width: 1.65;
}
.studio {
height: 100dvh;
min-height: 360px;
display: flex;
flex-direction: column;
overflow: hidden;
}
.app-header {
flex: 0 0 67px;
display: flex;
align-items: center;
gap: 21px;
padding: 0 24px;
background: #101113;
border-bottom: 1px solid var(--line);
}
.brand {
width: 176px;
display: flex;
align-items: center;
}
.brand img {
width: 174px;
height: auto;
display: block;
}
.header-divider {
height: 23px;
width: 1px;
background: #35373c;
margin-left: 9px;
}
.workspace-label {
color: #b4b8c1;
font-size: 13px;
}
.header-chevron {
color: #555c68;
margin: 0 -8px;
}
.project-name {
font-size: 13px;
color: #f0f1f3;
gap: 12px;
max-width: 310px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.header-spacer {
flex: 1;
}
.demo-badge {
color: #9ba5b4;
font-size: 10px;
letter-spacing: 0.04em;
padding: 4px 8px;
border: 1px solid #353b45;
border-radius: 4px;
white-space: nowrap;
}
.avatar {
width: 29px;
height: 29px;
display: grid;
place-items: center;
background: #273544;
color: #9ccaff;
border: 1px solid #3b4e65;
border-radius: 50%;
font-size: 12px;
font-weight: 600;
}
.icon-button {
width: 30px;
height: 30px;
padding: 0;
border-radius: 5px;
color: #a2a8b3;
}
.icon-button:hover:not(:disabled) {
background: #2a2e37;
}
.command-bar {
height: 49px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 17px 0 24px;
border-bottom: 1px solid var(--line);
background: #15171b;
gap: 12px;
}
.command-left,
.command-right {
display: flex;
align-items: center;
gap: 12px;
}
.command-left {
gap: 20px;
}
.mode-label {
color: #e8ebf0;
display: flex;
align-items: center;
font-size: 12px;
gap: 8px;
white-space: nowrap;
}
.mode-label svg {
color: #74b5ff;
}
.command-separator {
height: 17px;
width: 1px;
background: #33363e;
display: block;
}
.plain-button {
font-size: 12px;
color: #a0a6b2;
padding: 6px 0;
white-space: nowrap;
}
.local-status {
display: flex;
align-items: center;
gap: 6px;
color: #727c88;
font-size: 11px;
margin-right: 6px;
}
.local-status > span {
width: 5px;
height: 5px;
background: #798995;
border-radius: 50%;
}
.button {
font-size: 12px;
border: 1px solid #363b44;
border-radius: 6px;
background: #202329;
min-height: 30px;
padding: 7px 12px;
white-space: nowrap;
}
.button:hover:not(:disabled) {
background: #2c3039;
border-color: #505765;
}
.button.primary {
color: #fff;
border-color: #3d8feb;
background: #348bec;
}
.button.primary:hover:not(:disabled) {
background: #4a9bf6;
}
.workspace {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: 264px minmax(260px, 1fr) 336px;
}
.left-panel,
.right-panel {
background: #181a1f;
display: flex;
flex-direction: column;
min-height: 0;
min-width: 0;
}
.left-panel {
border-right: 1px solid var(--line);
}
.right-panel {
border-left: 1px solid var(--line);
}
.panel-tabs {
height: 47px;
min-height: 47px;
display: flex;
align-items: stretch;
padding: 0 10px;
gap: 5px;
border-bottom: 1px solid var(--line);
}
.panel-tabs > button[role="tab"] {
position: relative;
padding: 0 10px;
font-size: 12px;
color: #959ba7;
}
.panel-tabs > button[aria-selected="true"] {
color: #86bcff;
}
.panel-tabs > button[aria-selected="true"]::after {
content: "";
position: absolute;
height: 2px;
background: #5ca5ff;
bottom: 0;
left: 10px;
right: 10px;
}
.panel-close {
margin-left: auto;
padding: 0 5px;
color: #747d8b;
}
.panel-search {
display: flex;
align-items: center;
gap: 8px;
margin: 16px 14px 10px;
padding: 0 10px;
border: 1px solid #30343d;
background: #131519;
border-radius: 6px;
color: #788190;
}
.panel-search input {
padding: 8px 0;
border: 0;
background: none;
font-size: 11px;
outline-offset: 0;
}
.panel-search kbd {
font-family: inherit;
color: #626b78;
}
.tree-project {
display: flex;
gap: 9px;
align-items: center;
padding: 14px 18px;
font-size: 12px;
color: #ccd2dd;
}
.tree-project svg {
color: #7d93ad;
}
.tree-project strong {
font-weight: 500;
}
.tree-project > span {
color: #7b8592;
background: #242831;
margin-left: auto;
font-size: 10px;
border-radius: 4px;
padding: 2px 5px;
}
.tree-scroll {
overflow: auto;
flex: 1;
min-height: 0;
padding: 0 8px 16px;
}
.tree-row {
height: 34px;
display: flex;
align-items: center;
border: 1px solid transparent;
border-radius: 4px;
padding-right: 7px;
gap: 3px;
margin-bottom: 2px;
}
.tree-row:hover {
background: #232730;
}
.tree-row.selected {
background: #233348;
border-color: #2b4666;
}
.tree-row.selected .tree-item {
color: #9dc9ff;
}
.tree-row.is-hidden .tree-item {
opacity: 0.4;
}
.tree-chevron {
width: 13px;
height: 24px;
flex-shrink: 0;
padding: 0;
color: #8590a0;
}
.tree-item {
padding: 0;
flex: 1;
justify-content: flex-start;
gap: 7px;
font-size: 11px;
min-width: 0;
color: #b5bcc8;
height: 30px;
}
.tree-item svg {
color: #7c8b9e;
}
.tree-item span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tree-visibility {
width: 20px;
height: 23px;
padding: 0;
color: #798394;
opacity: 0.3;
}
.tree-row:hover .tree-visibility,
.tree-row.selected .tree-visibility,
.is-hidden .tree-visibility {
opacity: 1;
}
.tree-footer {
height: 40px;
min-height: 40px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
border-top: 1px solid var(--line);
font-size: 10px;
color: #7c8695;
}
.text-button {
font-size: 11px;
color: #8ebaff;
padding: 5px 0;
}
.scene-panel {
display: flex;
flex-direction: column;
min-height: 0;
min-width: 0;
position: relative;
background: #101216;
}
.scene-toolbar {
display: flex;
height: 47px;
flex-shrink: 0;
align-items: center;
justify-content: space-between;
padding: 0 14px;
border-bottom: 1px solid #252930;
background: #181b20;
}
.scene-toolbar > div {
display: flex;
align-items: center;
gap: 9px;
}
.tool {
height: 29px;
padding: 0 9px;
font-size: 11px;
color: #9ca7b7;
border-radius: 4px;
}
.tool.active {
color: #95c3ff;
background: #263449;
}
.tool:hover {
background: #252c37;
}
.view-label {
font-size: 10px;
color: #747e8d;
}
.viewport {
position: relative;
flex: 1;
min-height: 0;
overflow: hidden;
background: radial-gradient(
ellipse at 50% 44%,
#222934 0%,
#151a22 40%,
#0f1218 85%
);
}
.viewport canvas {
position: absolute;
inset: 0;
display: block;
touch-action: none;
}
.viewport:fullscreen {
height: 100dvh;
width: 100vw;
}
.scene-caption {
position: absolute;
z-index: 1;
top: 22px;
left: 22px;
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
color: #7c899b;
pointer-events: none;
}
.caption-divider {
display: block;
width: 1px;
height: 10px;
background: #3c4655;
margin: 0 2px;
}
.status-dot {
display: inline-block;
width: 5px;
height: 5px;
background: #6bba9c;
border-radius: 50%;
}
.status-dot.pending {
background: #ae925c;
}
.viewport-actions {
position: absolute;
z-index: 1;
display: flex;
right: 17px;
top: 15px;
gap: 3px;
padding: 4px;
background: #1b2029cc;
border: 1px solid #343d4b;
border-radius: 7px;
}
.viewport-actions .icon-button {
color: #a0adbf;
}
.scene-state {
position: absolute;
z-index: 2;
inset: 0;
display: flex;
flex-direction: column;
gap: 16px;
align-items: center;
justify-content: center;
color: #8297b3;
background: #11151af2;
font-size: 12px;
}
.spin {
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.scene-help {
position: absolute;
bottom: 20px;
left: 20px;
color: #616f82;
font-size: 10px;
pointer-events: none;
display: flex;
gap: 7px;
}
.scene-watermark {
position: absolute;
top: 53%;
left: 50%;
transform: translate(-50%, -50%);
font-size: clamp(35px, 4.4vw, 90px);
letter-spacing: 0.06em;
font-weight: 700;
opacity: 0.025;
pointer-events: none;
white-space: nowrap;
}
.scene-watermark span {
display: block;
font-size: 10px;
text-align: center;
letter-spacing: 0.9em;
margin-top: 18px;
}
.scene-footer {
height: 32px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 17px;
border-top: 1px solid var(--line);
color: #788498;
background: #161a21;
font-size: 10px;
}
.scene-footer > div,
.scene-footer > span {
display: flex;
align-items: center;
gap: 7px;
}
.scene-footer i {
height: 10px;
width: 1px;
background: #363f4c;
margin: 0 5px;
}
.selection-chip {
position: absolute;
z-index: 1;
bottom: 66px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 9px;
padding: 9px 12px;
border: 1px solid #3d526e;
border-radius: 6px;
background: #1e2c3dd9;
color: #b9d7ff;
max-width: 90%;
font-size: 11px;
}
.selection-chip code {
font-size: 10px;
color: #829cbe;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.selection-chip > span {
white-space: nowrap;
}
.selection-chip button {
padding: 0;
}
.tab-content {
display: flex;
flex-direction: column;
min-height: 0;
flex: 1;
}
.tab-content.inactive {
display: none;
}
.assistant-scroll {
flex: 1;
overflow: auto;
padding: 29px 22px 18px;
}
.assistant-mark {
width: 42px;
height: 42px;
display: grid;
place-items: center;
border: 1px solid #36517a;
border-radius: 12px;
color: #89bbff;
background: linear-gradient(135deg, #253a59, #202837);
box-shadow: 0 4px 26px #19324d55;
margin-bottom: 23px;
}
.eyebrow {
color: #72849e;
font-size: 8px;
letter-spacing: 0.15em;
}
.assistant-intro h2 {
margin: 10px 0 12px;
color: #e5e9f1;
font-size: 22px;
letter-spacing: -0.03em;
line-height: 1.5;
font-weight: 600;
}
.assistant-intro p {
color: #858f9f;
font-size: 12px;
line-height: 1.9;
margin: 0;
}
.context-card {
display: flex;
align-items: center;
gap: 10px;
padding: 13px 12px;
border: 1px solid #323945;
border-radius: 7px;
background: #1d222b;
margin-top: 26px;
}
.context-icon {
width: 33px;
height: 35px;
display: grid;
place-items: center;
color: #9faebf;
background: #29313e;
border-radius: 5px;
}
.context-card strong {
display: block;
font-size: 11px;
color: #cdd5e1;
font-weight: 500;
}
.context-card span {
display: block;
margin-top: 5px;
font-size: 10px;
color: #748397;
}
.context-card > svg {
color: #75a98d;
margin-left: auto;
}
.conversation-starters {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 30px;
}
.conversation-starters > span {
font-size: 10px;
color: #717d8e;
margin-bottom: 4px;
}
.conversation-starters button {
justify-content: flex-start;
gap: 10px;
font-size: 11px;
color: #b5becb;
min-height: 38px;
padding: 10px 11px;
border: 1px solid #303641;
border-radius: 6px;
background: #1a1f27;
}
.conversation-starters button > svg:first-child {
color: #8198b4;
}
.conversation-starters button > svg:last-child {
color: #67778e;
margin-left: auto;
}
.conversation-starters button:hover {
border-color: #4a6488;
background: #222c3b;
}
.assistant-bottom {
flex-shrink: 0;
padding: 12px 16px 14px;
background: #181a1f;
}
.composer {
border: 1px solid #414b5c;
border-radius: 9px;
padding: 13px 12px 8px;
background: #20242c;
box-shadow: 0 4px 20px #0002;
}
.composer:focus-within {
border-color: #5f8cc8;
}
.composer textarea {
font-size: 12px;
width: 100%;
border: 0;
background: none;
padding: 0;
min-height: 52px;
max-height: 100px;
outline: none;
resize: none;
line-height: 1.6;
}
.composer-footer {
display: flex;
justify-content: space-between;
align-items: center;
}
.composer-footer span {
font-size: 10px;
display: flex;
align-items: center;
gap: 5px;
color: #8390a3;
}
.composer-footer button {
width: 27px;
height: 27px;
border-radius: 5px;
background: #4d96ed;
color: white;
}
.composer-footer button:disabled {
color: #94a3b7;
background: #344258;
opacity: 0.8;
}
.assistant-bottom > p {
display: flex;
gap: 4px;
align-items: center;
justify-content: center;
color: #606b7b;
font-size: 9px;
margin: 10px 0 0;
}
.message {
display: flex;
gap: 9px;
margin-top: 24px;
}
.message-avatar {
width: 23px;
height: 23px;
border-radius: 6px;
flex-shrink: 0;
color: #a0caff;
background: #26374f;
font-size: 10px;
display: grid;
place-items: center;
}
.message.user .message-avatar {
background: #31343e;
color: #b0b7c4;
}
.message strong {
font-size: 11px;
color: #c7d0de;
font-weight: 500;
}
.message p {
font-size: 12px;
line-height: 1.9;
color: #96a3b6;
margin: 7px 0 0;
overflow-wrap: anywhere;
}
.app-status {
height: 26px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
border-top: 1px solid var(--line);
background: #101216;
padding: 0 15px;
font-size: 9px;
color: #657181;
}
.app-status > div {
display: flex;
gap: 7px;
align-items: center;
}
.status-divider {
width: 1px;
height: 9px;
background: #333b47;
margin: 0 4px;
}
.app-status > span {
color: #576171;
letter-spacing: 0.04em;
}
.properties-scroll {
overflow: auto;
flex: 1;
padding: 22px 18px;
}
.properties-empty {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #67788f;
padding: 30px;
}
.properties-empty h3 {
color: #b0bbca;
font-size: 14px;
font-weight: 500;
margin: 19px 0 0;
}
.properties-empty p {
font-size: 11px;
color: #7c889a;
line-height: 1.7;
text-align: center;
}
.selected-part {
display: flex;
align-items: center;
gap: 10px;
padding-bottom: 22px;
}
.selected-part > div:nth-child(2) {
flex: 1;
min-width: 0;
}
.part-symbol {
width: 38px;
height: 40px;
display: grid;
place-items: center;
border: 1px solid #3c4a5f;
border-radius: 7px;
color: #91b3df;
background: #232d3a;
}
.selected-part h3 {
margin: 0;
font-size: 13px;
font-weight: 500;
}
.selected-part p {
margin: 6px 0 0;
font-size: 10px;
color: #7c8ca4;
overflow-wrap: anywhere;
}
.property-section {
border-top: 1px solid #2d333d;
padding: 17px 0;
}
.property-section h4 {
display: flex;
gap: 6px;
align-items: center;
margin: 0 0 18px;
font-size: 11px;
font-weight: 500;
color: #b0bece;
}
.property-section dl {
font-size: 10px;
margin: 0;
}
.property-section dl > div {
display: flex;
gap: 10px;
justify-content: space-between;
margin-top: 14px;
}
.property-section dt {
color: #748195;
flex-shrink: 0;
}
.property-section dd {
margin: 0;
color: #bac4d3;
overflow-wrap: anywhere;
text-align: right;
}
.property-section label {
display: flex;
align-items: center;
gap: 6px;
font-size: 10px;
color: #8796ab;
margin: 15px 0 8px;
}
.property-section small {
color: #5f7088;
font-size: 9px;
}
.vector-values {
display: flex;
gap: 5px;
}
.vector-values > div {
min-width: 0;
flex: 1;
border: 1px solid #323b4a;
border-radius: 5px;
background: #131820;
padding: 9px 7px;
display: flex;
align-items: center;
gap: 8px;
}
.vector-values span {
color: #617793;
font-size: 9px;
}
.vector-values code {
color: #bdcce0;
font-size: 10px;
overflow: hidden;
text-overflow: ellipsis;
}
.property-note {
display: flex;
align-items: flex-start;
gap: 8px;
line-height: 1.8;
color: #62748e;
font-size: 10px;
}
.property-note svg {
margin-top: 3px;
}
.library-heading {
display: flex;
justify-content: space-between;
padding: 16px 17px;
color: #8290a5;
font-size: 10px;
}
.library-scroll {
flex: 1;
min-height: 0;
overflow: auto;
padding: 0 12px 16px;
}
.library-card {
display: flex;
width: 100%;
text-align: left;
justify-content: flex-start;
gap: 10px;
border: 1px solid #303742;
background: #1d222a;
padding: 12px 9px;
border-radius: 6px;
margin-bottom: 8px;
}
.library-card.active {
border-color: #527aa6;
background: #243345;
}
.library-symbol {
display: grid;
place-items: center;
width: 36px;
height: 36px;
flex-shrink: 0;
background: #292f39;
border-radius: 6px;
color: #8da1b9;
}
.library-card > div:nth-child(2) {
min-width: 0;
flex: 1;
}
.library-card strong {
display: block;
font-size: 11px;
font-weight: 500;
color: #bac7d8;
}
.library-card span {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #62758f;
font-size: 9px;
margin-top: 6px;
}
.library-card > svg {
color: #6b7d95;
}
.library-note {
font-size: 10px;
color: #6d809a;
padding: 14px 16px;
border-top: 1px solid var(--line);
}
.toast {
position: fixed;
z-index: 50;
bottom: 44px;
left: 50%;
transform: translateX(-50%);
background: #273442;
border: 1px solid #466079;
color: #d0e1f3;
border-radius: 8px;
padding: 12px 17px;
display: flex;
gap: 9px;
align-items: center;
font-size: 12px;
box-shadow: 0 10px 30px #0005;
max-width: 90vw;
}
.toast svg {
color: #8cc4b0;
}
.dialog {
padding: 0;
width: min(480px, calc(100vw - 32px));
max-height: min(720px, calc(100dvh - 48px));
border: 1px solid #3b4554;
border-radius: 12px;
background: #1a1f27;
color: #d1d9e6;
box-shadow: 0 30px 120px #000a;
}
.dialog::backdrop {
background: #05070cb3;
backdrop-filter: blur(5px);
}
.dialog-header {
display: flex;
padding: 18px 22px;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #303a49;
}
.dialog-header h2 {
font-size: 15px;
font-weight: 500;
margin: 0;
}
.dialog-body {
padding: 24px;
}
.dialog-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 16px 24px;
border-top: 1px solid #303a49;
}
.dialog-description {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 24px;
color: #91b9eb;
}
.dialog-description p {
color: #97a7bc;
margin: 0;
font-size: 12px;
line-height: 1.8;
}
.field-label {
display: block;
font-size: 12px;
margin: 0 0 9px;
color: #bcc9dd;
}
.dialog input {
background: #141922;
font-size: 13px;
}
.muted {
color: #73839c;
font-size: 11px;
line-height: 1.8;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 35px 12px;
font-size: 12px;
color: #73849c;
gap: 10px;
}
.empty-state h3 {
font-weight: 500;
font-size: 14px;
color: #a3b1c6;
margin: 10px 0 0;
}
.empty-state p {
font-size: 12px;
margin: 0 0 15px;
}
.history-list {
max-height: 450px;
overflow: auto;
}
.version-card {
display: flex;
align-items: center;
gap: 12px;
padding: 13px 0;
border-bottom: 1px solid #303a49;
}
.version-card:last-child {
border-bottom: 0;
}
.version-icon {
color: #7794b9;
}
.version-card > div:nth-child(2) {
flex: 1;
min-width: 0;
}
.version-card strong {
display: block;
font-size: 12px;
color: #bbcce3;
overflow-wrap: anywhere;
}
.version-card span {
display: block;
margin-top: 7px;
font-size: 10px;
color: #6e819b;
}
.export-intro {
margin: 0 0 18px;
}
.export-option {
width: 100%;
border: 1px solid #364257;
background: #202937;
border-radius: 8px;
gap: 15px;
padding: 18px 16px;
margin-bottom: 12px;
justify-content: flex-start;
text-align: left;
color: #82a7d8;
}
.export-option:hover {
border-color: #6387b9;
background: #26344a;
}
.export-option > div {
flex: 1;
}
.export-option strong {
display: block;
color: #c1d1e9;
font-size: 13px;
font-weight: 500;
}
.export-option span {
display: block;
color: #7b91b2;
font-size: 10px;
margin-top: 7px;
}
.export-footnote {
color: #6d7f9a;
font-size: 10px;
margin: 18px 0 0;
line-height: 1.8;
}
.dialog.wide {
width: min(850px, calc(100vw - 32px));
}
.bom-toolbar {
display: flex;
align-items: center;
gap: 16px;
justify-content: space-between;
padding: 16px 22px;
}
.bom-toolbar p {
color: #bccce3;
font-size: 12px;
margin: 0;
}
.bom-toolbar p > span {
color: #788ca8;
font-size: 10px;
}
.bom-scroll {
max-height: calc(100dvh - 240px);
overflow: auto;
}
.bom-section + .bom-section {
margin-top: 18px;
}
.bom-section-heading {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 16px;
padding: 14px 22px;
background: #202630;
border-block: 1px solid #2c3646;
}
.bom-section-heading strong {
color: #bccce3;
font-size: 12px;
}
.bom-section-heading span,
.bom-message,
.bom-other p {
color: #8b9db5;
font-size: 11px;
}
.bom-message,
.bom-other {
margin: 0;
padding: 16px 22px;
}
.bom-message.missing {
color: #d4ad72;
}
.bom-other pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
font-size: 11px;
color: #a4b6ce;
}
table {
width: 100%;
border-collapse: collapse;
white-space: nowrap;
font-size: 11px;
}
th {
position: sticky;
top: 0;
z-index: 1;
background: #222b39;
color: #829bbd;
font-weight: 500;
text-align: left;
}
th,
td {
padding: 12px 18px;
border-bottom: 1px solid #2c3646;
}
td {
color: #a4b6ce;
}
td code {
font-size: 10px;
color: #7e94b3;
}
tbody tr:hover {
background: #253044;
}
.help-content > div {
display: flex;
align-items: flex-start;
gap: 14px;
margin-bottom: 22px;
}
.help-content svg {
margin-top: 2px;
color: #85addd;
}
.help-content h3 {
color: #b8c9e2;
font-weight: 500;
font-size: 13px;
margin: 0 0 7px;
}
.help-content p {
color: #8298b6;
font-size: 12px;
line-height: 1.9;
margin: 0;
}
.help-content .help-note {
display: block;
padding: 13px;
background: #202b3b;
border-radius: 6px;
font-size: 11px;
color: #798eaa;
line-height: 1.9;
margin: 0;
}
.workspace.left-collapsed {
grid-template-columns: 0 minmax(260px, 1fr) 336px;
}
.workspace.right-collapsed {
grid-template-columns: 264px minmax(260px, 1fr) 0;
}
.workspace.left-collapsed.right-collapsed {
grid-template-columns: 0 minmax(260px, 1fr) 0;
}
.left-collapsed .left-panel,
.right-collapsed .right-panel {
overflow: hidden;
visibility: hidden;
}
.sidebar-toggle {
display: none;
}
.left-collapsed .sidebar-toggle:not(.right-toggle),
.right-collapsed .right-toggle {
display: inline-flex;
}
.mobile-menu,
.mobile-scrim {
display: none;
}
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
::-webkit-scrollbar-thumb {
background: #3c4554;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: #53617a;
}
::-webkit-scrollbar-track {
background: transparent;
}
@media (min-width: 1600px) {
.workspace {
grid-template-columns: 280px minmax(260px, 1fr) 360px;
}
.workspace.left-collapsed {
grid-template-columns: 0 minmax(260px, 1fr) 360px;
}
.workspace.right-collapsed {
grid-template-columns: 280px minmax(260px, 1fr) 0;
}
.assistant-scroll {
padding: 38px 26px 20px;
}
.assistant-intro h2 {
font-size: 25px;
}
.assistant-intro p {
font-size: 13px;
}
.conversation-starters {
margin-top: 40px;
}
}
@media (max-width: 1100px) {
.workspace {
grid-template-columns: 225px minmax(200px, 1fr) 296px;
}
.workspace.left-collapsed {
grid-template-columns: 0 minmax(200px, 1fr) 296px;
}
.workspace.right-collapsed {
grid-template-columns: 225px minmax(200px, 1fr) 0;
}
.app-header {
gap: 14px;
padding: 0 18px;
}
.brand,
.brand img {
width: 145px;
}
.header-divider {
margin-left: 0;
}
.workspace-label {
display: none;
}
.assistant-scroll {
padding: 24px 18px 16px;
}
.assistant-intro h2 {
font-size: 20px;
}
.command-left {
gap: 14px;
}
.local-status {
display: none;
}
.panel-tabs {
padding: 0 7px;
gap: 0;
}
.panel-tabs > button[role="tab"] {
padding: 0 8px;
gap: 5px;
}
.tree-item {
font-size: 10px;
gap: 4px;
}
.tree-row {
padding-right: 3px;
}
}
@media (max-width: 850px) {
.workspace,
.workspace.left-collapsed,
.workspace.right-collapsed,
.workspace.left-collapsed.right-collapsed {
grid-template-columns: minmax(0, 1fr);
position: relative;
}
.left-panel,
.right-panel {
position: absolute;
top: 0;
bottom: 0;
z-index: 10;
width: 290px;
visibility: hidden;
}
.left-panel {
left: 0;
border-right-color: #394557;
}
.right-panel {
right: 0;
width: 320px;
border-left-color: #394557;
}
.left-panel.mobile-open,
.right-panel.mobile-open {
visibility: visible;
overflow: visible;
box-shadow: 0 10px 50px #0008;
}
.sidebar-toggle {
display: inline-flex;
}
.mobile-scrim {
display: block;
position: absolute;
inset: 0;
z-index: 9;
background: #060a1088;
}
.scene-panel {
grid-column: 1;
grid-row: 1;
}
.app-header {
height: 60px;
flex-basis: 60px;
}
.scene-caption {
left: 19px;
}
.command-left {
gap: 12px;
}
.demo-badge {
margin-left: auto;
}
.header-spacer,
.header-chevron,
.help-button {
display: none;
}
.brand,
.brand img {
width: 139px;
}
.project-name {
font-size: 12px;
max-width: 230px;
}
.scene-toolbar {
padding: 0 10px;
}
.scene-footer {
padding: 0 14px;
}
}
@media (max-width: 560px) {
.app-header {
padding: 0 14px;
gap: 12px;
height: 58px;
flex-basis: 58px;
}
.brand,
.brand img {
width: 126px;
}
.header-divider,
.project-name {
display: none;
}
.avatar {
width: 26px;
height: 26px;
}
.command-bar {
padding: 0 10px;
height: 47px;
gap: 7px;
}
.command-left {
gap: 12px;
}
.mode-label {
display: none;
}
.command-left > .command-separator {
display: none;
}
.plain-button {
font-size: 11px;
gap: 4px;
}
.command-right {
gap: 6px;
}
.command-right .button {
padding: 6px 8px;
gap: 5px;
font-size: 11px;
}
.export-button > span {
display: none;
}
.app-status > span {
display: none;
}
.mobile-menu {
display: inline-flex;
padding: 0 5px;
color: #778ba7;
}
.scene-caption {
top: 20px;
font-size: 10px;
gap: 6px;
}
.viewport-actions {
right: 11px;
top: 12px;
gap: 1px;
}
.viewport-actions .icon-button {
width: 26px;
height: 27px;
}
.scene-caption .caption-divider,
.scene-caption .caption-divider ~ * {
display: none;
}
.selection-chip code {
display: none;
}
.scene-footer {
font-size: 9px;
}
.scene-help {
left: 15px;
bottom: 17px;
font-size: 9px;
gap: 5px;
}
.right-panel {
width: min(320px, calc(100vw - 25px));
}
.left-panel {
width: min(290px, calc(100vw - 25px));
}
.bom-toolbar {
flex-wrap: wrap;
}
.bom-toolbar p span {
display: block;
margin-top: 6px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
}
}
/* AI conversation remains inside the existing panel's scroll container. */
.message-body {
min-width: 0;
flex: 1;
}
.message p {
white-space: pre-wrap;
}
.chat-status {
display: block;
margin-top: 7px;
font-size: 10px;
color: #8598b5;
}
.chat-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 10px;
font-size: 10px;
color: #9baabe;
}
.chat-toolbar button {
white-space: nowrap;
flex-shrink: 0;
}
.chat-toolbar button,
.chat-retry {
background: transparent;
color: #9baabe;
font-size: 10px;
padding: 4px;
}
.chat-error {
display: flex;
align-items: flex-start;
gap: 6px;
margin-bottom: 9px;
padding: 9px;
border: 1px solid #784347;
border-radius: 6px;
color: #efb4b4;
font-size: 11px;
line-height: 1.6;
overflow-wrap: anywhere;
}
.chat-error button {
flex-shrink: 0;
margin-left: auto;
padding: 2px;
background: transparent;
color: inherit;
}
.chat-retry {
display: flex;
gap: 5px;
align-items: center;
margin-bottom: 8px;
}
.chat-images,
.chat-attachments {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin: 8px 0;
}
.chat-images img,
.chat-attachments img {
display: block;
width: 64px;
height: 64px;
object-fit: contain;
background: #12161c;
border: 1px solid #384354;
border-radius: 5px;
}
.chat-attachments > div {
position: relative;
}
.chat-attachments button {
position: absolute;
right: -4px;
top: -4px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #394859;
color: #fff;
}
.composer-footer .attach-button {
background: transparent;
color: #9baabe;
}
.composer-footer > span {
margin-right: auto;
padding-left: 5px;
font-size: 9px;
}
.requirement-result {
margin-top: 12px;
padding: 11px;
border: 1px solid #35445b;
border-radius: 7px;
background: #161d28;
font-size: 11px;
}
.requirement-heading {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.requirement-heading > span {
font-size: 9px;
color: #90a3bd;
}
.requirement-keywords {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin: 10px 0;
}
.requirement-keywords > span {
padding: 3px 6px;
background: #263649;
border-radius: 4px;
color: #bdd2ec;
font-size: 10px;
overflow-wrap: anywhere;
}
.requirement-keywords > span.inferred {
background: #3b3223;
color: #d9c39c;
}
.requirement-result details {
margin-top: 10px;
}
.requirement-result summary {
cursor: pointer;
color: #9bbbe4;
line-height: 1.6;
}
.requirement-result pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
font-size: 10px;
line-height: 1.7;
max-height: 280px;
overflow: auto;
padding: 9px;
background: #10151e;
border-radius: 5px;
}
.requirement-result ul {
padding-left: 16px;
margin: 7px 0;
line-height: 1.7;
}
.requirement-result li + li {
margin-top: 7px;
}
.requirement-unmodeled li > span {
display: block;
color: #98a3b5;
}
.requirement-result .requirement-warning,
.requirement-questions {
color: #dbc298;
font-size: 10px;
line-height: 1.7;
}
.requirement-actions {
display: flex;
flex-wrap: wrap;
gap: 9px;
margin-top: 12px;
}
.requirement-actions button {
font-size: 10px;
color: #c4dbfb;
background: #293b54;
padding: 6px 8px;
border-radius: 4px;
}
.requirement-result small {
display: block;
margin-top: 10px;
color: #899ab0;
font-size: 9px;
line-height: 1.7;
}
.requirement-flow {
display: flex;
flex-shrink: 0;
gap: 6px;
padding: 12px 16px;
border-bottom: 1px solid var(--line);
background: #171b23;
}
.requirement-flow > span {
flex: 1;
font-size: 9px;
line-height: 1.6;
text-align: center;
color: #718099;
border-bottom: 2px solid #303946;
padding-bottom: 6px;
}
.requirement-flow > span.active {
color: #9ecbff;
border-color: #5798ec;
}
.rules-download {
display: block;
color: #8fb4e6;
font-size: 10px;
margin-top: 16px;
}
.requirement-questions > button {
display: flex;
width: 100%;
align-items: flex-start;
justify-content: flex-start;
gap: 6px;
margin-top: 7px;
padding: 8px;
color: #e4c995;
background: #342e24;
border: 1px solid #514735;
border-radius: 5px;
font-size: 11px;
line-height: 1.7;
text-align: left;
}
.requirement-questions > button > svg {
margin-top: 3px;
}
.requirement-preview-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin: 12px 0;
}
.requirement-preview-actions button {
padding: 0;
font-size: 10px;
color: #9ebde7;
}
.requirement-dialog {
padding: 18px 22px 22px;
max-height: 65dvh;
overflow: auto;
}
.requirement-dialog pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
font-size: 12px;
line-height: 1.8;
background: #131922;
padding: 16px;
border-radius: 6px;
}
.dialog-export {
font-size: 12px;
padding: 8px 12px;
background: #263b57;
border-radius: 5px;
}
.evidence-card {
border: 1px solid #364152;
border-radius: 7px;
padding: 12px;
margin-bottom: 12px;
}
.evidence-heading {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 11px;
color: #a0bee5;
}
.evidence-heading > span:first-child {
display: flex;
gap: 5px;
align-items: center;
}
.evidence-heading .uncertain {
color: #e4c995;
}
.evidence-card > p {
white-space: pre-wrap;
font-size: 13px;
line-height: 1.8;
}
.evidence-card small {
display: block;
color: #73849b;
margin-top: 8px;
font-size: 10px;
overflow-wrap: anywhere;
}
.evidence-image {
position: relative;
width: min(100%, 520px);
margin-top: 10px;
}
.evidence-image img {
display: block;
width: 100%;
height: auto;
}
.evidence-region {
position: absolute;
border: 2px solid #64a8ff;
background: #64a8ff20;
pointer-events: none;
}
.demand-review {
margin-top: 12px;
}
.intent-list {
display: grid;
gap: 8px;
}
.intent-item {
padding: 10px 11px;
border: 1px solid #354253;
border-radius: 7px;
background: #1b2532;
}
.intent-item > div {
display: flex;
justify-content: space-between;
gap: 8px;
align-items: flex-start;
font-size: 10px;
color: #a3b5cb;
}
.intent-item b {
white-space: nowrap;
font-size: 9px;
font-weight: 500;
padding: 1px 5px;
border-radius: 3px;
background: #334154;
}
.intent-item b.must {
color: #abd0ff;
background: #28435f;
}
.intent-item b.prefer {
color: #e5c788;
background: #443c2c;
}
.intent-item p {
margin: 6px 0 0;
font-size: 12px;
line-height: 1.7;
overflow-wrap: anywhere;
color: #e2eaf5;
}
.demand-review h3 {
margin: 20px 0 10px;
font-size: 13px;
}
.review-summary {
color: #d5e3f5;
font-size: 14px;
line-height: 1.8;
}
.review-muted {
color: #92a2b7;
font-size: 12px;
line-height: 1.8;
}
.constraint-list {
margin: 0;
}
.constraint-list > div {
display: flex;
justify-content: space-between;
gap: 16px;
padding: 10px 0;
border-bottom: 1px solid #303c4c;
font-size: 12px;
}
.constraint-list dt {
color: #9babc1;
}
.constraint-list dd {
margin: 0;
color: #e2eaf5;
text-align: right;
overflow-wrap: anywhere;
}
.part-chips {
display: flex;
flex-wrap: wrap;
gap: 7px;
}
.part-chips > span {
display: grid;
gap: 3px;
padding: 7px 10px;
border-radius: 5px;
border: 1px solid #344259;
font-size: 12px;
color: #cedff5;
}
.part-chips code {
font-size: 10px;
color: #8198b6;
}
.review-gaps {
padding: 0 12px 8px;
border: 1px solid #584b33;
border-radius: 6px;
margin-top: 18px;
}
.review-gaps p {
display: grid;
gap: 4px;
font-size: 12px;
line-height: 1.7;
color: #c7b183;
}
.review-gaps p > span {
color: #b4a58b;
}
.review-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
margin: 20px 0 10px;
}
.requirement-dialog > small {
color: #94a5bc;
font-size: 11px;
}
.clarification-form {
display: grid;
gap: 18px;
}
.clarification-form > p {
margin: 0;
color: #a6b6cb;
font-size: 13px;
line-height: 1.8;
}
.clarification-form label {
display: grid;
gap: 8px;
font-size: 13px;
line-height: 1.8;
color: #d4e0f1;
}
.clarification-form textarea {
resize: vertical;
width: 100%;
min-height: 75px;
max-height: 180px;
border: 1px solid #3e516b;
border-radius: 6px;
background: #131c29;
color: #e6eefb;
padding: 10px 12px;
font: inherit;
}
.clarification-form > button {
justify-self: end;
}
.chat-toolbar .rules-download {
margin: 0;
font-size: 11px;
}
/* Backend demand matching */
.demand-match {
border: 1px solid var(--border, #344152);
border-radius: 9px;
padding: 13px;
margin-top: 16px;
background: #151c24;
font-size: 12px;
line-height: 1.7;
}
.match-totals {
display: flex;
gap: 15px;
flex-wrap: wrap;
margin: 12px 0;
color: #a6c7ee;
}
.match-components {
list-style: none;
margin: 0 0 14px;
padding: 0;
}
.match-components li {
display: flex;
gap: 10px;
align-items: center;
padding: 9px 0;
border-bottom: 1px solid #ffffff0b;
}
.match-components strong {
font-size: 12px !important;
}
.match-components small {
display: block;
color: #8e9fb6;
font-size: 10px;
}
.match-alternative {
display: grid;
gap: 7px;
margin: 12px 0;
}
.match-alternative select {
max-width: 100%;
background: #202934;
color: #c6d3e4;
border: 1px solid #3b495d;
padding: 8px;
border-radius: 5px;
}
.match-check {
border-left: 2px solid #a38354;
padding: 8px 11px;
margin: 8px 0;
background: #ffffff03;
}
.match-check.satisfied {
border-color: #608d76;
}
.match-check.unmet {
border-color: #ce8273;
}
.match-check strong {
font-size: 11px !important;
color: #cad6e5;
}
.match-check p {
font-size: 12px !important;
margin: 5px 0 !important;
}
.match-check small {
color: #8d9bb0;
}
.assembly-status {
padding: 9px;
border-radius: 5px;
background: #202935;
font-size: 11px !important;
}
.assembly-status.ready {
color: #95c2a7;
}
.assembly-status.blocked {
color: #c1a578;
}
.matched-model-preview {
height: 66vh;
min-height: 330px;
position: relative;
overflow: hidden;
}
.matched-model-preview .viewport {
height: 100%;
position: relative;
}
.matched-component-detail {
border-bottom: 1px solid #ffffff12;
padding-bottom: 18px;
margin-bottom: 18px;
}
.matched-component-detail pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
max-height: 270px;
overflow: auto;
font-size: 11px;
background: #161c24;
padding: 12px;
}
.matched-component-detail li {
overflow-wrap: anywhere;
}
.matched-component-detail summary {
cursor: pointer;
margin: 10px 0;
}
.scene-state > span {
max-width: 90%;
overflow-wrap: anywhere;
text-align: center;
}
.scene-load-warnings {
position: absolute;
left: 18px;
right: 18px;
bottom: 46px;
z-index: 3;
max-height: 120px;
overflow: auto;
padding: 8px 12px;
border: 1px solid #96744466;
border-radius: 6px;
background: #24211deb;
color: #dfc69f;
font-size: 12px;
}
.scene-load-warnings p {
margin: 4px 0;
}
.assembly-motion-controls {
margin-top: 0;
}
.assembly-joint-control {
padding: 14px 12px;
border: 1px solid #354357;
border-radius: 6px;
background: #1b2430;
margin-top: 12px;
}
.assembly-joint-title {
display: flex;
gap: 12px;
align-items: center;
justify-content: space-between;
}
.assembly-joint-title strong {
color: #c8d2e0;
font-size: 12px;
overflow-wrap: anywhere;
}
.assembly-joint-title > span {
flex-shrink: 0;
font-size: 11px;
color: #8fb9ed;
}
.property-section .assembly-joint-angle {
display: flex;
gap: 6px;
align-items: center;
font-size: 11px;
margin-top: 14px;
}
.assembly-joint-angle input {
width: 64px;
margin-left: auto;
background: #121a24;
border: 1px solid #3b4b62;
color: #d4e1f2;
border-radius: 4px;
padding: 5px;
font: inherit;
}
.assembly-joint-control input[type="range"] {
width: 100%;
margin: 14px 0 8px;
accent-color: #69a8ef;
cursor: pointer;
}
.assembly-joint-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: #8191a7;
font-size: 10px;
}
.assembly-joint-footer button {
color: #91bbee;
padding: 4px 6px;
border-radius: 3px;
background: #26354a;
}