/* ============================================================
   CopyBots v2 - Stylesheet
   Dark Theme, Industrial/Professional
   ============================================================ */

:root {
    --bg-primary: #0a0b0e;
    --bg-secondary: #12141a;
    --bg-card: #181b23;
    --bg-elevated: #1e2130;
    --bg-input: #141720;
    --border: #2a2d3a;
    --border-focus: #4f6ef7;
    --text-primary: #e8eaf0;
    --text-secondary: #8b8fa3;
    --text-muted: #5c607a;
    --accent: #4f6ef7;
    --accent-hover: #6380ff;
    --accent-glow: rgba(79, 110, 247, 0.15);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

/* ============ SCREENS ============ */
.screen { display: none; height: 100vh; }
.screen.active { display: flex; }

/* ============ LOGIN ============ */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: radial-gradient(ellipse at top, #151830 0%, var(--bg-primary) 70%);
}

.login-brand { text-align: center; margin-bottom: 32px; }
.brand-icon { font-size: 48px; margin-bottom: 8px; filter: drop-shadow(0 0 20px rgba(79,110,247,0.5)); }
.login-brand h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
.brand-tagline { color: var(--text-secondary); font-size: 15px; margin-top: 4px; }

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.login-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-input); border-radius: var(--radius); padding: 3px; }
.tab-btn {
    flex: 1; padding: 8px; border: none; background: transparent; color: var(--text-secondary);
    border-radius: 6px; cursor: pointer; font-family: var(--font-body); font-weight: 500; font-size: 13px; transition: var(--transition);
}
.tab-btn.active { background: var(--accent); color: #fff; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input, textarea, select {
    width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-primary); font-family: var(--font-body); font-size: 14px;
    transition: var(--transition); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea { resize: vertical; min-height: 80px; }

.select-sm { padding: 6px 10px; font-size: 12px; max-width: 200px; }

.form-error { color: var(--danger); font-size: 13px; margin-top: 12px; text-align: center; min-height: 20px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border: none; border-radius: var(--radius); font-family: var(--font-body);
    font-weight: 600; font-size: 13px; cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,110,247,0.3); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.hidden { display: none !important; }

/* ============ MAIN LAYOUT ============ */
#main-screen { display: none; }
#main-screen.active { display: flex; }

/* ============ SIDEBAR ============ */
#sidebar {
    width: 240px; min-width: 240px; background: var(--bg-secondary); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; height: 100vh;
}
.sidebar-brand { padding: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.brand-icon-sm { font-size: 20px; }
.brand-text { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius);
    color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; transition: var(--transition);
}
.nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); }
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.credits-display { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 10px 14px; background: var(--bg-elevated); border-radius: var(--radius); }
.credits-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.credits-value { font-family: var(--font-mono); font-weight: 600; color: var(--success); font-size: 16px; }

/* ============ CONTENT ============ */
#content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
#top-bar {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 28px;
    border-bottom: 1px solid var(--border); background: var(--bg-secondary); min-height: 60px;
}
#top-bar h2 { font-size: 18px; font-weight: 600; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.user-name { font-size: 13px; color: var(--text-secondary); }

#view-container { flex: 1; overflow-y: auto; padding: 28px; }

/* ============ CARDS ============ */
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; transition: var(--transition);
}
.card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow); }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }

/* ============ CATEGORY GRID ============ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.category-card { cursor: pointer; position: relative; overflow: hidden; }
.category-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--cat-color, var(--accent)); border-radius: 4px 0 0 4px;
}
.category-icon { font-size: 28px; margin-bottom: 12px; }
.category-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ============ TEMPLATE LIST ============ */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.template-card { cursor: pointer; padding: 16px; }
.template-card .card-meta .credit-badge {
    background: var(--accent-glow); color: var(--accent); padding: 2px 8px; border-radius: 10px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}

.sequence-header {
    font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sequence-header:first-child { margin-top: 0; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); text-decoration: none; font-size: 13px; margin-bottom: 20px; }
.back-link:hover { color: var(--accent); }

/* ============ MODAL ============ */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.modal-content {
    position: relative; background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 95vw; max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.modal-xl { max-width: 1200px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; padding: 4px 8px; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }

/* ============ GENERATE LAYOUT ============ */
.generate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-height: 60vh; }
.generate-inputs { display: flex; flex-direction: column; gap: 16px; }
.generate-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.generate-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.credit-cost { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

.generate-output { display: flex; flex-direction: column; }
.output-placeholder {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted); text-align: center;
}
.placeholder-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.output-result { flex: 1; display: flex; flex-direction: column; }
.output-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.output-text {
    flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; white-space: pre-wrap; font-size: 13px; line-height: 1.7; overflow-y: auto; max-height: 60vh;
}
.output-meta { margin-top: 8px; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* Question set headers in generate */
.question-set-header {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent); margin: 16px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border);
}
.question-set-header:first-child { margin-top: 0; }

