.tt-subtasks-dialog{box-sizing:border-box;width:min(36rem,calc(100% - 2rem));max-height:85vh;overflow:auto;padding:1.2rem;border:1px solid var(--grey-300,#c5cfdb);border-radius:.75rem;background:var(--white,#fff);color:var(--text,#233244)}
.tt-subtasks-dialog::backdrop{background:#14233166}.tt-subtasks-dialog h3{margin-top:0}.tt-subtasks-dialog form{display:grid;gap:.8rem}.tt-subtasks-dialog input[name=child_title]{box-sizing:border-box;display:block;width:100%;margin-top:.35rem}.tt-subtasks-dialog input[type=checkbox]{margin-right:.4rem}.tt-subtasks-dialog blockquote{margin:.8rem 0;border-left:3px solid var(--grey-300,#c5cfdb);padding-left:.75rem;white-space:pre-wrap;overflow-wrap:anywhere}.tt-subtasks-dialog p{overflow-wrap:anywhere}.tt-subtasks-dialog button{min-height:36px;cursor:pointer;margin:.35rem .35rem .35rem 0}.tt-subtasks-dialog :focus-visible{outline:3px solid #2876c8;outline-offset:2px}

/* A13 subtasks style follow-up r1: append after the pinned original stylesheet. */
.tt-subtasks-dialog {
  --tt-subtask-surface:#ffffff;
  --tt-subtask-input:#f7f9fc;
  --tt-subtask-ink:#17324d;
  --tt-subtask-muted:#52647a;
  --tt-subtask-line:#71839a;
  --tt-subtask-focus:#1e66b0;
  --tt-subtask-link:#185a9d;
  --tt-subtask-disabled:#e4eaf2;
  color-scheme:light;
  box-sizing:border-box;
  width:min(36rem,calc(100% - 2rem));
  max-width:calc(100% - 2rem);
  max-height:85vh;
  max-height:85dvh;
  min-width:0;
  margin:auto;
  padding:1.2rem;
  overflow-y:auto;
  overflow-x:hidden;
  border:1px solid var(--tt-subtask-line);
  border-radius:12px;
  background:var(--tt-subtask-surface);
  color:var(--tt-subtask-ink);
  font:400 16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:0 20px 60px #0f172a33;
  overflow-wrap:anywhere;
}
.tt-subtasks-dialog::backdrop { background:rgb(15 23 42 / 58%); }
.tt-subtasks-dialog :is(form,label,p,blockquote,div) { min-width:0; max-width:100%; box-sizing:border-box; }
.tt-subtasks-dialog h3 { margin:0 0 12px; color:var(--tt-subtask-ink); font-size:20px; line-height:1.3; }
.tt-subtasks-dialog form { display:grid; gap:14px; margin:16px 0; }
.tt-subtasks-dialog label { display:block; color:var(--tt-subtask-ink); }
.tt-subtasks-dialog input {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  min-height:44px;
  border:1px solid var(--tt-subtask-line);
  border-radius:8px;
  background:var(--tt-subtask-input);
  color:var(--tt-subtask-ink);
  font:inherit;
  font-size:16px;
  line-height:1.5;
}
.tt-subtasks-dialog input[name=child_title] { display:block; width:100%; margin:6px 0 0; padding:9px 11px; }
.tt-subtasks-dialog input::placeholder { color:var(--tt-subtask-muted); opacity:1; }
.tt-subtasks-dialog label:has(input[type=checkbox]) { display:flex; align-items:center; gap:12px; min-height:44px; }
.tt-subtasks-dialog input[type=checkbox] {
  flex:0 0 44px;
  width:44px;
  height:44px;
  min-height:44px;
  margin:0;
  padding:0;
  accent-color:#185a9d;
  cursor:pointer;
}
.tt-subtasks-dialog input:read-only { border-style:dashed; }
.tt-subtasks-dialog button {
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
  min-height:44px;
  margin:6px 0;
  padding:9px 14px;
  border:1px solid #185a9d;
  border-radius:8px;
  background:#185a9d;
  color:#ffffff;
  font:inherit;
  font-size:16px;
  font-weight:600;
  line-height:1.5;
  white-space:normal;
  overflow-wrap:anywhere;
  cursor:pointer;
}
.tt-subtasks-dialog button:not(:disabled):hover { background:#124679; border-color:#124679; }
.tt-subtasks-dialog button:disabled,
.tt-subtasks-dialog input:disabled {
  background:var(--tt-subtask-disabled);
  color:var(--tt-subtask-muted);
  border-color:var(--tt-subtask-line);
  opacity:1;
  cursor:default;
}
.tt-subtasks-dialog :is(button,input,a):focus-visible { outline:3px solid var(--tt-subtask-focus); outline-offset:2px; }
.tt-subtasks-dialog blockquote { margin:12px 0; padding:8px 12px; border-left:3px solid var(--tt-subtask-line); color:var(--tt-subtask-muted); }
.tt-subtasks-dialog a { color:var(--tt-subtask-link); text-decoration:underline; text-underline-offset:3px; }
.tt-subtasks-dialog [role=status] { margin:12px 0; color:var(--tt-subtask-muted); }
html.dark .tt-subtasks-dialog {
  --tt-subtask-surface:#111827;
  --tt-subtask-input:#182438;
  --tt-subtask-ink:#e4ecf8;
  --tt-subtask-muted:#b8c5d6;
  --tt-subtask-line:#9badc5;
  --tt-subtask-focus:#a9d1ff;
  --tt-subtask-link:#a9d1ff;
  --tt-subtask-disabled:#253247;
  color-scheme:dark;
}
html.dark .tt-subtasks-dialog::backdrop { background:rgb(3 7 18 / 78%); }
@media (prefers-color-scheme:dark) {
  html:not(.light):not(.dark) .tt-subtasks-dialog {
    --tt-subtask-surface:#111827;
    --tt-subtask-input:#182438;
    --tt-subtask-ink:#e4ecf8;
    --tt-subtask-muted:#b8c5d6;
    --tt-subtask-line:#9badc5;
    --tt-subtask-focus:#a9d1ff;
    --tt-subtask-link:#a9d1ff;
    --tt-subtask-disabled:#253247;
    color-scheme:dark;
  }
  html:not(.light):not(.dark) .tt-subtasks-dialog::backdrop { background:rgb(3 7 18 / 78%); }
}
@media (max-width:480px) {
  .tt-subtasks-dialog { padding:16px; }
  .tt-subtasks-dialog h3 { font-size:18px; }
}

/* The label keeps a 44px target while the checkbox uses a familiar size. */
.tt-subtasks-dialog input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-height:20px}
