/* ===== משתנים כלליים ===== */
:root {
    /* המערכת היא light theme בלבד. הכרזה מפורשת כדי שגם שדות טופס,
       גלילה ופקדים מקומיים ייראו בהיר גם במכשיר שמוגדר ל-dark mode. */
    color-scheme: light;
    --green: #2f6e4f;
    --green-dark: #1f4d37;
    --green-light: #e8f3ec;
    --bg: #faf8f5;
    --card-bg: #ffffff;
    --text: #23281f;
    --text-muted: #6b7280;
    --border: #e5e1d8;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);

    --c-new: #3b82f6;
    --c-contacted: #8b5cf6;
    --c-proposal: #f59e0b;
    --c-waiting: #eab308;
    --c-interested: #06b6d4;
    --c-closed: #16a34a;
    --c-irrelevant: #6b7280;
    --c-future: #6366f1;
    --c-cancelled: #991b1b;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== כותרת עליונה ===== */
.topbar {
    background: var(--green);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow);
}
.topbar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.nav {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav a {
    color: #eafff2;
    font-size: 0.95rem;
    padding: 6px 4px;
}
.nav a.active {
    font-weight: 700;
    border-bottom: 2px solid #fff;
}
.nav a.nav-cta {
    background: #fff;
    color: var(--green-dark);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
}
.nav a.nav-cta:hover { text-decoration: none; opacity: 0.9; }

/* ===== מיכל תוכן ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

/* ===== ניווט תחתון לנייד (Mobile First) ===== */
/* בדסקטופ מוסתר לגמרי; הניווט העליון הרגיל פעיל. בנייד: פס תחתון קבוע
   עם 5 יעדים ראשיים, והקישורים הראשיים בפס העליון מוסתרים. */
.bottom-nav { display: none; }

@media (max-width: 639px) {
    .topbar-inner { padding: 10px 14px; }
    .nav { gap: 10px; }
    .nav .nav-main-link { display: none; }   /* עוברים לפס התחתון */
    .nav .nav-txt { display: none; }         /* "הגדרות"/"יציאה" -> אייקון בלבד */
    .nav a, .nav .nav-logout { padding: 8px 4px; }

    .bottom-nav {
        display: flex;
        position: fixed;
        inset: auto 0 0 0;
        background: var(--card-bg);
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.07);
        z-index: 30;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .bottom-nav a {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 7px 2px 5px;
        min-height: 54px;
        color: var(--text-muted);
        font-size: 0.66rem;
        font-weight: 600;
        text-decoration: none;
    }
    .bottom-nav a:hover { text-decoration: none; }
    .bottom-nav a.active { color: var(--green-dark); }
    .bottom-nav a.active .bn-ico { transform: translateY(-1px); }
    .bottom-nav a.bn-cta { color: var(--green); }
    .bottom-nav .bn-ico { font-size: 1.35rem; line-height: 1; }

    body { padding-bottom: 66px; }           /* שלא יסתתר תוכן מאחורי הפס */

    /* יעדי מגע נוחים יותר לנייד */
    .btn { min-height: 42px; }
    .btn-small { min-height: 36px; }
}

.page-title {
    font-size: 1.4rem;
    margin: 4px 0 16px;
}

/* ===== לוח מדדים בדשבורד ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
@media (min-width: 640px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat-tile {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    text-align: center;
    border-top: 4px solid var(--border);
    display: block;
    color: inherit;
    transition: transform 0.1s ease;
}
a.stat-tile:hover, a.stat-tile:active {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green-dark);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.stat-new { border-top-color: var(--c-new); }
.stat-followup { border-top-color: var(--c-waiting); }
.stat-upcoming-followup { border-top-color: var(--c-future); }
.stat-closed { border-top-color: var(--c-closed); }
.stat-upcoming { border-top-color: var(--c-proposal); }
.stat-overdue { border-top-color: var(--c-cancelled); }
.stat-unpaid { border-top-color: var(--c-cancelled); }
.stat-revenue { border-top-color: var(--green); grid-column: span 2; }
@media (min-width: 640px) { .stat-revenue { grid-column: span 1; } }

/* ===== שדרוגי טופס ליד: עסקה, כפילויות, היסטוריה ===== */
.dup-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.dup-warning strong { color: #92400e; }
.dup-warning ul { margin: 8px 0; padding-inline-start: 20px; }
.dup-warning li { margin-bottom: 4px; }
.dup-warning-soft {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.dup-warning-soft strong { color: #1e40af; }

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.summary-box {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #fff;
    color: var(--text);
    resize: vertical;
}

.btn-confirm-workshop {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    padding: 14px 16px;
    margin-top: 6px;
}

#total-amount.is-auto,
#balance-due {
    background: var(--green-light);
    font-weight: 700;
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
}
.history-list li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.history-list li:last-child { border-bottom: none; }
.history-time { color: var(--text-muted); font-size: 0.8rem; }

.followup-done-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.followup-quick {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: -4px 0 14px;
}
.followup-quick input[type="date"],
.followup-quick .il-date-text {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    background: #fff;
    color: var(--text);
}
.followup-quick .il-date { width: auto; flex: 0 1 auto; }
.followup-quick .il-date-text { width: 8.5em; }

/* ===== סקשנים בדשבורד ===== */
.dash-section {
    margin-bottom: 28px;
    scroll-margin-top: 70px;
}
.dash-section-urgent {
    background: #fff7f7;
    border: 1px solid #fde2e2;
    border-radius: var(--radius);
    padding: 14px;
}
.dash-section h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-count {
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
}
.dash-section-urgent .section-count {
    background: #fee2e2;
    color: #b91c1c;
}
.empty-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== כרטיס ליד ===== */
.lead-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.lead-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.lead-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}
.lead-name:hover { text-decoration: underline; }

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    white-space: nowrap;
}
.status-new { background: var(--c-new); }
.status-contacted { background: var(--c-contacted); }
.status-proposal { background: var(--c-proposal); }
.status-waiting { background: var(--c-waiting); color: #3a2f00; }
.status-interested { background: var(--c-interested); }
.status-closed { background: var(--c-closed); }
.status-irrelevant { background: var(--c-irrelevant); }
.status-future { background: var(--c-future); }
.status-cancelled { background: var(--c-cancelled); }

.lead-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.chip {
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.8rem;
    padding: 3px 9px;
    border-radius: 20px;
}
.chip-followup {
    background: #fff4d6;
    color: #7a5b00;
}
.chip-overdue {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
}
.chip-relative {
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
}
.chip-price {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
}

.lead-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== כפתורים ===== */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-small { padding: 7px 12px; font-size: 0.85rem; }
.btn-primary { background: var(--green); color: #fff; }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-whatsapp { background: #25d366; color: #fff; }

/* ===== סינון ברשימת לידים ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.search-input, .status-select {
    flex: 1 1 160px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}
.filter-wide {
    flex-basis: 100%;
}
.filter-date-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1 1 160px;
}
.filter-date-label input {
    flex: none;
}
.results-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* ===== טופס ליד ===== */
.lead-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.field span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.field input, .field select, .field textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.field-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.field-row .field {
    flex: 1 1 140px;
}
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* ===== קיבוץ שדות בטופס (fieldset) ===== */
.form-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}
.form-section legend {
    font-weight: 700;
    padding: 0 6px;
    color: var(--green-dark);
}
.form-section.is-closing {
    border-color: var(--c-closed);
    background: #f0fdf4;
}
.form-section.is-closing .closing-field {
    border-color: var(--c-closed);
}

/* ===== קבוצת צ'קבוקסים (סוג הסדנה) ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}
.checkbox-option input {
    width: 18px;
    height: 18px;
    flex: none;
}

.closing-hint {
    display: none;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}
.delete-form {
    margin-top: 14px;
    text-align: center;
}
.flash-success {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 600;
}
.flash-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 600;
}

/* ===== אימות טופס ליד (הודעות בעברית) ===== */
.form-errors {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #7f1d1d;
}
.form-errors.show {
    display: block;
}
.form-errors strong {
    display: block;
    color: #b91c1c;
    margin-bottom: 6px;
}
.form-errors ul {
    margin: 0;
    padding-inline-start: 20px;
}
.form-errors li {
    margin-bottom: 3px;
}
.form-errors li:first-child {
    font-weight: 700;
}
.field input.field-invalid,
.field select.field-invalid,
.field textarea.field-invalid,
input.field-invalid,
select.field-invalid,
textarea.field-invalid {
    border-color: #dc2626;
    background: #fef2f2;
    outline: 2px solid rgba(220, 38, 38, 0.25);
    outline-offset: 1px;
}
.field-error-msg {
    display: block;
    margin-top: 4px;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== שדה תאריך ישראלי DD/MM/YYYY (ראו public/ilDate.js) ===== */
.il-date {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 6px;
}
.il-date .il-date-text {
    flex: 1 1 auto;
    min-width: 0;
}
.il-date .il-date-native {
    flex: 0 0 auto;
    width: 46px;
    padding: 0 4px;
    color: transparent;            /* מסתיר את הטקסט של הפורמט המקומי (בעיקר בפיירפוקס) */
    background: #fff;
    cursor: pointer;
}
/* בכרום/אדג': משאירים רק את אייקון לוח השנה, בלי שדות העריכה */
.il-date .il-date-native::-webkit-datetime-edit { display: none; }
.il-date .il-date-native::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
}
.il-date .il-date-native::-webkit-inner-spin-button,
.il-date .il-date-native::-webkit-clear-button { display: none; }
/* הדגשת שגיאה גם על שדה הטקסט הגלוי */
.il-date .il-date-text.field-invalid { border-color: #dc2626; background: #fef2f2; }

/* ===== הגדרות / חיבורי Google ===== */
.settings-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 20px;
}
.settings-card h2 {
    font-size: 1.05rem;
    margin: 0 0 12px;
}
.connection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.connection-row:last-of-type { border-bottom: none; }
.connection-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.connection-icon { font-size: 1.2rem; }
.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.settings-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.6;
}

/* ===== זמינות ביומן בעמוד הליד ===== */
.availability-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}
.availability-list {
    margin: 0 0 14px;
    padding-inline-start: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.availability-live {
    margin-top: -4px;
}
.availability-live:empty {
    margin: 0;
}
.section-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* ===== מרכז תוכן ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .content-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .content-grid { grid-template-columns: repeat(4, 1fr); }
}
.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: block;
    color: inherit;
    position: relative;
}
.content-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.content-card > a {
    display: block;
    color: inherit;
}
.content-card > a:hover {
    text-decoration: none;
}
.content-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    background: #000;
}
.content-thumb-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 0.85rem;
}
.content-card-body {
    padding: 10px 12px;
}
.content-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.content-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.content-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.content-media {
    width: 100%;
    max-height: 420px;
    border-radius: var(--radius);
    background: #000;
    display: block;
    margin-bottom: 10px;
    object-fit: contain;
}
.content-card-actions {
    padding: 0 12px 12px;
}
.content-post-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}
.content-post-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    background: #000;
    flex: none;
}