.question-field label .required-dot { color: var(--danger); margin-left: 2px; }
.question-field textarea { min-height: 60px; font-size: 13px; }
#question-fields { max-height: 55vh; overflow-y: auto; padding-right: 8px; }

/* ============ PROFILES ============ */
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.profile-card { cursor: pointer; }
.profile-card .card-meta { justify-content: space-between; }

/* ============ HISTORY ============ */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
    display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center;
    padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: var(--transition);
}
.history-item:hover { border-color: var(--accent); }
.history-template { font-weight: 500; }
.history-category { font-size: 12px; color: var(--text-muted); }
.history-date { font-size: 12px; color: var(--text-secondary); font-family: var(--font-mono); }

/* ============ ADMIN ============ */
.admin-section { margin-bottom: 32px; }
.admin-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.toggle-btn {
    padding: 4px 10px; border-radius: 12px; border: none; font-size: 11px; font-weight: 600; cursor: pointer;
    font-family: var(--font-body);
}
.toggle-btn.active { background: var(--success); color: #000; }
.toggle-btn.inactive { background: var(--danger); color: #fff; }

/* ============ LOADING ============ */
.spinner {
    display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border);
    border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: absolute; inset: 0; background: rgba(10,11,14,0.8); display: flex;
    align-items: center; justify-content: center; z-index: 10; border-radius: var(--radius-lg);
}

/* ============ TOAST ============ */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 12px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
    box-shadow: var(--shadow); animation: slideIn 0.3s ease; max-width: 360px;
}
.toast-success { background: #065f46; color: var(--success); border: 1px solid #047857; }
.toast-error { background: #7f1d1d; color: var(--danger); border: 1px solid #991b1b; }
.toast-info { background: #1e3a5f; color: #60a5fa; border: 1px solid #2563eb; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    #sidebar { width: 60px; min-width: 60px; }
    .brand-text, .nav-item span:not(.nav-icon), .credits-label { display: none; }
    .sidebar-brand { justify-content: center; }
    .nav-item { justify-content: center; padding: 12px; }
    .credits-display { justify-content: center; }
    .generate-layout { grid-template-columns: 1fr; }
    #view-container { padding: 16px; }
    .categories-grid, .templates-grid { grid-template-columns: 1fr; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Admin only elements hidden by default */
.admin-only { display: none; }
body.is-admin .admin-only { display: flex; }

/* ============ MEINE TEXTE ============ */
.texts-toolbar {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.texts-search {
    flex: 1; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-primary); font-size: 13px;
    font-family: inherit; outline: none; transition: border-color 0.15s;
}
.texts-search:focus { border-color: var(--border-focus); }
.texts-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.texts-list { display: flex; flex-direction: column; gap: 12px; }

.text-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 16px 18px; transition: border-color 0.15s, transform 0.1s;
}
.text-card:hover { border-color: var(--border-focus); }
.text-card.is-favorite { border-left: 3px solid #f59e0b; }

.text-card-header { margin-bottom: 10px; }

.text-card-title-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.text-title {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    cursor: pointer; line-height: 1.3; flex: 1;
}
.text-title:hover { color: var(--accent-hover); text-decoration: underline; }

.icon-btn {
    background: transparent; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 18px; padding: 4px 8px; border-radius: 4px; transition: color 0.15s;
}
.icon-btn:hover { color: #f59e0b; }
.text-card.is-favorite .fav-btn { color: #f59e0b; }

.text-card-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 11px; color: var(--text-muted);
}
.text-chip {
    background: var(--bg-elevated); color: var(--text-secondary); padding: 2px 8px;
    border-radius: 10px; font-size: 11px; border: 1px solid var(--border);
}
.text-chip-profile { background: rgba(79, 110, 247, 0.12); color: #93a5ff; border-color: rgba(79, 110, 247, 0.3); }
.text-meta-sep { color: var(--text-muted); }
.text-meta-info { font-family: var(--font-mono, monospace); }

.text-preview {
    font-size: 12px; color: var(--text-secondary); line-height: 1.5;
    background: var(--bg-secondary); padding: 10px 12px; border-radius: var(--radius);
    margin-bottom: 12px; cursor: pointer; max-height: 80px; overflow: hidden;
    white-space: pre-wrap; font-family: var(--font-mono, monospace);
}
.text-preview:hover { background: var(--bg-input); }

.text-card-actions {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.btn-danger { color: #f87171 !important; }
.btn-danger:hover { background: rgba(248, 113, 113, 0.1) !important; }

.texts-empty {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.texts-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ============ SEQUENZ-UI ============ */
.sequence-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, rgba(79,110,247,0.1), rgba(79,110,247,0.03));
    border: 1px solid var(--border-focus); border-radius: var(--radius-lg);
    padding: 14px 18px; margin: 24px 0 12px;
}
.sequence-banner-info { flex: 1; }
.sequence-banner-title { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.sequence-banner-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.sequence-config { padding: 8px 4px; }
.sequence-info { margin-bottom: 24px; }
.sequence-template-list {
    background: var(--bg-secondary); border-radius: var(--radius); padding: 12px;
    margin-top: 8px;
}
.seq-tpl-row {
    display: flex; align-items: center; gap: 12px; padding: 6px 4px;
    border-bottom: 1px solid var(--border); font-size: 13px;
}
.seq-tpl-row:last-child { border-bottom: none; }
.seq-tpl-num {
    width: 24px; text-align: center; font-family: var(--font-mono, monospace);
    color: var(--text-muted); font-size: 11px;
}
.seq-tpl-name { flex: 1; color: var(--text-primary); }
.seq-tpl-cost { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--text-muted); }

.sequence-total {
    margin-top: 12px; padding: 8px 12px; background: var(--bg-elevated);
    border-radius: var(--radius); text-align: right; font-size: 13px;
}

.sequence-form { margin-top: 16px; }

.sequence-result-summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; background: var(--bg-secondary); border-radius: var(--radius);
    margin-bottom: 12px; font-size: 13px;
}

.sequence-bundle-download {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 14px; background: rgba(79,110,247,0.1);
    border: 1px solid var(--border-focus); border-radius: var(--radius);
    margin-bottom: 16px; font-size: 13px;
}

.sequence-error {
    padding: 10px 14px; background: rgba(248,113,113,0.1);
    border: 1px solid #f87171; border-radius: var(--radius);
    color: #f87171; font-size: 12px; margin-bottom: 12px;
}

.sequence-emails-list { display: flex; flex-direction: column; gap: 16px; }
.seq-email-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px 16px;
}
.seq-email-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.seq-email-num {
    background: var(--accent); color: white; padding: 2px 8px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.seq-email-name { flex: 1; font-weight: 500; font-size: 14px; }
.seq-email-meta { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono, monospace); }
.seq-email-body {
    background: var(--bg-secondary); padding: 12px; border-radius: var(--radius);
    font-size: 12px; color: var(--text-primary); white-space: pre-wrap;
    font-family: var(--font-mono, monospace); max-height: 300px; overflow: auto;
    margin: 0 0 10px;
}
.seq-email-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Sequenz-Karten in „Meine Texte" */
.text-card.seq-card { border-left: 3px solid var(--accent); }
.text-chip-seq {
    background: var(--accent); color: white !important; border-color: var(--accent) !important;
    font-weight: 600;
}
.seq-status {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.seq-status-ok   { background: rgba(16,185,129,0.2); color: #10b981; }
.seq-status-warn { background: rgba(245,158,11,0.2); color: #f59e0b; }
.seq-status-err  { background: rgba(248,113,113,0.2); color: #f87171; }
.seq-status-run  { background: rgba(79,110,247,0.2);  color: #4f6ef7; }

/* ============ FIELD-LEVEL-SCHALTER & CHECKLIST ============ */
.field-level-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 14px; background: var(--bg-secondary);
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 16px;
}
.field-level-label {
    font-size: 12px; color: var(--text-muted); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px; margin-right: 4px;
}
.field-level-btn {
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 6px 12px; border-radius: 6px;
    font-size: 12px; cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.field-level-btn:hover { border-color: var(--border-focus); color: var(--text-primary); }
.field-level-btn.active {
    background: var(--accent); border-color: var(--accent); color: white; font-weight: 600;
}
.field-level-info {
    margin-left: auto; font-size: 11px; color: var(--text-muted);
    font-family: var(--font-mono, monospace);
}

.field-checklist { display: flex; flex-direction: column; gap: 4px; }

.field-group-header {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 14px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}

.field-row {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 12px; transition: border-color 0.15s, opacity 0.15s;
    background: var(--bg-card);
}
.field-row.is-checked { border-color: var(--border-focus); }
.field-row:not(.is-checked) { opacity: 0.55; }
.field-row:not(.is-checked) textarea { background: var(--bg-secondary); cursor: not-allowed; }

.field-row-label {
    display: flex; align-items: flex-start; gap: 8px; cursor: pointer;
    font-size: 13px; color: var(--text-primary); margin-bottom: 6px;
}
.field-row-label input[type="checkbox"] {
    margin-top: 3px; cursor: pointer; width: 14px; height: 14px;
    accent-color: var(--accent);
}
.field-row-text { flex: 1; line-height: 1.4; }

.field-row textarea {
    width: 100%; padding: 8px 10px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary);
    font-family: inherit; font-size: 12px; resize: vertical; outline: none;
    transition: border-color 0.15s;
}
.field-row textarea:focus { border-color: var(--border-focus); }

/* ============ OUTPUT-TOOLBAR FIX (Generate-Modal) ============ */
.output-title-row {
    display: flex; gap: 8px; margin-bottom: 10px;
}
.output-title-input {
    flex: 1; padding: 8px 12px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-primary); font-size: 13px; outline: none;
    font-family: inherit; transition: border-color 0.15s;
}
.output-title-input:focus { border-color: var(--border-focus); }
.output-toolbar-sep { color: var(--text-muted); margin: 0 4px; }
