/**
 * קול מרוקו - עיצוב עמוד המילון.
 * משתמש במשתני הצבע הקיימים של page-kadisha (`--ka-*`) ב-style.css.
 */

.kadisha-lexicon-page .kadisha-section { padding: clamp(2rem, 5vw, 4rem) 0; }

/* מבוא */
.kadisha-lexicon-intro {
    /* רוחב ברירת המחדל; ייתכן שנדרס בשורה inline מההגדרות */
    max-width: 780px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ka-ink, #2c2826);
    position: relative;
}
.kadisha-lexicon-intro p { margin: 0 0 0.8em; }
.kadisha-lexicon-intro p:last-child { margin-bottom: 0; }

/* פיצול תג More: ".rest" מוסתר ב-hidden HTML attribute, מופיע בלחיצה. */
.kadisha-lexicon-intro-teaser p:last-child { margin-bottom: 0; }
.kadisha-lexicon-intro-rest {
    margin-top: 0.5em;
}
.kadisha-lexicon-intro-rest p:first-child { margin-top: 0; }
.kadisha-lexicon-intro-rest p:last-child  { margin-bottom: 0; }

.kadisha-lexicon-intro-toggle,
.kadisha-lexicon-intro-toggle:hover,
.kadisha-lexicon-intro-toggle:focus,
.kadisha-lexicon-intro-toggle:focus-visible,
.kadisha-lexicon-intro-toggle:active {
    background: var(--ka-burgundy, #6b2d2d);
    background-color: var(--ka-burgundy, #6b2d2d);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 1.5rem;
    margin: 0.75rem auto 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.15s, background-color 0.15s;
}
.kadisha-lexicon-intro-toggle:hover,
.kadisha-lexicon-intro-toggle:focus-visible {
    background: var(--ka-burgundy-dark, #4A1E1E);
    background-color: var(--ka-burgundy-dark, #4A1E1E);
    transform: translateY(-1px);
}

/* פאנל בקרה: חיפוש + פילטרים + מונה */
.kadisha-lexicon-controls {
    background: #fff;
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 0 auto 2rem;
    max-width: 980px;
    box-shadow: 0 2px 8px rgba(44, 40, 38, 0.05);
}

.kadisha-lexicon-search-wrap {
    position: relative;
    margin-bottom: 0.85rem;
}
.kadisha-lexicon-search {
    width: 100%;
    padding: 0.85rem 2.6rem 0.85rem 1rem;  /* room for icon on the right (RTL) */
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 8px;
    font-size: 1.05rem;
    background: #faf7f1;
    transition: border-color 0.15s, background 0.15s;
}
.kadisha-lexicon-search:focus {
    outline: none;
    border-color: var(--ka-burgundy, #6b2d2d);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107, 45, 45, 0.12);
}
.kadisha-lexicon-search-icon {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    opacity: 0.6;
    pointer-events: none;
}

/* פילטר נושאים — chips */
.kadisha-lexicon-topic-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.kadisha-lex-topic-btn,
.kadisha-lex-topic-btn:hover,
.kadisha-lex-topic-btn:focus,
.kadisha-lex-topic-btn:focus-visible,
.kadisha-lex-topic-btn:active {
    /* רידוס ברירת המחדל של Astra */
    background: #fff;
    background-color: #fff;
    color: var(--ka-burgundy-dark, #4A1E1E);
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 999px;
    padding: 0.32rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.kadisha-lex-topic-btn:hover { background: #faf3e6; }
.kadisha-lex-topic-btn.is-active,
.kadisha-lex-topic-btn.is-active:hover {
    background: var(--ka-burgundy, #6b2d2d);
    background-color: var(--ka-burgundy, #6b2d2d);
    color: #fff;
    border-color: var(--ka-burgundy, #6b2d2d);
}
.kadisha-lex-topic-count {
    display: inline-block;
    margin-inline-start: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.07);
    font-size: 0.75rem;
    font-weight: 600;
}
.kadisha-lex-topic-btn.is-active .kadisha-lex-topic-count {
    background: rgba(255,255,255,0.22);
}

.kadisha-lexicon-count {
    text-align: center;
    color: var(--ka-muted, #6f6960);
    font-size: 0.85rem;
}

/* גריד של רובריקות */
.kadisha-lexicon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.kadisha-word-card {
    background: #fff;
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-inline-start: 4px solid var(--ka-gold, #B08B4F);
    border-radius: 8px;
    padding: 1.1rem 1.2rem 1rem;
    box-shadow: 0 2px 8px rgba(44, 40, 38, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.kadisha-word-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 40, 38, 0.12);
}

.kadisha-word-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.kadisha-word-title {
    margin: 0;
    color: var(--ka-burgundy-dark, #4A1E1E);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
    font-family: 'Frank Ruhl Libre', serif;
}

/* כפתור השמע */
.kadisha-word-audio-btn,
.kadisha-word-audio-btn:hover,
.kadisha-word-audio-btn:focus,
.kadisha-word-audio-btn:focus-visible,
.kadisha-word-audio-btn:active {
    background: var(--ka-burgundy, #6b2d2d);
    background-color: var(--ka-burgundy, #6b2d2d);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    flex: 0 0 auto;
    transition: transform 0.15s, background-color 0.15s;
}
.kadisha-word-audio-btn:hover,
.kadisha-word-audio-btn:focus-visible {
    transform: scale(1.07);
    background: var(--ka-burgundy-dark, #4A1E1E);
    background-color: var(--ka-burgundy-dark, #4A1E1E);
}
.kadisha-word-audio-btn.is-playing {
    background: var(--ka-gold, #B08B4F);
    background-color: var(--ka-gold, #B08B4F);
    animation: kadisha-pulse 1.2s ease-in-out infinite;
}
.kadisha-word-audio-btn.is-playing .kadisha-word-audio-icon svg path {
    /* החלף ל-pause glyph כשמתנגן */
    d: path("M6 5h4v14H6zM14 5h4v14h-4z");
}
@keyframes kadisha-pulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(176,139,79,0.5); }
    50%      { box-shadow: 0 2px 14px rgba(176,139,79,0.9); }
}

/* תגיות נושא */
.kadisha-word-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.kadisha-word-topic {
    display: inline-block;
    background: var(--ka-parchment, #f7f2e9);
    color: var(--ka-burgundy-dark, #4A1E1E);
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
}
/* תגית בודדת — קצת מודגשת */
.kadisha-word-topics.is-single .kadisha-word-topic {
    background: var(--ka-gold-light, #d4b878);
    color: #fff;
    border-color: var(--ka-gold, #B08B4F);
}

/* גוף הפירוש */
.kadisha-word-meaning {
    color: var(--ka-ink, #2c2826);
    line-height: 1.7;
    font-size: 0.98rem;
}
.kadisha-word-meaning p:first-child { margin-top: 0; }
.kadisha-word-meaning p:last-child  { margin-bottom: 0; }

/* מצב ריק / אין תוצאות */
.kadisha-lexicon-empty {
    text-align: center;
    color: var(--ka-muted, #6f6960);
    font-size: 1rem;
    padding: 1.5rem 0;
}
.kadisha-lexicon-empty a {
    color: var(--ka-burgundy, #6b2d2d);
    text-decoration: underline;
}

/* כפתורי אדמין מתחת לגריד */
.kadisha-lexicon-admin-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--ka-sand, #d7cbb5);
}

/* פעולות בכרטיס (השמע + ערוך) */
.kadisha-word-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.kadisha-word-edit-btn,
.kadisha-word-edit-btn:hover,
.kadisha-word-edit-btn:focus,
.kadisha-word-edit-btn:focus-visible,
.kadisha-word-edit-btn:active {
    background: transparent;
    background-color: transparent;
    color: var(--ka-burgundy-dark, #4A1E1E);
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, transform 0.15s;
}
.kadisha-word-edit-btn:hover,
.kadisha-word-edit-btn:focus-visible {
    background: var(--ka-parchment, #f7f2e9);
    transform: scale(1.06);
}

/* הבזק אחרי שמירה מוצלחת */
.kadisha-word-card.is-just-saved {
    animation: kadisha-flash 1.4s ease-out 1;
}
@keyframes kadisha-flash {
    0%   { box-shadow: 0 0 0 0   rgba(176,139,79,0.55); }
    50%  { box-shadow: 0 0 0 6px rgba(176,139,79,0.55); }
    100% { box-shadow: 0 2px 8px rgba(44,40,38,0.06); }
}

/* FAB cluster - "הוסף מילה" + "ייבוא Excel" צפים בפינה */
.kadisha-lex-fab-cluster {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}
.kadisha-lex-fab,
.kadisha-lex-fab:hover,
.kadisha-lex-fab:focus,
.kadisha-lex-fab:focus-visible,
.kadisha-lex-fab:active {
    background: var(--ka-burgundy, #6b2d2d);
    background-color: var(--ka-burgundy, #6b2d2d);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.15rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.kadisha-lex-fab:hover,
.kadisha-lex-fab:focus-visible {
    background: var(--ka-burgundy-dark, #4A1E1E);
    background-color: var(--ka-burgundy-dark, #4A1E1E);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.kadisha-lex-fab-import,
.kadisha-lex-fab-import:hover,
.kadisha-lex-fab-import:focus-visible {
    background: var(--ka-gold, #B08B4F);
    background-color: var(--ka-gold, #B08B4F);
    font-size: 0.92rem;
    padding: 0.55rem 0.95rem;
}
.kadisha-lex-fab-import:hover {
    background: var(--ka-gold-light, #D4B878);
    background-color: var(--ka-gold-light, #D4B878);
}

/* רדיו של מצב ייבוא */
.kl-radio {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    margin: 0.3rem 0;
    cursor: pointer;
}
.kl-radio input[type="radio"] {
    accent-color: var(--ka-burgundy, #6b2d2d);
}

/* פס התקדמות */
.kl-import-banner {
    font-weight: 700;
    color: var(--ka-burgundy-dark, #4A1E1E);
    margin-bottom: 0.5rem;
}
.kl-import-banner--ok { color: #1b5e20; }
.kl-progress {
    background: #ede7da;
    border-radius: 999px;
    overflow: hidden;
    height: 14px;
    margin: 0.5rem 0 1rem;
}
.kl-progress-bar {
    background: linear-gradient(90deg, var(--ka-gold, #B08B4F), var(--ka-burgundy, #6b2d2d));
    height: 100%;
    width: 0%;
    transition: width 0.25s;
}
.kl-import-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
}
.kl-import-stats li {
    background: var(--ka-parchment, #f7f2e9);
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.92rem;
}
.kl-import-stats strong {
    color: var(--ka-burgundy-dark, #4A1E1E);
}

/* דוח מפורט אחרי ייבוא */
.kl-import-details { display: flex; flex-direction: column; gap: 0.45rem; }
.kl-imp-section {
    background: #fff;
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 6px;
    padding: 0;
}
.kl-imp-section > summary {
    padding: 0.55rem 0.8rem;
    cursor: pointer;
    background: #fbf7ee;
    border-radius: 6px;
    font-weight: 600;
    color: var(--ka-burgundy-dark, #4A1E1E);
    list-style: none;
}
.kl-imp-section > summary::-webkit-details-marker { display: none; }
.kl-imp-section > summary::before { content: '▸'; display: inline-block; margin-inline-end: 6px; transition: transform 0.15s; }
.kl-imp-section[open] > summary::before { transform: rotate(90deg); }
.kl-imp-section[data-key="skipped"] > summary,
.kl-imp-section[data-key="errors"]  > summary { background: #fff7e6; }
.kl-imp-section[data-key="errors"]  > summary { color: #b71c1c; }
.kl-imp-section-count {
    color: var(--ka-muted, #6f6960);
    font-weight: 500;
    margin-inline-start: 6px;
}
.kl-imp-list-wrap {
    max-height: 320px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--ka-sand, #d7cbb5);
}
.kl-imp-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.kl-imp-list thead {
    position: sticky;
    top: 0;
    background: #fbf7ee;
    z-index: 1;
}
.kl-imp-list th,
.kl-imp-list td {
    text-align: start;
    padding: 0.35rem 0.7rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.kl-imp-list th {
    font-weight: 700;
    color: var(--ka-burgundy-dark, #4A1E1E);
    background: #fbf7ee;
}
.kl-imp-row-num {
    color: var(--ka-muted, #6f6960);
    font-family: Menlo, Consolas, monospace;
    font-size: 0.82rem;
    width: 70px;
}
.kl-imp-row-word { font-weight: 600; }
.kl-imp-row-meta { color: #555; }
.kl-imp-row-trunc {
    text-align: center;
    font-style: italic;
    color: var(--ka-muted, #6f6960);
    padding: 0.5rem;
}

/* Modal */
.kadisha-lex-modal[hidden] { display: none; }
.kadisha-lex-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.kadisha-lex-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}
.kadisha-lex-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: min(560px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    direction: rtl;
}
.kadisha-lex-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ka-sand, #d7cbb5);
}
.kadisha-lex-modal-header h2 {
    margin: 0;
    color: var(--ka-burgundy-dark, #4A1E1E);
    font-size: 1.25rem;
}
.kadisha-lex-modal-close,
.kadisha-lex-modal-close:hover,
.kadisha-lex-modal-close:focus,
.kadisha-lex-modal-close:focus-visible,
.kadisha-lex-modal-close:active {
    background: transparent;
    background-color: transparent;
    color: var(--ka-muted, #6f6960);
    border: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}
.kadisha-lex-modal-close:hover { color: var(--ka-burgundy-dark, #4A1E1E); }

.kadisha-lex-form { padding: 1.1rem 1.25rem 1.25rem; }
.kl-field { margin-bottom: 1rem; }
.kl-field label {
    display: block;
    font-weight: 600;
    color: var(--ka-burgundy-dark, #4A1E1E);
    margin-bottom: 0.3rem;
}
.kl-req { color: #b32d2e; margin-inline-start: 4px; }
.kl-field input[type="text"],
.kl-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    background: #faf7f1;
    transition: border-color 0.15s, background 0.15s;
}
.kl-field input[type="text"]:focus,
.kl-field textarea:focus {
    outline: none;
    border-color: var(--ka-burgundy, #6b2d2d);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107, 45, 45, 0.12);
}
.kl-field input[type="file"] {
    width: 100%;
    margin-top: 4px;
}
.kl-hint {
    display: block;
    margin-top: 0.3rem;
    color: var(--ka-muted, #6f6960);
    font-size: 0.82rem;
}
.kl-audio-current {
    background: var(--ka-parchment, #f7f2e9);
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.kl-audio-remove-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: var(--ka-muted, #6f6960);
    cursor: pointer;
}
.kl-audio-remove-row input[type="checkbox"] {
    accent-color: var(--ka-burgundy, #6b2d2d);
}
.kl-audio-current-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--ka-burgundy-dark, #4A1E1E);
}

/* tabs: קובץ / הקלטה */
.kl-audio-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--ka-sand, #d7cbb5);
}
.kl-audio-tab,
.kl-audio-tab:hover,
.kl-audio-tab:focus,
.kl-audio-tab:focus-visible,
.kl-audio-tab:active {
    background: transparent;
    background-color: transparent;
    color: var(--ka-muted, #6f6960);
    border: 0;
    padding: 0.45rem 0.9rem;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.kl-audio-tab:hover { color: var(--ka-burgundy-dark, #4A1E1E); }
.kl-audio-tab.is-active {
    color: var(--ka-burgundy, #6b2d2d);
    border-bottom-color: var(--ka-burgundy, #6b2d2d);
}
.kl-audio-pane {
    padding: 0.4rem 0 0.6rem;
}

/* הקלטה */
.kl-rec-btn,
.kl-rec-btn:hover,
.kl-rec-btn:focus-visible,
.kl-rec-btn:active {
    background: var(--ka-burgundy, #6b2d2d);
    background-color: var(--ka-burgundy, #6b2d2d);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.kl-rec-btn:hover {
    background: var(--ka-burgundy-dark, #4A1E1E);
    background-color: var(--ka-burgundy-dark, #4A1E1E);
}
.kl-rec-active {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.3rem;
}
.kl-rec-pulse {
    width: 14px;
    height: 14px;
    background: #d33;
    border-radius: 50%;
    animation: kadisha-rec-pulse 1s ease-in-out infinite;
    flex: 0 0 auto;
}
@keyframes kadisha-rec-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(0.7); opacity: 0.5; }
}
.kl-rec-time {
    font-family: Menlo, Consolas, monospace;
    font-size: 1.05rem;
    color: var(--ka-burgundy-dark, #4A1E1E);
    font-weight: 700;
}
.kl-rec-btn-stop,
.kl-rec-btn-stop:hover,
.kl-rec-btn-stop:focus-visible,
.kl-rec-btn-stop:active {
    background: #fff;
    background-color: #fff;
    color: #b32d2e;
    border: 1px solid #b32d2e;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.kl-rec-btn-stop:hover { background: #ffebee; background-color: #ffebee; }
.kl-rec-error {
    color: #b71c1c;
    background: #ffebee;
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    margin-top: 0.4rem;
    font-size: 0.88rem;
}

/* קובץ מוכן לשמירה (preview אחרי בחירה / הקלטה) */
.kl-audio-staged {
    margin-top: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: var(--ka-parchment, #f7f2e9);
    border: 1px solid var(--ka-sand, #d7cbb5);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.kl-audio-staged-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.kl-audio-staged-name {
    color: var(--ka-burgundy-dark, #4A1E1E);
    font-size: 0.9rem;
    word-break: break-all;
}
.kl-audio-staged-reset,
.kl-audio-staged-reset:hover,
.kl-audio-staged-reset:focus-visible,
.kl-audio-staged-reset:active {
    background: transparent;
    background-color: transparent;
    color: #b32d2e;
    border: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    flex: 0 0 auto;
}
.kl-audio-staged-reset:hover {
    background: #ffebee;
    background-color: #ffebee;
}
.kl-error {
    background: #ffebee;
    color: #b71c1c;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.7rem;
    font-weight: 500;
}

.kadisha-lex-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--ka-sand, #d7cbb5);
}
.kadisha-lex-delete-btn,
.kadisha-lex-delete-btn:hover,
.kadisha-lex-delete-btn:focus-visible,
.kadisha-lex-delete-btn:active {
    background: #fff;
    background-color: #fff;
    color: #b32d2e;
    border: 1px solid #b32d2e;
    margin-inline-end: auto;  /* ימין-קצה ב-RTL */
}
.kadisha-lex-delete-btn:hover { background: #ffebee; background-color: #ffebee; }

/* מובייל */
@media (max-width: 600px) {
    .kadisha-word-title { font-size: 1.35rem; }
    .kadisha-lexicon-grid { grid-template-columns: 1fr; }
    .kadisha-lex-fab-text { display: none; }  /* רק אייקון במובייל */
    .kadisha-lex-fab { padding: 0.7rem; }
}
