.fw-helper {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* Tabs */
.fw-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5em;
}

.fw-tab {
    flex: 1;
    padding: 0.6em 1em;
    font-size: 1em;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.fw-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.fw-tab:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.fw-tab-active {
    opacity: 1;
    font-weight: 600;
    border-color: rgba(255, 255, 255, .5);
}

/* Form */
.fw-form {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.fw-row {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.fw-row label {
    font-weight: 600;
    font-size: 0.9em;
}

.fw-hint {
    font-weight: 400;
    opacity: 0.5;
    font-size: 0.9em;
}

.fw-row input,
.fw-row select {
    padding: 0.5em 0.7em;
    font-size: 1em;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    background: transparent;
    color: inherit;
}

.fw-row input:focus,
.fw-row select:focus {
    outline: 2px solid rgba(255, 255, 255, .4);
    outline-offset: -1px;
}

.fw-generate-btn {
    margin-top: 0.5em;
    padding: 0.6em 1.5em;
    font-size: 1em;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.15s;
}

.fw-generate-btn:hover {
    opacity: 0.8;
}

/* Output */
.fw-output {
    margin-top: 1.5em;
}

.fw-output h3 {
    margin: 0 0 0.5em;
}

.fw-code-wrap {
    position: relative;
}

.fw-code {
    padding: 1em;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    line-height: 1.6;
}

.fw-copy-btn {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    padding: 0.3em 0.5em;
    font-size: 0.85em;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 3px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.fw-copy-btn:hover {
    opacity: 1;
}

/* Error */
.fw-error {
    color: #f55;
    margin-top: 0.5em;
    font-size: 0.9em;
    min-height: 1.2em;
}

/* Presets */
.fw-presets {
    margin-top: 2em;
}

.fw-presets h3 {
    margin: 0 0 0.6em;
}

.fw-preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.fw-preset {
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.fw-preset:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .fw-preset-grid {
        flex-direction: column;
    }

    .fw-preset {
        width: 100%;
        text-align: left;
    }
}
