body.design { max-width: 1200px; }
.design-main {
display: grid;
grid-template-columns: 220px 1fr;
gap: 1.5rem;
}
.design-nav {
border-right: 1px solid rgba(255, 255, 255, 0.15);
padding: 1rem 0;
display: flex;
flex-direction: column;
overflow-y: auto;
scrollbar-gutter: stable;
}
.design-nav a {
display: grid;
gap: 0.1rem;
padding: 0.6rem 1.5rem;
text-decoration: none;
border-left: 3px solid transparent;
}
.design-nav a:hover { background: rgba(0, 0, 0, 0.2); color: inherit; }
.design-nav a.current {
background: rgba(0, 0, 0, 0.3);
border-left-color: var(--brand);
color: var(--fg-header);
}
.design-nav .title { font-weight: 700; }
.design-nav .desc { font-size: var(--text-sm); opacity: 0.7; }
.design-preview {
padding: 2rem;
display: flex;
flex-direction: column;
gap: 2rem;
overflow-y: auto;
scrollbar-gutter: stable;
}
.story {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.story .label {
font-size: var(--text-sm);
opacity: 0.7;
font-family: var(--font-mono);
}
.story .render {
position: relative;
padding: 1.5rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 0.5rem;
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
align-items: center;
}
.swatch-row {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
gap: 6px;
padding: 6px;
background: #bbada0;
border-radius: 6px;
width: 100%;
}
.swatch-row .sw {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
border-radius: 3px;
font-weight: 700;
font-variant-numeric: tabular-nums;
font-size: clamp(9px, 1.1vw, 15px);
}
.story .note {
font-size: var(--text-sm);
opacity: 0.8;
line-height: 1.5;
max-width: 65ch;
}
.wc-playground {
display: grid;
grid-template-columns: 260px 1fr;
gap: 1.25rem;
height: calc(100dvh - 14rem);
}
.wc-playground .wc-controls {
display: flex;
flex-direction: column;
gap: 1.25rem;
min-width: 0;
min-height: 0;
overflow-y: auto;
scrollbar-gutter: stable;
}
.wc-scenario {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.wc-scenario-label {
font-size: var(--text-sm);
opacity: 0.85;
font-family: var(--font-mono);
}
.wc-btn {
align-self: flex-start;
margin-right: 0.5rem;
}
.badge-board {
width: 260px;
}