/* The launcher follows the existing worksheet resume pill. */
.todo-launcher{bottom:calc(var(--todo-launcher-bottom,69px) + env(safe-area-inset-bottom,0px));}
.todo-list-dialog{width:min(570px,calc(100vw - 24px));max-height:88dvh;padding:0;border:1px solid #edcbd7;border-radius:20px;background:#fff9fb;color:#443d44;font:400 14px/1.5 var(--ui-font-family,sans-serif);box-shadow:0 16px 60px #463a4826;overflow:auto;overscroll-behavior:contain;}
.todo-list-dialog::backdrop{background:#26302e66;}
.todo-list-dialog [hidden]{display:none!important;}
.todo-list-dialog *{box-sizing:border-box;}
.todo-list-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:2;padding:18px 20px 12px;background:#fff9fb;border-bottom:1px solid #f1dce4;}
.todo-list-dialog h2{margin:0;font-size:21px;letter-spacing:-.035em;}
.todo-list-dialog header p{margin:4px 0 0;color:#9c7887;font-size:12px;}
.todo-list-body{padding:16px 20px 22px;}
.todo-list-help{margin:0 0 12px;color:#8e7d85;font-size:12px;}
.todo-list-form label{display:block;margin-bottom:5px;font-weight:600;}
.todo-list-form textarea,.todo-item-editor textarea{display:block;width:100%;resize:vertical;min-height:65px;max-height:260px;padding:11px;border:1px solid #e4c5d1;border-radius:10px;background:#fff;color:#443d44;font:inherit;line-height:1.55;}
.todo-list-form textarea:focus,.todo-item-editor textarea:focus{outline:2px solid #e3afc4;outline-offset:1px;}
.todo-list-form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px;}
.todo-list-form-actions small{color:#9b8790;font-size:11px;}
.todo-list-items{list-style:none;margin:17px 0 0;padding:0;}
.todo-item{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:start;gap:8px;padding:13px 0;border-top:1px solid #efdce4;}
.todo-item-check{display:flex;align-items:center;justify-content:center;min-height:36px;margin:0;cursor:pointer;}
.todo-item-check input{width:20px;height:20px;margin:0;accent-color:#b16c87;cursor:pointer;}
.todo-item-text{min-width:0;padding-top:7px;white-space:pre-wrap;overflow-wrap:anywhere;}
.todo-item-completed .todo-item-text{color:#a18f98;text-decoration:line-through;}
.todo-item-actions{display:flex;gap:2px;flex-wrap:wrap;}
.todo-item-actions button{padding:7px 6px;min-height:36px;font-size:11px;}
.todo-item-editor{grid-column:2/-1;min-width:0;}
.todo-item-edit-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:7px;}
.todo-list-empty{text-align:center;padding:26px 6px;color:#a58d99;font-size:13px;line-height:1.8;}
.todo-list-status{min-height:1.5em;margin:13px 0 0;color:#977785;font-size:11px;overflow-wrap:anywhere;}
.todo-list-status[data-error="true"]{color:#a9334c;}
@media(max-width:360px){.todo-list-dialog header{padding:15px 14px 11px}.todo-list-body{padding:13px 14px 18px}.todo-item{grid-template-columns:26px minmax(0,1fr);gap:6px}.todo-item-actions{grid-column:2;justify-content:flex-end}.todo-list-form-actions small{max-width:170px}}
