/* Browser Mockup Generator — in-browser tool UI. Scoped to .fs-* classes. */

.fs-tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    margin: 8px 0 4px;
}

.fs-stage {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #14141b;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    transition: outline-color .15s ease;
    outline: 2px dashed transparent;
    outline-offset: -8px;
}

.fs-stage.is-dragover {
    outline-color: #7dd3c0;
}

#fs-canvas {
    display: none;
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 4px;
}

.fs-empty {
    text-align: center;
    color: #bdbdbd;
    cursor: pointer;
    padding: 24px;
    border-radius: 12px;
    max-width: 420px;
}

.fs-empty:hover { color: #fff; }

.fs-empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: .8;
}

.fs-empty strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.fs-empty span { font-size: .9rem; line-height: 1.6; }

.fs-controls {
    background: #15151c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    align-self: start;
}

.fs-row { margin-bottom: 16px; }
.fs-row:last-child { margin-bottom: 0; }

.fs-row label,
.fs-row .fs-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .82rem;
    font-weight: 600;
    color: #e6e6ea;
    margin-bottom: 7px;
}

.fs-row label output { color: #84dce8; font-variant-numeric: tabular-nums; font-weight: 500; }

.fs-row input[type="range"] {
    width: 100%;
    accent-color: #7dd3c0;
}

.fs-row select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 9px;
    background: #0f0f15;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font: inherit;
    font-size: .88rem;
}

.fs-colors { display: flex; gap: 10px; }
.fs-colors > div { flex: 1; }
.fs-row input[type="color"] {
    width: 100%;
    height: 38px;
    padding: 2px;
    border-radius: 9px;
    background: #0f0f15;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.fs-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.fs-swatch.is-active { border-color: #fff; }

.fs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.fs-actions .btn { flex: 1; min-width: 120px; justify-content: center; }
.fs-actions .btn[disabled] { opacity: .45; pointer-events: none; }

.fs-status {
    min-height: 1.2em;
    margin: 10px 0 0;
    font-size: .85rem;
    color: #7dd3c0;
    text-align: center;
}

.fs-privacy-note {
    margin: 6px 0 0;
    font-size: .8rem;
    color: #9a9aa6;
    text-align: center;
}

@media (max-width: 900px) {
    .fs-tool { grid-template-columns: 1fr; }
    .fs-stage { min-height: 300px; }
    #fs-canvas { max-height: 56vh; }
}
