1340 lines
25 KiB
CSS
1340 lines
25 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
font-family: "Avenir Next", "Segoe UI", sans-serif;
|
|
line-height: 1.5;
|
|
font-weight: 400;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
--color-bg: #13171d;
|
|
--color-surface: rgba(31, 36, 45, 0.92);
|
|
--color-surface-strong: #2a313d;
|
|
--color-border: rgba(255, 255, 255, 0.08);
|
|
--color-text: #f2eee8;
|
|
--color-muted: #a8b0bd;
|
|
--color-accent: #cf7b42;
|
|
--color-accent-strong: #f3be8f;
|
|
--color-accent-soft: rgba(207, 123, 66, 0.18);
|
|
--shadow-panel: 0 18px 48px rgba(3, 7, 12, 0.38);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
margin: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle at top, rgba(80, 96, 120, 0.35) 0%, rgba(23, 28, 37, 0) 42%),
|
|
linear-gradient(180deg, #1b2029 0%, #101318 100%);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
button,
|
|
input {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
border: 1px solid transparent;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition:
|
|
background-color 120ms ease,
|
|
border-color 120ms ease,
|
|
transform 120ms ease;
|
|
}
|
|
|
|
button:hover:not(:disabled) {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.app-shell {
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
height: 100vh;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 8px 14px;
|
|
background: rgba(18, 22, 28, 0.88);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 16px;
|
|
box-shadow: var(--shadow-panel);
|
|
backdrop-filter: blur(16px);
|
|
min-width: 0;
|
|
}
|
|
|
|
.toolbar__brand {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.toolbar__title {
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.toolbar__subtitle {
|
|
color: var(--color-muted);
|
|
font-size: 0.74rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.toolbar__scene-name {
|
|
flex: 1 1 320px;
|
|
min-width: 220px;
|
|
max-width: 460px;
|
|
}
|
|
|
|
.toolbar__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.toolbar__group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.toolbar__inline-field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 34px;
|
|
padding: 0 4px 0 2px;
|
|
}
|
|
|
|
.toolbar__inline-input {
|
|
width: 76px;
|
|
min-height: 34px;
|
|
}
|
|
|
|
.toolbar__button {
|
|
min-height: 34px;
|
|
padding: 0.48rem 0.72rem;
|
|
background: var(--color-surface-strong);
|
|
color: var(--color-text);
|
|
font-size: 0.84rem;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.toolbar__button:hover:not(:disabled) {
|
|
border-color: rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.toolbar__button--active {
|
|
background: var(--color-accent-soft);
|
|
border-color: rgba(207, 123, 66, 0.55);
|
|
color: var(--color-accent-strong);
|
|
}
|
|
|
|
.toolbar__button--compact {
|
|
min-height: 32px;
|
|
padding: 0.4rem 0.62rem;
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.toolbar__button--accent {
|
|
background: var(--color-accent);
|
|
color: #20140c;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.toolbar__button--warn {
|
|
box-shadow: inset 0 0 0 1px rgba(255, 241, 213, 0.28);
|
|
}
|
|
|
|
.toolbar__scene-name-input {
|
|
height: 36px;
|
|
padding: 0 12px;
|
|
font-size: 0.92rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.workspace {
|
|
display: grid;
|
|
grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(280px, 320px);
|
|
gap: 12px;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.runner-workspace {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
|
|
gap: 12px;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.side-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
overscroll-behavior: contain;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
.panel {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-panel);
|
|
}
|
|
|
|
.panel__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
color: #e4d8ca;
|
|
text-align: left;
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 1px solid var(--color-border);
|
|
font-size: 0.76rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.panel__header:hover:not(:disabled) {
|
|
transform: none;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.panel--collapsed .panel__header {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.panel__chevron {
|
|
width: 9px;
|
|
height: 9px;
|
|
flex: 0 0 auto;
|
|
border-right: 2px solid currentColor;
|
|
border-bottom: 2px solid currentColor;
|
|
transform: rotate(-45deg);
|
|
transition: transform 120ms ease;
|
|
}
|
|
|
|
.panel__chevron--expanded {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.panel__body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.stat-card {
|
|
padding: 12px;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.label {
|
|
color: var(--color-muted);
|
|
font-size: 0.74rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.value {
|
|
margin-top: 0.35rem;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.text-input {
|
|
width: 100%;
|
|
padding: 0.85rem 0.95rem;
|
|
background: rgba(7, 9, 13, 0.4);
|
|
color: var(--color-text);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.text-input--dense {
|
|
padding: 0.65rem 0.75rem;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.select-input {
|
|
width: 100%;
|
|
padding: 0.85rem 0.95rem;
|
|
background: rgba(7, 9, 13, 0.4);
|
|
color: var(--color-text);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.color-input {
|
|
width: 100%;
|
|
min-height: 46px;
|
|
padding: 0;
|
|
background: rgba(7, 9, 13, 0.4);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.inline-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.info-banner {
|
|
padding: 12px 14px;
|
|
color: var(--color-text);
|
|
background: rgba(137, 182, 255, 0.09);
|
|
border: 1px solid rgba(137, 182, 255, 0.24);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.form-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.form-field--toggle {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.form-field--toggle input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
margin: 0;
|
|
accent-color: var(--color-accent);
|
|
}
|
|
|
|
.vector-inputs {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.vector-inputs--two {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.placeholder-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.placeholder-list li {
|
|
padding: 10px 12px;
|
|
color: var(--color-muted);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px dashed rgba(255, 255, 255, 0.11);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.outliner-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.outliner-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.outliner-empty {
|
|
padding: 10px 12px;
|
|
color: var(--color-muted);
|
|
font-size: 0.82rem;
|
|
line-height: 1.45;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px dashed rgba(255, 255, 255, 0.11);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.outliner-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
color: var(--color-text);
|
|
text-align: left;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.outliner-item:hover:not(:disabled) {
|
|
border-color: rgba(255, 255, 255, 0.16);
|
|
}
|
|
|
|
.outliner-item--selected {
|
|
background: var(--color-accent-soft);
|
|
border-color: rgba(207, 123, 66, 0.55);
|
|
}
|
|
|
|
.outliner-item--compact {
|
|
gap: 6px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.outliner-item__row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.outliner-item__title {
|
|
font-size: 0.88rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.outliner-item__meta {
|
|
color: var(--color-muted);
|
|
font-size: 0.74rem;
|
|
}
|
|
|
|
.outliner-item__select {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
width: 100%;
|
|
padding: 0;
|
|
color: inherit;
|
|
text-align: left;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.outliner-item__select:hover:not(:disabled) {
|
|
transform: none;
|
|
}
|
|
|
|
.outliner-item--compact .outliner-item__select {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.outliner-item--compact .outliner-item__title {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.outliner-item__rename {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
width: 100%;
|
|
padding: 2px 6px;
|
|
margin: -2px -6px;
|
|
color: var(--color-text);
|
|
font: inherit;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
background: rgba(7, 9, 13, 0.22);
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.outliner-item__rename:focus {
|
|
outline: none;
|
|
background: rgba(7, 9, 13, 0.38);
|
|
border-color: rgba(207, 123, 66, 0.45);
|
|
}
|
|
|
|
.outliner-item__delete {
|
|
flex: 0 0 auto;
|
|
width: 22px;
|
|
height: 22px;
|
|
padding: 0;
|
|
color: var(--color-muted);
|
|
font-size: 0.82rem;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.outliner-item__delete:hover:not(:disabled) {
|
|
color: var(--color-text);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-color: rgba(255, 255, 255, 0.12);
|
|
transform: none;
|
|
}
|
|
|
|
.asset-item--action {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.asset-item__content {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.asset-item--action .outliner-item__title {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.asset-item__plus {
|
|
flex: 0 0 auto;
|
|
color: var(--color-accent-strong);
|
|
font-size: 1.1rem;
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
}
|
|
|
|
.hierarchical-menu__backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 60;
|
|
background: transparent;
|
|
}
|
|
|
|
.hierarchical-menu {
|
|
position: fixed;
|
|
width: min(320px, calc(100vw - 24px));
|
|
max-height: min(72vh, 520px);
|
|
padding: 10px;
|
|
color: var(--color-text);
|
|
background: rgba(17, 21, 28, 0.96);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 16px;
|
|
box-shadow: var(--shadow-panel);
|
|
backdrop-filter: blur(14px);
|
|
overflow: auto;
|
|
}
|
|
|
|
.hierarchical-menu__title {
|
|
margin-bottom: 8px;
|
|
color: var(--color-muted);
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.hierarchical-menu__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.hierarchical-menu__group {
|
|
overflow: hidden;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.hierarchical-menu__group[open] {
|
|
border-color: rgba(255, 255, 255, 0.14);
|
|
}
|
|
|
|
.hierarchical-menu__group-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
list-style: none;
|
|
cursor: pointer;
|
|
color: var(--color-text);
|
|
font-size: 0.86rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.hierarchical-menu__group-summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.hierarchical-menu__group-label {
|
|
min-width: 0;
|
|
}
|
|
|
|
.hierarchical-menu__group-chevron {
|
|
width: 8px;
|
|
height: 8px;
|
|
flex: 0 0 auto;
|
|
border-right: 2px solid currentColor;
|
|
border-bottom: 2px solid currentColor;
|
|
transform: rotate(-45deg);
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.hierarchical-menu__group[open] .hierarchical-menu__group-chevron {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.hierarchical-menu__children {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 0 8px 8px 8px;
|
|
}
|
|
|
|
.hierarchical-menu__action {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 9px 12px;
|
|
color: var(--color-text);
|
|
text-align: left;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid transparent;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.hierarchical-menu__action:hover:not(:disabled) {
|
|
border-color: rgba(255, 255, 255, 0.14);
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.hierarchical-menu__action:disabled {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.hierarchical-menu__action-label {
|
|
min-width: 0;
|
|
}
|
|
|
|
.hierarchical-menu__action-plus {
|
|
flex: 0 0 auto;
|
|
color: var(--color-accent-strong);
|
|
font-size: 1rem;
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
}
|
|
|
|
.hierarchical-menu__separator {
|
|
height: 1px;
|
|
margin: 4px 8px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.material-browser {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.material-item {
|
|
display: grid;
|
|
grid-template-columns: 64px minmax(0, 1fr);
|
|
gap: 12px;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 10px;
|
|
color: var(--color-text);
|
|
text-align: left;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.material-item--active {
|
|
background: var(--color-accent-soft);
|
|
border-color: rgba(207, 123, 66, 0.55);
|
|
}
|
|
|
|
.material-item__preview {
|
|
display: block;
|
|
width: 100%;
|
|
height: 50px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
}
|
|
|
|
.material-item__text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.material-item__title {
|
|
font-size: 0.92rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.material-item__meta {
|
|
color: var(--color-muted);
|
|
font-size: 0.76rem;
|
|
}
|
|
|
|
.face-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.face-chip {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
padding: 10px 12px;
|
|
color: var(--color-text);
|
|
text-align: left;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.face-chip--active {
|
|
background: var(--color-accent-soft);
|
|
border-color: rgba(207, 123, 66, 0.55);
|
|
}
|
|
|
|
.face-chip__title {
|
|
font-size: 0.84rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.face-chip__meta {
|
|
color: var(--color-muted);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.material-summary {
|
|
margin-top: 8px;
|
|
color: var(--color-muted);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.world-background-preview {
|
|
height: 76px;
|
|
margin-top: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.viewport-region {
|
|
display: grid;
|
|
grid-template-rows: minmax(0, 1fr);
|
|
min-height: 0;
|
|
background: rgba(20, 24, 31, 0.92);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 24px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-panel);
|
|
}
|
|
|
|
.runner-region {
|
|
display: flex;
|
|
min-height: 0;
|
|
background: rgba(20, 24, 31, 0.92);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 24px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-panel);
|
|
}
|
|
|
|
.viewport-region__panels {
|
|
position: relative;
|
|
min-height: 0;
|
|
}
|
|
|
|
.viewport-region__panels--single {
|
|
display: flex;
|
|
padding: 12px;
|
|
}
|
|
|
|
.viewport-region__panels--quad {
|
|
display: grid;
|
|
grid-template-areas:
|
|
"topLeft topRight"
|
|
"bottomLeft bottomRight";
|
|
grid-template-columns:
|
|
minmax(0, calc(var(--viewport-quad-split-x, 0.5) * 100%))
|
|
minmax(0, calc((1 - var(--viewport-quad-split-x, 0.5)) * 100%));
|
|
grid-template-rows:
|
|
minmax(0, calc(var(--viewport-quad-split-y, 0.5) * 100%))
|
|
minmax(0, calc((1 - var(--viewport-quad-split-y, 0.5)) * 100%));
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.viewport-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
position: relative;
|
|
background: rgba(11, 15, 20, 0.92);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.viewport-panel--single {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.viewport-panel--quad {
|
|
min-height: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.viewport-panel--topLeft {
|
|
grid-area: topLeft;
|
|
}
|
|
|
|
.viewport-panel--topRight {
|
|
grid-area: topRight;
|
|
}
|
|
|
|
.viewport-panel--bottomLeft {
|
|
grid-area: bottomLeft;
|
|
}
|
|
|
|
.viewport-panel--bottomRight {
|
|
grid-area: bottomRight;
|
|
}
|
|
|
|
.viewport-panel__header {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
z-index: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
padding: 0;
|
|
background: transparent;
|
|
border-bottom: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.viewport-panel--quad .viewport-panel__header {
|
|
top: 10px;
|
|
right: 10px;
|
|
}
|
|
|
|
.viewport-panel__meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.viewport-panel__title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.viewport-panel__title {
|
|
font-size: 0.74rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.viewport-panel__active-badge {
|
|
padding: 0.18rem 0.42rem;
|
|
color: #20140c;
|
|
background: var(--color-accent-strong);
|
|
border-radius: 999px;
|
|
font-size: 0.64rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.viewport-panel__controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.viewport-panel__control-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.viewport-panel__button {
|
|
padding: 0.34rem 0.54rem;
|
|
color: var(--color-text);
|
|
background: var(--color-surface-strong);
|
|
font-size: 0.7rem;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
.viewport-panel__button--active {
|
|
background: var(--color-accent-soft);
|
|
border-color: rgba(207, 123, 66, 0.55);
|
|
color: var(--color-accent-strong);
|
|
}
|
|
|
|
.viewport-canvas,
|
|
.runner-canvas {
|
|
position: relative;
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
background:
|
|
radial-gradient(circle at top, rgba(130, 154, 188, 0.28) 0%, rgba(130, 154, 188, 0) 38%),
|
|
linear-gradient(180deg, #55657c 0%, #2c3440 34%, #151920 100%);
|
|
}
|
|
|
|
.viewport-canvas {
|
|
display: flex;
|
|
cursor: default;
|
|
}
|
|
|
|
.viewport-canvas--create {
|
|
cursor: copy;
|
|
}
|
|
|
|
.viewport-canvas--authoring {
|
|
background: #000000;
|
|
}
|
|
|
|
.runner-canvas {
|
|
flex: 1 1 auto;
|
|
cursor: grab;
|
|
}
|
|
|
|
.viewport-canvas canvas,
|
|
.runner-canvas canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.viewport-canvas__overlay {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
max-width: calc(100% - 20px);
|
|
color: #f3e8da;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.viewport-canvas__overlay-badges {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.viewport-canvas__overlay-badge {
|
|
padding: 0.28rem 0.5rem;
|
|
color: var(--color-accent-strong);
|
|
background: rgba(8, 10, 14, 0.62);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 999px;
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.viewport-canvas__overlay-badge--view {
|
|
color: #dbe5f4;
|
|
}
|
|
|
|
.viewport-canvas__overlay-preview {
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
padding: 0.38rem 0.62rem;
|
|
color: #f3e8da;
|
|
background: rgba(8, 10, 14, 0.62);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 999px;
|
|
font-size: 0.76rem;
|
|
line-height: 1.35;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.viewport-region__splitter {
|
|
position: absolute;
|
|
z-index: 3;
|
|
touch-action: none;
|
|
}
|
|
|
|
.viewport-region__splitter::before {
|
|
content: "";
|
|
position: absolute;
|
|
background: rgba(255, 255, 255, 0.16);
|
|
opacity: 0;
|
|
transition: opacity 120ms ease;
|
|
}
|
|
|
|
.viewport-region__splitter:hover::before,
|
|
.viewport-region__panels--resizing .viewport-region__splitter::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.viewport-region__splitter--vertical {
|
|
top: 0;
|
|
bottom: 0;
|
|
left: calc(var(--viewport-quad-split-x, 0.5) * 100%);
|
|
width: 16px;
|
|
transform: translateX(-50%);
|
|
cursor: col-resize;
|
|
}
|
|
|
|
.viewport-region__splitter--vertical::before {
|
|
top: 0;
|
|
bottom: 0;
|
|
left: calc(50% - 1px);
|
|
width: 2px;
|
|
}
|
|
|
|
.viewport-region__splitter--horizontal {
|
|
left: 0;
|
|
right: 0;
|
|
top: calc(var(--viewport-quad-split-y, 0.5) * 100%);
|
|
height: 16px;
|
|
transform: translateY(-50%);
|
|
cursor: row-resize;
|
|
}
|
|
|
|
.viewport-region__splitter--horizontal::before {
|
|
left: 0;
|
|
right: 0;
|
|
top: calc(50% - 1px);
|
|
height: 2px;
|
|
}
|
|
|
|
.viewport-region__splitter--center {
|
|
top: calc(var(--viewport-quad-split-y, 0.5) * 100%);
|
|
left: calc(var(--viewport-quad-split-x, 0.5) * 100%);
|
|
width: 22px;
|
|
height: 22px;
|
|
transform: translate(-50%, -50%);
|
|
cursor: move;
|
|
}
|
|
|
|
.viewport-region__splitter--center::before {
|
|
inset: 5px;
|
|
border: 1px solid rgba(255, 255, 255, 0.28);
|
|
border-radius: 999px;
|
|
background: rgba(8, 10, 14, 0.72);
|
|
opacity: 1;
|
|
}
|
|
|
|
.viewport-canvas__fallback,
|
|
.runner-canvas__fallback {
|
|
position: absolute;
|
|
inset: 18px;
|
|
z-index: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 18px;
|
|
color: #f3e8da;
|
|
background: linear-gradient(180deg, rgba(8, 10, 14, 0.12) 0%, rgba(8, 10, 14, 0.58) 100%);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 18px;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.viewport-canvas__fallback-title,
|
|
.runner-canvas__fallback-title {
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.runner-canvas__crosshair {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
z-index: 3;
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 1px solid rgba(255, 255, 255, 0.7);
|
|
border-radius: 999px;
|
|
transform: translate(-50%, -50%);
|
|
box-shadow: 0 0 0 2px rgba(8, 10, 14, 0.35);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.runner-canvas__crosshair::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 4px;
|
|
background: rgba(255, 255, 255, 0.88);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.runner-canvas--underwater {
|
|
box-shadow: inset 0 0 0 9999px rgba(9, 38, 62, 0.08);
|
|
}
|
|
|
|
.runner-canvas__underwater {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 2;
|
|
pointer-events: none;
|
|
background:
|
|
radial-gradient(circle at 50% 18%, rgba(146, 223, 255, 0.2), transparent 42%),
|
|
linear-gradient(180deg, rgba(38, 113, 153, 0.16), rgba(8, 40, 63, 0.42));
|
|
backdrop-filter: blur(1.5px) saturate(1.08);
|
|
mix-blend-mode: screen;
|
|
}
|
|
|
|
.runner-canvas__prompt {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 22px;
|
|
z-index: 4;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 220px;
|
|
max-width: min(320px, calc(100% - 32px));
|
|
padding: 12px 14px;
|
|
color: #f6efe5;
|
|
background: rgba(8, 10, 14, 0.72);
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
border-radius: 16px;
|
|
box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
|
|
transform: translateX(-50%);
|
|
backdrop-filter: blur(12px);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.runner-canvas__prompt-badge {
|
|
color: var(--color-accent-strong);
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.runner-canvas__prompt-text {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.runner-canvas__prompt-meta {
|
|
color: rgba(246, 239, 229, 0.76);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.status-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
flex-wrap: nowrap;
|
|
gap: 12px;
|
|
min-height: 36px;
|
|
height: 36px;
|
|
padding: 6px 12px;
|
|
background: rgba(18, 22, 28, 0.88);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 14px;
|
|
color: var(--color-muted);
|
|
font-size: 0.8rem;
|
|
line-height: 1.2;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.status-bar__item {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 4px;
|
|
flex: 0 0 auto;
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.status-bar__item--message {
|
|
flex: 1 1 320px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.status-bar__item--asset {
|
|
flex: 1 1 420px;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.status-bar__strong {
|
|
color: var(--color-text);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.workspace {
|
|
grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
|
|
}
|
|
|
|
.runner-workspace {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.workspace > .side-column:last-child {
|
|
grid-column: 1 / -1;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.app-shell {
|
|
grid-template-rows: auto auto auto;
|
|
}
|
|
|
|
.toolbar {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
padding: 12px;
|
|
}
|
|
|
|
.workspace {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.runner-workspace {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.workspace > .side-column:last-child {
|
|
display: flex;
|
|
}
|
|
|
|
.viewport-canvas,
|
|
.runner-canvas {
|
|
min-height: 320px;
|
|
}
|
|
|
|
.vector-inputs {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.face-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.status-bar {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
height: auto;
|
|
padding: 12px 16px;
|
|
overflow: visible;
|
|
}
|
|
}
|