/* Extend Reflection's original design tokens; retain its header, fonts and navigation. */
body.dod-focus-active .header{display:flex;align-items:center;gap:6px}
body.dod-focus-active .header-brand{display:none}
body.dod-focus-active .page-switch-card{flex:1;min-width:0;overflow-x:auto;margin-top:0}
.dod-focus-mobile,.dod-focus-mobile *,#dodPlanEditor,#dodPlanEditor *{box-sizing:border-box;min-width:0;max-width:100%}
.dod-focus-mobile [hidden],#dodPlanEditor [hidden]{display:none!important}
.dod-focus-mobile{padding:10px 12px 12px;font-family:var(--font-ui);color:var(--fg-primary);font-size:14px;line-height:1.5}
.dod-focus-mobile button,.dod-focus-mobile input,.dod-focus-mobile select,.dod-focus-mobile textarea,#dodPlanEditor button,#dodPlanEditor input,#dodPlanEditor select,#dodPlanEditor textarea{font-family:var(--font-ui);font-size:14px;line-height:1.5;border-radius:var(--radius-input)}
.dod-focus-mobile button,#dodPlanEditor button{cursor:pointer;color:var(--fg-primary);background:var(--bg-surface);border:1px solid var(--rule-line-strong);padding:5px 9px;min-height:32px}
.dod-focus-mobile button:hover,#dodPlanEditor button:hover{border-color:var(--ink-cobalt);box-shadow:var(--shadow-1)}
.dod-focus-mobile :is(button,input,select,textarea):focus-visible,#dodPlanEditor :is(button,input,select,textarea):focus-visible{outline:2px solid var(--ink-cobalt);outline-offset:2px}
.dod-focus-mobile button:disabled{opacity:.5;cursor:default}
.dod-focus-mobile select,.dod-focus-mobile textarea,#dodPlanEditor input,#dodPlanEditor select,#dodPlanEditor textarea{padding:7px 10px;border:1px solid var(--rule-line);background:var(--bg-surface);color:var(--fg-primary)}
.dod-focus-mobile select,#dodPlanEditor select{white-space:nowrap;text-overflow:ellipsis}
.mobile-dod-navigation{display:grid;gap:6px;margin-bottom:8px}
.mobile-field{display:flex;align-items:center;gap:6px;margin:6px 0}
.mobile-field>span{font-size:12px;color:var(--fg-secondary)}
.mobile-field>select,.mobile-field>input,.mobile-field>textarea{flex:1;width:0}
.mobile-dod-navigation .mobile-field{display:grid;grid-template-columns:4em minmax(0,1fr);gap:8px;margin:0}
.mobile-dod-navigation .mobile-field>select{width:100%;height:36px}
.mobile-dod-form{margin:0 0 8px}
.mobile-dod-form>textarea{display:block;resize:vertical;width:100%;min-height:62px;box-shadow:var(--shadow-1)}
.mobile-dod-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:4px;margin-top:6px}
.mobile-dod-actions button{width:100%;font-size:12px;padding:4px 2px;min-height:32px;white-space:nowrap}
.mobile-dod-actions>button:first-child{border-color:var(--ink-cobalt)}
.mobile-dod-actions .mobile-plan-heading{display:contents}
.mobile-plan-heading>strong{font-size:12px;margin-left:auto}
.mobile-plan-heading>span{font-size:12px;color:var(--fg-secondary)}
.mobile-dod-form>[role=status]:empty{display:none}
.mobile-dod-form>[role=status]{font-size:12px;color:var(--fg-secondary)}
#mobilePlanList{border:1px solid var(--rule-line);border-radius:var(--radius-card);background:var(--bg-surface);box-shadow:var(--shadow-1);overflow:hidden}
.mobile-plan-row{display:flow-root;padding:8px 10px;border-bottom:1px solid var(--rule-line)}
.mobile-plan-row:last-child{border-bottom:0}
.mobile-plan-row>details{width:auto}
.mobile-plan-row summary{cursor:pointer;text-wrap:wrap;overflow-wrap:anywhere}
.dod-focus-mobile .mobile-plan-edit{flex:none;border:0;background:transparent;padding:0 2px;min-height:24px;font-size:12px;color:var(--fg-secondary)}
.mobile-plan-meta{font-size:12px;color:var(--fg-muted);white-space:nowrap}
.mobile-chip{display:inline-block;margin-left:4px;padding:0 5px;border:1px solid var(--rule-line-strong);border-radius:var(--radius-pill);font-size:12px;color:var(--fg-secondary)}
.mobile-linked-acts{border-left:2px solid var(--rule-line);margin:6px 0 0 5px;padding-left:8px;white-space:pre-wrap;font-size:12px;color:var(--fg-secondary)}
.mobile-linked-acts p{margin:4px 0;text-wrap:pretty;overflow-wrap:anywhere}
.mobile-unassigned{padding:8px 10px}
#mobilePlanList>p{margin:0;padding:6px 10px;font-size:12px;color:var(--fg-muted);text-wrap:pretty}
.dod-focus-mobile .project-deadline{margin:8px 0 0;padding:0;border:0;font-size:12px;color:var(--fg-secondary)}
.dod-focus-mobile .project-deadline-row{display:none}
.dod-focus-mobile .project-deadline p,.dod-focus-mobile .project-deadline-actions{display:inline;margin:0;font-size:12px;text-wrap:pretty}
.dod-focus-mobile .project-deadline-actions{margin-left:4px}
.dod-focus-mobile #dodDeadlineSection button{font-size:12px;min-height:28px;padding:3px 7px}
/* Keep aligned selectors; the archive toggle shares the existing actions row. */
.dod-focus-mobile #dataForm{gap:6px}
.dod-focus-mobile #dataForm .select-inline{display:grid;grid-template-columns:4em minmax(0,1fr);gap:8px;align-items:center;margin:0}
.dod-focus-mobile #dataForm .select-inline-label{display:contents}
.dod-focus-mobile #dataForm .select-inline label{width:auto;min-width:0;font-size:12px}
.dod-focus-mobile #dataForm .select-inline>select{grid-column:2;width:100%;height:36px}
.dod-focus-mobile .assist-links-row{gap:8px;justify-content:flex-start;align-items:center}
.dod-focus-mobile .assist-links-row>*{font-size:12px;margin:0}
.dod-focus-mobile #dataForm .assist-links-row .archive-toggle{display:inline-flex;align-items:center;gap:3px;min-height:28px;padding:0;white-space:nowrap}
.dod-focus-mobile .assist-links-row button{min-height:28px;padding:3px 5px}
.dod-focus-mobile .time-range{display:flex;flex-direction:column;gap:6px}
.dod-focus-mobile .time-field-row{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;width:100%}
.dod-focus-mobile .time-field-row>label:not(.start-now-toggle){flex:0 0 4em;font-size:12px}
.dod-focus-mobile .time-field-row>input{flex:1;width:0;min-width:0;padding:6px 4px;font-size:12px}
.dod-focus-mobile .time-field-row>.start-now-toggle,.dod-focus-mobile .time-field-row>.time-quick-btn{flex:none;min-width:0;min-height:32px;padding:5px;font-size:12px}
.mobile-recent{margin:10px 0;padding:0;border:1px solid var(--rule-line);border-radius:var(--radius-card);box-shadow:var(--shadow-1);background:var(--bg-surface);overflow:hidden}
.mobile-recent-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid var(--rule-line)}
.mobile-recent-head>strong{flex:1;font-size:14px;white-space:nowrap}
.dod-focus-mobile .mobile-recent-head button{flex:none;font-size:12px;padding:3px 8px;min-height:28px;white-space:nowrap;border-color:var(--ink-cobalt);background:var(--bg-surface);color:var(--fg-primary)}
.mobile-recent-row{display:flex;align-items:center;gap:6px;padding:7px 10px;border-bottom:1px solid var(--rule-line)}
.dod-focus-mobile .mobile-recent-select{flex:1;text-align:left;border:0;padding:0;min-height:0;border-radius:0;background:transparent;box-shadow:none;text-wrap:pretty}
.dod-focus-mobile .mobile-recent-select.is-selected{border-left:2px solid var(--ink-cobalt);padding-left:6px}
.mobile-group-label{font-size:12px;font-weight:600;color:var(--fg-secondary)}
.mobile-recent-meta,.mobile-recent-plans{font-size:12px;color:var(--fg-muted)}
.mobile-recent-plans{margin:2px 0 0;text-wrap:pretty}
.mobile-recent-select>.mobile-recent-meta{display:inline;margin-left:5px}
.mobile-recent-open{flex:none;font-size:12px;color:var(--fg-secondary);text-decoration:none;white-space:nowrap}
#recommendCards>p,#recommendMessage:not(:empty){margin:0;padding:6px 10px;font-size:12px;color:var(--fg-muted)}
.dod-focus-mobile .ai-comments-section{margin-top:10px;padding:0}
.mobile-feedback-plan{margin:8px 0;border:1px solid var(--rule-line);border-radius:var(--radius-card);background:var(--bg-surface);box-shadow:var(--shadow-1);overflow:hidden}
.mobile-feedback-plan>h3{margin:0;padding:8px 10px;font-size:14px;font-weight:600;background:var(--bg-canvas);text-wrap:balance;overflow-wrap:anywhere}
.mobile-feedback-record{margin:0;padding:7px 10px;border-top:1px solid var(--rule-line)}
.mobile-feedback-record>summary{cursor:pointer;font-size:12px;color:var(--fg-secondary);text-wrap:balance;overflow-wrap:anywhere}
.mobile-feedback-record>.ai-comment-card{margin-top:8px}
@media(max-width:430px){
  .dod-focus-mobile .ai-comment-card .ai-comment-card-body,.dod-focus-mobile .ai-comment-card-act{font-size:14px}
  .dod-focus-mobile .ai-comment-card-badge,.dod-focus-mobile .ai-comment-card-meta,.dod-focus-mobile .ai-comment-card-dod,.dod-focus-mobile .ai-comment-card-sub,.dod-focus-mobile .ai-comment-time-pill,.dod-focus-mobile .ai-comment-knowledge,.dod-focus-mobile .ai-comment-correct-status,.dod-focus-mobile .ai-comments-empty{font-size:12px}
  .dod-focus-mobile .ai-comment-card-meta{display:flex;float:left;margin:0 4px 0 0}
  /* With time capsules the badge already shares its line; the DOD name takes the next line whole. */
  .dod-focus-mobile .ai-comment-card-meta:has(.ai-comment-time-range){float:none;align-items:center;margin:0 0 4px}
  .dod-focus-mobile .ai-comment-card-meta+.ai-comment-card-dod{display:flex;overflow-wrap:anywhere}
  .dod-focus-mobile .ai-comment-card-dod+*{clear:both}
}
/* Existing Plan editor keeps its layout and restores the original rounded sheet. */
#dodPlanEditor{padding:12px;overflow:auto}
#dodPlanEditor .modal-content{width:100%;max-width:470px;padding:12px;margin:auto;max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--rule-line);border-radius:var(--radius-card);background:var(--bg-surface);box-shadow:var(--shadow-2)}
#dodPlanForm{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 8px;align-items:center}
#dodPlanForm>label{grid-column:1;font-size:12px;margin:0}
#dodPlanForm>textarea{grid-column:2;min-height:56px;width:100%;resize:vertical}
#dodPlanMetadata,#dodPlanEditor #dodPlanMetadata>.mobile-field{display:contents}
#dodPlanEditor #dodPlanMetadata>.mobile-field>span{grid-column:1;font-size:12px;white-space:nowrap}
#dodPlanEditor #dodPlanMetadata>.mobile-field>:not(span){grid-column:2;width:100%}
#dodPlanEditor #dodPlanMetadata>.mobile-field[hidden]>*{display:none}
#dodPlanMoveNote,#dodPlanMessage,#dodPlanPresets{grid-column:1/-1;font-size:12px}
#dodPlanPresets{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
#dodPlanPresets button[aria-pressed=true]{border-color:var(--ink-cobalt)}
#dodPlanForm .mobile-editor-head{grid-column:1/-1;display:flex;align-items:center;gap:6px}
#dodPlanForm .mobile-editor-head h3{flex:1;margin:0;font-size:14px}
#dodPlanForm .mobile-editor-head button{font-size:12px}
@media(max-width:359px){.dod-focus-mobile{padding-inline:8px}.mobile-plan-row{padding:7px 8px}.mobile-dod-actions{gap:4px}.mobile-dod-actions button{padding:5px 6px}.mobile-dod-navigation .mobile-field,.dod-focus-mobile #dataForm .select-inline{grid-template-columns:3.6em minmax(0,1fr);gap:6px}}
/* The compact DOD view retains its existing deadline summary, not the legacy editor. */
.dod-focus-mobile .project-deadline-row{display:none!important}

/* Form actions remain visible and recommendation actions share their status row. */
.dod-focus-mobile .secondary-actions{width:100%;position:static}
.dod-focus-mobile .secondary-actions>.secondary-actions-content{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px;margin:0}
.dod-focus-mobile .secondary-actions summary{text-align:left}
.dod-focus-mobile .form-actions-primary{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.dod-focus-mobile #dodPlanningGate{font-size:12px;color:var(--fg-secondary)}
.dod-focus-mobile #dodPlanningGateMessage:empty{display:none}
.dod-focus-mobile .mobile-recent-row{display:block}
.dod-focus-mobile .mobile-recent-select{display:block;width:100%}
.mobile-recent-footer{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:3px}
.mobile-recent-footer>.mobile-recent-meta{flex:1}
.dod-focus-mobile .mobile-recent-downvote{font-size:12px;min-height:24px;padding:1px 5px}
.dod-focus-mobile .ai-comments-range{display:flex;flex-wrap:wrap;gap:4px}
.dod-focus-mobile .ai-comments-range input[type=date]{flex:1;width:0;min-width:90px;font-size:12px;padding:4px}
.dod-focus-mobile .ai-comments-range .archive-toggle{font-size:12px;white-space:nowrap}

.dod-focus-mobile .assist-links-row>.sync-log-panel{font-size:12px}
.dod-focus-mobile .assist-links-row>.sync-log-panel summary{white-space:nowrap}
.dod-focus-mobile .mobile-recent-select,#recommendCards>p{text-wrap:balance}

.dod-focus-mobile .form-actions-primary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.dod-focus-mobile .form-actions-primary>button{width:100%;padding-inline:6px;white-space:nowrap}
.dod-focus-mobile #dodPlanningGate:not([hidden]){grid-column:1/-1}
.dod-focus-mobile #formSecondaryActions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:6px}
.dod-focus-mobile #formSecondaryActions>*{font-size:12px}
.mobile-plan-controls{display:flex;float:right;align-items:center;gap:4px;margin-left:6px}
.mobile-plan-row .mobile-linked-acts{clear:both}
.dod-focus-mobile .mobile-plan-status{font-size:12px;padding:2px;min-height:26px;width:68px}

/* Keep the final pair together so a short Chinese action never wraps onto its own row. */
.dod-focus-mobile #formSecondaryActions .secondary-actions{display:flex;flex:none;width:auto}
.dod-focus-mobile #formSecondaryActions .secondary-actions-content{display:flex;flex-wrap:nowrap;gap:4px}
.dod-focus-mobile #formSecondaryActions>*,.dod-focus-mobile #formSecondaryActions .secondary-actions-content>*{flex:none;min-height:28px;white-space:nowrap}
.dod-focus-mobile #dataForm #formSecondaryActions .archive-toggle,.dod-focus-mobile #formSecondaryActions .historical-review-toggle{display:flex;justify-content:center;align-items:center;gap:2px;white-space:nowrap;padding:2px;font-size:12px;line-height:1.2}
.dod-focus-mobile #formSecondaryActions button{padding:3px 2px;font-size:12px;line-height:1.2;white-space:nowrap}
.dod-focus-mobile #formSecondaryActions .sync-log-panel{display:flex;align-items:center;justify-content:center}
.dod-focus-mobile #formSecondaryActions .sync-log-panel summary{min-height:28px;padding:6px 2px;white-space:nowrap;font-size:12px;line-height:1.2}
.dod-focus-mobile #formSecondaryActions .sync-log-panel[open]{flex-basis:100%;display:block;width:100%}

.mobile-dod-navigation .mobile-field{grid-template-columns:52px minmax(0,1fr)}
.mobile-dod-archived{display:flex;align-items:center;gap:3px;font-size:12px;margin:0}
.mobile-dod-archived input{width:13px;height:13px;margin:0;flex:none}
.dod-focus-mobile .mobile-dod-actions #dodDeadlinePostpone{font-size:12px;min-height:32px;padding:4px 2px}

.dod-focus-mobile .mobile-recent-upvote,.dod-focus-mobile .mobile-recent-downvote{font-size:14px;min-height:28px;min-width:28px;padding:1px 6px}

.mobile-plan-meta{white-space:normal}

.mobile-dod-actions .mobile-plan-heading{display:contents}
.mobile-plan-heading-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.mobile-dod-label{display:flex;flex-direction:column;justify-content:center;gap:1px;font-size:12px}
.mobile-dod-label .mobile-dod-archived{font-size:12px;line-height:1.2;gap:2px;white-space:nowrap}
.mobile-dod-label .mobile-dod-archived input{appearance:auto;width:12px;height:12px;min-height:0;padding:0}
.mobile-dod-label .mobile-dod-archived span{flex:none}

/* Keep refresh feedback outside the document flow. */
.dod-plan-notice{position:fixed;left:12px;right:12px;bottom:12px;z-index:1100;display:flex;align-items:center;gap:8px;padding:8px 10px;max-width:460px;margin:auto;background:#fff;color:#222;border:1px solid var(--ink-cobalt);border-radius:8px;font-size:12px;line-height:1.3}
.dod-plan-notice>span{flex:1;overflow-wrap:anywhere}
.dod-plan-notice>button{flex:none;font-size:12px;color:#222;background:#fff;border:1px solid var(--ink-cobalt);border-radius:6px;padding:3px 8px}
.is-plan-moved{outline:2px solid var(--ink-cobalt);outline-offset:-2px}
#mobilePlanList,#recommendCards,#recentProjectTree{overflow-anchor:none}
.mobile-linked-act{display:grid;grid-template-columns:28px minmax(0,1fr) 78px;gap:4px;align-items:start;margin:4px 0;color:var(--fg-secondary);font-size:12px;line-height:1.3}
.mobile-linked-act>span{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.dod-focus-mobile .mobile-act-drag,.dod-focus-mobile .mobile-act-plan{font-size:12px;min-height:28px;margin:0;padding:2px;color:#222;background:#fff;border:1px solid var(--ink-cobalt);border-radius:6px;max-width:100%;min-width:0}
.mobile-act-drag{touch-action:none;cursor:grab;user-select:none}
.mobile-act-plan{width:78px;white-space:nowrap}
.is-act-drop-target{outline:2px solid var(--ink-cobalt);outline-offset:-2px}
.mobile-act-drag-preview{position:fixed;z-index:1200;max-width:min(260px,calc(100vw - 8px));max-height:38px;overflow:hidden;pointer-events:none;padding:4px 6px;background:#fff;color:#222;border:1px solid var(--ink-cobalt);border-radius:6px;font-size:12px;line-height:1.3}

/* DOD feedback uses the same two mobile text sizes as the surrounding history. */
.mobile-dod-review p{margin:4px 10px;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.mobile-dod-review blockquote{margin:4px 0 4px 8px;padding-left:8px;border-left:1px solid var(--accent,#2563eb);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.mobile-dod-review small{display:block;margin:4px 10px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.mobile-dod-review [data-feedback-review-status]{font-size:12px;overflow-wrap:anywhere}

/* Compact recommendation scan and Act-first feedback. */
.dod-focus-mobile .mobile-recent-row{padding:4px 8px}
.dod-focus-mobile .mobile-recent-select{display:flex;align-items:center;gap:4px;white-space:nowrap;text-wrap:nowrap}
.mobile-recent-select>.mobile-chip{flex:none}
.mobile-recent-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-wrap:nowrap}
.mobile-recent-plans{margin:1px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-wrap:nowrap;line-height:1.3}
.mobile-recent-footer{flex-wrap:nowrap;gap:4px;margin-top:1px}
.mobile-recent-footer>.mobile-recent-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-recent-footer>:not(.mobile-recent-meta){flex:none}
.mobile-act-feedback-list{border:1px solid var(--rule-line);border-radius:var(--radius-card);overflow:hidden}
.mobile-act-feedback-list>.mobile-feedback-record:first-child{border-top:0}
.mobile-act-feedback-list>.mobile-feedback-record>summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-wrap:nowrap}
.mobile-dod-review>summary{cursor:pointer;margin:0;padding:6px 8px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-wrap:nowrap}
.mobile-act-feedback-list .ai-comment-card-body p{margin:4px 0}

.mobile-dod-closure{margin:6px 0;padding:6px 8px;border:1px solid var(--rule-line);border-radius:var(--radius-card);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.mobile-dod-closure button{display:inline;padding:1px 6px;min-height:24px;font-size:12px}

/* The today toggle shares the heading; date controls stay compact below it. */
.ai-comments-header{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.ai-comments-header>h2{margin:0;flex:1 0 auto;font-size:14px;white-space:nowrap}
.ai-today-all-toggle{display:none;align-items:center;gap:3px;margin:0;font-size:12px;white-space:nowrap;color:var(--fg-secondary)}
.ai-today-all-toggle input{appearance:auto;width:13px;height:13px;min-height:0;padding:0;margin:0}
.ai-comments-header>.ai-comments-range{flex-basis:100%;margin:0}
body .dod-focus-mobile .mobile-dod-actions button{padding:4px 2px;min-height:32px;height:32px}

.dod-focus-mobile .ai-today-all-toggle{display:inline-flex}

/* Unit D: compact note editing and feedback, using only standard/smaller text. */
.mobile-dod-note{margin:4px 0 8px;color:#222;background:#fff;font-size:14px;line-height:1.3}
.mobile-dod-note-head{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:12px;margin-bottom:4px}
.mobile-dod-note-head label{margin:0;font-size:12px}
.mobile-dod-note-head button,.ai-comment-lens button{font-size:12px;line-height:1.3;min-height:28px;padding:2px 6px;color:#222;background:#fff;border:1px solid var(--ink-cobalt);border-radius:6px}
.mobile-dod-note textarea{display:block;width:100%;font-size:14px;line-height:1.3;color:#222;background:#fff;border:1px solid var(--ink-cobalt);padding:4px 6px}
.ai-comment-lens{margin-top:4px;white-space:normal;color:#222;background:#fff;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.ai-comment-lens [data-note-status],.rest-adjustment-line{font-size:12px;color:#555;line-height:1.3}
.journal-rest-section>.rest-adjustment-line{padding:0 12px}
.rest-sleep-target{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:4px 0;font-size:12px;color:#222;background:#fff}
.rest-panel .rest-sleep-target .rest-num{flex:none;width:64px;font-size:14px;color:#222;background:#fff;border:1px solid var(--ink-cobalt)}

.current-todo-line{grid-column:1/-1;display:flex;align-items:center;gap:4px;font-size:12px;color:#333;overflow-wrap:anywhere}
.current-todo-line>span{flex:1}
.current-todo-line button{font-size:12px}
.ai-comment-context-weight{flex:none;font-family:var(--font-ui);text-transform:none;letter-spacing:0;font-size:14px;white-space:nowrap;color:#111}
.dod-focus-mobile .ai-comment-card-meta:has(.ai-comment-context-weight){display:flex;flex-wrap:wrap;gap:2px;align-items:center}
.ai-todo-guidance{margin:4px 0;color:#111;border-left:1px solid #2463b4;padding-left:4px;font-size:12px;overflow-wrap:anywhere}
.ai-todo-candidate{margin:0 0 2px;line-height:1.35}
.ai-todo-guidance button{font-size:12px;background:#fff;color:#111;border:1px solid #2463b4;padding:2px 4px;margin:2px}
.dod-focus-mobile .ai-comment-card:has(.ai-comment-context-weight){padding:8px}
.dod-focus-mobile .ai-comment-card-meta:has(.ai-comment-context-weight){font-family:var(--font-ui);letter-spacing:0;text-transform:none;flex-wrap:wrap}
.dod-focus-mobile .ai-comment-card-meta:has(.ai-comment-context-weight) .ai-comment-time-range{flex:none;margin-left:0;gap:2px}
.dod-focus-mobile .ai-comment-card-meta:has(.ai-comment-context-weight) .ai-comment-time-pill{padding:2px}
.dod-focus-mobile .ai-comment-card-meta:has(.ai-comment-context-weight) .ai-comment-card-badge{flex:none;padding:1px;margin-right:0}
.dod-focus-mobile .ai-comment-card-meta:has(.is-editing){flex-wrap:wrap}
.dod-focus-mobile .mobile-feedback-record,.dod-focus-mobile .ai-comment-card,.dod-focus-mobile .ai-comment-card details{background:#fff}
.dod-focus-mobile .mobile-feedback-record>summary,.dod-focus-mobile .ai-comment-card :is(a,summary,.ai-comment-card-badge,.ai-comment-card-body){color:#111}
.dod-focus-mobile .ai-comment-card :is(summary,.ai-comment-knowledge){font-size:12px}

.dod-focus-mobile{background:#fff}

/* Integrated expert pages: override generic form sizing without enlarging compact actions. */
body[data-mode="expert"] .page-switch-option{font-size:12px;color:#222;background:#fff}
body[data-mode="expert"] .dod-focus-mobile :is(input:not([type=checkbox]),select:not(.mobile-plan-status)):not(:where(.ai-comments-section) *){min-height:32px;height:32px;padding:3px 6px}
body[data-mode="expert"] .dod-focus-mobile .time-field-row>input{font-size:12px;min-width:0}
body[data-mode="expert"] .dod-focus-mobile :is(.ai-comment-evidence-actions button,.ai-todo-guidance button,.ai-comment-card-actions button){font-size:12px;line-height:1.3;min-height:28px;padding:3px 6px}
.dod-focus-mobile .ai-status-banner{color:#555;max-width:100%;padding:2px 6px}
.dod-focus-mobile .ai-comment-evidence-actions{flex-wrap:wrap}
.dod-focus-mobile .current-todo-line{align-items:flex-start}
.dod-focus-mobile .current-todo-line>span{min-width:0}
.dod-focus-mobile .current-todo-line button{flex:none;min-height:28px;padding:3px 6px}
#dodPlanEditor #dodPlanForm>textarea{margin:0;padding:4px 6px;line-height:1.3}
#dodPlanEditor #dodPlanForm :is(input,select){height:32px;min-height:32px;padding:3px 6px}
#dodPlanEditor #dodPlanForm p{margin:2px 0}

body[data-mode="expert"] .page-switch-option.is-active{outline:1px solid var(--ink-cobalt);outline-offset:-1px}
/* Keep Todo actions outside the disclosure hit area; floating controls covered short summaries. */
.dod-focus-mobile .mobile-plan-controls{float:none;justify-content:flex-end;margin:0 0 2px;gap:4px}
#dodCreatorPage .mobile-plan-controls button{font-size:12px;min-height:28px;padding:2px 5px}
/* The archive checkbox is a peer of the DOD picker, not text squeezed into its label column. */
.mobile-dod-navigation .mobile-field:has(.mobile-dod-label){grid-template-columns:52px minmax(0,1fr) auto}
.mobile-dod-label{display:contents}
.mobile-dod-label>span{grid-column:1;grid-row:1}
.mobile-dod-label>.mobile-dod-archived{grid-column:3;grid-row:1;white-space:nowrap}
.mobile-dod-navigation #mobileDodPicker{grid-column:2;grid-row:1}
.dod-focus-mobile .mobile-dod-note>.mobile-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}
.dod-focus-mobile .mobile-dod-note>.mobile-field>textarea{width:100%;min-height:44px;height:44px;padding:4px 6px;line-height:1.3}
body[data-mode="expert"] .page-switch-option-title{font-size:inherit;color:inherit}
.dod-focus-mobile .ai-comment-card :is(.ai-comment-card-badge,.ai-comment-time-pill,.ai-comment-pill-name){font-size:12px}
.dod-focus-mobile .ai-comment-card :is(.ai-comment-card-act,.ai-comment-card-body){font-size:14px}

/* Evidence entry and its actions share a row in both modes, including iOS WebKit. */
.dod-focus-mobile .ai-comment-evidence{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px}
.dod-focus-mobile .ai-comment-evidence :is(.ai-comment-evidence-question,.ai-todo-guidance,[data-evidence-status]){grid-column:1/-1}
.dod-focus-mobile .ai-comment-evidence [data-evidence-status]:empty{display:none}
.dod-focus-mobile .ai-comment-evidence-actions{display:flex;flex-wrap:nowrap;gap:4px}
body .dod-focus-mobile .ai-comment-evidence :is(input,button){height:32px;min-height:32px;margin:0;padding:3px 5px;line-height:1.3;background:#fff;color:#111}
body .dod-focus-mobile .ai-comment-evidence input{width:100%;font-size:14px}
body .dod-focus-mobile .ai-comment-evidence button{font-size:12px;white-space:nowrap;border-color:var(--ink-cobalt)}
.dod-focus-mobile .ai-comment-card-actions{flex-wrap:nowrap;gap:4px}
body .dod-focus-mobile .ai-comment-card-actions button{flex:0 0 auto;min-height:32px;margin:0;padding:3px 6px;font-size:12px;line-height:1.3;white-space:nowrap;background:#fff;color:#111}

/* Phone controls across the remaining routed pages (D78a1d8).
   Only text-entry controls are sized here: native toggles/ranges and hidden
   inputs retain their own interaction geometry. Desktop layout is unchanged. */
@media (max-width:760px){
  body[data-mode]{--fz-12:12px;--fz-13:12px;--fz-14:14px;--fz-15:14px;--fz-16:14px;--lh-snug:1.3;--lh-base:1.4}
  body[data-mode] .page-switch-option{min-height:32px;padding:4px 8px;background:#fff;color:#222;font-size:12px}
  body[data-mode] .page-switch-option-title,body[data-mode] .page-switch-option-title::before{font-size:12px;color:#222}
  body[data-mode] .page-panel :is(button,select,input:not([type]),input[type=text],input[type=search],input[type=url],input[type=number],input[type=date],input[type=datetime-local],input[type=time]):not(:where(#recommendPanel,.ai-comments-section) *){box-sizing:border-box;min-width:0;min-height:32px;height:32px;padding:3px 6px;font-size:14px;line-height:1.3;color:#222;background-color:#fff}
  body[data-mode] .ai-comments-range input[type=date]{box-sizing:border-box;height:32px;min-height:32px}
  body[data-mode] .page-panel select:not(:where(#recommendPanel,.ai-comments-section) *){padding-right:26px}
  body[data-mode] .page-panel button:not(:where(#recommendPanel,.ai-comments-section) *){font-size:12px;height:auto;border:1px solid var(--ink-cobalt)}
  body[data-mode] .page-panel textarea:not(:where(#recommendPanel,.ai-comments-section) *){box-sizing:border-box;min-width:0;font-size:14px;line-height:1.4;padding:5px 6px;color:#222;background:#fff}
  body[data-mode] .page-panel :is(.form-group,.form-actions):not(:where(#recommendPanel,.ai-comments-section) *){margin-bottom:6px;gap:4px}
  body[data-mode] .page-panel label:not(:where(#recommendPanel,.ai-comments-section) *){font-size:12px;margin-bottom:3px;color:#333}
  body[data-mode] :is(#projectCreatorPage,#checklistPage,#calendarPage,#reviewPage,#appSettingsPage,#journalPage){font-size:14px;line-height:1.4;color:#222;background:#fff}
  body[data-mode] :is(#projectCreatorPage,#checklistPage,#calendarPage,#reviewPage,#appSettingsPage,#journalPage) :is(h2,h3,h4){font-size:14px;line-height:1.4;color:#222;margin:4px 0}
  #checklistPage .checklist-top-row{display:flex;flex-direction:row;align-items:center;gap:4px}
  #checklistPage .checklist-top-row .form-group{flex:1;min-width:0;margin:0}
  #checklistPage .checklist-actions{flex:none;gap:4px}
  #checklistPage :is(.checklist-clear-btn,.checklist-add-btn){flex:none}
  #checklistPage :is(.todo-add-row,.checklist-add-step-row){display:flex;align-items:center;gap:4px}
  #checklistPage :is(.todo-add-row,.checklist-add-step-row) input{flex:1;width:0;margin:0}
  #checklistPage :is(.todo-add-row,.checklist-add-step-row) button{flex:none;margin:0}
  #checklistPage .todo-section{padding:8px;margin-top:8px}
  #checklistPage :is(.todo-note,.todo-empty,.checklist-empty-hint){font-size:12px;margin:4px 0}
  #checklistPage .checklist-modal{padding:12px;max-width:calc(100vw - 24px)}
  #checklistPage .checklist-modal-buttons{display:flex;gap:4px}
  #journalPage .journal-header{gap:4px;margin-bottom:6px}
  #journalPage .journal-date-range{flex:1;min-width:0;gap:4px}
  #journalPage .journal-date-picker{flex:1;width:0;font-size:12px}
  body[data-mode] #projectCreatorPage .btn{min-height:32px;padding:3px 6px;font-size:12px;background:#fff;color:#222;border-color:var(--ink-cobalt)}
  #projectCreatorPage :is(.pc-form-row,.pc-actions){gap:4px}
  #appSettingsPage .app-settings-account-value{overflow-wrap:anywhere;min-width:0}
  #checklistPage .checklist-step-text{font-size:14px}
  #calendarPage :is(.calendar-month-label,.calendar-detail-date,.calendar-dod-name,.calendar-record-kr,.calendar-day-num){font-size:14px}
  #calendarPage :is(.calendar-weekday,.calendar-detail-stats,.calendar-dod-count,.calendar-record-badge,.calendar-record-expand-icon,.calendar-record-time){font-size:12px}
  #calendarPage :is(.calendar-header,.calendar-search,.calendar-detail-header){margin-bottom:6px;padding:4px 0;gap:4px}
  #calendarPage .calendar-dod-count{flex:none;white-space:nowrap}
  #calendarPage :is(.calendar-dod-header,.calendar-record-summary,.calendar-record-details){padding:6px;background:#fff}
  #calendarPage .calendar-record-badge{color:#222;background:#fff;border:1px solid var(--ink-cobalt)}
  #calendarPage .calendar-act-editor{gap:4px;padding:4px 0}
  #calendarPage .calendar-act-editor>label{display:grid;grid-template-columns:5em minmax(0,1fr);align-items:center;gap:4px;margin:0}
  #calendarPage .calendar-act-editor :is(select,textarea){font-weight:400;margin:0}
  #journalPage :is(.journal-date-sep,.journal-card-badge,.journal-card-time,.journal-card-meta,.act-list-label,.journal-autosave-hint){font-size:12px;color:#333}
  #journalPage .journal-card-title{font-size:14px}

  #journalPage .dod-review-link{color:#333}
  #appSettingsPage :is(.app-settings-account-label,.app-settings-readonly-hint,summary,.rest-preview-tag,.rest-card-note,.rest-rl,.rest-adv-l,.rest-adv-note,.health-reminders-empty,.rest-legend span,.rest-ticks span,.rest-tier .lvl,.rest-tier i){font-size:12px;color:#333}
  #appSettingsPage .rest-tier .cad{font-size:14px;color:#222}
  #appSettingsPage :is(.app-settings-account-link,.app-settings-toggle-link a){color:#222}
  #appSettingsPage :is(.rest-card,.rest-detail-section,.reminder-row-header,.health-reminders-header){padding:6px 8px;margin-top:4px;gap:4px}
  #appSettingsPage :is(.rest-range,.rest-intensity,.rest-detail-fields){gap:4px;margin-bottom:4px}
  #appSettingsPage .health-reminder-modal{padding:12px}

  #reviewPage :is(.review-recognition-label,.eyebrow){font-size:12px;color:#333}
  body[data-mode] .page-panel button:is(.is-active,.selected,.is-selected,.on,.active):not(:where(#recommendPanel,.ai-comments-section) *){font-weight:700;border-width:2px;background:#fff;color:#222}
  body[data-mode] .page-switch-option.is-active{box-shadow:inset 0 0 0 1px var(--ink-cobalt)}

  #calendarPage .calendar-empty{font-size:14px}
  #appSettingsPage #appSettingsToggleUrl{font-size:12px}

  body[data-mode] #appSettingsReminders :is(.rest-timefield input[type=text],.rest-num,.rest-timefield button,.rest-day,.rest-seg button){height:32px;min-height:32px}

  #journalPage .journal-time-row .form-group{min-width:0}
  #journalPage .journal-time-row:has(input[type=datetime-local]){display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
  #journalPage .journal-time-row:has(input[type=datetime-local]) .form-group{display:grid;grid-template-columns:5em minmax(0,1fr);align-items:center;gap:4px}
  #appSettingsPage .rest-timefield input[type=text]{width:56px;padding:3px 4px}
  #appSettingsPage .rest-timefield button{width:32px}
  #appSettingsPage .rest-adv-row{display:grid;grid-template-columns:minmax(0,1fr)64px;gap:4px;margin-top:4px}
  #appSettingsPage label:has(>:is(#reminderFeishuCopy,#healthReminderModalNeedsFeedback)){display:flex;align-items:center;gap:4px}
  #appSettingsPage :is(#reminderFeishuCopy,#healthReminderModalNeedsFeedback){appearance:auto;width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:#333}
  #appSettingsPage .rest-switch-track,#appSettingsPage .rest-switch input:checked~.rest-switch-track{background:#fff}
  body .guard-toast{font-size:12px;padding:3px 6px;background:#fff;color:#222;border:1px solid var(--ink-cobalt)}
  body .guard-spinner{border-color:#ddd;border-top-color:var(--ink-cobalt)}

  #projectCreatorPage .pc-chat-bubble{background:#fff;border:1px solid var(--rule-line);padding:5px 6px;line-height:1.4}
  #projectCreatorPage .pc-chat-bubble.user{border-color:var(--ink-cobalt)}
  #appSettingsPage #healthReminderModalConfirm{background:#fff;color:#222;border-color:var(--ink-cobalt)}

}

.ai-comment-note [data-note-status]:empty{display:none}
body .dod-focus-mobile .ai-comment-note button{min-height:28px;padding:2px 6px;font-size:12px;line-height:1.3}
/* The inline date editor keeps its own compact controls, not form-field sizing. */
.dod-focus-mobile .ai-comment-time-pill.is-editing{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:3px;max-width:100%;width:100%;box-sizing:border-box;background:#fff}
.dod-focus-mobile .ai-comment-pill-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.dod-focus-mobile .ai-comment-pill-input{min-width:0;width:100%;box-sizing:border-box;font-size:12px;padding:1px 4px}
.dod-focus-mobile .ai-comment-pill-btn{border:0;background:transparent;box-shadow:none;min-height:24px;padding:0 4px;font-size:12px;line-height:1;color:#222}
.dod-focus-mobile .ai-comment-pill-status{grid-column:1/-1;font-size:12px;color:#555;white-space:normal}
.dod-focus-mobile .mobile-feedback-record{padding-inline:3px}


.dod-focus-mobile .ai-todo-candidate button{white-space:nowrap;margin:0;vertical-align:baseline}
/* Feedback already has a separate Act line; avoid stacking margin and padding. */
.dod-focus-mobile .ai-comment-card > .ai-comment-card-body{margin-top:2px;padding-top:0}
.dod-focus-mobile .ai-comment-card > .ai-comment-card-body > .ai-comment-lens{margin-top:2px}

.ai-comment-context-weight strong{font-size:inherit;font-weight:700;color:#111}
.ai-comment-context-weight small{font-size:12px;color:#555}
.ai-comment-weight-editor{color:#111;background:#fff;font-size:14px;margin:4px 0}
.ai-comment-weight-editor label{display:flex;align-items:center;gap:4px;font-size:14px;color:#111}
.ai-comment-weight-editor select{flex:none;width:auto;max-width:100%;font-size:14px;color:#111;background:#fff}
.ai-comment-weight-editor .calendar-record-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:2px 0;font-size:12px}
.ai-comment-weight-editor button{font-size:12px;color:#111;background:#fff;border:1px solid #2463b4;padding:2px 4px}
.ai-comment-weight-editor [data-context-immediate],.ai-comment-weight-editor [data-context-status]{font-size:12px}
.ai-comment-weight-editor [data-context-status]:not(:empty){display:block}

/* D78a1d8: retained mobile pages use white surfaces and blue outlines only. */
.dod-focus-mobile,#reviewPage,#checklistPage,#appSettingsReminders,#healthReminderModalOverlay{
  --bg-canvas:#fff;--bg-surface:#fff;--bg-sunken:#fff;
  --fg-primary:#222;--fg-secondary:#555;--fg-muted:#777;--fg-disabled:#888;
  --rule-line:#ddd;--rule-line-strong:#aaa;
  --good:#222;--warn:#222;--danger:#222;--system-1:#555;
  --good-soft:#fff;--warn-soft:#fff;--danger-soft:#fff;--system-1-soft:#fff;--ink-cobalt-soft:#fff;
  color:#222;font-size:14px;line-height:1.4;
}
body[data-mode="simple"] .page-switch-option[data-simple-order] .page-switch-option-title::before{color:#555;font-size:12px}
.dod-focus-mobile a{color:#222}
.dod-focus-mobile .archive-toggle:has(input:checked),.dod-focus-mobile .historical-review-toggle:has(input:checked){color:#222}
.dod-focus-mobile #dataForm .project-select-row{grid-template-columns:3.6em minmax(0,1fr) auto;gap:6px}
.dod-focus-mobile #dataForm .project-select-row>.project-map-link{grid-column:3;display:inline-flex;align-items:center;min-height:32px;margin:0;padding:4px 6px;border:1px solid var(--ink-cobalt);border-radius:var(--radius-input);background:#fff;color:#222;font-size:12px;line-height:1.4;white-space:nowrap;text-decoration:none}
.dod-focus-mobile .ai-comments-range{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr) auto;gap:4px;align-items:center}
.dod-focus-mobile .ai-comments-range input[type=date]{width:100%;min-width:0;font-size:12px;padding:4px 2px}
.dod-focus-mobile .ai-comments-range .ai-refresh-btn{min-height:28px;padding:4px;font-size:12px}
.dod-focus-mobile .ai-status-banner{padding:3px 6px;gap:4px}
.dod-focus-mobile .ai-comment-card-body{line-height:1.4;padding-top:4px;margin-top:4px}
.dod-focus-mobile .ai-comment-knowledge{margin-top:4px;padding:4px 6px}
.dod-focus-mobile .ai-comment-knowledge div{margin-top:4px;line-height:1.4}

#reviewPage :is(input,select,textarea,button),#checklistPage :is(input,select,textarea,button),#healthReminderModalOverlay :is(input,select,textarea,button){font-size:14px;color:#222;background:#fff;line-height:1.4}
#reviewPage :is(button,.review-chip.expert),#checklistPage button,#healthReminderModalOverlay button{border:1px solid var(--ink-cobalt);background:#fff;color:#222}
#reviewPage :is(button,.review-chip.expert):hover,#checklistPage button:hover{background:#fff}
#reviewPage :is(.review-chip,.review-badge,.eyebrow,.message,label,.review-physio-hint),#checklistPage :is(.checklist-arrow-btn,.checklist-step-action-btn,.message,.todo-note,label){font-size:12px}
#reviewPage :is(.review-recognition-card,.review-expert-result,.review-terminal-banner,.review-success-banner,.review-abc-msg){background:#fff;color:#222}
#reviewPage :is(.review-expert-panel-title,.review-chip.expert,.review-success-banner){color:#222}
#reviewPage :is(h3,h4){font-size:14px}
#reviewStepDiagnostic>.review-step-title,#reviewSuccess>h3{display:inline;margin:0 6px 0 0}
#reviewDiagnosticContent,#reviewDiagnosticContent>div:first-child,#reviewSuccess>div:first-of-type{display:inline}
#reviewSuccess>div:last-of-type{display:inline-block;max-width:calc(100% - 108px);margin-right:6px;vertical-align:middle;overflow-wrap:anywhere}
#reviewSuccess>.submit-btn{font-size:12px;vertical-align:middle}
#reviewPage .review-chip.expert.selected{background:#fff;border:2px solid var(--ink-cobalt);padding:2px 9px;font-weight:700}
#reviewPage .review-abc-msg{border-left:2px solid var(--ink-cobalt);margin:4px 0;padding:4px 6px}
#reviewPage .review-abc-msg.user{border-left:0;border-right:2px solid var(--ink-cobalt)}
#reviewPage .review-step{margin-bottom:8px}
#reviewPage .form-group{margin-bottom:6px}
#reviewPage :is(.review-recognition-card,.review-expert-panel){padding:8px;margin-bottom:6px}
#reviewPage :is(.review-step-title,.review-expert-panel-title){margin-bottom:6px}
#reviewPage .review-sub-title{margin:6px 0 4px}
#reviewPage .review-physio-grid{gap:6px}
#reviewPage .review-abc-input{gap:6px;align-items:stretch}
#reviewPage .review-abc-input textarea{min-width:0}
#reviewPage .review-abc-input button{flex:none;width:auto;padding:4px 8px}
#reviewPage .submit-btn{padding:6px 8px}
#reviewPage .review-step .form-actions{gap:6px;margin-top:6px}
#reviewPage input[type=checkbox],#checklistPage input[type=checkbox],.dod-focus-mobile input[type=checkbox]{accent-color:#555}

#checklistPage .checklist-section{gap:6px}
#checklistPage .checklist-top-row{flex-direction:row;gap:6px}
#checklistPage .checklist-top-row .form-group{min-width:0;margin:0}
#checklistPage :is(.checklist-clear-btn,.checklist-add-btn){flex:none;padding:4px 8px;min-width:32px;white-space:nowrap}
#checklistPage .checklist-section:has(.checklist-name-actions:not([hidden])){display:grid;grid-template-columns:auto minmax(0,1fr) auto}
#checklistPage .checklist-section:has(.checklist-name-actions:not([hidden])) :is(.checklist-top-row,.checklist-actions){display:contents}
#checklistPage .checklist-section:has(.checklist-name-actions:not([hidden])) .form-group{grid-column:1/3;grid-row:1}
#checklistPage .checklist-section:has(.checklist-name-actions:not([hidden])) #checklistAddBtn{grid-column:3;grid-row:1}
#checklistPage .checklist-section:has(.checklist-name-actions:not([hidden])) #checklistClearBtn{grid-column:1;grid-row:2}
#checklistPage .checklist-section:has(.checklist-name-actions:not([hidden])) .checklist-name-actions{grid-column:2/4;grid-row:2;gap:6px}
#checklistPage .checklist-section>:is(.checklist-steps-card,.message){grid-column:1/-1}
#checklistPage .checklist-step-item{padding:6px 8px}
#checklistPage .checklist-step-action-btn{border-radius:0}
#checklistPage .todo-section{margin-top:10px;padding:8px}
#checklistPage .todo-header{margin-bottom:6px}
#checklistPage .todo-add-row{gap:6px}
#checklistPage .todo-add-row button{padding:4px 8px;min-width:48px}
#checklistPage .todo-item{padding:6px 8px;gap:6px;border:1px solid var(--rule-line)}
#checklistPage .checklist-modal,#healthReminderModalOverlay .health-reminder-modal{padding:12px;gap:6px}
#healthReminderModalOverlay :is(h3,.health-reminder-field){font-size:14px;color:#222}
#healthReminderModalOverlay .reminder-quiet-warning{color:#555;font-size:12px;border-left:2px solid var(--ink-cobalt);padding-left:6px}
#healthReminderModalOverlay .health-reminder-modal{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
#healthReminderModalOverlay .health-reminder-modal>h3{grid-column:1;grid-row:1}
#healthReminderModalOverlay .health-reminder-modal-actions{grid-column:2;grid-row:1;gap:4px}
#healthReminderModalOverlay .health-reminder-modal-actions button{font-size:12px;padding:4px 6px}
#healthReminderModalOverlay .health-reminder-modal>:is(label,p,.message){grid-column:1/-1}
#healthReminderModalOverlay .health-reminder-field{display:grid;grid-template-columns:6.5em minmax(0,1fr);align-items:center;gap:6px;font-size:12px}
#healthReminderModalOverlay .health-reminder-field[hidden]{display:none}
#healthReminderModalOverlay .health-reminder-modal>label:not(.health-reminder-field){display:flex;align-items:center;gap:4px;font-size:12px}
#healthReminderModalOverlay input[type=checkbox]{appearance:auto;flex:none;width:14px;height:14px;min-height:0;margin:0;padding:0;accent-color:#555}

#appSettingsReminders :is(h2,h3,input,select,textarea,button){font-size:14px;color:#222;background:#fff}
#appSettingsReminders :is(.reminder-section-title,.health-reminders-title,.reminder-row-title,.rest-card-title){font-size:14px;color:#222}
#appSettingsReminders :is(.rest-master-sub,.rest-eyebrow,.rest-preview-tag,.rest-card-note,.rest-rl,.rest-adv-l,.rest-adv-note,.rest-adv summary,.reminder-time-setting,.reminder-detail-fields label,.reminder-log>summary,.reminder-send-row,.health-reminders-empty,.rest-legend i,.rest-ticks span,.rest-tier .lvl,.rest-tier .cad i){font-size:12px;color:#555}
#appSettingsReminders .rest-tier .cad{font-size:14px;color:#222}
#appSettingsReminders :is(.rest-seg button,.rest-day,.rest-timefield button,.rest-num){font-size:12px;color:#222;background:#fff}
#appSettingsReminders :is(.rest-day.on,.rest-day.weekend.on,.rest-seg button.active){color:#222;background:#fff;border:1px solid var(--ink-cobalt);box-shadow:inset 0 0 0 1px var(--ink-cobalt);font-weight:700}
#appSettingsReminders :is(.rest-switch-track,.rest-switch input:checked~.rest-switch-track){background:#fff;border-color:var(--rule-line-strong)}
#appSettingsReminders .rest-switch input:checked~.rest-switch-track{border:2px solid var(--ink-cobalt)}
#appSettingsReminders .rest-switch-knob{border:1px solid #777;box-sizing:border-box}
#appSettingsReminders .rest-switch input:checked~.rest-switch-knob{border-color:var(--ink-cobalt)}
#appSettingsReminders .rest-band{background:#fff;border:1px solid var(--rule-line)}
#appSettingsReminders .rest-band .work{background:#fff;border:1px solid var(--ink-cobalt);box-sizing:border-box;opacity:1}
#appSettingsReminders .rest-band .work span{color:#222;font-size:12px}
#appSettingsReminders .rest-band .pin{background:#fff;border-color:var(--ink-cobalt)}
#appSettingsReminders .rest-legend .sw{background:#fff;border:1px solid var(--ink-cobalt);box-sizing:border-box}
#appSettingsReminders .rest-legend .sw.slow{border-color:#777;border-style:dashed}
#appSettingsReminders .reminder-quiet-warning{color:#555;border-left:2px solid var(--ink-cobalt);padding-left:6px}
#appSettingsReminders .reminder-row{padding:8px}
#appSettingsReminders .reminder-row:has(>.reminder-row-details:not([hidden])){display:flow-root}
#appSettingsReminders .reminder-row:has(>.reminder-row-details:not([hidden]))>.reminder-row-header{float:left;width:calc(100% - 42px)}
#appSettingsReminders .reminder-row-details{margin-top:0}
#appSettingsReminders .reminder-row-details>summary{width:36px;min-height:36px;margin-left:auto;gap:2px}
#appSettingsReminders .reminder-row-details>:not(summary){clear:both}
#appSettingsReminders :is(.reminder-section-title,.health-reminders-header,.reminder-log){padding:8px}
#appSettingsReminders .health-reminders-add-btn{width:auto;min-width:40px;white-space:nowrap}
#appSettingsReminders .reminder-row-header{gap:8px;min-height:36px}
#appSettingsReminders .reminder-row-description{margin-top:2px;line-height:1.4}
#appSettingsReminders .rest-detail-section{padding-top:8px;margin-top:6px}
#appSettingsReminders .rest-field{margin-top:8px}
#appSettingsReminders #appSettingsRestWorkTitle{float:left;margin:0 6px 0 0}
#appSettingsReminders #appSettingsRestWorkTitle+.rest-field{margin-top:0}
#appSettingsReminders .rest-days{clear:both}
#appSettingsReminders .rest-flabel{margin-bottom:4px}
#appSettingsReminders :is(.rest-day,.rest-seg button,.rest-num){min-height:32px;height:32px}
#appSettingsReminders .rest-timefield button{width:28px;height:32px}
#appSettingsReminders .rest-timefield input{width:44px;min-height:32px;font-size:14px}
#appSettingsReminders .rest-range{grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:4px;margin-bottom:4px}
#appSettingsReminders .rest-rl{grid-column:auto;font-size:12px}
#appSettingsReminders .rest-range>.rest-timefield{width:100%;justify-content:center}
#appSettingsReminders .rest-range .rest-timefield button{width:22px}
#appSettingsReminders .rest-range .rest-timefield input{width:40px}
#appSettingsReminders .rest-adv{margin-top:8px;padding-top:6px}
#appSettingsReminders .rest-adv>summary{min-height:28px}
#appSettingsReminders .rest-adv:not([open]){float:left;max-width:calc(100% - 100px)}
#appSettingsReminders .rest-savehint{display:inline-block;margin:8px 0 0 6px;font-size:12px;line-height:28px}
#appSettingsReminders .rest-adv-row{gap:6px;margin-top:6px}
#appSettingsReminders .rest-intensity{gap:8px;margin-top:4px}
#appSettingsReminders .rest-tier{display:flex;align-items:baseline;justify-content:center;gap:4px;padding:4px 0}
#appSettingsReminders .rest-tier .cad{display:inline;margin-top:0}
#appSettingsReminders .health-reminder-state{font-size:12px;background:#fff;color:#555;border:1px solid var(--rule-line-strong)}
#appSettingsReminders .health-reminder-state.on{color:#222;border-color:var(--ink-cobalt)}
#appSettingsReminders .health-reminder-actions{gap:4px}
#appSettingsReminders .health-reminder-actions button{min-height:32px;min-width:32px;padding:3px 6px;font-size:12px}
#appSettingsReminders .health-reminder-info{float:left;clear:both;width:auto;margin:4px 6px 0 0}
#appSettingsReminders .health-reminder-actions{clear:none;min-height:28px;align-items:center}

/* Transient feedback keeps its existing positioning, visibility and wording. */
body:has(#appMain:not([hidden])) .guard-toast{font-size:12px;background:#fff;color:#222;border:1px solid var(--ink-cobalt)}
.dod-focus-mobile .guard-spinner,#reviewPage .guard-spinner,#checklistPage .guard-spinner,#appSettingsReminders .guard-spinner{border-color:#ddd;border-top-color:#555}
.journal-rest-section{font-size:12px;color:#555;background:#fff}
.journal-rest-section :is(.journal-rest-section-header,.journal-rest-summary,.journal-rest-event,.journal-rest-event--open,.journal-rest-detail){font-size:12px;color:#555;background:#fff}
.journal-rest-section .journal-rest-section-summary{color:#555}
.journal-rest-section .journal-rest-tier{font-size:12px;color:#222;background:#fff;border:1px solid var(--ink-cobalt)}
.journal-rest-section .journal-rest-tier.tier-high{font-weight:700;border-width:2px}
#journalPage>.journal-header :is(input,.journal-date-sep){font-size:12px;color:#555}
#journalPage>.journal-header>.review-step-title{flex:none;white-space:nowrap;margin:0 6px 0 0;font-size:14px}
#journalPage>.journal-header>.journal-date-range{flex:1;min-width:0}
#journalPage .journal-date-range>.journal-date-picker{flex:1;width:0;min-width:0;padding-inline:4px}
