/* ---------- WORK WEEK ---------- */
/* Page head: serif title, one subtitle line with a dot, a slim seven-day strip, quiet secondary actions. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-board-title h1 { margin: 0 0 10px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; margin: 0; font-size: 16px; line-height: 1.4; color: var(--at-ink-2); text-shadow: var(--at-text-shadow); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-stat::before { content: ""; width: 8px; height: 8px; margin-inline-end: 5px; border-radius: 50%; background: var(--at-green); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-stat strong { color: var(--at-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day .week-progress-bar { display: block; height: 6px; border-radius: 4px; background: var(--at-fill-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day[data-kind="planned"] .week-progress-bar { background: color-mix(in srgb, var(--at-ink) 26%, transparent); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day[data-kind="today"] .week-progress-bar { background: var(--at-amber); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day.week-progress-complete .week-progress-bar,
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day[data-kind="done"] .week-progress-bar { background: var(--at-green); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day-lab { font-size: 12px; text-align: center; color: var(--at-ink-2); text-shadow: var(--at-text-shadow); }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day-lab { font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-day[data-kind="today"] .week-progress-day-lab { color: var(--at-ink); font-weight: 600; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-progress-caption { margin: 0; font-size: 13px; color: var(--at-ink-2); text-shadow: var(--at-text-shadow); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-board-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; max-width: 560px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-board-actions > button.week-action-secondary:not(:disabled):not(#_):not(#__) { border-color: transparent !important; background: transparent !important; box-shadow: none !important; color: var(--at-ink-2) !important; text-shadow: var(--at-text-shadow); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-board-actions > button.week-action-secondary:not(:disabled):not(#_):not(#__):hover { background: var(--at-hover) !important; color: var(--at-ink) !important; }
/* Today at a glance: three dashboard tiles with a serif figure and a quiet action on the end. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance { margin: 0; padding: 0; background: transparent; border: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-glance-label { margin: 0 0 12px; text-shadow: var(--at-text-shadow); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-card { display: grid !important; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-icon { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0 !important; border-radius: 12px; background: var(--at-fill-2) !important; color: var(--at-green-text); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-card[data-glance="money"] .week-glance-icon { color: var(--at-amber); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-card[data-glance="follow"] .week-glance-icon { color: var(--at-blue); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-title { margin: 0; font-size: 13px; font-weight: 500; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-stat { margin: 0; font-family: var(--at-serif) !important; font-size: 24px !important; line-height: 1.15 !important; color: var(--at-ink) !important; overflow-wrap: anywhere; }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-stat { font-family: var(--at-sans) !important; font-size: 18px !important; font-weight: 500; line-height: 1.4 !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-card[data-glance="money"] .week-glance-stat { color: var(--at-amber) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-cta:not(:disabled) { position: static !important; inset: auto !important; grid-column: auto !important; flex: 0 0 auto !important; display: inline-flex; align-items: center; width: auto; margin: 0; padding: 0 14px; white-space: nowrap; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-planning-note { margin: 14px 0 16px; }
/* Today's focus and money moves: two panels side by side. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-main-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 16px; align-items: start; margin-bottom: 28px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week :is(.week-focus, .week-money) { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px 22px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--at-line); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-day { margin: 2px 0 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-items:not([hidden]) { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-items > li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border-bottom: 1px solid var(--at-line-2); font-size: 14px; color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-items > li:last-child { border-bottom: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-items > li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--at-green); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-task-form { display: flex; flex-direction: column; gap: 10px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-task-form #week-focus-tasks:not(:disabled) { min-height: 64px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-task-form #btn-week-focus-add:not(:disabled) { align-self: flex-start; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-meta-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-hours { display: flex; flex-direction: column; gap: 6px; width: 180px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-count { margin: 0 0 12px; font-size: 13px; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-capacity-prefs { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-capacity-prefs-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-carry-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0; padding: 12px 16px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-money-list { display: flex; flex-direction: column; gap: 14px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-money-rows { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-money-row:not(#_) { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 4px !important; border-radius: 0 !important; background: transparent !important; box-shadow: inset 0 -1px 0 var(--at-line-2) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-money-row:last-child:not(#_) { box-shadow: none !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-money-row button:not(:disabled) { flex: 0 0 auto; }
/* The planning board: seven glass day columns, each with a capacity bar and legend. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-planner-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 8px 0 14px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week.active .week-planner-heading #week-planner-title { margin: 0; text-shadow: var(--at-text-shadow); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-planner-heading > div > p { margin: 4px 0 0; font-size: 13px; color: var(--at-ink-2); text-shadow: var(--at-text-shadow); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-planner { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: stretch; }
@media (min-width: 1360px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-planner { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px 12px 12px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day[data-kind="today"]:not(#_) { box-shadow: inset 0 0 0 1.5px var(--at-green-edge, var(--at-green)), var(--at-sheen), var(--at-shadow) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day.week-drop-target:not(#_) { box-shadow: inset 0 0 0 2px var(--at-green), var(--at-shadow) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day-title { min-width: 0; padding-inline-start: 4px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day-title h3 { margin: 0; font-size: 21px; line-height: 1.15; overflow-wrap: anywhere; }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day-title h3 { font-size: 17px; line-height: 1.4; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day[data-kind="done"] .week-plan-day-title h3 { color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-date { display: block; margin-top: 2px; font-size: 12px; color: var(--at-ink-3); }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-date { font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day[data-kind="today"] .week-plan-badge { color: var(--at-green-text) !important; background: var(--at-green-soft) !important; box-shadow: none !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-done:not(:disabled) { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--at-line) !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important; color: var(--at-ink-3) !important; font-size: 16px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-done[aria-pressed="true"]:not(:disabled) { color: var(--at-green-ink) !important; background: var(--at-green) !important; border-color: var(--at-green) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity-bar { display: block; height: 6px; border-radius: 4px; background: var(--at-fill-3); overflow: hidden; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity-bar > i { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: var(--at-green); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity[data-load="over"] .week-plan-capacity-bar > i { background: var(--at-amber); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity-legend { display: flex; flex-direction: column; gap: 0; margin: 0; font-size: 12px; line-height: 1.45; color: var(--at-ink-3); }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity-legend { font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity-hours { color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity-hours::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 2px; background: var(--at-green); vertical-align: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity[data-load="none"] .week-plan-capacity-hours::before { background: var(--at-fill-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity[data-load="over"] .week-plan-capacity-hours { color: var(--at-amber); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity[data-load="over"] .week-plan-capacity-hours::before { background: var(--at-amber); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-items { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-item:not(#_) { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; gap: 2px 6px; min-height: 44px; padding: 8px 8px 8px 6px !important; cursor: grab; }
html[dir="rtl"] body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-item:not(#_) { padding: 8px 6px 8px 8px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-item:not([draggable="true"]):not(#_) { grid-template-columns: minmax(0, 1fr); cursor: default; padding-block: 10px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-item.week-dragging:not(#_) { opacity: .55; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-item-text { min-width: 0; font-size: 13px; line-height: 1.45; color: var(--at-ink); overflow-wrap: break-word; hyphens: auto; }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-item-text { font-size: 14px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-grip { font-size: 12px; color: var(--at-ink-4); opacity: 1; }
/* the move menu is an icon button (its summary keeps the full spoken name) */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move { min-width: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move[open] { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-end; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move > summary:not(:disabled) {
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0 !important; border: 0; border-radius: 10px; font-size: 0 !important; color: var(--at-ink-3); list-style: none; cursor: pointer;
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move > summary::-webkit-details-marker { display: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move > summary::before {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h11l-3-3M17 17H6l3 3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h11l-3-3M17 17H6l3 3'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move > summary:not(:disabled):hover { background: var(--at-fill-2); color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move select:not(:disabled) { width: 100%; margin-top: 4px; font-size: 13px; }
@media (hover: hover) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move:not([open]) { position: absolute; inset-block-start: 0; inset-inline-end: 0; opacity: 0; transition: opacity var(--at-fast) var(--at-ease); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-move:not([open]) > summary:not(:disabled) { background: var(--at-glass-strong); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-item:is(:hover, :focus-within) .week-plan-move { opacity: 1; }
}
@media (hover: none) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-item[draggable="true"]:not(#_) { grid-template-columns: 8px minmax(0, 1fr) 44px; padding-block: 2px !important; }
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-empty { margin: 0; padding: 12px 4px; font-size: 13px; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-editor { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-editor > summary:not(:disabled) { display: inline-flex; align-items: center; padding: 0 8px; font-size: 13px; list-style: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-editor-body { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--at-line-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-actions > button:not(:disabled):not(#_) { padding: 0 6px; border-color: transparent; background: var(--at-fill-1); font-size: 13px; color: var(--at-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-actions > button:not(:disabled):hover { background: var(--at-fill-2); color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity { padding: 18px 20px; }
@media (min-width: 1360px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-board-actions:not(#_) { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 6px; width: 100%; max-width: none; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-board-actions > button:not(:disabled):not(#_) { flex: 0 0 auto; width: auto; padding: 0 12px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-card { grid-template-columns: 40px minmax(0, 1fr); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-glance-cta:not(:disabled) { grid-column: 1 / -1 !important; justify-content: center; width: 100%; }
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #btn-week-focus-done.done-toggle:not(:disabled):not(#_) { padding: 0 14px; border: 1px solid var(--at-line) !important; background: var(--at-fill-1) !important; box-shadow: none !important; color: var(--at-ink) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #btn-week-focus-done.done-toggle.on:not(:disabled):not(#_) { border-color: color-mix(in srgb, var(--at-green) 45%, transparent) !important; background: var(--at-green-soft) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .done-toggle:not(:disabled) { display: inline-flex; align-items: center; gap: 8px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .done-toggle:not(:disabled) > span[aria-hidden] { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--at-ink-4); font-size: 0; transition: background-color var(--at-fast) var(--at-ease), border-color var(--at-fast) var(--at-ease), transform var(--at-fast) var(--at-ease); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .done-toggle:not(:disabled) > span[aria-hidden]::after { content: ""; width: 11px; height: 11px; background: var(--at-green-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); transition: transform var(--at-med) var(--at-ease); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .done-toggle.on:not(:disabled) > span[aria-hidden] { background: var(--at-green); border-color: var(--at-green); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .done-toggle.on:not(:disabled) > span[aria-hidden]::after { transform: scale(1); }
/* ---------- WORK WEEK · bento r2 (work pages) ---------- */
/* The empty-week prompt is a strip under the glance tiles, not a second centred panel (the glance tiles already carry the action). */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-empty.empty-hint.empty-activate:not([hidden]):not(#_) {
  flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 16px; min-height: 64px; margin: 0 0 16px; padding-block: 10px !important; padding-inline: 20px 12px !important; text-align: start;
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-empty .empty-activate-copy:not(#_) { flex: 1 1 32ch; max-width: none; margin: 0; font-size: 14px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-planning-note:not(#_) { margin: 12px 0 16px; font-size: 13px; }
/* Money moves: when nothing is waiting the glance tile already says so; the empty pane steps aside and Today's focus takes the row. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-main-layout:has(#week-money-list[hidden]):has(#week-money-empty:not([hidden])):not(#_) { grid-template-columns: minmax(0, 1fr); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-main-layout:has(#week-money-list[hidden]) > #week-money:has(#week-money-empty:not([hidden])):not(#_) { display: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-main-layout:not(#_) { align-items: stretch; margin-bottom: 24px; }
/* Today's focus: the plan on the start side, hours and soft limits on the end side. */
@media (min-width: 1001px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus:not(#_) {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; align-content: start; gap: 12px 24px;
  }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > * { grid-column: 1; min-width: 0; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > :is(.week-focus-top, .week-carry-row) { grid-column: 1 / -1; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-focus-top { grid-row: 1; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-focus-items { grid-row: 2; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-focus-task-form { grid-row: 3; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > #week-focus-save-status { grid-row: 4; align-self: start; margin: 0; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > :is(.week-focus-meta-row, .week-capacity-prefs, .week-capacity-hint) { grid-column: 2; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-focus-meta-row { grid-row: 2; align-self: start; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-capacity-prefs { grid-row: 3 / span 2; align-self: start; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-capacity-hint { grid-row: 5; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-carry-row { grid-row: 6; }
  /* the draft field and its Add button sit on one line; the hint reads beside the button */
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-task-form:not(#_) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-task-form > .week-focus-field { grid-column: 1 / -1; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-task-form > #week-focus-draft-hint { grid-column: 1; margin: 0; font-size: 13px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-task-form > #btn-week-focus-add:not(:disabled):not(#_) { grid-column: 2; align-self: center; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus-hours:not(#_) { width: auto; max-width: 220px; }
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-focus-save-status:empty { display: none; }
/* POLISH · Today's focus: plan and hours as one tidy grid, no dead block when the plan is empty; full-width rows */
@media (min-width: 1001px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus:not(#_):not(#__) { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); grid-template-rows: repeat(5, auto); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus:has(> .week-focus-items[hidden]) > .week-focus-task-form,
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus:has(> .week-focus-items:empty) > .week-focus-task-form { grid-row: 2 / span 3; align-self: start; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus .week-focus-hours:not(#_):not(#__) { inline-size: 100%; max-width: none; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-focus-meta-row { display: grid; grid-template-columns: minmax(0, 1fr); }
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week :is(.week-glance, .week-glance-cards, #week-empty, .week-main-layout, #week-planning-note) { inline-size: 100%; max-inline-size: none; box-sizing: border-box; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-board-actions { max-inline-size: none; }
/* Planner: an empty day is short and says so in one line; the two day actions share one row. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day:not(#_) { gap: 10px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-items:empty { display: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-empty:not([hidden]):not(#_) { display: block; min-height: 0; margin: 0; padding: 10px 12px !important; border-radius: 10px !important; background: var(--at-fill-1) !important; font-size: 13px; line-height: 1.45; color: var(--at-ink-3); text-align: start; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-capacity:not(#_) { gap: 4px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-actions:not(#_):not(#__) { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 8px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-actions > button:not(:disabled):not(#_):not(#__) { padding: 0 4px; font-size: 13px; }
/* Deadlines and tracked time: one row of seven days on desktop, never a six-plus-one orphan. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity .week-activity-days:not(#_) { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
@media (min-width: 1280px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity .week-activity-days:not(#_) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity .week-activity-days > li:not(#_) { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 0; margin: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 12px !important; background: var(--at-fill-1) !important; box-shadow: inset 0 0 0 1px var(--at-line-2) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity .week-activity-days > li:not(#_)::before { content: none; display: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity .week-activity-days > li > strong { font-size: 13px; font-weight: 600; color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity .week-activity-days > li > p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--at-ink-3); font-variant-numeric: tabular-nums; }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity .week-activity-days > li > p { font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity .week-activity-days > li > button:not(:disabled):not(#_) { justify-content: flex-start; width: 100%; min-height: 44px; padding: 0 10px; border-color: transparent; background: var(--at-fill-2); font-size: 13px; text-align: start; white-space: normal; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week #week-activity > h2 { margin: 0; font-size: 15px; font-weight: 600; }
/* DENSITY 3 · Work week: Today's focus is one balanced band (the plan | focus hours and soft limits, with the carry-over strip
   under them) instead of a tall two-column card with an empty block under the plan and a full-width strip below; from 1800px day columns put Edit plan, Copy and Clear on one row. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day > .week-plan-day-head:not(#_) { margin-block-end: 2px; }
/* a narrow day (seven across at laptop widths) keeps its name on one line: the Completed / Today badge drops under it */
@media (max-width: 1799px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day > .week-plan-day-head:not(#_) { flex-wrap: wrap; row-gap: 6px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day-head > .week-plan-day-title:not(#_) { flex: 1 1 auto; min-width: 0; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day-head > .week-plan-day-title > h3:not(#_):not(#__) { font-size: 19px; overflow-wrap: normal; word-break: normal; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day-head > .week-plan-badge:not(#_) { order: 3; margin: 0; }
}
html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-focus-task-form:not(#_) { margin: 0; }
@media (min-width: 1280px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus:not(#_):not(#__):not(#___) { grid-template-columns: minmax(0, 1.5fr) minmax(170px, .4fr) minmax(0, 1fr); grid-template-rows: none; gap: 12px 20px; padding: 20px 24px !important; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus:has(> .week-focus-items:is([hidden], :empty)) > .week-focus-task-form:not(#_) { grid-row: 2 / span 2; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-focus-top:not(#_) { padding-block-end: 12px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-focus-meta-row:not(#_) { grid-column: 2; grid-row: 2; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-capacity-prefs:not(#_) { grid-column: 3; grid-row: 2; margin: 0; padding: 10px 14px !important; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-carry-row:not(#_) { grid-column: 2 / -1; grid-row: 3; align-self: end; min-height: 0; margin: 0; padding: 6px 8px 6px 16px !important; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-focus > .week-capacity-hint:not(#_) { grid-column: 2 / -1; grid-row: 4; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-capacity-prefs > .week-capacity-soft-hint:not(#_) { margin: 0 0 6px; }
}
@media (min-width: 1800px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day:not(#_):not(#__) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 8px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day > *:not(#_) { grid-column: 1 / -1; min-width: 0; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day > .week-plan-editor:not([open]):not(#_) { grid-column: 1; align-self: end; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day > .week-plan-actions:not(#_):not(#__):not(#___) { grid-column: 2; align-self: end; grid-template-columns: repeat(2, auto); gap: 4px; padding-top: 0; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-day > .week-plan-editor[open] + .week-plan-actions:not(#_):not(#__):not(#___) { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-week .week-plan-actions > button:not(:disabled):not(#_):not(#__):not(#___) { padding: 0 10px; }
}
