/* My tasks only. Uses the Tracker's existing theme, actions and phone shell. */
#view .mt-manual { margin-bottom:24px; }
#view .mt-manual .mt-heading { background:var(--surface); padding:20px 24px; align-items:center; }
#view .mt-manual .mt-heading p { margin:5px 0 0; font-size:12px; color:var(--text-muted); }
#view .mt-manual .phase-body { padding:20px 24px; }
#view .mt-manual .mt-tabs { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 14px; }
#view .mt-manual .mt-tab { min-height:42px; padding:9px 13px; border-radius:10px; font-size:12px; }
#view .mt-manual .mt-tab.on { background:var(--accent-soft); color:var(--accent-deep,var(--accent)); }
#view .mt-manual .mt-tab b { min-width:20px; padding:1px 5px; border-radius:6px; background:var(--surface-2); font-size:11px; }
#view .mt-manual .mt-tab.on b { background:var(--surface); }
#view .mt-manual .mt-form { display:block; margin:0 0 24px; padding:24px; border:1px solid var(--border); border-radius:16px; background:var(--surface-2); color:var(--text); scroll-margin-top:90px; }
#view .mt-manual .mt-form-heading { margin-bottom:22px; }
#view .mt-manual .mt-eyebrow { font-size:10px; font-weight:700; letter-spacing:1px; color:var(--accent-deep,var(--accent)); }
#view .mt-manual .mt-form h3 { margin:5px 0 7px; font-size:24px; line-height:1.25; letter-spacing:-.7px; }
#view .mt-manual .mt-form-heading p { margin:0; color:var(--text-muted); font-size:13px; line-height:1.6; }
#view .mt-manual .mt-fields { min-width:0; margin:0; padding:0; border:0; }
#view .mt-manual .mt-field { display:flex; flex-direction:column; min-width:0; gap:8px; font-size:12px; font-weight:600; }
#view .mt-manual .mt-field >span, #view .mt-manual .mt-field >label { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
#view .mt-manual .mt-field small { font-size:11px; font-weight:400; line-height:1.5; color:var(--text-muted); }
#view .mt-manual .mt-field :is(input,select,textarea) { box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:46px; margin:0; padding:11px 13px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); font:400 14px/1.5 Inter,sans-serif; box-shadow:none; }
#view .mt-manual .mt-field select { text-overflow:ellipsis; padding-right:30px; }
#view .mt-manual .mt-field textarea { min-height:102px; resize:vertical; }
#view .mt-manual .mt-field :is(input,textarea)::placeholder { color:var(--text-muted); opacity:1; }
#view .mt-manual .mt-field :is(input,select,textarea):focus { outline:2px solid var(--accent); outline-offset:2px; border-color:var(--accent); }
#view .mt-manual .mt-field select:disabled { background:var(--surface-2); color:var(--text-muted); opacity:.8; cursor:not-allowed; }
#view .mt-manual .mt-title-field { margin-bottom:20px; }
#view .mt-manual .mt-title-field input { min-height:50px; font-size:15px; }
#view .mt-manual .mt-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
#view .mt-manual .mt-quick-dates { display:flex; flex-wrap:wrap; gap:5px; }
#view .mt-manual .mt-quick-dates button { min-height:34px; padding:5px 8px; border-radius:7px; font-size:11px; font-weight:500; background:var(--surface); }
#view .mt-manual .mt-quick-dates button[aria-pressed="true"] { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-deep,var(--accent)); }
#view .mt-manual .mt-urgency { display:flex; align-items:center; gap:12px; padding:15px 0; margin-top:20px; border-top:1px solid var(--border); cursor:pointer; }
#view .mt-manual .mt-urgency input { width:18px; height:18px; flex:none; accent-color:var(--accent); margin:0; }
#view .mt-manual .mt-urgency b { display:block; font-size:12px; font-weight:600; }
#view .mt-manual .mt-urgency small { display:block; color:var(--text-muted); font-size:11px; margin-top:3px; line-height:1.5; }
#view .mt-manual .mt-urgency >.mt-priority { margin-left:auto; opacity:.6; }
#view .mt-manual .mt-urgency:has(input:checked) >.mt-priority { opacity:1; }
#view .mt-manual .mt-priority { display:inline-block; padding:3px 7px; border-radius:5px; background:var(--amber-bg,#fef3c7); color:var(--amber,#a16207); font-size:10px; font-weight:650; white-space:nowrap; }
#view .mt-manual .mt-details { border-top:1px solid var(--border); }
#view .mt-manual .mt-details summary { cursor:pointer; min-height:48px; padding:14px 0; font-size:12px; font-weight:600; }
#view .mt-manual .mt-details summary span { margin-left:8px; color:var(--text-muted); font-size:11px; font-weight:400; }
#view .mt-manual .mt-details >label { margin:3px 0 18px; }
#view .mt-manual .mt-form-footer { display:flex; gap:18px; align-items:center; justify-content:space-between; border-top:1px solid var(--border); padding-top:18px; }
#view .mt-manual .mt-form-footer p { max-width:310px; margin:0; color:var(--text-muted); font-size:11px; line-height:1.65; }
#view .mt-manual .mt-form-actions { display:flex; flex:none; gap:8px; }
#view .mt-manual .mt-form-actions button { justify-content:center; min-height:44px; padding:11px 18px; }
#view .mt-manual button.primary { color:var(--on-accent,#fff); }
#view .mt-manual button:disabled { cursor:wait; opacity:.6; }
#view .mt-manual .mt-form-error { margin:0 0 16px; padding:12px; border:1px solid var(--red,#b42318); border-radius:10px; color:var(--red,#b42318); background:var(--red-bg,#fee2e2); font-size:13px; overflow-wrap:anywhere; }
#view .mt-manual .mt-row { display:grid; grid-template-columns:40px minmax(0,1fr) auto 40px; gap:10px; align-items:center; padding:14px 0; border-bottom:1px solid var(--border); }
#view .mt-manual .mt-row:last-child { border:0; }
#view .mt-manual .mt-check-target { min-width:40px; min-height:44px; display:grid; place-items:center; cursor:pointer; }
#view .mt-manual .mt-check { width:18px; height:18px; margin:0; accent-color:var(--accent); }
#view .mt-manual .mt-row-content { min-width:0; overflow-wrap:anywhere; }
#view .mt-manual .mt-task-title { font-size:13px; line-height:1.6; font-weight:600; }
#view .mt-manual .mt-row-content >.mt-priority { margin-left:8px; vertical-align:middle; }
#view .mt-manual .mt-context { margin-top:4px; font-size:11px; line-height:1.65; color:var(--text-muted); }
#view .mt-manual .mt-notes { display:block; font-size:12px; font-weight:400; color:var(--text-muted); margin-top:5px; white-space:pre-wrap; line-height:1.6; }
#view .mt-manual .mt-done .mt-task-title { text-decoration:line-through; color:var(--text-muted); }
#view .mt-manual .mt-due { font-size:11px; color:var(--text-muted); text-align:right; }
#view .mt-manual .mt-due.deadline-overdue { color:var(--red,#b42318); }
#view .mt-manual .mt-delete { min-width:40px; min-height:44px; justify-content:center; font-size:18px; padding:8px; }
#view .mt-manual :is(button,summary,input):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
#view .mt-manual .mt-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media(max-width:640px) {
  #view .mt-manual .mt-heading { padding:16px; flex-wrap:wrap; }
  #view .mt-manual .mt-heading p { max-width:180px; }
  #view .mt-manual .mt-heading >button { min-height:44px; padding:10px 14px; }
  #view .mt-manual .phase-body { padding:16px; }
  #view .mt-manual .mt-form { padding:16px; margin-bottom:20px; border-radius:12px; }
  #view .mt-manual .mt-form h3 { font-size:22px; }
  #view .mt-manual .mt-field-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
  #view .mt-manual .mt-field :is(input,select,textarea), #view .mt-manual .mt-title-field input { font-size:16px; }
  #view .mt-manual .mt-quick-dates button { min-height:44px; padding:7px 9px; }
  #view .mt-manual .mt-urgency { gap:10px; }
  #view .mt-manual .mt-urgency >.mt-priority { display:none; }
  #view .mt-manual .mt-form-footer { flex-direction:column; align-items:stretch; gap:14px; }
  #view .mt-manual .mt-form-actions { display:grid; grid-template-columns:1fr 1.5fr; }
  #view .mt-manual .mt-form-actions button { padding:11px; }
  #view .mt-manual .mt-tab { min-height:44px; padding:8px 10px; }
  #view .mt-manual .mt-row { grid-template-columns:32px minmax(0,1fr) 36px; gap:4px 8px; align-items:start; }
  #view .mt-manual .mt-check-target { min-width:32px; grid-column:1; grid-row:1/3; }
  #view .mt-manual .mt-row-content { grid-column:2; grid-row:1; padding-top:9px; }
  #view .mt-manual .mt-due { grid-column:2; grid-row:2; text-align:left; padding:4px 0; }
  #view .mt-manual .mt-delete { grid-column:3; grid-row:1; min-width:36px; }
}
@media(prefers-reduced-motion:reduce) { #view .mt-manual * { transition:none; } }
.mt-row.mt-hl{outline:2px solid #7c3aed;outline-offset:2px;border-radius:12px;transition:outline-color .4s}


/* Task calendar: same surfaces, purple controls and compact typography as the composer. */
#view .mt-manual .mt-view-switch { display:flex; width:fit-content; max-width:100%; gap:4px; padding:4px; margin-bottom:20px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); }
#view .mt-manual .mt-view-switch button { min-height:40px; padding:8px 16px; font-size:12px; border:0; border-radius:8px; }
#view .mt-manual .mt-view-switch button[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent-deep,var(--accent)); font-weight:650; }
#view .mt-manual .mt-calendar-toolbar { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:16px; margin:0 0 20px; }
#view .mt-manual .mt-period h3 { margin:0 0 10px; font-size:18px; line-height:1.4; letter-spacing:-.3px; }
#view .mt-manual .mt-period-actions { display:flex; gap:6px; }
#view .mt-manual .mt-period-actions button { min-height:40px; min-width:40px; justify-content:center; font-size:12px; }
#view .mt-manual .mt-scope { display:flex; align-items:center; gap:8px; color:var(--text-muted); font-size:12px; }
#view .mt-manual .mt-scope select { min-height:40px; max-width:100%; padding:8px 30px 8px 10px; border:1px solid var(--border); border-radius:8px; color:var(--text); background:var(--surface); font:inherit; }
#view .mt-manual .mt-day-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:24px; }
#view .mt-manual .mt-day-counts >div { padding:16px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); }
#view .mt-manual .mt-day-counts strong { display:block; margin-bottom:5px; font-size:26px; font-weight:650; }
#view .mt-manual .mt-day-counts span { display:block; font-size:11px; line-height:1.5; }
#view .mt-manual .mt-overdue { color:var(--red,#b42318); }
#view .mt-manual .mt-day-sections { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
#view .mt-manual .mt-day-section h4 { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:12px; }
#view .mt-manual .mt-day-section h4 span { color:var(--text-muted); font-size:11px; font-weight:400; }
#view .mt-manual .mt-day-tasks { display:flex; flex-direction:column; gap:6px; min-width:0; }
#view .mt-manual .mt-chip { display:flex; align-items:center; gap:6px; width:100%; min-width:0; min-height:44px; padding:9px 10px; margin:0; text-align:left; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); font-size:12px; font-weight:500; line-height:1.5; white-space:normal; }
#view .mt-manual .mt-chip:hover { border-color:var(--accent); background:var(--accent-soft); }
#view .mt-manual .mt-chip.mt-overdue { color:var(--red,#b42318); border-color:var(--red-border,var(--border)); }
#view .mt-manual .mt-chip-title { min-width:0; flex:1; overflow-wrap:anywhere; }
#view .mt-manual .mt-chip-done .mt-chip-title { text-decoration:line-through; color:var(--text-muted); }
#view .mt-manual .mt-chip-urgent { flex:none; color:var(--amber,#a16207); font-weight:800; }
#view .mt-manual .mt-initials { flex:none; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--accent-soft); color:var(--accent-deep,var(--accent)); font-size:9px; font-weight:650; }
#view .mt-manual .mt-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-top:1px solid var(--border); border-left:1px solid var(--border); border-radius:12px; overflow:hidden; }
#view .mt-manual .mt-calendar-day { min-width:0; min-height:150px; padding:8px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--surface); }
#view .mt-manual .mt-week .mt-calendar-day { min-height:230px; }
#view .mt-manual .mt-calendar-day.mt-outside { background:var(--surface-2); }
#view .mt-manual .mt-calendar-day.mt-outside .mt-day-label { color:var(--text-muted); }
#view .mt-manual .mt-calendar-day.mt-today { background:var(--accent-soft); }
#view .mt-manual .mt-day-label { min-height:36px; padding:6px 8px; margin-bottom:6px; border:0; border-radius:7px; background:transparent; color:var(--text); font-size:11px; font-weight:650; }
#view .mt-manual .mt-today .mt-day-label { background:var(--accent); color:var(--on-accent,#fff); }
#view .mt-manual .mt-weekday { padding:12px 4px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--surface-2); color:var(--text-muted); text-align:center; font-size:11px; font-weight:600; }
#view .mt-manual .mt-calendar-grid .mt-chip { padding:6px; gap:4px; min-height:34px; font-size:11px; }
#view .mt-manual .mt-month .mt-chip-title { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#view .mt-manual .mt-more { display:block; max-width:100%; margin-top:4px; min-height:32px; padding:4px; border:0; background:transparent; color:var(--accent-deep,var(--accent)); font-size:11px; white-space:normal; }
#view .mt-manual .mt-empty, .mt-task-dialog .mt-empty { margin:5px 0; color:var(--text-muted); font-size:12px; line-height:1.6; }
#view .mt-manual .mt-undated { border-top:1px solid var(--border); margin-top:24px; padding-top:8px; }
#view .mt-manual .mt-undated summary { padding:12px 0; min-height:44px; cursor:pointer; font-size:12px; font-weight:600; }
#view .mt-manual .mt-undated summary b { color:var(--text-muted); font-weight:400; margin-left:6px; }
#view .mt-manual .mt-task-open { display:inline; border:0; background:transparent; padding:0; color:var(--text); text-align:left; white-space:normal; overflow-wrap:anywhere; border-radius:3px; }
#view .mt-manual .mt-task-open:hover { color:var(--accent-deep,var(--accent)); text-decoration:underline; }
#view .mt-manual .mt-row { cursor:pointer; }
#view .mt-manual .mt-context-link, .mt-task-dialog .mt-context-link { display:inline; border:0; padding:3px 0; background:transparent; color:var(--accent-deep,var(--accent)); text-decoration:underline; text-underline-offset:3px; font:inherit; text-align:left; white-space:normal; overflow-wrap:anywhere; border-radius:3px; }
#view .mt-manual .mt-notes { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* Native modal keeps keyboard focus inside, including Escape and return to the task. */
dialog.mt-task-dialog { box-sizing:border-box; width:calc(100% - 32px); max-width:680px; max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid var(--border); border-radius:18px; background:var(--surface); color:var(--text); font-family:Inter,sans-serif; box-shadow:0 24px 80px #0003; overflow:auto; }
dialog.mt-task-dialog::backdrop { background:#0f172a80; }
.mt-task-dialog .mt-detail-heading { display:flex; align-items:start; gap:20px; padding:24px; border-bottom:1px solid var(--border); }
.mt-task-dialog .mt-detail-heading >div { flex:1; min-width:0; }
.mt-task-dialog .mt-eyebrow { font-size:10px; font-weight:700; letter-spacing:1px; color:var(--accent-deep,var(--accent)); }
.mt-task-dialog h2 { margin:8px 0 0; color:var(--text); font-size:23px; line-height:1.4; letter-spacing:-.5px; white-space:pre-wrap; overflow-wrap:anywhere; }
.mt-task-dialog .mt-detail-close { flex:none; min-width:44px; min-height:44px; justify-content:center; font-size:24px; }
.mt-task-dialog .mt-detail-body { padding:24px; }
.mt-task-dialog .mt-detail-context { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.mt-task-dialog .mt-detail-context:empty { display:none; }
.mt-task-dialog .mt-detail-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:20px 0; }
.mt-task-dialog dt { margin-bottom:6px; color:var(--text-muted); font-size:11px; }
.mt-task-dialog dd { margin:0; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.mt-task-dialog .mt-priority { display:inline-block; padding:3px 7px; border-radius:5px; background:var(--amber-bg,#fef3c7); color:var(--amber,#a16207); font-size:11px; font-weight:650; }
.mt-task-dialog .mt-detail-status { display:flex; align-items:center; gap:10px; min-height:48px; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); cursor:pointer; font-size:13px; }
.mt-task-dialog .mt-detail-status input { width:18px; height:18px; margin:0; accent-color:var(--accent); }
.mt-task-dialog h3 { margin:0 0 14px; font-size:14px; font-weight:650; color:var(--text); }
.mt-task-dialog .mt-detail-notes, .mt-task-dialog .mt-updates { margin-top:24px; padding-top:24px; border-top:1px solid var(--border); }
.mt-task-dialog .mt-detail-notes >div, .mt-task-dialog .mt-update-body { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.75; }
.mt-task-dialog .mt-update-list { list-style:none; margin:0; padding:0; }
.mt-task-dialog .mt-update-list li { padding:14px 0; border-bottom:1px solid var(--border); }
.mt-task-dialog .mt-update-list li:first-child { padding-top:0; }
.mt-task-dialog .mt-update-byline { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin-bottom:5px; font-size:11px; }
.mt-task-dialog .mt-update-byline strong { overflow-wrap:anywhere; }
.mt-task-dialog .mt-update-byline time { color:var(--text-muted); }
.mt-task-dialog .mt-update-byline button { margin-left:auto; padding:5px 8px; min-height:36px; font-size:11px; }
.mt-task-dialog form { display:block; margin:20px 0 0; }
.mt-task-dialog fieldset { border:0; padding:0; margin:0; min-width:0; }
.mt-task-dialog fieldset label { display:block; margin-bottom:8px; font-size:12px; font-weight:600; }
.mt-task-dialog textarea { box-sizing:border-box; display:block; width:100%; max-width:100%; min-height:105px; padding:12px; margin:0; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); color:var(--text); font:400 14px/1.6 Inter,sans-serif; resize:vertical; }
.mt-task-dialog .mt-update-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:12px; }
.mt-task-dialog .mt-update-footer small { color:var(--text-muted); font-size:11px; line-height:1.6; }
.mt-task-dialog .mt-update-footer button { flex:none; min-height:44px; padding:10px 16px; color:var(--on-accent,#fff); }
.mt-task-dialog .mt-update-error { margin:12px 0; color:var(--red,#b42318); font-size:13px; overflow-wrap:anywhere; }
.mt-task-dialog :is(button,input,textarea):focus-visible, #view .mt-manual select:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.mt-task-dialog [hidden] { display:none; }
.mt-task-dialog :disabled { opacity:.6; cursor:wait; }
@media(max-width:900px) {
  #view .mt-manual .mt-day-sections { grid-template-columns:minmax(0,1fr); }
  #view .mt-manual .mt-week { grid-template-columns:minmax(0,1fr); }
  #view .mt-manual .mt-week .mt-calendar-day { min-height:100px; padding:12px; }
  #view .mt-manual .mt-week .mt-chip { min-height:44px; padding:9px 10px; font-size:12px; }
}
@media(max-width:640px) {
  #view .mt-manual .mt-view-switch { width:100%; box-sizing:border-box; }
  #view .mt-manual .mt-view-switch button { flex:1; min-height:44px; padding:8px; }
  #view .mt-manual .mt-period h3 { font-size:16px; }
  #view .mt-manual .mt-period-actions button, #view .mt-manual .mt-scope select { min-height:44px; }
  #view .mt-manual .mt-scope select { font-size:16px; }
  #view .mt-manual .mt-day-counts { gap:6px; }
  #view .mt-manual .mt-day-counts >div { padding:12px 8px; }
  #view .mt-manual .mt-day-counts strong { font-size:23px; }
  #view .mt-manual .mt-month .mt-calendar-day { padding:3px; min-height:100px; }
  #view .mt-manual .mt-month .mt-day-label { padding:4px; min-height:36px; width:100%; font-size:11px; }
  #view .mt-manual .mt-month .mt-chip { position:relative; min-height:44px; padding:4px 2px; gap:2px; border-radius:5px; font-size:10px; }
  #view .mt-manual .mt-month .mt-initials { display:none; }
  #view .mt-manual .mt-month .mt-chip-urgent { position:absolute; top:0; right:2px; font-size:9px; }
  #view .mt-manual .mt-more { min-height:44px; font-size:10px; padding:3px 0; }
  #view .mt-manual .mt-weekday { font-size:10px; }
  dialog.mt-task-dialog { width:calc(100% - 16px); max-height:calc(100dvh - 16px); border-radius:14px; }
  .mt-task-dialog .mt-detail-heading, .mt-task-dialog .mt-detail-body { padding:18px; }
  .mt-task-dialog .mt-detail-heading { gap:8px; }
  .mt-task-dialog h2 { font-size:20px; }
  .mt-task-dialog textarea { font-size:16px; }
  .mt-task-dialog .mt-update-footer { flex-direction:column; align-items:stretch; gap:10px; }
  .mt-task-dialog .mt-update-footer button { justify-content:center; }
  .mt-task-dialog .mt-update-byline button { min-height:44px; }
}

/* Attachments share the composer and detail panel surfaces. */
:is(#view .mt-manual,.mt-task-dialog) .mt-attachments { margin:20px 0; padding-top:20px; border-top:1px solid var(--border); min-width:0; }
:is(#view .mt-manual,.mt-task-dialog) .mt-files-heading { display:flex; align-items:baseline; gap:8px; margin-bottom:12px; }
:is(#view .mt-manual,.mt-task-dialog) .mt-files-heading h3 { margin:0; font-size:13px; letter-spacing:0; }
:is(#view .mt-manual,.mt-task-dialog) .mt-files-heading >span { color:var(--text-muted); font-size:11px; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-drop { position:relative; display:flex; flex-direction:column; gap:8px; padding:20px 16px; border:1px dashed var(--accent); border-radius:12px; background:var(--accent-soft); color:var(--text); cursor:pointer; text-align:center; overflow:hidden; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-drop:hover { border-style:solid; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-drop:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-drop:has(input:disabled) { opacity:.6; cursor:wait; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-drop input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:inherit; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-drop strong { font-size:13px; font-weight:650; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-drop span { font-size:12px; line-height:1.6; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-drop small { color:var(--text-muted); font-size:10px; line-height:1.6; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; list-style:none; padding:0; margin:12px 0 0; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-card { display:flex; align-items:center; gap:4px; min-width:0; padding:8px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-card :is(a,.mt-file-link) { display:flex; align-items:center; gap:10px; flex:1; min-width:0; min-height:48px; color:var(--text); text-decoration:none; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-card a:hover .mt-file-name { text-decoration:underline; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-card img { flex:none; width:48px; height:48px; object-fit:cover; border-radius:6px; background:var(--surface-2); }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-icon { flex:none; display:grid; place-items:center; width:36px; font-size:24px; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-name { min-width:0; overflow-wrap:anywhere; font-size:12px; line-height:1.5; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-name small { display:block; margin-top:3px; color:var(--text-muted); font-size:10px; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-card button { flex:none; min-width:36px; min-height:44px; padding:6px; justify-content:center; font-size:20px; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-queue { list-style:none; padding:0; margin:12px 0; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-queue li { display:flex; flex-direction:column; gap:4px; padding:8px 0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; font-size:12px; line-height:1.5; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-error { color:var(--red,#b42318); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
:is(#view .mt-manual,.mt-task-dialog) :is(.mt-files-status,.mt-files-note) { margin:12px 0; font-size:12px; line-height:1.6; color:var(--text-muted); }
:is(#view .mt-manual,.mt-task-dialog) [data-mt-files-retry] { min-height:44px; font-size:12px; }
:is(#view .mt-manual,.mt-task-dialog) .mt-file-card a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }
#view .mt-manual .mt-file-count { display:inline-block; flex:none; margin-left:6px; color:var(--text-muted); font-size:10px; white-space:nowrap; vertical-align:middle; }
#view .mt-manual .mt-chip .mt-file-count { margin-left:0; font-size:9px; }
@media(max-width:640px) {
  :is(#view .mt-manual,.mt-task-dialog) .mt-file-list { grid-template-columns:minmax(0,1fr); }
  :is(#view .mt-manual,.mt-task-dialog) .mt-file-drop { padding:16px 12px; }
  #view .mt-manual .mt-month .mt-chip { flex-wrap:wrap; }
  #view .mt-manual .mt-month .mt-chip-title { flex-basis:100%; }
}
