/* Shared by the portal and Streamlit word-edit dialog. */
.word-edit-panel { border-top: 1px solid #dce8ef; padding-top: 10px; margin-top: 9px; }
.word-edit-panel[hidden], .word-delete-warning[hidden] { display: none !important; }
.word-edit-panel label { display: block; font-weight: 600; color: #18364d; margin-bottom: 5px; }
.word-edit-panel input { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px; border: 1px solid #afc7d7; border-radius: 6px; font: inherit; font-size: 16px; }
.word-edit-help, .word-edit-status { margin: 7px 0; font-size: 12px; line-height: 1.4; color: #475c6c; }
.word-edit-status { color: #a10020; }
.word-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.word-edit-actions button { border: 1px solid #1668a5; border-radius: 6px; padding: 9px 12px; min-height: 40px; background: #fff; color: #1668a5; cursor: pointer; font: inherit; }
.word-edit-actions button:disabled { cursor: wait; opacity: .55; }
.word-edit-actions .word-save { background: #1668a5; color: #fff; }
.word-edit-actions .word-delete { border-color: #b00020; color: #b00020; }
.word-delete-warning { margin-top: 10px; padding: 10px; background: #fff1f1; border: 1px solid #c00020; border-radius: 6px; color: #8a0018; }
.word-delete-warning p { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
a[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (max-width: 430px) { .word-edit-actions button { flex: 1 1 auto; } }
