/* W05 dedicated notebook page; existing dialog lifecycle and real controls retained. */
:root[data-theme] body.task-page{--cream:#f8fafc;--paper:#ffffff;--surface:#edf2f8;--ink:#0f172a;--muted:#5a6878;--line:#e2e8f0;--green-dark:#0f172a;--selected:#e0f2fe;background:#f8fafc!important;color:#0f172a}
:root[data-theme] body.task-page #app.app-shell{display:block!important;margin:0!important;background:#f8fafc!important}
:root[data-theme] body.task-page #app>.topbar{display:block!important;position:fixed!important;inset:0 0 auto!important;z-index:45!important}
:root[data-theme] body.task-page #view{display:none!important}
:root[data-theme] body.task-page #detailDialog[open]{display:block!important;position:static!important;inset:auto!important;float:none!important;transform:none!important;width:calc(100% - 64px)!important;max-width:1216px!important;height:auto!important;max-height:none!important;min-height:calc(100dvh - 177px);margin:24px auto 96px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;color:#0f172a!important;font:400 16px/24px Inter,sans-serif!important}
:root[data-theme] body.task-page #detailDialog>.task-close-bar{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;padding:16px 24px 0!important;margin:0!important;background:#ffffff!important;border:1px solid #e2e8f0!important;border-bottom:0!important;border-radius:12px 12px 0 0!important;min-height:60px!important}
:root[data-theme] body.task-page #detailDialog .notebook-group-context{margin:0!important;padding:0!important;min-height:44px!important;font:500 14px/20px Inter,sans-serif!important}
:root[data-theme] body.task-page #detailDialog .notebook-parent-link{color:#5a6878;min-height:44px;display:inline-flex;align-items:center;gap:6px}
:root[data-theme] body.task-page #detailDialog .screen-actions{display:flex;align-items:center;gap:12px;position:relative!important}
:root[data-theme] body.task-page #detailDialog .screen-icon-button,:root[data-theme] body.task-page #detailDialog .detail-menu>summary{display:flex!important;align-items:center;justify-content:center;min-width:44px!important;min-height:44px!important;padding:10px!important;border:1px solid #cbd5e1!important;border-radius:8px!important;background:#ffffff!important;color:#0f172a!important;box-shadow:none!important;cursor:pointer}
:root[data-theme] body.task-page #taskDetail{margin:0!important;padding:0!important;max-width:100%!important;min-width:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
:root[data-theme] body.task-page #taskDetail .detail-head{padding:0 24px 24px!important;margin:0 0 24px!important;background:#ffffff!important;border:1px solid #e2e8f0!important;border-top:0!important;border-radius:0 0 12px 12px!important;box-shadow:0 4px 0 #e2e8f0,0 8px 0 #cbd5e1,0 16px 32px #0f172a12!important}
:root[data-theme] body.task-page #taskDetail #detailTitle{font:700 48px/52px 'Spline Sans',Inter,sans-serif!important;letter-spacing:-.04em!important;margin:0 0 12px!important;overflow-wrap:anywhere;color:#0f172a!important}
:root[data-theme] body.task-page #taskDetail #detailTitle .hierarchy-label{font:inherit!important;display:inline!important;padding:0!important;background:transparent!important;border:0!important;text-decoration:none!important;color:inherit!important}
:root[data-theme] body.task-page #taskDetail #detailTitle .hierarchy-title{font:inherit!important;color:inherit!important}
:root[data-theme] body.task-page #taskDetail #detailTitle .hierarchy-type{display:none!important}
:root[data-theme] body.task-page #taskDetail .notebook-parent-caption{display:flex;align-items:center;gap:6px;margin:0!important;font:400 14px/20px Inter,sans-serif!important;color:#5a6878}
:root[data-theme] body.task-page #taskDetail .task-context-note{font:400 16px/24px Inter,sans-serif;color:#5a6878;margin:0 0 12px}
:root[data-theme] body.task-page #taskDetail .notebook-workspace{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(280px,1fr)!important;align-items:start;gap:24px!important;margin-top:24px}
:root[data-theme] body.task-page #taskDetail .checklist-section{position:relative!important;isolation:isolate;margin:0!important;padding:24px 24px 24px 64px!important;min-width:0!important;min-height:500px;border:1px solid #e2e8f0!important;border-radius:12px!important;background-color:#ffffff!important;background-image:linear-gradient(to bottom,#e2e8f0 1px,transparent 1px)!important;background-size:100% 35px!important;box-shadow:0 4px 0 #e2e8f0,0 8px 0 #cbd5e1,0 16px 32px #0f172a12!important}
:root[data-theme] body.task-page #taskDetail .checklist-section:before{display:block!important;content:''!important;position:absolute;left:40px;top:0;bottom:0;width:1.5px;background:#cbd5e1;pointer-events:none;z-index:-1}
:root[data-theme] body.task-page #taskDetail .checklist-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px!important;padding:0!important}
:root[data-theme] body.task-page #taskDetail .checklist-heading h2{font:700 20px/26px 'Spline Sans',Inter,sans-serif!important;color:#0f172a;margin:0!important}
:root[data-theme] body.task-page #taskDetail .notebook-item-filters{display:flex;gap:8px!important;margin:0 0 20px!important;padding:0;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}
:root[data-theme] body.task-page #taskDetail .notebook-item-filters button{min-height:44px;padding:10px 12px!important;background:transparent!important;color:#5a6878!important;border:0!important;border-radius:8px 8px 0 0!important;font:700 15px/20px Inter,sans-serif!important;box-shadow:none!important}
:root[data-theme] body.task-page #taskDetail .notebook-item-filters button[aria-pressed=true]{color:#0f172a!important;background:#ffffff!important;border-bottom:2px solid #0f172a!important}
:root[data-theme] body.task-page #taskDetail .task-checklist{display:grid;gap:16px!important;list-style:none;margin:0!important;padding:0!important}
:root[data-theme] body.task-page #taskDetail .task-checklist>.checklist-item{padding:14px!important;margin:0!important;border:1px solid #e2e8f0!important;border-radius:8px!important;background:#ffffff!important;box-shadow:none!important;min-width:0;transform:none!important}
:root[data-theme] body.task-page #taskDetail .task-checklist>.checklist-item:hover{border-color:#0284c7!important}
:root[data-theme] body.task-page #taskDetail .task-checklist>.checklist-item:has(.checklist-menu[open]){z-index:100!important;position:relative!important}
:root[data-theme] body.task-page #taskDetail .checklist-menu[open]{position:relative!important;z-index:110!important}
:root[data-theme] body.task-page #taskDetail .checklist-menu[open]>.checklist-menu-panel{position:absolute!important;top:calc(100% + 4px)!important;right:0!important;left:auto!important;z-index:1050!important;background:#ffffff!important;border:1px solid #cbd5e1!important;border-radius:12px!important;box-shadow:0 10px 25px rgba(15,23,42,0.2)!important}
:root[data-theme=dark] body.task-page #taskDetail .checklist-menu[open]>.checklist-menu-panel{background:#1e293b!important;border-color:#334155!important;color:#edf3fa!important}
:root[data-theme] body.task-page #taskDetail .checklist-row{display:flex;align-items:flex-start!important;gap:12px!important;min-width:0}
:root[data-theme] body.task-page #taskDetail .checklist-copy{min-width:0;flex:1;font:400 16px/24px Inter,sans-serif!important}
:root[data-theme] body.task-page #taskDetail .checklist-copy strong,:root[data-theme] body.task-page #taskDetail [data-checklist-edit]{font:400 16px/24px Inter,sans-serif!important;color:#0f172a!important}
:root[data-theme] body.task-page #taskDetail .checklist-tick{flex:none;min-width:44px;min-height:44px;margin:-8px 0 -8px -8px;accent-color:#0f172a}
:root[data-theme] body.task-page #taskDetail :is(.item-due-chip,.checklist-item-status,.checklist-people-chip){background:#edf2f8!important;color:#354764!important;border-color:#cbd5e1!important;border-radius:999px;box-shadow:none}
:root[data-theme] body.task-page #taskDetail .notebook-support{display:grid;gap:24px;min-width:0}
:root[data-theme] body.task-page #taskDetail .notebook-support :is(.notebook-upcoming,.notebook-conversation-links,.notebook-finish-panel){padding:20px!important;margin:0!important;border:1px solid #e2e8f0!important;background:#ffffff!important;border-radius:12px!important;box-shadow:0 4px 0 #e2e8f0,0 8px 0 #cbd5e1,0 16px 32px #0f172a12!important;color:#0f172a!important}
:root[data-theme] body.task-page #taskDetail .notebook-conversation-links{display:grid;gap:16px}
:root[data-theme] body.task-page #taskDetail :is(.task-conversation,.item-completion-history){margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
:root[data-theme] body.task-page #taskDetail :is(.task-conversation,.item-completion-history)>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;font:700 17px/24px Inter,sans-serif!important;color:#0f172a!important;cursor:pointer}
:root[data-theme] body.task-page #taskDetail .comment-form{display:grid;gap:12px;grid-template-columns:minmax(0,1fr);padding:0;margin-top:16px}
:root[data-theme] body.task-page #taskDetail .comment-form textarea{width:100%;min-width:0;box-sizing:border-box;background:#ffffff!important;border:1px solid #cbd5e1!important;border-radius:8px;padding:12px;font:400 14px/20px Inter,sans-serif;color:#0f172a}
:root[data-theme] body.task-page #taskDetail .comment{padding:12px;background:#edf2f8;border:1px solid #e2e8f0;border-radius:8px;font:400 14px/20px Inter,sans-serif;overflow-wrap:anywhere}
:root[data-theme] body.task-page #taskDetail :is(.primary-button,.done-button,.help-button,.checklist-add-shortcut){background:#0f172a!important;color:white!important;border:0;border-radius:8px;min-height:44px;box-shadow:none!important;font:700 14px/20px Inter,sans-serif!important}
:root[data-theme] body.task-page #taskDetail .checklist-add{padding:16px;margin-top:20px;border:2px dashed #cbd5e1;border-radius:12px;background:#ffffff}
:root[data-theme] body.task-page #taskDetail .checklist-add textarea{width:100%;min-width:0;box-sizing:border-box;background:#ffffff;border:1px solid #cbd5e1;border-radius:8px;padding:12px;font:400 16px/24px Inter,sans-serif}
:root[data-theme] body.task-page #detailDialog :is(button,a,summary,input,textarea):focus-visible{outline:3px solid #0284c7!important;outline-offset:3px}
:root[data-theme] body.task-page #detailDialog [hidden],:root[data-theme] body.task-page #taskDetail [hidden],:root[data-theme] body.task-page #taskDetail .checklist-label[hidden],:root[data-theme] body.task-page #taskDetail .task-checklist>.checklist-item[hidden]{display:none!important}
@media(max-width:767px){:root[data-theme] body.task-page #detailDialog[open]{width:calc(100% - 32px)!important;max-width:none!important;margin:16px auto max(16px, env(safe-area-inset-bottom, 16px))!important;padding-bottom:calc(24px + env(safe-area-inset-bottom, 16px))!important}:root[data-theme] body.task-page #detailDialog>.task-close-bar{padding:12px 16px 0!important;gap:8px!important}:root[data-theme] body.task-page #taskDetail .detail-head{padding:0 16px 20px!important}:root[data-theme] body.task-page #taskDetail #detailTitle{font-size:32px!important;line-height:38px!important}:root[data-theme] body.task-page #taskDetail .notebook-workspace{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}:root[data-theme] body.task-page #taskDetail .checklist-section{padding:16px 12px 20px 36px!important;min-height:0}:root[data-theme] body.task-page #taskDetail .checklist-section:before{left:24px}:root[data-theme] body.task-page #taskDetail .checklist-heading{flex-wrap:wrap}:root[data-theme] body.task-page #taskDetail .notebook-item-filters{gap:0!important}:root[data-theme] body.task-page #taskDetail .notebook-item-filters button{padding:8px!important;font-size:14px!important}:root[data-theme] body.task-page #taskDetail .task-checklist>.checklist-item{padding:10px!important}:root[data-theme] body.task-page #taskDetail .checklist-row{gap:8px!important}:root[data-theme] body.task-page #taskDetail .checklist-copy,:root[data-theme] body.task-page #taskDetail [data-checklist-edit]{font-size:16px!important;line-height:24px!important}}
:root[data-theme=dark] body.task-page{--paper:#1e293b;--ink:#edf3fa;--muted:#c4d3e5;--line:#425469;--green-dark:#7dd3fc;background:#0f172a!important;color:#edf3fa}
:root[data-theme=dark] body.task-page #app.app-shell{background:#0f172a!important}
:root[data-theme=dark] body.task-page #detailDialog[open]{color:#edf3fa!important}
:root[data-theme=dark] body.task-page #detailDialog>.task-close-bar,:root[data-theme=dark] body.task-page #taskDetail :is(.detail-head,.checklist-section,.checklist-item,.notebook-upcoming,.notebook-conversation-links,.notebook-finish-panel){background-color:#1e293b!important;color:#edf3fa!important;border-color:#425469!important}
:root[data-theme=dark] body.task-page #taskDetail .checklist-section{background-image:linear-gradient(to bottom,#34485e 1px,transparent 1px)!important}
:root[data-theme=dark] body.task-page #taskDetail :is(#detailTitle,.hierarchy-title,.checklist-heading h2,.notebook-item-filters button,.task-conversation>summary,.item-completion-history>summary,[data-checklist-edit],.checklist-copy strong){color:#edf3fa!important}
:root[data-theme=dark] body.task-page #taskDetail :is(.task-context-note,.notebook-parent-caption,.notebook-parent-link){color:#c4d3e5!important}
:root[data-theme=dark] body.task-page #taskDetail :is(.comment,.comment-form textarea,.checklist-add,.checklist-add textarea){background:#1e293b!important;color:#edf3fa!important;border-color:#64748b!important}
@media(prefers-reduced-motion:reduce){body.task-page #detailDialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
:root[data-theme] body.task-page #detailDialog details:not([open])>.checklist-menu-panel{display:none!important}
:root[data-theme] body.task-page #detailDialog .checklist-menu-panel{left:auto!important;right:0!important;max-width:calc(100vw - 32px)!important;background:var(--paper)!important;color:var(--ink)!important}
:root[data-theme] body.task-page #taskDetail .checklist-progress.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
:root[data-theme] body.task-page #taskDetail .checklist-label{font:400 16px/24px Inter,sans-serif!important;color:#0f172a!important;overflow-wrap:anywhere}
:root[data-theme] body.task-page #taskDetail .checklist-toggle{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border:1.5px solid #cbd5e1!important;border-radius:50%!important;background:#ffffff!important;color:#0f172a!important;box-shadow:none!important;margin:0!important;position:relative!important;font-size:16px;flex:none!important}
:root[data-theme] body.task-page #taskDetail .checklist-toggle:before{content:'';position:absolute;inset:-10px}
:root[data-theme] body.task-page #taskDetail .checklist-toggle[aria-checked=true]{background:#0f172a!important;color:#fff!important;border-color:#0f172a!important}
:root[data-theme] body.task-page #taskDetail .checklist-row-actions .checklist-menu>summary{min-width:44px!important;min-height:44px!important;padding:8px!important;font-size:18px!important}
:root[data-theme=dark] body.task-page #taskDetail .checklist-label{color:#edf3fa!important}
html:has(body.task-page){background:#f8fafc!important}
:root[data-theme] body.task-page{background-image:none!important}
:root[data-theme=dark]:has(body.task-page){background:#0f172a!important}
/* The page's real main landmark owns the notebook; no board view remains below it. */
:root[data-theme] body.task-page #app.app-shell{height:auto!important;min-height:100dvh!important;padding-top:57px!important}
:root[data-theme] body.task-page #app #main{display:flow-root!important;position:static!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:0!important;background:transparent!important}
:root[data-theme] body.task-page #app #main:focus{display:flow-root!important}

/* Source binder uses three equal tracks, with the checklist spanning two. */
:root[data-theme] body.task-page #taskDetail .notebook-workspace{grid-template-columns:repeat(3,minmax(0,1fr))!important}
:root[data-theme] body.task-page #taskDetail .checklist-section{grid-column:span 2}
:root[data-theme] body.task-page #taskDetail .checklist-toggle:before{inset:-10px!important;transform:none!important;width:auto!important;height:auto!important;border:0!important;background:transparent!important;top:-10px!important;left:-10px!important}
:root[data-theme] body.task-page #taskDetail .checklist-row-actions{display:flex!important;align-items:flex-start!important;flex:none!important;margin-left:auto}
:root[data-theme] body.task-page #taskDetail .checklist-row-actions .checklist-menu>summary{display:flex!important;align-items:center;justify-content:center;white-space:nowrap!important;letter-spacing:0!important}
:root[data-theme] body.task-page #taskDetail .notebook-conversation-links{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:24px!important}
:root[data-theme] body.task-page #taskDetail :is(.task-conversation,.item-completion-history){padding:16px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#ffffff!important;box-shadow:0 4px 0 #e2e8f0,0 8px 0 #cbd5e1,0 16px 32px #0f172a12!important}
:root[data-theme=dark] body.task-page #taskDetail :is(.task-conversation,.item-completion-history){background:#1e293b!important;border-color:#425469!important}
@media(max-width:1023px){:root[data-theme] body.task-page #taskDetail .notebook-workspace{grid-template-columns:minmax(0,1fr)!important}:root[data-theme] body.task-page #taskDetail .checklist-section{grid-column:auto}}
:root[data-theme] body.task-page #detailDialog #taskDetail .notebook-conversation-links{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
:root[data-theme] body.task-page #detailDialog #taskDetail .task-status{margin:12px 0 0!important;padding:0!important;min-height:0!important}
:root[data-theme] body.task-page #detailDialog #taskDetail .notebook-parent-caption .hierarchy-label{padding:0!important;border:0!important;background:transparent!important;min-height:24px!important}
/* Dark rules outrank the shared paper defaults loaded after this sheet. */
:root[data-theme=dark] body.task-page #detailDialog #taskDetail .task-checklist>.checklist-item{background:#1e293b!important;color:#edf3fa!important;border-color:#425469!important}
:root[data-theme=dark] body.task-page #detailDialog #taskDetail .notebook-item-filters button{background:transparent!important;color:#c4d3e5!important;border-color:transparent!important}
:root[data-theme=dark] body.task-page #detailDialog #taskDetail .notebook-item-filters button[aria-pressed=true]{background:#1e293b!important;color:#edf3fa!important;border-bottom-color:#7dd3fc!important}
:root[data-theme=dark] body.task-page #detailDialog .notebook-parent-link{color:#c4d3e5!important}
:root[data-theme=dark] body.task-page #detailDialog #taskDetail .task-status{background:#1e293b!important;color:#c4d3e5!important}
:root[data-theme=dark] body.task-page #detailDialog #taskDetail .checklist-toggle{background:#1e293b!important;border-color:#94a8bf!important;color:#edf3fa!important}
:root[data-theme=dark] body.task-page #detailDialog #taskDetail .checklist-toggle[aria-checked=true]{background:#7dd3fc!important;color:#0f172a!important}

/* Mobile Keyboard Management & Scroll Clearance */
@media (max-width: 767px) {
  body.keyboard-open #app .bottom-nav,
  body.keyboard-focused:has(#detailDialog[open]) #app .bottom-nav,
  body:has(#detailDialog[open] input:focus, #detailDialog[open] textarea:focus) #app .bottom-nav {
    display: none !important;
  }

  :root[data-theme] body.task-page #detailDialog,
  :root[data-theme] body.task-page #detailDialog[open] {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 16px)) !important;
  }
  body.keyboard-focused:has(#detailDialog[open]) #detailDialog,
  body:has(#detailDialog[open] input:focus, #detailDialog[open] textarea:focus) #detailDialog {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 24px)) !important;
  }
  :root[data-theme] body.task-page #taskDetail {
    padding-bottom: 0 !important;
  }
}

/* Complete Nordic Slate + Ice Blue dark mode for Notebook view, Comments & Completion history */
:root[data-theme="dark"] body.task-page #taskDetail :is(.detail-head, .checklist-section, .notebook-upcoming, .notebook-finish-panel, .task-conversation, .item-completion-history) {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.45) !important;
  color: #f1f5f9 !important;
}
:root[data-theme="dark"] body.task-page #detailDialog > .task-close-bar {
  background: #1e293b !important;
  border-color: #334155 !important;
}
:root[data-theme="dark"] body.task-page #detailDialog :is(.screen-icon-button, .detail-menu > summary) {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}
:root[data-theme="dark"] body.task-page #taskDetail :is(.item-due-chip, .checklist-item-status, .checklist-people-chip) {
  background: #1e3a5f !important;
  border-color: #334155 !important;
  color: #7dd3fc !important;
}
:root[data-theme="dark"] body.task-page #taskDetail .notebook-item-filters {
  border-bottom-color: #334155 !important;
}
:root[data-theme="dark"] body.task-page #taskDetail .checklist-section:before {
  background: #334155 !important;
}
:root[data-theme="dark"] body.task-page #taskDetail :is(.task-conversation, .item-completion-history) :is(p, span, time, small, li, strong) {
  color: #cbd5e1 !important;
}
:root[data-theme="dark"] body.task-page #taskDetail :is(.task-conversation, .item-completion-history) :is(strong, summary, h3, h4) {
  color: #f1f5f9 !important;
}
:root[data-theme="dark"] body.task-page #taskDetail .comment,
:root[data-theme="dark"] body.task-page #taskDetail .item-completion-history li,
:root[data-theme="dark"] body.task-page #taskDetail .history-list li {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
:root[data-theme="dark"] body.task-page #taskDetail :is(.primary-button, .done-button, .help-button, .checklist-add-shortcut) {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* Compact Notebook view header & Things to do tile on foldable, mobile & desktop */
:root[data-theme] body.task-page #detailDialog > .task-close-bar {
  min-height: 40px !important;
  padding: 6px 16px 0 !important;
}
:root[data-theme] body.task-page #taskDetail .detail-head {
  padding: 0 16px 12px !important;
  margin-bottom: 12px !important;
}
:root[data-theme] body.task-page #taskDetail #detailTitle {
  font-size: clamp(20px, 2.8vw, 30px) !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
}
:root[data-theme] body.task-page #taskDetail .notebook-workspace {
  margin-top: 12px !important;
}
:root[data-theme] body.task-page #taskDetail .checklist-section {
  min-height: 0 !important;
}
@media (min-width: 768px) and (max-width: 900px) {
  :root[data-theme] body.task-page #detailDialog[open] {
    margin-top: 64px !important;
  }
  :root[data-theme] body.task-page #detailDialog > .task-close-bar .notebook-group-context {
    display: none !important;
  }
  :root[data-theme] body.task-page #detailDialog > .task-close-bar .screen-actions {
    margin-left: auto !important;
  }
  :root[data-theme] body.task-page #taskDetail .detail-head {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }
}
@media (max-width: 900px) {
  :root[data-theme] body.task-page #detailDialog > .task-close-bar {
    min-height: 36px !important;
    padding: 4px 14px 0 !important;
  }
  :root[data-theme] body.task-page #taskDetail {
    padding-top: 4px !important;
  }
  :root[data-theme] body.task-page #taskDetail .detail-head {
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    gap: 8px 12px !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-header-copy {
    gap: 4px !important;
  }
  :root[data-theme] body.task-page #taskDetail #detailTitle {
    font-size: 20px !important;
    line-height: 24px !important;
    margin-bottom: 2px !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-add-note-action {
    min-height: 32px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-header-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 100% !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-header-stats > div,
  :root[data-theme] body.task-page #taskDetail .notebook-header-stats > .notebook-upcoming-stat {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-header-stats > div > span,
  :root[data-theme] body.task-page #taskDetail .notebook-header-stats > .notebook-upcoming-stat > span {
    font-size: 10px !important;
    line-height: 14px !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-header-stats strong {
    font-size: 13px !important;
    line-height: 16px !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-header-stats small {
    font-size: 11px !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-progress-summary {
    padding: 6px 10px !important;
    margin-bottom: 0 !important;
    border-radius: 10px !important;
  }
  :root[data-theme] body.task-page #taskDetail .notebook-workspace {
    margin-top: 8px !important;
    gap: 12px !important;
  }
  :root[data-theme] body.task-page #taskDetail .checklist-section {
    padding: 12px 14px 14px 38px !important;
  }
  :root[data-theme] body.task-page #taskDetail .checklist-section::before {
    left: 26px !important;
  }
}
:root[data-theme="dark"] body.task-page #detailDialog > .task-close-bar .detail-menu > .notebook-options-panel,
:root[data-theme="dark"] body.task-page #detailDialog .notebook-options-panel {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.7) !important;
}
:root[data-theme="dark"] body.task-page #detailDialog > .task-close-bar .notebook-options-panel button,
:root[data-theme="dark"] body.task-page #detailDialog .notebook-options-panel button {
  background: transparent !important;
  color: #f1f5f9 !important;
}
:root[data-theme="dark"] body.task-page #detailDialog > .task-close-bar .notebook-options-panel button:hover,
:root[data-theme="dark"] body.task-page #detailDialog .notebook-options-panel button:hover {
  background: #334155 !important;
}
:root[data-theme="dark"] body.task-page #taskDetail .notebook-header-stats > div:nth-child(2) {
  background: rgba(15, 23, 42, 0.55) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}
:root[data-theme="dark"] body.task-page #taskDetail .notebook-header-stats > div:nth-child(2) > span {
  color: #cbd5e1 !important;
}
:root[data-theme] body.task-page #taskDetail button.checklist-open-detail {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  font: 500 16px/24px Inter, sans-serif !important;
  color: #0f172a !important;
  cursor: pointer;
}
:root[data-theme] body.task-page #taskDetail button.checklist-open-detail:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:root[data-theme="dark"] body.task-page #taskDetail button.checklist-open-detail {
  color: #edf3fa !important;
}
:root[data-theme] body.task-page #taskDetail .checklist-note-indicator {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  border: 1px solid #cbd5e1 !important;
  background: #edf2f8 !important;
  color: #1e293b !important;
  font: 600 12px/16px Inter, sans-serif !important;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: pointer;
}
:root[data-theme] body.task-page #taskDetail .checklist-note-indicator:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0f172a !important;
}
:root[data-theme="dark"] body.task-page #taskDetail .checklist-note-indicator {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
:root[data-theme="dark"] body.task-page #taskDetail .checklist-note-indicator:hover {
  background: #1e3a5f !important;
  border-color: #38bdf8 !important;
  color: #f8fafc !important;
}