/* ===== מרכז תוכן - שלב 2 (Mobile First) ===== */
.content-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--green-light);
}
.content-thumb-count {
    position: absolute;
    bottom: 8px;
    inset-inline-start: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 8px;
    padding: 2px 7px;
    font-size: 0.78rem;
    font-weight: 700;
}
.chip-platform {
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.95rem;
    padding: 2px 7px;
}

/* קלט קובץ גדול ונוח למגע */
.file-input-big {
    padding: 14px 12px !important;
    font-size: 0.95rem;
    background: var(--green-light) !important;
    border: 1px dashed var(--green) !important;
    border-radius: 12px;
    width: 100%;
}

/* רשת תצוגה מקדימה / מדיה קיימת */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    margin-top: 6px;
}
.media-preview-head {
    grid-column: 1 / -1;
    margin: 0;
}
.media-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-badge {
    position: absolute;
    top: 4px;
    inset-inline-start: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 6px;
    padding: 0 5px;
    font-size: 0.8rem;
}
.media-cap {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.68rem;
    text-align: center;
    padding: 2px 0;
}
.media-del {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.media-grid .btn { grid-column: 1 / -1; }

/* בחירת פלטפורמות - כפתורי בורר */
.platform-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.platform-option {
    cursor: pointer;
}
.platform-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #fff;
    color: var(--text);
    user-select: none;
}
.platform-option input:checked + .platform-pill {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.platform-ico { font-size: 1.1rem; }

/* ===== מסך גרסאות AI לפי פלטפורמה ===== */
.ai-platform-card.is-approved {
    border: 1px solid var(--c-closed);
    background: #f0fdf4;
}
.ai-platform-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.ai-platform-head h2 { margin: 0; font-size: 1.05rem; }
.ai-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #fff;
    color: var(--text);
    resize: vertical;
    white-space: pre-wrap;
}
.ai-platform-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}
.ai-approve {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}
.ai-approve input { width: 18px; height: 18px; }
.ai-regen { margin-top: 8px; }
