.lorem-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 800px) {
    .lorem-container { grid-template-columns: 1fr; }
    .lorem-sidebar { order: 1; }
    .lorem-output { order: 2; }
}

.flex-row {
    display: flex;
    gap: 10px;
}

.input--sm {
    width: 80px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
}

.fmt-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}
.fmt-btn:first-child { border-radius: 8px 0 0 8px; }
.fmt-btn:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.fmt-btn.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.lorem-output {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #f9fafb;
}

#resultText {
    width: 100%;
    min-height: 400px;
    padding: 20px;
    border: none;
    font-family: 'Georgia', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
}

#resultText:focus { outline: none; }

.badge-soft {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(0,0,0,0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0;
}
.full-width { width: 100%; }
