.dtwb-dialog{width:min(860px,calc(100% - 28px));max-height:88vh;box-sizing:border-box;border:1px solid #c7d9cf;border-radius:22px;padding:24px;color:#244b42;background:#fbfdf9;box-shadow:0 25px 100px #143c3940}.dtwb-dialog::backdrop{background:#173c3970}.dtwb-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.dtwb-dialog h2{margin:0;font-size:25px}.dtwb-dialog button,.dtwb-open,.dtwb-save{cursor:pointer;border:1px solid #b5d1c4;border-radius:10px;padding:10px 14px;background:#fff;color:#25594c;font:inherit;min-height:42px}.dtwb-save{margin:10px 0;background:#e7f3e9}.dtwb-dialog button:focus-visible,.dtwb-open:focus-visible,.dtwb-save:focus-visible{outline:3px solid #d49a37;outline-offset:2px}.dtwb-dialog button:disabled,.dtwb-save:disabled{cursor:default;opacity:.65}.dtwb-note,.dtwb-count{color:#647b70;font-size:13px}.dtwb-tools{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 0}.dtwb-tools input{flex:1;min-width:170px}.dtwb-tools input,.dtwb-tools select{font:inherit;padding:10px;border:1px solid #bdcfc2;border-radius:10px;background:white}.dtwb-status{min-height:20px;font-size:13px}.dtwb-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dtwb-card{padding:18px;background:#fff;border:1px solid #dce5d6;border-radius:14px}.dtwb-card h3{margin:0 0 12px;font-size:23px}.dtwb-card p{line-height:1.65}.dtwb-example{font-size:14px;color:#65746a}.dtwb-actions{display:flex;gap:8px;margin-top:14px}.dtwb-actions button:first-child{background:#edf4e5}.dtwb-dialog [hidden]{display:none!important}@media(max-width:600px){.dtwb-dialog{padding:18px}.dtwb-list{grid-template-columns:1fr}.dtwb-tools input{width:100%}}

/* Bound the wordbook, then wrap complete labels rather than clipping them. */
.dtwb-dialog{overflow:auto;overscroll-behavior:contain}.dtwb-dialog header{flex-wrap:wrap}.dtwb-dialog h2,.dtwb-card,.dtwb-card h3,.dtwb-card p{min-width:0;overflow-wrap:anywhere}.dtwb-dialog header>button{margin-left:auto;flex-shrink:0}.dtwb-actions{flex-wrap:wrap}.dtwb-dialog button,.dtwb-tools input,.dtwb-tools select{box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere}.dtwb-tools input{min-width:0;flex:1 1 170px}
@media(max-width:600px){.dtwb-dialog{width:calc(100% - 16px);max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);padding:16px;border-radius:16px}.dtwb-dialog h2{font-size:22px}.dtwb-dialog button,.dtwb-open,.dtwb-save,.dtwb-tools input,.dtwb-tools select{min-height:44px}.dtwb-tools input,.dtwb-tools select{font-size:16px}.dtwb-tools>select{width:100%}.dtwb-tools>button,.dtwb-actions>button{flex:1 1 120px;min-width:0}.dtwb-tools input{flex-basis:100%}.dtwb-list{grid-template-columns:minmax(0,1fr)}}
