Files

516 lines
9.7 KiB
CSS
Raw Permalink Normal View History

/* ------------------------------------------------------------- view toolbar */
#app { grid-template-columns: 430px minmax(0, 1fr); }
@media (max-width: 920px) {
#app { grid-template-columns: 1fr; }
}
.toolbar-groups {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
/* ------------------------------------------------------------- context menu */
.ctx-menu {
position: fixed;
z-index: 90;
width: 258px;
padding: 10px 12px 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(9, 17, 29, 0.98);
box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
font-size: 11px;
color: var(--text);
}
.ctx-menu h4 {
margin: 0 0 8px;
font-size: 11px;
color: var(--cyan);
font-weight: 600;
letter-spacing: 0.04em;
}
.ctx-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: 7px 0;
color: var(--muted);
}
.ctx-row input[type="number"] {
width: 78px;
padding: 3px 6px;
border-radius: 4px;
border: 1px solid var(--line);
background: rgba(8, 15, 26, 0.9);
color: var(--text);
font-family: var(--mono);
font-size: 11px;
text-align: right;
}
.ctx-row select {
width: 78px;
padding: 3px 6px;
border-radius: 4px;
border: 1px solid var(--line);
background: rgba(8, 15, 26, 0.9);
color: var(--text);
font-size: 11px;
}
.ctx-actions {
display: flex;
gap: 6px;
margin-top: 10px;
}
.ctx-actions button {
flex: 1;
padding: 6px 8px;
border-radius: 5px;
border: 1px solid var(--line);
background: rgba(12, 24, 38, 0.9);
color: var(--text);
font-size: 11px;
cursor: pointer;
}
.ctx-actions button.primary {
border-color: transparent;
background: linear-gradient(180deg, #8beaff, #4fd3f2);
color: #04121a;
font-weight: 600;
}
/* ------------------------------------------------------------- capacity bar */
.cap-bar {
height: 6px;
margin: 10px 0 6px;
border-radius: 3px;
background: #16283c;
overflow: hidden;
}
.cap-bar span {
display: block;
width: 0;
height: 100%;
border-radius: 3px;
background: linear-gradient(90deg, #3fa8c9, #56e1ff 55%, #6df5b1);
transition: width 0.25s ease;
}
.cap-bar.full span {
background: linear-gradient(90deg, #ff8a3d, #ffb45a);
}
.cap-text {
display: flex;
align-items: baseline;
justify-content: space-between;
font-family: var(--mono);
font-size: 9px;
color: var(--faint);
}
.cap-text b {
font-size: 13px;
color: var(--cyan);
font-weight: 600;
}
.cap-bar.full + .cap-text b {
color: var(--amber);
}
/* ---------------------------------------------------------- convergence plot */
.conv-chart {
display: block;
width: 100%;
height: 92px;
margin: 8px 0 2px;
border: 1px solid var(--line-soft);
border-radius: 5px;
background: rgba(7, 14, 24, 0.8);
}
/* ------------------------------------------------------------------ pool list */
.pool-list {
display: flex;
flex-direction: column;
gap: 4px;
margin-top: 8px;
max-height: 340px;
overflow-y: auto;
padding-right: 2px;
}
.pool-row {
display: grid;
grid-template-columns: 8px 1fr auto;
gap: 8px;
align-items: center;
padding: 6px 8px;
border: 1px solid var(--line-soft);
border-radius: 5px;
background: rgba(9, 17, 29, 0.65);
cursor: pointer;
text-align: left;
color: inherit;
font: inherit;
transition: border-color 0.15s, background 0.15s;
}
.pool-row:hover {
border-color: var(--cyan-dim);
background: rgba(14, 28, 44, 0.9);
}
.pool-row.blocked {
border-color: rgba(255, 138, 61, 0.35);
}
.pool-row.blocked .pool-name {
color: #ffcf9a;
}
.pool-swatch {
width: 8px;
height: 24px;
border-radius: 2px;
background: var(--swatch, #567);
}
.pool-main {
min-width: 0;
}
.pool-name {
display: block;
font-size: 11px;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pool-meta {
display: block;
margin-top: 2px;
font-family: var(--mono);
font-size: 9px;
color: var(--faint);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pool-add {
font-family: var(--mono);
font-size: 9px;
padding: 3px 7px;
border-radius: 4px;
border: 1px solid var(--line);
color: var(--cyan);
background: rgba(12, 26, 40, 0.9);
white-space: nowrap;
}
.pool-row:hover .pool-add {
border-color: var(--cyan);
}
.pool-empty {
padding: 9px;
border: 1px dashed var(--line);
border-radius: 5px;
font-size: 10px;
color: var(--faint);
text-align: center;
}
/* ------------------------------------------------------------- param block */
.param-name {
margin: 8px 0 6px;
font-size: 12px;
color: var(--text);
}
.param-name.empty {
color: var(--faint);
}
.param-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: 6px 0;
font-size: 10.5px;
color: var(--muted);
}
.param-row .switch {
margin: 0;
justify-content: flex-start;
}
.param-row input[type="number"] {
width: 64px;
padding: 3px 6px;
border-radius: 4px;
border: 1px solid var(--line);
background: rgba(8, 15, 26, 0.9);
color: var(--text);
font-family: var(--mono);
font-size: 11px;
text-align: right;
}
.param-row input[type="number"]:focus {
outline: none;
border-color: var(--cyan);
}
.param-row .unit {
font-family: var(--mono);
font-size: 9px;
color: var(--faint);
width: 12px;
}
/* --------------------------------------------------------------- placed list */
.pack-list {
display: flex;
flex-direction: column;
gap: 4px;
margin-top: 8px;
max-height: 460px;
overflow-y: auto;
padding-right: 2px;
}
.pack-row {
display: grid;
grid-template-columns: 30px 8px 1fr auto;
gap: 8px;
align-items: center;
padding: 6px 8px;
border: 1px solid var(--line-soft);
border-radius: 5px;
background: rgba(9, 17, 29, 0.65);
cursor: pointer;
text-align: left;
color: inherit;
font: inherit;
transition: border-color 0.15s, background 0.15s;
}
.pack-row:hover {
border-color: var(--cyan-dim);
background: rgba(14, 28, 44, 0.9);
}
.pack-row.active {
border-color: var(--cyan);
background: rgba(19, 45, 66, 0.9);
}
.pack-order {
font-family: var(--mono);
font-size: 10px;
color: var(--cyan);
text-align: right;
}
.pack-swatch {
width: 8px;
height: 24px;
border-radius: 2px;
background: var(--swatch, #567);
}
.pack-main {
min-width: 0;
}
.pack-name {
display: block;
font-size: 11px;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pack-meta {
display: block;
margin-top: 2px;
font-family: var(--mono);
font-size: 9px;
color: var(--faint);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pack-badges {
display: flex;
flex-direction: column;
gap: 2px;
align-items: flex-end;
}
.badge {
font-family: var(--mono);
font-size: 8.5px;
padding: 1px 4px;
border-radius: 3px;
border: 1px solid var(--line);
color: var(--faint);
white-space: nowrap;
}
.badge.remove {
color: var(--faint);
border-color: transparent;
cursor: pointer;
}
.badge.remove:hover {
color: var(--red);
border-color: rgba(255, 122, 122, 0.4);
}
.pack-empty {
padding: 10px;
border: 1px dashed var(--line);
border-radius: 5px;
font-size: 10px;
color: var(--faint);
text-align: center;
}
/* --------------------------------------------------------------------- toast */
.toast {
position: fixed;
left: 50%;
bottom: 34px;
z-index: 50;
transform: translate(-50%, 12px);
max-width: min(560px, 88vw);
padding: 10px 16px;
border-radius: 8px;
border: 1px solid rgba(255, 180, 90, 0.35);
background: rgba(18, 14, 9, 0.94);
color: #ffd9b0;
font-size: 12px;
line-height: 1.5;
box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
opacity: 0;
transition: opacity 0.22s ease, transform 0.22s ease;
pointer-events: none;
}
.toast.show {
opacity: 1;
transform: translate(-50%, 0);
}
.toast.ok {
border-color: rgba(109, 245, 177, 0.4);
background: rgba(9, 20, 15, 0.94);
color: #c8ffe4;
}
/* ---------------------------------------------------------------- 3D overlay */
.pack-legend {
position: absolute;
top: 16px;
right: 16px;
z-index: 6;
padding: 5px 9px;
border-radius: 4px;
border: 1px solid var(--line-soft);
background: rgba(6, 12, 21, 0.72);
backdrop-filter: blur(6px);
font-family: var(--mono);
font-size: 9px;
color: var(--faint);
pointer-events: none;
}
.cam-buttons button.spinning {
color: #04121a;
background: linear-gradient(180deg, #8beaff, #4fd3f2);
border-color: transparent;
}
@media (max-width: 920px) {
.pack-legend { display: none; }
#viewport { min-height: 66vh; }
#viewport canvas { touch-action: none; }
}
/* ------------------------------------------------------------ limit warning */
.limit-warn {
margin-top: 8px;
padding: 7px 9px;
border-radius: 5px;
font-size: 10px;
line-height: 1.5;
border: 1px solid rgba(255, 122, 122, 0.45);
background: rgba(60, 12, 16, 0.55);
color: #ffb3b3;
}
.limit-warn.mid {
border-color: rgba(255, 180, 90, 0.4);
background: rgba(46, 30, 8, 0.55);
color: #ffd9a8;
}
.limit-warn.ok {
border-color: rgba(109, 245, 177, 0.4);
background: rgba(8, 40, 26, 0.5);
color: #b8ffe0;
}
/* ------------------------------------------------------------------ compass */
.compass {
position: absolute;
top: 56px;
right: 16px;
z-index: 6;
width: 108px;
height: 108px;
border-radius: 50%;
border: 1px solid var(--line-soft);
background: radial-gradient(circle at 50% 45%, rgba(22, 44, 66, 0.55), rgba(6, 12, 20, 0.25));
cursor: pointer;
overflow: hidden;
touch-action: none;
pointer-events: auto;
}
#viewport canvas { touch-action: none; }
.compass canvas {
display: block;
border-radius: 50%;
}
@media (max-width: 920px) {
.compass { width: 84px; height: 84px; top: 52px; right: 10px; }
}