/* Custom word list panel shared by the word games. Inherits each game's settings colours. */
.tt-custom-words{display:grid;gap:10px;min-width:0;font-family:Inter,"Segoe UI",Arial,sans-serif}
.tt-custom-words p{margin:0}
.tt-custom-words .tt-cw-help,.tt-custom-words .tt-cw-note{font-size:.88em;opacity:.85;line-height:1.45}
.tt-custom-words .tt-cw-format code,.tt-custom-words .tt-cw-problems code{font-family:ui-monospace,Consolas,monospace;font-size:.92em;padding:1px 6px;border-radius:6px;background:rgba(127,127,127,.18);overflow-wrap:anywhere}
.tt-custom-words .tt-cw-modes{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.tt-custom-words .tt-cw-label{font-weight:700;width:100%}
.tt-custom-words .tt-cw-mode{display:inline-flex!important;flex-direction:row!important;gap:8px;align-items:center;font-weight:500;cursor:pointer;width:auto!important;min-height:0!important;margin:0!important;padding:4px 0!important;grid-template-columns:none!important}
.tt-custom-words .tt-cw-mode input[type=radio]{appearance:auto;-webkit-appearance:radio;width:18px!important;height:18px!important;min-width:18px;min-height:0!important;margin:0!important;padding:0!important;flex:none;accent-color:currentColor;border:0;box-shadow:none;background:none}
.tt-custom-words .tt-cw-area-label{font-weight:700}
.tt-custom-words textarea{width:100%;box-sizing:border-box;min-height:150px;resize:vertical;font:13px/1.45 ui-monospace,Consolas,monospace;padding:10px;border-radius:10px;border:1px solid rgba(127,127,127,.45);background:rgba(0,0,0,.18);color:inherit}
.tt-custom-words .tt-cw-buttons{display:flex;flex-wrap:wrap;gap:8px}
.tt-custom-words .tt-cw-buttons button{cursor:pointer}
.tt-custom-words .tt-cw-status{font-weight:600;font-size:.9em}
.tt-custom-words.tt-cw-active .tt-cw-status{color:#5bd38a}
.tt-custom-words.tt-cw-has-problems .tt-cw-status{color:#f5c04a}
.tt-custom-words .tt-cw-problems{margin:0;padding-left:18px;font-size:.85em;display:grid;gap:4px;max-height:180px;overflow:auto}
.tt-custom-words .tt-cw-problems:empty{display:none}
