/* The planner owns these surfaces and their local, calendar-based controls. */
html.ui-v2 .pf-body.fit:has(> .pf-plan-workspace) { display: flex; flex-direction: column; overflow: hidden; }
html.ui-v2 .pf-plan-workspace {
  --pl-bg: var(--pf-canvas, #050506); --pl-panel: var(--pf-panel, #0c0d0f); --pl-soft: var(--pf-panel-2, #141518); --pl-hover: var(--pf-panel-3, #1c1d21);
  --pl-line: var(--pf-line, rgba(255,255,255,.07)); --pl-text: var(--pf-text, #f1f1f3); --pl-muted: var(--pf-dim, #a3a3ad);
  --pl-accent: var(--v2-accent, #8da2ff); --pl-green: #a3c397; --pl-dark: #0b1022;
  color: var(--pl-text); font-family: var(--v2-font, Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  width: 100%; flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column;
  font-size: 13px; line-height: 1.5; isolation: isolate; color-scheme: dark;
}
html.ui-v2 .pf-plan-workspace *, html.ui-v2 .pf-plan-workspace *::before, html.ui-v2 .pf-plan-workspace *::after {
  box-sizing: border-box; box-shadow: none !important; outline: none !important; text-shadow: none;
  font-family: inherit; animation: none !important; transition: none;
}
html.ui-v2 .pf-plan-workspace :is(button, input, select, textarea) { font: inherit; }
html.ui-v2 .pf-plan-workspace :is(button, select, summary, label.pf-check, .pf-cal-post) { white-space: nowrap; }
html.ui-v2 .pf-plan-workspace :is(button, input, select, textarea) { min-width: 0; max-width: 100%; }
html.ui-v2 .pf-plan-workspace button { color: var(--pl-text); border: 0; border-radius: 6px; background: var(--pl-soft); cursor: pointer; }
html.ui-v2 .pf-plan-workspace button:hover { color: var(--pl-text); background: var(--pl-hover); }
html.ui-v2 .pf-plan-workspace :is(button, input, select, textarea, summary, a):focus-visible { background-color: var(--pl-hover); color: var(--pl-text); }
html.ui-v2 .pf-plan-workspace :is(input, select, textarea):focus-visible { border-color: var(--pl-accent); text-decoration: none; }
html.ui-v2 .pf-plan-workspace button:disabled { opacity: .5; cursor: default; }
html.ui-v2 .pf-plan-workspace svg { flex-shrink: 0; width: 16px; height: 16px; }
html.ui-v2 .pf-plan-workspace :is(h1, h2, h3, p) { margin: 0; }
html.ui-v2 .pf-plan-workspace h2 { font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
html.ui-v2 .pf-plan-workspace h3 { font-size: 14px; font-weight: 600; }
html.ui-v2 .pf-plan-workspace [hidden] { display: none !important; }
html.ui-v2 .pf-plan-workspace .pf-pl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html.ui-v2 .pf-plan-workspace [data-plan-surface] { min-height: 0; min-width: 0; display: flex; flex: 1; flex-direction: column; }
html.ui-v2 .pf-plan-workspace .pf-pl-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
html.ui-v2 .pf-plan-workspace .pf-h1 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.045em; margin: 0 0 9px; font-weight: 650; }
html.ui-v2 .pf-plan-workspace .pf-pl-heading p { color: var(--pl-muted); font-size: 13px; }
html.ui-v2 .pf-plan-workspace .pf-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 38px; height: auto; padding: 8px 14px; font-size: 13px; font-weight: 600; border: 0; border-radius: 6px; flex-shrink: 0; color: var(--pl-text); background: var(--pl-soft); }
html.ui-v2 .pf-plan-workspace .pf-btn:hover, html.ui-v2 .pf-plan-workspace .pf-btn:focus-visible { color: var(--pl-text); background: var(--pl-hover); }
html.ui-v2 .pf-plan-workspace .pf-btn.primary { color: var(--pl-dark); background: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-btn.primary:hover, html.ui-v2 .pf-plan-workspace .pf-btn.primary:focus-visible { color: var(--pl-dark); background: color-mix(in srgb, var(--pl-accent) 86%, #000); }
html.ui-v2 .pf-plan-workspace .pf-btn.sm { min-height: 34px; padding: 6px 10px; }
/* One row of controls at one height, no box around a box: the search, two
   dropdowns and the toggle each stand alone on the canvas. */
html.ui-v2 .pf-plan-workspace .pf-pl-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) 190px 190px auto; gap: 10px; align-items: center; }
html.ui-v2 .pf-plan-workspace .pf-pl-search { display: flex; align-items: center; gap: 10px; min-width: 0; height: 40px; background: var(--pl-soft); border: 1px solid transparent; border-radius: 10px; padding-left: 12px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-search input { background: transparent; color: var(--pl-text); border: 0; height: 38px; width: 100%; padding: 0 12px 0 0; border-radius: 9px; }
html.ui-v2 .pf-plan-workspace input::placeholder, html.ui-v2 .pf-plan-workspace textarea::placeholder { color: var(--pl-muted); opacity: 1; }
html.ui-v2 .pf-plan-workspace .pf-pl-search:focus-within { border-color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-pl-filter { display: flex; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-filter > span:not(.pf-dd) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.ui-v2 .pf-plan-workspace .pf-pl-filter .pf-dd { width: 100%; }
html.ui-v2 .pf-plan-workspace .pf-pl-filter .pf-dd-btn { height: 40px; border-radius: 10px; background: var(--pl-soft); font-size: 13px; }
html.ui-v2 .pf-plan-workspace .pf-pl-filter .pf-dd-btn:hover { background: var(--pl-hover); }
html.ui-v2 .pf-plan-workspace .pf-pl-mine { height: 40px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
html.ui-v2 .pf-plan-workspace .pf-pl-mine[aria-checked=true] { background: color-mix(in srgb, var(--pl-accent) 16%, var(--pl-panel)); color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-pl-attention { display: flex; align-items: center; gap: 12px; margin: 15px 0 18px; min-width: 0; flex-wrap: wrap; }
html.ui-v2 .pf-plan-workspace .pf-pl-attention > div { display: flex; gap: 3px; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-attention [data-attention] { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: transparent; font-size: 12px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-attention [data-attention][aria-pressed=true] { background: var(--pl-soft); color: var(--pl-text); }
html.ui-v2 .pf-plan-workspace .pf-pl-attention [data-attention] span { color: var(--pl-muted); font-size: 11px; }
html.ui-v2 .pf-plan-workspace .pf-pl-attention [data-attention=overdue] span { color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-pl-clear { padding: 5px 8px; font-size: 12px; background: transparent; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-sync { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--pl-muted); margin-left: auto; }
html.ui-v2 .pf-plan-workspace .pf-pl-sync button { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: transparent; }
html.ui-v2 .pf-plan-workspace .pf-pl-sync[role=alert], html.ui-v2 .pf-plan-workspace .pf-pl-notice { color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-pl-notice { margin: 0 0 10px; font-size: 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-schedule-head { display: flex; gap: 18px; align-items: center; padding: 0 0 13px; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-schedule-head h2 { margin-right: auto; }
html.ui-v2 .pf-plan-workspace .pf-pl-views { display: flex; gap: 3px; background: var(--pl-panel); padding: 3px; border-radius: 7px; }
html.ui-v2 .pf-plan-workspace .pf-pl-views button { background: transparent; padding: 6px 10px; min-height: 31px; font-size: 12px; color: var(--pl-muted); border-radius: 4px; }
html.ui-v2 .pf-plan-workspace .pf-pl-views button[aria-pressed=true] { background: var(--pl-hover); color: var(--pl-text); }
html.ui-v2 .pf-plan-workspace .pf-pl-navigation { display: flex; gap: 3px; }
html.ui-v2 .pf-plan-workspace .pf-pl-navigation button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; min-width: 30px; padding: 5px 9px; font-size: 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-navigation svg { width: 14px; height: 14px; }
html.ui-v2 .pf-plan-workspace .pf-pl-navigation .prev svg { transform: rotate(90deg); }
html.ui-v2 .pf-plan-workspace .pf-pl-navigation .next svg { transform: rotate(-90deg); }
html.ui-v2 .pf-plan-workspace .pf-pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .39fr); gap: 20px; flex: 1; min-height: 0; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-board { min-width: 0; min-height: 0; display: block; overflow: auto; border: 0; background: var(--pl-panel); border-radius: 12px; scrollbar-width: thin; scrollbar-color: #36363d transparent; padding: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-sidebar { min-height: 0; min-width: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #36363d transparent; }
html.ui-v2 .pf-plan-workspace .pf-pl-cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0; position: sticky; top: 0; z-index: 1; background: var(--pl-panel); }
html.ui-v2 .pf-plan-workspace .pf-pl-cal-head span { text-align: center; padding: 10px 0; font-size: 10px; color: var(--pl-muted); font-weight: 500; border-bottom: 1px solid var(--pl-line); }
html.ui-v2 .pf-plan-workspace .pf-pl-cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
html.ui-v2 .pf-plan-workspace .pf-cal-day { display: flex; flex-direction: column; min-width: 0; min-height: 105px; padding: 5px 4px 7px; border: 0; border-right: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); background: transparent; }
html.ui-v2 .pf-plan-workspace .pf-cal-day:last-child { border-right: 0; }
html.ui-v2 .pf-plan-workspace .pf-cal-day.out { background: rgba(0, 0, 0, .12); }
html.ui-v2 .pf-plan-workspace .pf-cal-day.out .pf-cal-dayb { color: var(--pl-muted); }
/* Today is its number and the word, in the accent. The cell itself stays
   like every other day: a filled cell read as a box around the date. */
html.ui-v2 .pf-plan-workspace .pf-cal-day.today { background: transparent; }
html.ui-v2 .pf-plan-workspace .pf-cal-dayb { align-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 27px; height: 26px; font-size: 11px; padding: 3px 5px; margin: 0 0 4px; border-radius: 4px; background: transparent; color: var(--pl-text); }
/* Today reads through the accent colour of its date and the faint tint of
   its cell, not a filled chip squeezed around the number. */
html.ui-v2 .pf-plan-workspace .pf-cal-day.today .pf-cal-dayb { gap: 6px; color: var(--pl-accent); font-weight: 700; background: transparent; }
html.ui-v2 .pf-plan-workspace .pf-cal-day.today .pf-cal-dayb:hover { background: var(--pl-hover); }
html.ui-v2 .pf-plan-workspace .pf-cal-dayb small { font-size: 10px; font-weight: 600; color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-pl-day-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; min-height: 24px; width: 100%; max-width: 100%; border: 0; border-radius: 4px; padding: 4px 5px; text-align: left; font-size: 10px; line-height: 1.4; background: #303624; color: var(--c, #dce2cc); overflow: hidden; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip.s-doing { background: #293d2d; color: var(--c, #b6d0ad); }
html.ui-v2 .pf-plan-workspace .pf-cal-chip.s-done { background: #262c25; color: #9daa96; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip b { font-size: 9px; font-weight: 500; flex-shrink: 0; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip .pf-task-ico { width: 12px; height: 12px; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip .pf-task-ico svg { width: 12px; height: 12px; }
html.ui-v2 .pf-plan-workspace .pf-cal-post { display: flex; align-items: center; gap: 5px; font-size: 10px; text-decoration: none; padding: 4px 5px; border: 0; border-radius: 4px; background: transparent; color: var(--pl-muted); min-height: 24px; min-width: 0; max-width: 100%; }
html.ui-v2 .pf-plan-workspace .pf-cal-post > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-cal-post img { width: 12px; height: 12px; border-radius: 0; object-fit: contain; flex-shrink: 0; }
html.ui-v2 .pf-plan-workspace .pf-cal-more { background: transparent; color: var(--pl-muted); font-size: 10px; padding: 3px 5px; text-align: left; }
html.ui-v2 .pf-plan-workspace .pf-pl-calendar.week .pf-cal-day { min-height: 400px; padding: 10px 5px; }
html.ui-v2 .pf-plan-workspace .pf-pl-calendar.week .pf-cal-dayb { display: flex; justify-content: start; width: 100%; padding: 4px; height: auto; gap: 6px; font-size: 12px; margin-bottom: 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-calendar.week .pf-cal-dayb span:first-child { font-size: 10px; }
html.ui-v2 .pf-plan-workspace .pf-pl-calendar-help { color: var(--pl-muted); padding: 12px 14px 0; font-size: 10px; }
html.ui-v2 .pf-plan-workspace .pf-pl-calendar-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; color: var(--pl-muted); font-size: 10px; }
html.ui-v2 .pf-plan-workspace .pf-pl-calendar-foot label { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
html.ui-v2 .pf-plan-workspace input[type=checkbox] { accent-color: var(--pl-accent); width: 13px; height: 13px; margin: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-tasklist > header { display: flex; gap: 8px; align-items: baseline; padding: 3px 0 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-tasklist h2 { font-size: 14px; }
html.ui-v2 .pf-plan-workspace .pf-tasks-n { font-size: 11px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-task { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 13px 0; background: transparent; border: 0; border-bottom: 1px solid var(--pl-line); border-radius: 0; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-task:first-child { padding-top: 0; }
html.ui-v2 .pf-plan-workspace .pf-task-t { display: flex; gap: 7px; align-items: center; padding: 0; min-width: 0; height: auto; max-width: 100%; background: transparent; color: var(--pl-text); font-size: 13px; font-weight: 550; text-align: left; line-height: 1.5; white-space: nowrap; }
html.ui-v2 .pf-plan-workspace .pf-task-t > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-v2 .pf-plan-workspace .pf-task-t:hover { background: transparent; color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-task-ico { display: inline-flex; width: 14px; height: 14px; flex-shrink: 0; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-task-ico svg { width: 14px; height: 14px; }
html.ui-v2 .pf-plan-workspace .pf-pl-task-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; flex-wrap: wrap; }
html.ui-v2 .pf-plan-workspace .pf-task-who { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; color: var(--pl-muted); font-size: 10px; }
html.ui-v2 .pf-plan-workspace .pf-task-who > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html.ui-v2 .pf-plan-workspace .pf-faces { display: inline-flex; gap: 2px; flex-shrink: 0; }
html.ui-v2 .pf-plan-workspace .pf-task-face { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; background: #34412b; color: #c8d8b8; font-size: 9px; line-height: 1; border: 0; margin: 0; flex-shrink: 0; }
html.ui-v2 .pf-plan-workspace .pf-task-due { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 10px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-task-due.late { color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-task-clip { display: inline-flex; align-items: center; gap: 3px; }
html.ui-v2 .pf-plan-workspace .pf-task-clip svg { width: 11px; height: 11px; }
html.ui-v2 .pf-plan-workspace .pf-pl-task-controls { display: flex; gap: 4px; align-items: center; }
html.ui-v2 .pf-plan-workspace .pf-task-status { margin-right: auto; width: auto; max-width: 135px; height: 28px; border: 0; border-radius: 4px; background: var(--pl-soft); color: var(--pl-muted); font-size: 10px; padding: 4px 18px 4px 7px; }
html.ui-v2 .pf-plan-workspace .pf-task-status.s-doing { color: #bed1ad; background: #293526; }
html.ui-v2 .pf-plan-workspace .pf-task-status.s-done { color: #9cba9b; background: #233227; }
html.ui-v2 .pf-plan-workspace .pf-task-act { display: inline-flex; align-items: center; justify-content: center; padding: 5px; width: 28px; height: 28px; background: transparent; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-task-act svg { width: 13px; height: 13px; }
html.ui-v2 .pf-plan-workspace .pf-pl-activity { margin-top: 20px; color: var(--pl-muted); border: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-activity summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 11px 0; font-size: 12px; color: var(--pl-text); border-bottom: 1px solid var(--pl-line); }
html.ui-v2 .pf-plan-workspace .pf-pl-activity summary span { color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-activity ol { list-style: none; margin: 0; padding: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-activity li { padding: 10px 0; border-bottom: 1px solid var(--pl-line); font-size: 11px; }
html.ui-v2 .pf-plan-workspace .pf-pl-activity b { font-weight: 500; color: var(--pl-text); }
html.ui-v2 .pf-plan-workspace .pf-pl-activity time { display: inline-block; margin-top: 3px; font-size: 10px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-layout.agenda { grid-template-columns: minmax(0, 1fr) minmax(220px, .27fr); }
html.ui-v2 .pf-plan-workspace .agenda .pf-pl-activity { margin-top: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-agenda { padding: 4px 20px 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--pl-line); }
html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day:last-child { border-bottom: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day > header button { background: transparent; display: flex; flex-direction: column; align-items: start; gap: 2px; padding: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day > header button span:first-child { font-size: 17px; font-weight: 600; color: var(--pl-text); }
html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day > header button span:last-child { font-size: 11px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day > header p { font-size: 11px; color: var(--pl-muted); margin-top: 8px; }
html.ui-v2 .pf-plan-workspace .pf-pl-published { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
html.ui-v2 .pf-plan-workspace .pf-pl-published > span { font-size: 10px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-published .pf-cal-post { padding-left: 0; font-size: 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-empty { padding: 60px 24px; text-align: center; }
html.ui-v2 .pf-plan-workspace .pf-pl-empty p { color: var(--pl-muted); margin-top: 8px; }
html.ui-v2 .pf-plan-workspace .pf-pl-caption { color: var(--pl-muted); font-size: 12px; line-height: 1.5; }
/* Native dialogs retain focus and the draft while the calendar refreshes. */
html.ui-v2 .pf-plan-workspace .pf-day { margin: auto; inset: 0; width: min(620px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--pl-line); border-radius: 14px; background: var(--pl-panel); color: var(--pl-text); overflow: auto; }
html.ui-v2 .pf-plan-workspace .pf-day::backdrop { background: rgba(3, 3, 5, .76); backdrop-filter: none; }
html.ui-v2 .pf-plan-workspace .pf-day-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--pl-line); background: var(--pl-panel); }
html.ui-v2 .pf-plan-workspace .pf-day-head h2 { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: 19px; margin: 0; }
html.ui-v2 .pf-plan-workspace .pf-day-body { padding: 20px 22px; overflow: visible; }
html.ui-v2 .pf-plan-workspace .pf-day-body > h3 { margin-bottom: 14px; }
html.ui-v2 .pf-plan-workspace .pf-day-body > .pf-task + h3 { margin-top: 20px; }
html.ui-v2 .pf-plan-workspace .pf-day-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--pl-line); }
html.ui-v2 .pf-plan-workspace .pf-task-new { display: flex; flex-direction: column; gap: 17px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
html.ui-v2 .pf-plan-workspace .pf-field { display: flex; flex-direction: column; align-items: stretch; min-width: 0; gap: 7px; }
html.ui-v2 .pf-plan-workspace .pf-field-l { font-size: 12px; color: var(--pl-text); font-weight: 500; line-height: 1.4; }
html.ui-v2 .pf-plan-workspace .pf-input { border: 1px solid var(--pl-line); border-radius: 7px; background: var(--pl-bg); color: var(--pl-text); padding: 10px 11px; width: 100%; height: auto; min-height: 40px; font-size: 13px; }
html.ui-v2 .pf-plan-workspace textarea.pf-input { resize: vertical; min-height: 90px; line-height: 1.6; }
html.ui-v2 .pf-plan-workspace .pf-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; background: transparent; border: 0; }
html.ui-v2 .pf-plan-workspace .pf-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 0; border-radius: 5px; background: var(--pl-soft); color: var(--pl-muted); font-size: 12px; padding: 6px 9px; height: auto; overflow: hidden; text-overflow: ellipsis; }
html.ui-v2 .pf-plan-workspace .pf-tag[aria-pressed=true] { background: color-mix(in srgb, var(--pl-accent) 16%, var(--pl-panel)); color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-tag .pf-task-face { width: 17px; height: 17px; font-size: 8px; }
html.ui-v2 .pf-plan-workspace .pf-status-seg { display: flex; gap: 5px; }
html.ui-v2 .pf-plan-workspace .pf-status-seg button { padding: 8px 12px; font-size: 12px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-status-seg button[aria-checked=true] { background: color-mix(in srgb, var(--pl-accent) 16%, var(--pl-panel)); color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-pl-form-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); gap: 14px; align-items: start; }
html.ui-v2 .pf-plan-workspace .pf-check { display: inline-flex; align-items: center; gap: 7px; min-height: 17px; font-size: 12px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-attach-list { list-style: none; margin: 0; padding: 0; }
html.ui-v2 .pf-plan-workspace .pf-attach-i { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--pl-line); }
html.ui-v2 .pf-plan-workspace .pf-attach-n { color: var(--pl-text); font-size: 12px; overflow-wrap: anywhere; min-width: 0; text-decoration: none; flex: 1; }
html.ui-v2 .pf-plan-workspace .pf-attach-s { color: var(--pl-muted); font-size: 10px; white-space: nowrap; }
html.ui-v2 .pf-plan-workspace .pf-attach-x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 5px; flex-shrink: 0; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace [data-addfiles] { align-self: start; }
html.ui-v2 .pf-plan-workspace .pf-pl-appearance summary { font-size: 12px; color: var(--pl-muted); cursor: pointer; padding: 3px 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-appearance .pf-field { margin-top: 14px; }
html.ui-v2 .pf-plan-workspace .pf-icons, html.ui-v2 .pf-plan-workspace .pf-colors { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; border: 0; }
html.ui-v2 .pf-plan-workspace .pf-icon-btn, html.ui-v2 .pf-plan-workspace .pf-color-btn { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 5px; width: 31px; height: 31px; padding: 7px; background: var(--pl-soft); color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-icon-btn[aria-pressed=true] { background: var(--pl-hover); color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace .pf-color-btn { background: var(--c); width: 27px; height: 27px; opacity: .6; }
html.ui-v2 .pf-plan-workspace .pf-color-btn[aria-pressed=true] { opacity: 1; }
html.ui-v2 .pf-plan-workspace .pf-color-btn[aria-pressed=true]::after { content: ''; display: block; width: 5px; height: 12px; border: solid #24321b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
html.ui-v2 .pf-plan-workspace .pf-task-submitrow { display: flex; justify-content: flex-end; gap: 9px; margin: 3px 0 0; padding-top: 17px; border-top: 1px solid var(--pl-line); }
html.ui-v2 .pf-plan-workspace .pf-pl-form-error, html.ui-v2 .pf-plan-workspace [data-deleteerror] { color: var(--pl-accent); font-size: 12px; }
html.ui-v2 .pf-plan-workspace .pf-task-view-notes { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--pl-text); margin-bottom: 20px; }
html.ui-v2 .pf-plan-workspace .pf-task-view-meta { display: grid; gap: 12px; margin: 0 0 24px; }
html.ui-v2 .pf-plan-workspace .pf-task-view-meta > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
html.ui-v2 .pf-plan-workspace .pf-task-view-meta dt { font-size: 12px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-task-view-meta dd { margin: 0; }
@media (max-width: 1240px) {
  html.ui-v2 .pf-plan-workspace .pf-pl-layout, html.ui-v2 .pf-plan-workspace .pf-pl-layout.agenda { grid-template-columns: minmax(0, 1fr); }
  html.ui-v2 .pf-plan-workspace .pf-pl-sidebar { display: none; }
  html.ui-v2 .pf-plan-workspace .pf-pl-layout.agenda .pf-pl-sidebar { display: block; overflow: visible; }
  html.ui-v2 .pf-plan-workspace .pf-pl-layout.agenda { overflow: auto; display: block; }
  html.ui-v2 .pf-plan-workspace .agenda .pf-pl-board { overflow: visible; }
}
@media (max-width: 1000px) {
  html.ui-v2 .pf-plan-workspace .pf-pl-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  html.ui-v2 .pf-plan-workspace .pf-pl-search { grid-column: 1 / -1; }
  html.ui-v2 .pf-plan-workspace .pf-pl-heading { padding-bottom: 18px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-sync { width: 100%; margin: 0; justify-content: flex-end; }
  html.ui-v2 .pf-plan-workspace .pf-pl-attention { gap: 3px; margin-bottom: 10px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-schedule-head { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 760px) {
  html.ui-v2 .pf-body.fit:has(> .pf-plan-workspace) { overflow-y: auto; display: block; }
  html.ui-v2 .pf-plan-workspace { display: block; min-height: 100%; }
  html.ui-v2 .pf-plan-workspace [data-plan-surface] { display: block; }
  html.ui-v2 .pf-plan-workspace .pf-pl-heading { align-items: flex-start; gap: 8px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-heading p { max-width: 230px; font-size: 11px; }
  html.ui-v2 .pf-plan-workspace .pf-h1 { font-size: 29px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-heading .pf-btn { font-size: 12px; min-height: 36px; padding: 7px 10px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-filter .pf-dd-btn, html.ui-v2 .pf-plan-workspace .pf-pl-mine { height: 38px; font-size: 12px; padding: 0 9px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-attention { margin: 10px 0 16px; gap: 7px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-attention > div { width: 100%; justify-content: flex-start; gap: 2px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-attention [data-attention] { gap: 4px; padding: 7px 6px; font-size: 11px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-sync { justify-content: flex-start; font-size: 10px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-schedule-head { display: flex; flex-wrap: wrap; gap: 10px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-schedule-head h2 { width: 100%; font-size: 17px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-views button { padding: 6px 8px; font-size: 11px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-navigation { margin-left: auto; }
  html.ui-v2 .pf-plan-workspace .pf-pl-navigation button { padding: 5px 6px; min-width: 27px; font-size: 11px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-layout, html.ui-v2 .pf-plan-workspace .pf-pl-layout.agenda { display: block; overflow: visible; }
  html.ui-v2 .pf-plan-workspace .pf-pl-board { border-radius: 9px; overflow: visible; }
  /* The month fits the phone: seven narrow days, entries as short marks
     rather than a grid that scrolls sideways. */
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar { overflow-x: auto; }
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar.month .pf-cal-day { min-height: 64px; padding: 4px 2px 5px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar.month .pf-cal-dayb { min-width: 0; padding: 2px 3px; height: 22px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar.month .pf-cal-dayb small { display: none; }
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar.month :is(.pf-cal-chip, .pf-cal-post) { min-height: 16px; padding: 2px 3px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar.month :is(.pf-cal-chip, .pf-cal-post) > span:last-child { display: none; }
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar.week .pf-pl-cal-row { min-width: 700px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar-help { padding: 10px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-calendar-foot { align-items: start; flex-direction: column; gap: 5px; padding: 10px; font-size: 10px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-agenda { padding: 0 13px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day > header button { flex-direction: row; align-items: baseline; gap: 8px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-agenda-day > header p { margin-top: 4px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-sidebar { padding: 0 2px; }
  html.ui-v2 .pf-plan-workspace .pf-task { padding: 13px 0; }
  html.ui-v2 .pf-plan-workspace .pf-task-t { font-size: 13px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-task-meta { font-size: 11px; }
  html.ui-v2 .pf-plan-workspace .pf-task-status { height: 31px; font-size: 11px; }
  html.ui-v2 .pf-plan-workspace .pf-task-act { height: 32px; width: 32px; }
  html.ui-v2 .pf-plan-workspace .pf-day { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 10px; }
  html.ui-v2 .pf-plan-workspace .pf-day-head { padding: 16px; }
  html.ui-v2 .pf-plan-workspace .pf-day-body { padding: 16px; }
  html.ui-v2 .pf-plan-workspace .pf-day-foot { padding: 14px 16px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-form-dates { grid-template-columns: minmax(0, 1fr); }
  html.ui-v2 .pf-plan-workspace .pf-status-seg { gap: 4px; }
  html.ui-v2 .pf-plan-workspace .pf-status-seg button { font-size: 11px; padding: 8px 9px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-task-meta .pf-task-due { font-size: 10px; }
}
/* A dropdown fills its grid cell, never the width of the select it replaced. */
html.ui-v2 .pf-plan-workspace .pf-pl-filter .pf-dd { min-width: 0 !important; }
html.ui-v2 .pf-plan-workspace .pf-cal-day.today .pf-cal-dayb { width: auto; max-width: none; overflow: visible; }
/* Where the four controls do not fit one row, the search takes a row of its
   own and the other three share the next, evenly. */
@media (max-width: 1200px) {
  html.ui-v2 .pf-plan-workspace .pf-pl-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.ui-v2 .pf-plan-workspace .pf-pl-search { grid-column: 1 / -1; }
  html.ui-v2 .pf-plan-workspace .pf-pl-mine { width: 100%; }
}

/* Production semantics: posts, what a task waits on, reviews, team time. */
html.ui-v2 .pf-plan-workspace .pf-pl-kindrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; align-items: end; }
html.ui-v2 .pf-plan-workspace .pf-pl-platforms { display: flex; gap: 6px; }
html.ui-v2 .pf-plan-workspace .pf-pl-platforms button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: var(--pl-soft); }
html.ui-v2 .pf-plan-workspace .pf-pl-platforms button svg { width: 20px; height: 20px; }
html.ui-v2 .pf-plan-workspace .pf-pl-platforms button[aria-checked="true"] { background: color-mix(in srgb, var(--pl-accent) 20%, var(--pl-panel)); }
html.ui-v2 .pf-plan-workspace .pf-task-plat svg { width: 14px; height: 14px; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip .pf-task-plat svg { width: 12px; height: 12px; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip.post { background: color-mix(in srgb, var(--pl-accent) 16%, var(--pl-panel)); color: var(--c, #dfe5ff); }
html.ui-v2 .pf-plan-workspace .pf-cal-chip.s-done.post { background: #1f2231; color: #a4abc6; }
html.ui-v2 .pf-plan-workspace .pf-cal-chip > span:last-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
html.ui-v2 .pf-plan-workspace .pf-chip-flag { display: inline-flex; flex-shrink: 0; color: #e3bf68; }
html.ui-v2 .pf-plan-workspace .pf-chip-flag svg { width: 11px; height: 11px; }
html.ui-v2 .pf-plan-workspace .pf-pl-deps { display: flex; flex-wrap: wrap; gap: 6px; }
html.ui-v2 .pf-plan-workspace .pf-pl-deps:empty { display: none; }
html.ui-v2 .pf-plan-workspace .pf-pl-dep { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 6px; background: var(--pl-soft); font-size: 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-dep > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-dep button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; background: transparent; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-dep button svg { width: 12px; height: 12px; }
html.ui-v2 .pf-plan-workspace [data-depadd] { margin-top: 8px; width: 100%; }
html.ui-v2 .pf-plan-workspace .pf-pl-state { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--pl-muted); white-space: nowrap; }
html.ui-v2 .pf-plan-workspace .pf-pl-state svg { width: 12px; height: 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-state.wait { color: #e3bf68; }
html.ui-v2 .pf-plan-workspace :is(.pf-pl-state, .pf-pl-review-state).r-approved { color: var(--pl-green); }
html.ui-v2 .pf-plan-workspace :is(.pf-pl-state, .pf-pl-review-state).r-requested { color: var(--pl-accent); }
html.ui-v2 .pf-plan-workspace :is(.pf-pl-state, .pf-pl-review-state):is(.r-changes, .r-stale) { color: #e3bf68; }
html.ui-v2 .pf-plan-workspace .pf-pl-zone { display: inline-flex; align-items: center; gap: 8px; color: var(--pl-muted); font-size: 11px; }
html.ui-v2 .pf-plan-workspace .pf-pl-zone select { width: 190px; min-height: 30px; font-size: 12px; }
html.ui-v2 .pf-plan-workspace .pf-task-view-meta dd small { display: block; margin-top: 2px; color: var(--pl-muted); font-size: 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-platname { display: inline-flex; align-items: center; gap: 7px; }
html.ui-v2 .pf-plan-workspace .pf-pl-platname svg { width: 16px; height: 16px; }
html.ui-v2 .pf-plan-workspace .pf-pl-waits { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 4px; }
html.ui-v2 .pf-plan-workspace .pf-pl-waits li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.ui-v2 .pf-plan-workspace .pf-pl-waits li > button { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; background: transparent; }
html.ui-v2 .pf-plan-workspace .pf-pl-waits li > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-v2 .pf-plan-workspace .pf-pl-waits li > span { font-size: 12px; color: #e3bf68; flex-shrink: 0; }
html.ui-v2 .pf-plan-workspace .pf-pl-waits li.done > span { color: var(--pl-green); }
html.ui-v2 .pf-plan-workspace .pf-pl-review { display: grid; gap: 12px; margin: 8px 0 24px; }
html.ui-v2 .pf-plan-workspace .pf-pl-review-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html.ui-v2 .pf-plan-workspace .pf-pl-reviews li { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; }
html.ui-v2 .pf-plan-workspace .pf-pl-reviews li span { color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-reviews li p { flex-basis: 100%; color: var(--pl-muted); }
html.ui-v2 .pf-plan-workspace .pf-pl-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
html.ui-v2 .pf-plan-workspace .pf-pl-decide { display: grid; gap: 8px; }
html.ui-v2 .pf-plan-workspace .pf-pl-decide-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html.ui-v2 .pf-plan-workspace .pf-pl-attention > div { flex-wrap: wrap; }
@media (max-width: 640px) {
  html.ui-v2 .pf-plan-workspace .pf-pl-kindrow { grid-template-columns: minmax(0, 1fr); }
  html.ui-v2 .pf-plan-workspace .pf-pl-zone select { width: 100%; }
  html.ui-v2 .pf-plan-workspace .pf-pl-zone { width: 100%; }
}

/* On a phone the selection is one line that scrolls sideways, never four
   over one. Every choice keeps its whole label. */
@media (max-width: 480px) {
  html.ui-v2 .pf-plan-workspace .pf-pl-attention > div { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  html.ui-v2 .pf-plan-workspace .pf-pl-attention > div::-webkit-scrollbar { display: none; }
  html.ui-v2 .pf-plan-workspace .pf-pl-attention [data-attention] { flex: 0 0 auto; white-space: nowrap; padding: 7px 9px; }
}
/* The narrowest phones: the search on its own row, and the two filters and
   the switch on the next, each as wide as its own label so none is cut. */
@media (max-width: 400px) {
  html.ui-v2 .pf-plan-workspace .pf-pl-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-search { flex: 1 1 100%; }
  html.ui-v2 .pf-plan-workspace .pf-pl-filter { flex: 1 1 0; min-width: max-content; }
  html.ui-v2 .pf-plan-workspace .pf-pl-filter .pf-dd-btn { padding: 0 8px; gap: 5px; font-size: 11.5px; }
  html.ui-v2 .pf-plan-workspace .pf-pl-mine { flex: 1 1 0; min-width: max-content; padding: 0 8px; font-size: 11.5px; white-space: nowrap; }
}
