.fab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 618px;
    gap: 14px;
    align-items: start;
}
.fab-preview {
    position: sticky;
    top: 12px;
}
.fab-preview svg {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.fab-steps {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}
.fab-steps button {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}
.fab-steps button.is-on {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.fab-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 8px;
}
.fab-templates button {
    text-align: left;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
}
.fab-templates button.is-on {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}
.fab-templates svg {
    width: 100%;
    height: 72px;
    display: block;
    margin-bottom: 6px;
}
.fab-templates strong { display: block; font-size: .82rem; }
.fab-templates span { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; margin-top: 2px; }
.fab-dims { display: grid; gap: 10px; }
.fab-dim {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.fab-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 8px;
}
.fab-check input { width: auto; min-width: 0; }
.fab-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.fab-callout {
    margin: 8px 0 0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--brand);
}
.fab-notes { margin: 8px 0 0; padding-left: 18px; }
.fab-notes li { margin: 4px 0; font-size: .8rem; }
.fab-notes.warn li { color: #9a3412; }
.fab-notes.err li { color: #991b1b; }
.fab-summary { display: grid; grid-template-columns: 160px 1fr; gap: 4px 10px; font-size: .86rem; }
.fab-summary dt { color: var(--muted); font-weight: 700; }
.fab-summary dd { margin: 0; }
.fab-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.fab-chip {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 1px solid #94a3b8;
    border-radius: 3px;
    vertical-align: -2px;
}
.ops-grid label[hidden] {
    display: none;
}

@media (max-width: 960px) {
    .fab-layout { grid-template-columns: 1fr; }
    .fab-preview { position: static; }
}
