471 lines
7.5 KiB
CSS
471 lines
7.5 KiB
CSS
:root {
|
|
--bg: #f4f0e8;
|
|
--bg-alt: #e8dfd2;
|
|
--panel: rgba(255, 250, 242, 0.82);
|
|
--panel-border: rgba(71, 52, 28, 0.15);
|
|
--text: #1d1a16;
|
|
--muted: #65584a;
|
|
--accent: #b55d2d;
|
|
--accent-strong: #8b3c13;
|
|
--accent-soft: #f2d7c5;
|
|
--success: #256245;
|
|
--warning: #a24f2a;
|
|
--shadow: 0 22px 45px rgba(57, 40, 19, 0.12);
|
|
--radius-lg: 26px;
|
|
--radius-md: 18px;
|
|
--radius-sm: 12px;
|
|
--rack-unit-height: 38px;
|
|
--font-display: "Avenir Next", "Segoe UI", sans-serif;
|
|
--font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
background:
|
|
radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 26%),
|
|
linear-gradient(160deg, var(--bg) 0%, #eadfce 52%, #efe7dc 100%);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
}
|
|
|
|
button, input, select {
|
|
font: inherit;
|
|
}
|
|
|
|
.app-shell {
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
padding: 32px;
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.9fr);
|
|
gap: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.hero__copy,
|
|
.hero__meta,
|
|
.panel {
|
|
background: var(--panel);
|
|
border: 1px solid var(--panel-border);
|
|
box-shadow: var(--shadow);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.hero__copy {
|
|
padding: 36px;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.hero__copy h1 {
|
|
margin: 0;
|
|
font-family: var(--font-display);
|
|
font-size: clamp(2.5rem, 6vw, 4.8rem);
|
|
line-height: 0.95;
|
|
letter-spacing: -0.04em;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.18em;
|
|
font-size: 0.82rem;
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.hero__lead {
|
|
max-width: 60ch;
|
|
color: var(--muted);
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.hero__meta {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 16px;
|
|
padding: 24px;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.meta-card {
|
|
padding: 18px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.meta-card__label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: var(--muted);
|
|
font-size: 0.84rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.workspace {
|
|
display: grid;
|
|
grid-template-columns: minmax(320px, 420px) minmax(420px, 1fr) minmax(320px, 390px);
|
|
gap: 24px;
|
|
align-items: start;
|
|
}
|
|
|
|
.panel {
|
|
padding: 24px;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.panel__heading h2,
|
|
.subpanel__header h3 {
|
|
margin: 0;
|
|
font-family: var(--font-display);
|
|
}
|
|
|
|
.panel__heading p {
|
|
margin: 6px 0 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.panel--controls,
|
|
.panel--sidebar {
|
|
display: grid;
|
|
gap: 18px;
|
|
}
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field span {
|
|
font-size: 0.9rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.field input,
|
|
.field select,
|
|
.subpanel__header button {
|
|
border: 1px solid rgba(83, 58, 31, 0.14);
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, 0.82);
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.field input:focus,
|
|
.field select:focus {
|
|
outline: 2px solid rgba(181, 93, 45, 0.24);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.library-toolbar {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.library {
|
|
display: grid;
|
|
gap: 12px;
|
|
max-height: 780px;
|
|
overflow: auto;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.component-card,
|
|
.rack-item,
|
|
.subpanel,
|
|
.notice {
|
|
border: 1px solid rgba(75, 57, 37, 0.12);
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, 0.68);
|
|
}
|
|
|
|
.component-card {
|
|
padding: 14px;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.component-card__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.component-card__header strong {
|
|
display: block;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 44px;
|
|
padding: 5px 8px;
|
|
border-radius: 999px;
|
|
background: var(--accent-soft);
|
|
color: var(--accent-strong);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.component-card__meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
font-size: 0.84rem;
|
|
}
|
|
|
|
.component-card button,
|
|
.subpanel__header button,
|
|
.rack-item button {
|
|
cursor: pointer;
|
|
border: 0;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-radius: 12px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.component-card button:hover,
|
|
.subpanel__header button:hover,
|
|
.rack-item button:hover {
|
|
background: var(--accent-strong);
|
|
}
|
|
|
|
.rack-stage {
|
|
display: grid;
|
|
gap: 18px;
|
|
}
|
|
|
|
.rack-summary,
|
|
.stat-grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rack-summary {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.summary-card,
|
|
.stat-card {
|
|
padding: 16px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, 0.58);
|
|
border: 1px solid rgba(75, 57, 37, 0.12);
|
|
}
|
|
|
|
.summary-card strong,
|
|
.stat-card strong {
|
|
display: block;
|
|
margin-top: 6px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.rack-grid {
|
|
position: relative;
|
|
border-radius: 28px;
|
|
border: 2px solid rgba(77, 50, 21, 0.4);
|
|
background:
|
|
linear-gradient(90deg, rgba(98, 71, 45, 0.18), rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0) 86%, rgba(98, 71, 45, 0.18)),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(218, 197, 174, 0.36));
|
|
padding: 24px 38px 24px 74px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rack-grid::before,
|
|
.rack-grid::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 18px;
|
|
bottom: 18px;
|
|
width: 12px;
|
|
border-radius: 999px;
|
|
background: rgba(92, 65, 37, 0.42);
|
|
}
|
|
|
|
.rack-grid::before {
|
|
left: 26px;
|
|
}
|
|
|
|
.rack-grid::after {
|
|
right: 26px;
|
|
}
|
|
|
|
.rack-slot {
|
|
position: relative;
|
|
height: var(--rack-unit-height);
|
|
border-top: 1px dashed rgba(89, 60, 31, 0.25);
|
|
}
|
|
|
|
.rack-slot:first-child {
|
|
border-top: 0;
|
|
}
|
|
|
|
.rack-slot.is-drop-target {
|
|
background: rgba(181, 93, 45, 0.11);
|
|
}
|
|
|
|
.rack-slot__label {
|
|
position: absolute;
|
|
left: -52px;
|
|
top: 8px;
|
|
font-size: 0.76rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.rack-items-layer {
|
|
position: absolute;
|
|
inset: 24px 38px 24px 74px;
|
|
}
|
|
|
|
.rack-item {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 12px 12px 12px 14px;
|
|
display: grid;
|
|
gap: 8px;
|
|
border-left: 8px solid var(--accent);
|
|
user-select: none;
|
|
}
|
|
|
|
.rack-item[data-standard="10_inch"] {
|
|
right: 16%;
|
|
}
|
|
|
|
.rack-item.is-dragging {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.rack-item__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.rack-item__meta,
|
|
.list-output,
|
|
.notes {
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.rack-item__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rack-item__actions button {
|
|
padding: 8px 10px;
|
|
font-size: 0.84rem;
|
|
}
|
|
|
|
.subpanel {
|
|
padding: 16px;
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.subpanel__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.stat-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.field-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.list-output {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.bom-line {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.64);
|
|
}
|
|
|
|
.notice {
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.notes {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.notes li.ok {
|
|
color: var(--success);
|
|
}
|
|
|
|
.notes li.warn {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 20px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
border: 1px dashed rgba(75, 57, 37, 0.2);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
@media (max-width: 1280px) {
|
|
.workspace {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.app-shell {
|
|
padding: 18px;
|
|
}
|
|
|
|
.rack-summary,
|
|
.stat-grid,
|
|
.field-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.rack-grid {
|
|
padding-left: 62px;
|
|
padding-right: 26px;
|
|
}
|
|
|
|
.rack-items-layer {
|
|
inset: 24px 26px 24px 62px;
|
|
}
|
|
}
|