/* Shared CSS foundations only. Feature presentation belongs in
   public/modules/<feature>.css; see docs/css-standards.md. */
:root {
  color-scheme:light;
  --ink:#1f2d3d;
  --muted:#627184;
  --line:#d1d9e3;
  --paper:#f7f8fa;
  --canvas:#e9edf2;
  --green:#226f8c;
  --green-dark:#15536d;
  --green-soft:#dcebf1;
  --warm:#c98b35;
  --red:#bd4055;
  --capacity-project:#f2b36a;
  --capacity-workday:#579bfc;
  --capacity-transit:#d79bb8;
  --capacity-personal-plan:#b77cdd;
  --capacity-free:#8fb565;
  --task-completion-size:12px;
  --task-control-width:76px;
  --task-control-gap:16px;
  --shadow:0 14px 38px rgba(35,53,72,.10);
  font-family:"Segoe UI",system-ui,sans-serif;
}

.today-project-work-link {
  color:var(--text);
  font-size:9px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none
}

.today-project-work-link:hover {
  color:var(--green)
}

.agile-initiative-row[draggable="true"] {
  cursor:grab
}

.agile-initiative-row.dragging {
  opacity:.45
}

.agile-initiative-row.drag-over {
  background:var(--green-soft);
  box-shadow:inset 0 2px 0 var(--green)
}

.agile-initiative-drag-grip {
  color:var(--muted);
  font-size:14px;
  line-height:1;
  text-align:center
}

* {
  box-sizing:border-box;
}

.today-commitment-group .agenda-check.agenda-initiative-dot {
  border:0;
  border-radius:50%;
  background:var(--initiative-color)
}

body {
  margin:0;
  min-width:780px;
  background:var(--canvas);
  color:var(--ink);
}

html {
  scrollbar-color:#59607d #171a30;
}

html::-webkit-scrollbar {
  width:12px;
  height:12px;
}

html::-webkit-scrollbar-track {
  background:#171a30;
}

html::-webkit-scrollbar-thumb {
  background:#59607d;
  border:3px solid #171a30;
  border-radius:999px;
}

html::-webkit-scrollbar-thumb:hover {
  background:#78819f;
}

button,input,textarea,select {
  font:inherit;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  color:inherit;
}

.boot,.fatal {
  display:grid;
  place-content:center;
  min-height:100vh;
  text-align:center;
}

.topbar {
  height:68px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 22px;
  background:#f8f8f4;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:20;
}

.brand {
  width:196px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:17px;
  font-weight:700;
  letter-spacing:-.02em;
}

.brand-mark {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:white;
  background:var(--green);
  font-size:15px;
}

.workspace-switch {
  border:0;
  background:transparent;
  font-weight:600;
  cursor:pointer;
  min-width:150px;
  text-align:left;
}

.workspace-switch span {
  color:var(--muted);
  padding-left:5px;
}

.search-trigger {
  margin:auto;
  width:min(440px,38vw);
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:white;
  color:var(--muted);
  padding:9px 12px;
  cursor:pointer;
  text-align:left;
  box-shadow:0 1px 2px rgba(0,0,0,.02);
}

.search-trigger span {
  flex:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

kbd {
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:5px;
  font-size:11px;
  padding:2px 5px;
}

.saved-indicator {
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.saved-indicator i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#5f927d;
}

.theme-toggle {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  color:var(--muted);
  padding:8px 10px;
  cursor:pointer;
  font-size:11px;
  white-space:nowrap;
}

.theme-toggle span {
  color:var(--ink);
  font-size:14px;
}

.layout {
  display:grid;
  grid-template-columns:280px minmax(0,1fr) 0;
  min-height:calc(100vh - 68px);
  transition:grid-template-columns .2s ease;
}

.layout:has(.detail-pane.open) {
  grid-template-columns:280px minmax(0,1fr) 400px;
}

.sidebar {
  padding:22px 13px 16px;
  border-right:1px solid var(--line);
  background:#f8f8f4;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:68px;
  height:calc(100vh - 68px);
  overflow:auto;
}

.nav-link {
  min-height:40px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:7px 10px;
  border-radius:9px;
  margin:2px 0;
  font-size:14px;
  color:#555a56;
}

.nav-link:hover {
  background:#edeee8;
  color:var(--ink);
}

.nav-link.active {
  background:var(--green-soft);
  color:var(--green-dark);
  font-weight:600;
}

.nav-icon {
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:grid;
  place-items:center;
  color:#6d746f;
}

.nav-icon svg {
  width:18px;
  height:18px;
  display:block;
}

.count {
  margin-left:auto;
  background:#e5e5df;
  border-radius:12px;
  min-width:20px;
  padding:2px 6px;
  font-size:11px;
  text-align:center;
}

.nav-section {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:24px 9px 8px;
  color:#8b8e89;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:10px;
  font-weight:700;
}

.nav-section button {
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:16px;
  color:#777d78;
}

.project-links .nav-link {
  font-size:13px;
}

.new-workspace {
  margin-top:auto;
  border:0;
  background:transparent;
  color:var(--muted);
  text-align:left;
  padding:10px;
  cursor:pointer;
}

.main {
  min-width:0;
  padding:42px clamp(32px,5vw,76px) 70px;
}

.detail-pane {
  width:0;
  overflow:hidden;
  background:var(--paper);
  border-left:0 solid var(--line);
  position:sticky;
  top:68px;
  height:calc(100vh - 68px);
}

.detail-pane.open {
  width:auto;
  overflow:auto;
  border-left-width:1px;
  box-shadow:-12px 0 32px rgba(39,43,41,.04);
}

.page-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:30px;
  margin-bottom:34px;
}

.page-title-with-icon {
  display:inline-flex;
  align-items:center;
  gap:9px
}

.page-title-with-icon .nav-icon {
  width:25px;
  height:25px;
  flex:0 0 25px;
  color:var(--green)
}

.page-title-with-icon .nav-icon svg {
  width:25px;
  height:25px
}

.eyebrow,.panel-label {
  color:#738179;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:10px;
  font-weight:700;
}

h1,h2,h3 {
  letter-spacing:-.035em;
  margin:0;
}

h1 {
  margin-top:5px;
  font-size:34px;
  line-height:1.15;
}

.project-title {
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  font:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  line-height:inherit;
  cursor:text;
  text-align:left;
}

.project-title:hover {
  text-decoration:underline;
  text-decoration-color:var(--line);
  text-underline-offset:5px;
}

.project-title-input {
  width:min(100%,620px);
  border:1px solid var(--green);
  border-radius:7px;
  background:var(--paper);
  color:var(--ink);
  padding:1px 7px;
  font:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  line-height:inherit;
  outline:0;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 16%,transparent);
}

.project-menu-list {
  padding:9px;
  display:grid;
  gap:2px;
}

.project-menu-list button {
  border:0;
  border-radius:8px;
  background:transparent;
  padding:11px 13px;
  text-align:left;
  cursor:pointer;
}

.project-menu-list button:hover {
  background:var(--canvas);
}

.project-menu-list hr {
  width:100%;
  border:0;
  border-top:1px solid var(--line);
  margin:7px 0;
}

.project-menu-list .danger,.danger-button {
  color:#b43248;
}

.danger-button {
  border:1px solid #b43248;
  border-radius:9px;
  background:#fff;
  padding:9px 16px;
  cursor:pointer;
  font-weight:600;
}

.project-menu-group {
  display:grid;
  gap:2px;
  padding:9px 0
}

.project-menu-group+.project-menu-group {
  border-top:1px solid var(--line)
}

.project-menu-group>p {
  margin:0;
  padding:0 13px 4px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase
}

.project-menu-group button {
  width:100%;
  font-weight:600
}

.project-menu-group button:hover {
  background:var(--green-soft);
  color:var(--green-dark)
}

.project-menu-lifecycle .project-menu-archive {
  color:#8c6534
}

.project-menu-lifecycle .project-menu-archive:hover {
  background:#f7efe2;
  color:#765329
}

.project-menu-lifecycle .danger:hover {
  background:#f9e8eb;
  color:#9e263b
}

.modal-form .working-days {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  text-transform:none;
  letter-spacing:0;
  color:var(--ink);
  cursor:pointer;
}

.modal-form .working-days input {
  width:16px;
  height:16px;
  padding:0;
  accent-color:var(--green);
}

.sidebar-item-row.project-template:not(.active) {
  opacity:.52;
  filter:grayscale(.35);
}

.sidebar-item-row.project-template small {
  color:var(--muted);
  font-style:italic;
}

.template-library {
  margin:14px 0 7px
}

.template-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:4px
}

.template-heading small {
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  border-radius:10px;
  background:var(--canvas);
  color:var(--muted);
  font-size:10px
}

.template-list {
  display:grid;
  gap:2px
}

.template-item {
  display:grid;
  grid-template-columns:20px minmax(0,1fr) 28px;
  align-items:center;
  gap:7px;
  min-height:34px;
  border-radius:7px;
  padding:0 5px 0 11px;
  color:var(--muted)
}

.template-item:hover {
  background:var(--canvas);
  color:var(--ink)
}

.template-icon {
  font-size:12px;
  color:var(--green)
}

.template-name {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px
}

.template-menu-button {
  border:0;
  border-radius:5px;
  background:transparent;
  color:inherit;
  padding:5px 3px;
  cursor:pointer;
  letter-spacing:1px;
  opacity:.55
}

.template-menu-button:hover,.template-menu-button:focus-visible {
  background:var(--paper);
  opacity:1;
  outline:0
}

.template-sections {
  display:grid;
  gap:28px
}

.template-section {
  display:grid;
  gap:15px
}

.template-section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px
}

.template-section-heading h2 {
  margin-top:5px;
  font-size:22px
}

.template-section-heading p {
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px
}

.template-count {
  display:grid;
  place-items:center;
  min-width:29px;
  height:29px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:var(--muted);
  font-size:12px;
  font-weight:700
}

.template-page-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(275px,1fr));
  gap:14px
}

.template-card {
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 30px;
  gap:14px;
  align-items:start;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
  padding:19px;
  box-shadow:0 5px 18px rgba(25,31,45,.05)
}

.template-card-icon {
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:12px;
  background:var(--green-soft);
  color:var(--green);
  font-size:21px
}

.template-card-copy h3 {
  margin:2px 0 5px;
  font-size:16px
}

.template-card-copy p {
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45
}

.template-card-menu {
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  padding:6px 3px;
  letter-spacing:1px
}

.template-card-menu:hover,.template-card-menu:focus-visible {
  background:var(--canvas);
  color:var(--ink);
  outline:0
}

.template-card-actions {
  grid-column:1/-1;
  display:flex;
  gap:8px;
  margin-top:5px;
  padding-top:14px;
  border-top:1px solid var(--line)
}

.template-card-actions .secondary,.template-card-actions .ghost-button {
  min-height:34px;
  padding:6px 10px;
  font-size:12px
}

.ghost-button {
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  cursor:pointer
}

.ghost-button:hover {
  background:var(--canvas);
  color:var(--ink)
}

.template-empty {
  display:grid;
  gap:5px;
  align-content:center;
  min-height:148px;
  border:1px dashed var(--line);
  border-radius:14px;
  background:color-mix(in srgb,var(--paper) 76%,transparent);
  padding:20px;
  color:var(--ink);
  font-size:13px
}

.template-empty span {
  color:var(--muted);
  line-height:1.45
}

.template-demo-section {
  border-top:1px solid var(--line);
  padding:20px 0 0
}

.template-demo-section h2 {
  margin-top:5px;
  font-size:18px
}

.template-demo-section p {
  margin:6px 0 12px;
  color:var(--muted);
  font-size:13px
}

.template-demo-section .primary {
  min-height:36px;
  padding:7px 13px
}

.project-title-color {
  width:34px;
  height:34px;
  flex:0 0 34px;
  border:3px solid rgba(255,255,255,.35);
  border-radius:50%;
  background:var(--project-color);
  cursor:pointer;
  padding:0;
  box-shadow:0 0 0 1px rgba(0,0,0,.2)
}

.project-color-options {
  display:flex;
  gap:14px;
  padding:8px 4px 14px
}

.project-color-options button {
  width:34px;
  height:34px;
  flex:0 0 34px;
  aspect-ratio:1;
  border-radius:50%;
  border:3px solid transparent;
  background:var(--project-color);
  cursor:pointer
}

.project-color-options button.selected {
  outline:2px solid var(--ink);
  outline-offset:3px
}

.project-color-picker-modal {
  width:min(456px,90vw)!important
}

.project-color-picker-modal .project-color-options {
  gap:10px;
  padding:8px 16px 14px
}

.project-color-picker-modal .project-color-options button {
  width:30px;
  height:30px;
  flex-basis:30px
}

.purpose-color-picker-modal {
  width:min(496px,90vw)!important
}

.purpose-color-options {
  display:grid;
  grid-template-columns:repeat(auto-fit,27px);
  justify-content:space-between;
  gap:12px;
  padding:12px 24px 18px
}

.purpose-color-options button {
  width:27px;
  height:27px
}

.modal-form .purpose-color-options {
  padding:6px 0 2px
}

.project-create-colors {
  display:flex;
  gap:12px;
  margin-top:7px
}

.project-create-colors label {
  display:block!important;
  flex:0 0 30px
}

.project-create-colors input {
  position:absolute;
  opacity:0
}

.project-create-colors span {
  display:block;
  width:30px;
  height:30px;
  aspect-ratio:1;
  border-radius:50%;
  background:var(--project-color);
  cursor:pointer;
  border:3px solid transparent
}

.project-create-colors input:checked+span {
  outline:2px solid var(--ink);
  outline-offset:3px
}

h2 {
  font-size:22px;
}

h3 {
  font-size:15px;
}

.page-header p {
  color:var(--muted);
  margin:9px 0 0;
}

.project-purpose-context {
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:7px
}

.project-purpose-context>span:first-child {
  color:var(--muted);
  font-size:10px;
  font-weight:700
}

.project-purpose-context .purpose-chip {
  max-width:92px
}

.today-clock {
  display:grid;
  flex:0 0 auto;
  min-width:92px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  padding:9px 14px;
  color:var(--ink);
  font-size:18px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
  text-align:center;
}

.today-clock small {
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
  letter-spacing:0;
}

.primary,.secondary {
  border-radius:9px;
  min-height:40px;
  padding:9px 16px;
  border:1px solid transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:600;
  font-size:13px;
}

.primary {
  color:white;
  background:var(--green);
}

.primary:hover {
  background:var(--green-dark);
}

.primary.compact {
  min-height:36px;
  padding:8px 13px;
  white-space:nowrap;
}

.project-heading {
  display:inline-flex;
  align-items:center;
  gap:12px
}

.project-menu-button {
  min-height:34px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  line-height:1;
  padding:0 11px;
  white-space:nowrap;
  transform:translateY(-2px);
}

.project-menu-button:hover {
  background:var(--green-soft);
  border-color:var(--green);
}

.project-menu-button span {
  margin-left:5px;
  color:var(--muted);
  font-size:14px;
}

.project-menu-list .project-menu-detail {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.project-menu-detail small {
  color:var(--muted);
  font-size:12px;
  font-weight:600
}

.project-menu-detail b {
  font-size:17px;
  line-height:0;
  margin-left:5px
}

.project-menu-list .project-type-choice {
  display:grid;
  gap:3px;
  border:1px solid var(--line);
  padding:12px 13px
}

.project-menu-list .project-type-choice.selected {
  border-color:var(--green);
  background:var(--green-soft);
  color:var(--green-dark)
}

.project-type-choice small {
  color:var(--muted);
  font-size:12px;
  font-weight:400
}

.form-hint {
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.4
}

.project-header-actions {
  display:flex;
  align-items:center;
  gap:10px
}

.project-header-actions .project-menu-button {
  transform:none;
  min-height:44px;
  font-size:13px
}

.secondary {
  background:var(--paper);
  border-color:var(--line);
}

.capture-card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px 10px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 8px 24px rgba(39,43,41,.04);
  margin-bottom:28px;
}

.capture-card > span {
  color:var(--green);
  font-size:20px;
}

.capture-card input {
  border:0;
  background:transparent;
  outline:0;
  flex:1;
  font-size:15px;
  padding:10px 0;
}

.capture-card select {
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  color:var(--ink);
  padding:7px 9px;
  font-size:12px
}

.intake-filters {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:-8px 0 18px
}

.intake-tabs,.intake-sources {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}

.intake-tabs button,.intake-sources button {
  border:1px solid var(--line);
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  padding:10px 14px;
  cursor:pointer;
  font-size:14px;
  line-height:1.1
}

.intake-tabs button.active,.intake-sources button.active {
  background:var(--green-soft);
  border-color:var(--green);
  color:var(--green-dark);
  font-weight:700
}

.intake-tabs b {
  margin-left:6px;
  font-size:12px
}

.intake-tag {
  display:inline-block;
  border-radius:999px;
  background:var(--green-soft);
  color:var(--green-dark);
  padding:2px 6px;
  font-size:10px;
  font-weight:700;
  text-transform:capitalize
}

.intake-tag.source-google_calendar {
  background:#d7f7a5;
  color:#365a08
}

.intake-tag.source-microsoft_365_calendar {
  background:#bcefe8;
  color:#075d58
}

.intake-tag.source-email {
  background:#f7c8b5;
  color:#852d22
}

.intake-tag.source-manual {
  background:#bedaff;
  color:#134f9b
}

.intake-tag.source-slack {
  background:#e2c6f6;
  color:#63368a
}

.intake-tag.source-jira {
  background:#ffe0a3;
  color:#845400
}

.intake-sync-admin {
  margin-top:28px
}

.intake-sync-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(280px,1fr));
  gap:14px
}

.intake-sync-card {
  display:grid;
  gap:11px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--paper);
  padding:18px
}

.intake-sync-card>div {
  display:flex;
  justify-content:space-between;
  align-items:center
}

.intake-sync-card h3 {
  margin:0
}

.intake-sync-card label {
  display:grid;
  gap:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:600
}

.intake-sync-card input,.intake-sync-card select {
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  padding:8px
}

.intake-sync-card small {
  color:var(--muted);
  line-height:1.4
}

.intake-sync-card .secondary {
  justify-self:start
}

.intake-sync-button {
  white-space:nowrap
}

.intake-sync-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px
}

.intake-sync-actions .intake-sync-button {
  min-height:40px;
  padding:8px 12px;
  font-size:14px
}

.intake-sync-actions .intake-sync-button:first-child {
  border-color:color-mix(in srgb,var(--green) 45%,var(--line));
  color:var(--green)
}

.capture-card button {
  border:0;
  color:white;
  background:var(--green);
  border-radius:8px;
  padding:9px 15px;
  cursor:pointer;
}

.mode-launcher {
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:18px;
  align-items:stretch;
  margin:-12px 0 26px;
}

.mode-launcher-heading {
  display:flex;
  flex-direction:column;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
  padding:22px;
}

.mode-launcher-heading h2 {
  margin-top:8px;
  line-height:1.2;
}

.mode-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(150px,1fr));
  gap:12px;
}

.mode-card {
  min-height:112px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:1fr auto;
  column-gap:14px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
  padding:18px;
  transition:.15s ease;
}

.mode-card:hover {
  transform:translateY(-2px);
  border-color:var(--green);
  box-shadow:var(--shadow);
}

.mode-card strong {
  font-size:20px;
  letter-spacing:-.02em;
}

.mode-card small {
  grid-column:2;
  color:var(--muted);
  font-size:12px;
}

.mode-card.disabled {
  opacity:.55;
  pointer-events:none;
}

.mode-icon {
  grid-row:1 / 3;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-weight:800;
  font-size:18px;
}

.home-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:18px;
  margin-bottom:42px;
}

.feature-panel,.stat-panel {
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
}

.feature-panel {
  min-height:250px;
  padding:34px;
  background:linear-gradient(135deg,#f8f8f3,#eef2ec);
  position:relative;
  overflow:hidden;
}

.feature-panel::after {
  content:'T';
  position:absolute;
  right:20px;
  bottom:-80px;
  color:rgba(49,94,80,.06);
  font-size:250px;
  font-weight:700;
}

.feature-panel h2 {
  max-width:480px;
  font-size:31px;
  margin:20px 0 12px;
}

.feature-panel p {
  max-width:550px;
  color:var(--muted);
  line-height:1.6;
}

.button-row {
  display:flex;
  gap:9px;
  margin-top:24px;
  position:relative;
  z-index:1;
}

.stat-panel {
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:var(--muted);
  font-size:12px;
}

.stat-panel hr {
  border:0;
  border-top:1px solid var(--line);
  width:100%;
  margin:22px 0;
}

.stat-value {
  font-size:35px;
  font-weight:700;
  color:var(--ink);
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin:0 0 16px;
}

.section-heading h2 {
  margin-top:6px;
}

.project-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:12px;
}

.project-card {
  display:block;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  transition:.15s ease;
  overflow:hidden;
}

.project-card:hover {
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:#ccd2cb;
}

.project-card p {
  color:var(--muted);
  font-size:12px;
  margin:5px 0 0;
}

.project-card-main {
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  padding:18px;
  color:inherit;
}

.project-view-chip {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
}

.project-view-chip:hover,.project-view-chip.active {
  color:var(--green-dark);
  border-color:var(--green);
  background:var(--green-soft);
}

.project-glyph {
  width:38px;
  height:38px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#e8e1d7;
  color:#715f48;
  font-size:14px;
  font-weight:700;
}

.project-glyph.large {
  width:64px;
  height:64px;
  font-size:23px;
}

.project-view-bar {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:26px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
}

.project-view-label {
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.09em;
}

.project-tabs {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:8px;
  flex:1;
}

.project-tabs button,.project-tabs a {
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:10px;
  background:transparent;
  padding:12px 14px;
  cursor:pointer;
  color:var(--muted);
  font-weight:700;
}

.project-tabs button.active,.project-tabs a.active {
  color:var(--green-dark);
  background:var(--green-soft);
}

.project-knowledge-link {
  margin-left:auto;
  color:var(--muted);
  font-size:11px;
  padding:7px;
}

.sprint-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px
}

.sprint-summary article,.sprint-board>article {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper)
}

.sprint-summary article {
  display:grid;
  gap:5px;
  padding:17px
}

.sprint-summary span,.sprint-summary small {
  color:var(--muted);
  font-size:11px
}

.sprint-summary b {
  font-size:27px
}

.sprint-board {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}

.sprint-board>article {
  overflow:hidden
}

.sprint-board header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px;
  border-bottom:1px solid var(--line)
}

.sprint-board header h2 {
  margin:5px 0 0;
  font-size:18px
}

.sprint-board header>b {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:12px
}

.sprint-task-list {
  display:grid;
  gap:8px;
  padding:12px;
  min-height:180px
}

.sprint-task {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:6px 10px;
  text-align:left;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--canvas);
  padding:11px;
  cursor:pointer;
  color:var(--ink)
}

.sprint-task:hover {
  border-color:var(--green);
  background:var(--green-soft)
}

.sprint-task b {
  font-size:13px
}

.sprint-task small {
  grid-column:1/-1;
  color:var(--muted);
  font-size:11px
}

.sprint-task .priority {
  padding:2px 5px;
  font-size:9px;
  align-self:start
}

.project-subviews {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  padding:4px 5px 8px 31px;
}

.project-subview {
  display:flex;
  align-items:center;
  gap:5px;
  padding:6px 7px;
  border-radius:6px;
  color:var(--muted);
  font-size:10px;
}

.project-subview:hover,.project-subview.active {
  background:var(--green-soft);
  color:var(--green-dark);
}

.module-loading {
  min-height:400px;
  display:grid;
  place-items:center;
  color:var(--muted);
  border:1px dashed var(--line);
  border-radius:12px;
}

.project-welcome {
  min-height:350px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px dashed #d6d7d1;
  border-radius:15px;
  background:rgba(255,255,255,.35);
}

.project-welcome h2 {
  margin:18px 0 5px;
}

.project-welcome p {
  color:var(--muted);
  max-width:480px;
  line-height:1.6;
}

.list-toolbar {
  position:relative;
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
  border:1px solid var(--line);
  border-bottom:0;
  background:var(--paper);
  padding:0 16px 0 18px;
  border-radius:12px 12px 0 0;
}

.list-toolbar-left {
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0
}

.list-toolbar-left .task-group-control {
  margin-left:0
}

.list-title {
  display:flex;
  align-items:center;
  gap:11px
}

.list-title>span {
  font-size:17px;
  color:var(--green)
}

.list-title>div {
  display:flex;
  flex-direction:column;
  gap:4px
}

.list-title b {
  font-size:14px;
  color:var(--ink)
}

.list-title small {
  font-size:10px;
  color:var(--muted)
}

.list-toolbar-actions,.task-selection-actions {
  display:flex;
  align-items:center
}

.task-selection-actions {
  position:absolute;
  left:50%;
  gap:8px;
  transform:translateX(-50%);
  white-space:nowrap
}

.task-selection-actions .tool-button,.task-selection-actions .tool-button:first-child,.task-selection-actions .tool-button:last-child {
  margin-left:0;
  border-radius:6px
}

.tool-button {
  border:1px solid var(--line);
  background:transparent;
  color:var(--muted);
  padding:8px 10px;
  cursor:pointer;
  font-size:10px
}

.tool-button:first-child {
  border-radius:7px 0 0 7px
}

.tool-button:last-child {
  border-radius:0 7px 7px 0;
  margin-left:-1px
}

.tool-button:hover {
  background:var(--green-soft);
  color:var(--ink)
}

.task-column-options {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 14px
}

.task-column-options label {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--ink);
  cursor:pointer
}

.task-column-options input {
  width:16px;
  height:16px;
  margin:0;
  accent-color:#579bfc
}

.focused-task-table .task-head,.focused-task-table .task-row {
  grid-template-columns:42px minmax(210px,350px) minmax(160px,.7fr) 58px 182px 92px 92px minmax(245px,1fr)
}

.agile-candidate {
  width:18px;
  height:18px;
  margin:0;
  accent-color:#579bfc;
  cursor:pointer
}

.agile-candidate:disabled {
  cursor:not-allowed;
  opacity:.45
}

.task-table {
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:0 0 12px 12px;
  overflow:hidden;
}

.task-head,.task-row {
  display:grid;
  grid-template-columns:28px 38px minmax(260px,1.5fr) minmax(145px,.8fr) 92px 110px minmax(130px,.7fr) 68px;
  align-items:center;
  min-height:50px;
  border-bottom:1px solid #ecece7;
}

.task-head {
  min-height:40px;
  color:#8c908b;
  background:#f5f5f1;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}

.task-head > span,.task-row > * {
  padding:0 10px;
}

.task-sort-header {
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:3px 0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  cursor:pointer
}

.task-sort-header:hover,.task-sort-header.active {
  color:#579bfc
}

.task-sort-header:focus-visible {
  outline:2px solid #82b4ff;
  outline-offset:2px;
  border-radius:3px
}

.task-head>span:has(.task-sort-header[data-task-sort="priority"]),.task-head .task-sort-header[data-task-sort="priority"] {
  justify-self:start;
  text-align:left
}

.task-row {
  font-size:12px;
  position:relative
}

.task-row::before {
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:#579bfc
}

.task-row.group-row::before {
  background:var(--line)
}

.task-row.group-row {
  min-height:54px;
  background:rgba(127,127,127,.035);
  font-weight:700
}

.task-row:hover {
  background:#fafaf6;
}

.task-row[draggable="true"] {
  cursor:grab
}

.task-row[draggable="true"]:active {
  cursor:grabbing
}

.task-row button,.task-row input {
  cursor:pointer
}

.task-row.dragging {
  opacity:.48
}

.task-row.drag-over-before {
  box-shadow:inset 0 3px 0 #579bfc
}

.task-row.drag-over-after {
  box-shadow:inset 0 -3px 0 #579bfc
}

.task-row.selected {
  background:rgba(87,155,252,.13);
}

.task-row.selected::before {
  background:#579bfc;
}

.tool-button:disabled {
  cursor:not-allowed;
  opacity:.45;
}

.delete-selected:not(:disabled) {
  color:#d9485f;
}

.task-row:last-child {
  border-bottom:0;
}

.task-row.complete:not(.group-row) .task-title>span {
  text-decoration:line-through;
  color:#92958f;
}

.selection-button {
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  margin:auto;
  padding:0!important;
  border:1px solid color-mix(in srgb,#579bfc 72%,var(--line));
  border-radius:5px;
  background:var(--canvas);
  color:#fff;
  font:inherit;
  font-size:11px;
  line-height:1;
  cursor:pointer;
  transition:background .14s ease,border-color .14s ease,box-shadow .14s ease
}

.selection-button:hover,.selection-button:focus-visible {
  border-color:#82b4ff;
  background:rgba(87,155,252,.14);
  outline:0;
  box-shadow:0 0 0 2px rgba(87,155,252,.2)
}

.selection-button[aria-checked="true"] {
  border-color:#579bfc;
  background:#579bfc
}

.selection-button[aria-checked="mixed"] {
  border-color:#579bfc;
  background:rgba(87,155,252,.2);
  color:#a9cbff
}

.selection-button:disabled {
  cursor:default;
  opacity:.4
}

.selection-all-button {
  font-size:12px
}

.task-row-spacer {
  display:block;
  width:18px;
  height:18px;
  margin:auto;
  padding:0!important
}

.task-selection-summary {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-right:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:700
}

.task-selection-summary b {
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#579bfc;
  color:#fff;
  font-size:9px
}

.task-title {
  border:0;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  text-align:left;
  font-weight:600;
  padding-left:calc(10px + var(--depth) * 22px)!important;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  display:flex;
  align-items:center;
  gap:4px
}

.task-title>span:nth-child(2) {
  overflow:hidden;
  text-overflow:ellipsis
}

.task-title small {
  margin-left:7px;
  padding:3px 6px;
  border-radius:8px;
  background:rgba(127,127,127,.1);
  color:var(--muted);
  font-size:8px;
  font-weight:500
}

.recurrence-marker {
  display:inline-block;
  margin-left:2px;
  font-size:.62em;
  line-height:0;
  vertical-align:super
}

.tree-space {
  width:17px;
  display:inline-block;
  color:#8b8f89;
  flex:0 0 auto
}

.tree-space:empty {
  display:none;
}

.context-chip {
  color:var(--muted);
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.status,.priority {
  font-size:9px;
  border-radius:4px;
  padding:6px 8px!important;
  width:84px;
  text-align:center;
  text-transform:capitalize;
  font-weight:700
}

.task-cell-action {
  border:0;
  cursor:pointer;
  font:inherit
}

.task-cell-action:hover {
  filter:brightness(1.12);
  box-shadow:0 0 0 2px rgba(87,155,252,.55)
}

.task-cell-action:focus-visible {
  outline:2px solid #82b4ff;
  outline-offset:2px
}

.task-table .status-todo {
  background:#397dcc;
  color:#fff
}

.task-table .status-in_progress {
  background:#d8891c;
  color:#fff
}

.task-table .status-blocked {
  background:#d6455d;
  color:#fff
}

.task-table .status-done {
  background:#15976c;
  color:#fff
}

.priority {
  width:65px
}

.task-table .priority {
  background:#397dcc;
  color:#fff
}

.task-table .priority-high {
  background:#8b4fc3;
  color:#fff
}

.task-table .priority-urgent {
  background:#d6455d;
  color:#fff
}

.task-table .priority-low {
  background:#15976c;
  color:#fff
}

.deadline-cell,.timeline-cell {
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.deadline-cell {
  display:flex;
  align-items:center;
  gap:5px
}

.deadline-badge {
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  padding:2px 4px;
  border:1px solid color-mix(in srgb,#ffab3d 45%,var(--line));
  border-radius:4px;
  background:color-mix(in srgb,#ffab3d 13%,var(--paper));
  color:#ffbe5c;
  font-size:8px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase
}

.recurrence-marker {
  display:inline-block;
  margin:0 0 0 4px;
  padding:0;
  border:0;
  background:transparent;
  color:#a9cbff;
  font-size:8px;
  font-weight:800;
  letter-spacing:0;
  line-height:1;
  vertical-align:super;
  transform:translateY(-1px);
  white-space:nowrap
}

.progress-cell {
  display:grid;
  grid-template-columns:1fr 30px;
  align-items:center;
  gap:7px
}

.progress-cell>span {
  height:5px;
  border-radius:4px;
  background:rgba(127,127,127,.14);
  overflow:hidden
}

.progress-cell i {
  display:block;
  height:100%;
  background:#579bfc;
  border-radius:inherit
}

.progress-cell b {
  color:var(--muted);
  font-size:8px
}

.table-empty {
  margin:20px;
  text-align:center;
}

.archive-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 15px;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:12px 12px 0 0;
  background:var(--paper);
  color:var(--muted);
  font-size:12px;
}

.archive-toolbar>div {
  display:flex;
  gap:7px
}

.archive-table-wrap {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:0 0 12px 12px;
  background:var(--paper)
}

.archive-table {
  width:100%;
  border-collapse:collapse;
  font-size:13px
}

.archive-table th,.archive-table td {
  padding:13px 14px;
  text-align:left;
  border-bottom:1px solid var(--line)
}

.archive-table th {
  background:#f5f5f1;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase
}

.archive-table th:first-child,.archive-table td:first-child {
  width:40px;
  text-align:center
}

.archive-table th:nth-child(2),.archive-table td:nth-child(2) {
  width:135px
}

.archive-table tr:last-child td {
  border-bottom:0
}

.archive-table tbody tr:hover {
  background:var(--green-soft)
}

.archive-table input[type=checkbox] {
  width:16px;
  height:16px;
  accent-color:var(--green);
  cursor:pointer
}

.intake-bulk-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:12px 12px 0 0;
  background:var(--paper);
  color:var(--muted);
  font-size:13px
}

.intake-bulk-toolbar>div {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  order:2
}

.intake-bulk-toolbar>span {
  order:1;
  font-weight:600
}

.intake-bulk-toolbar button {
  min-height:36px;
  padding:7px 12px;
  font-size:13px
}

.intake-bulk-toolbar button:disabled {
  opacity:.38;
  cursor:not-allowed
}

.intake-table-wrap {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:0 0 12px 12px;
  background:var(--paper)
}

.intake-table {
  width:100%;
  border-collapse:collapse;
  font-size:14px
}

.intake-table th,.intake-table td {
  padding:15px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:middle
}

.intake-table th {
  background:#f5f5f1;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase
}

.intake-table th:first-child,.intake-table td:first-child {
  width:42px;
  text-align:center
}

.intake-table tr:last-child td {
  border-bottom:0
}

.intake-table tbody tr:hover {
  background:var(--green-soft)
}

.intake-table tr.selected {
  background:color-mix(in srgb,var(--green-soft) 72%,var(--paper))
}

.intake-table td b {
  display:-webkit-box;
  overflow:hidden;
  font-size:15px;
  line-height:1.42;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2
}

.intake-table td small {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:6px;
  color:var(--muted);
  font-size:12px
}

.intake-table input[type=checkbox] {
  width:16px;
  height:16px;
  accent-color:var(--green);
  cursor:pointer
}

@media(max-width:720px) {
  .intake-bulk-toolbar {
    align-items:flex-start;
    flex-direction:column
  }
  .intake-bulk-toolbar>div {
    order:1
  }
  .intake-bulk-toolbar>span {
    order:2
  }
}

.inbox-list {
  display:grid;
  gap:10px;
}

.inbox-item {
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px;
  background:var(--paper);
}

.inbox-symbol {
  width:34px;
  height:34px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--green-soft);
  color:var(--green);
  font-weight:700;
}

.inbox-item h3 {
  margin:1px 0 5px;
  font-size:15px;
}

.inbox-item p {
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.item-actions {
  display:flex;
  gap:7px;
  margin-top:15px;
}

.primary.subtle {
  background:var(--green-soft);
  color:var(--green-dark);
}

.ghost-danger {
  border:0;
  background:transparent;
  color:#b94b5b;
  padding:8px 10px;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
}

.ghost-danger:hover {
  background:#f3e7e4;
  border-radius:8px;
}

.form-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.detail-task-actions {
  margin-top:2px;
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.today-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  align-items:start;
}

.today-grid > div {
  display:grid;
  gap:20px;
}

.today-section {
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--paper);
  overflow:hidden;
}

.today-section.attention {
  border-top:3px solid #bf776b;
}

.today-section.blocked {
  border-top:3px solid #bca168;
}

.today-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 19px 13px;
}

.today-heading h2 {
  font-size:18px;
  margin-top:4px;
}

.today-heading > span {
  width:25px;
  height:25px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#efefea;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

.agenda-row {
  width:100%;
  display:grid;
  grid-template-columns:30px 1fr auto;
  align-items:center;
  gap:8px;
  padding:13px 18px;
  border:0;
  border-top:1px solid #ecece7;
  background:transparent;
  text-align:left;
  cursor:pointer;
}

.agenda-row:hover {
  background:#f7f7f3;
}

.agenda-row > span:nth-child(2) {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.agenda-row b {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.agenda-row small {
  color:var(--muted);
}

.agenda-check {
  width:19px;
  height:19px;
  border:1px solid #bec1bc;
  border-radius:6px;
}

.agenda-meta {
  display:grid;
  justify-items:end;
  gap:3px;
  min-width:84px;
}

.agenda-meta strong {
  color:var(--ink);
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.agenda-meta small {
  border-radius:999px;
  background:var(--canvas);
  padding:2px 6px;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  white-space:nowrap;
}

.today-extra {
  display:none;
}

.today-section.expanded .today-extra {
  display:block;
}

.today-section.expanded .today-show-more {
  display:none;
}

.today-show-more {
  width:100%;
  border:0;
  border-top:1px solid var(--line);
  background:transparent;
  padding:12px;
  color:var(--green);
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.today-show-more:hover {
  background:var(--green-soft);
}

.today-next {
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:9px 14px;
  max-width:620px;
  margin:-14px 0 20px;
  padding:12px 15px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper);
}

.today-next .eyebrow {
  grid-row:1 / span 2;
}

.today-next strong {
  font-size:17px;
  font-variant-numeric:tabular-nums;
}

.today-next span:not(.eyebrow) {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:700;
}

.today-next small {
  grid-column:2 / -1;
  color:var(--muted);
  font-size:11px;
}

.section-empty {
  border-top:1px solid #ecece7;
  margin:0;
  padding:16px 19px;
  color:var(--muted);
  font-size:12px;
}

.detail-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:25px 24px 18px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:var(--paper);
  z-index:2;
}

.detail-header h2 {
  font-size:21px;
  margin-top:5px;
  max-width:300px;
}

.detail-header .detail-title-inline-input {
  box-sizing:border-box;
  width:300px;
  max-width:100%;
  border:1px solid #579bfc;
  border-radius:5px;
  background:var(--paper);
  color:var(--ink);
  padding:3px 6px;
  font:inherit;
  font-size:21px;
  font-weight:700;
  outline:0
}

.detail-header button {
  border:0;
  background:transparent;
  font-size:25px;
  color:var(--muted);
  cursor:pointer;
}

.detail-header-actions {
  display:flex;
  align-items:center;
  gap:8px
}

.detail-header .detail-save {
  min-height:38px;
  padding:7px 13px;
  background:#579bfc;
  color:#fff;
  border-radius:7px;
  font-size:14px;
  font-weight:700
}

.detail-header .detail-save:hover {
  background:#438aea
}

.detail-project-link {
  display:inline-flex;
  align-items:center;
  color:var(--green);
  text-decoration:none
}

.detail-project-link:hover {
  color:var(--green-dark);
  text-decoration:underline
}

.detail-project-link:focus-visible {
  outline:2px solid #579bfc;
  outline-offset:3px;
  border-radius:2px
}

.detail-form {
  padding:22px 24px;
  display:grid;
  gap:14px;
}

.detail-form label {
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
}

.detail-form input,.detail-form select,.detail-form textarea,.inline-form select {
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
  color:var(--ink);
  padding:9px 10px;
  outline:0;
}

.detail-form textarea {
  resize:vertical;
  line-height:1.5;
}

.detail-form input:focus,.detail-form select:focus,.detail-form textarea:focus {
  border-color:#8da99d;
  box-shadow:0 0 0 3px rgba(49,94,80,.08);
}

.form-pair {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}

.range-value {
  float:right;
  color:var(--ink);
}

.detail-form input[type=range] {
  padding:5px 0;
  border:0;
  box-shadow:none;
  accent-color:var(--green);
}

.modal-form [data-parent-selection]:empty {
  display:none
}

.modal-form [data-task-sphere].inherited {
  opacity:.52;
}

.modal-form [data-task-sphere].inherited select {
  cursor:not-allowed;
}

.modal-form .date-time-field {
  position:relative
}

.modal-form .date-time-trigger {
  width:100%;
  min-height:41px;
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
  color:var(--ink);
  padding:10px 38px 10px 11px;
  text-align:left;
  font:inherit;
  cursor:pointer;
  position:relative
}

.modal-form .date-time-trigger::after {
  content:'▣';
  position:absolute;
  right:12px;
  color:var(--muted);
  font-size:16px
}

.date-time-picker {
  position:absolute;
  z-index:100;
  right:0;
  bottom:calc(100% + 7px);
  width:352px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  box-shadow:0 18px 40px rgba(0,0,0,.28);
  color:var(--ink)
}

.date-time-picker[hidden] {
  display:none
}

.date-time-picker header {
  display:grid;
  grid-template-columns:32px 1fr 32px;
  align-items:center;
  margin-bottom:10px
}

.date-time-picker header strong {
  text-align:center;
  font-size:13px
}

.date-time-picker header button {
  width:30px;
  height:30px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--ink);
  font-size:22px;
  cursor:pointer
}

.date-time-picker header button:hover,.date-time-day:hover {
  background:var(--green-soft)
}

.date-time-weekdays,.date-time-days {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:3px
}

.date-time-weekdays {
  margin-bottom:4px
}

.date-time-weekdays span {
  text-align:center;
  color:var(--muted);
  font-size:10px;
  font-weight:700
}

.date-time-day {
  height:32px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:12px;
  cursor:pointer
}

.date-time-day.outside {
  color:var(--muted);
  opacity:.55
}

.date-time-day.selected {
  background:var(--green);
  color:#fff
}

.date-time-clock {
  display:flex;
  justify-content:center;
  margin:13px 0
}

.date-time-picker.date-only .date-time-clock {
  display:none
}

.date-time-clock label {
  display:flex!important;
  grid-template-columns:auto auto auto!important;
  align-items:center;
  gap:5px;
  color:var(--muted)!important;
  font-size:12px!important
}

.date-time-clock select {
  width:auto!important;
  padding:6px!important
}

.date-time-picker footer {
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  gap:7px;
  padding-top:11px;
  border-top:1px solid var(--line)
}

.date-time-picker footer button {
  min-height:30px;
  padding:5px 10px;
  font-size:12px
}

html[data-theme="dark"] .modal-form .date-time-trigger,html[data-theme="dark"] .date-time-picker {
  background:#171a30;
  border-color:var(--line)
}

.detail-section {
  border-top:1px solid var(--line);
  padding:20px 24px;
}

.detail-section h3 {
  font-size:12px;
  margin:15px 0 7px;
  color:var(--muted);
}

.detail-collapsible {
  margin:0 24px 14px;
  padding:0;
  border:1px solid var(--line);
  border-radius:9px;
  background:color-mix(in srgb,var(--paper) 82%,var(--canvas));
  overflow:hidden
}

.detail-collapsible summary {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  padding:12px 14px;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  list-style:none
}

.detail-collapsible summary::-webkit-details-marker {
  display:none
}

.detail-collapsible-icon {
  order:-1;
  font-size:0;
  line-height:1
}

.detail-collapsible-icon::after {
  content:'▸';
  font-size:13px
}

.detail-collapsible[open] .detail-collapsible-icon::after {
  content:'▾'
}

.detail-collapsible>h3,.detail-collapsible>p,.detail-collapsible>.linked-item,.detail-collapsible>.inline-form,.detail-collapsible>.relationship-line,.detail-collapsible>.stack-form,.detail-collapsible>.activity-line {
  margin-left:14px;
  margin-right:14px
}

.detail-collapsible>.inline-form,.detail-collapsible>.stack-form {
  margin-bottom:14px
}

.no-pad {
  padding:0;
}

.linked-item {
  width:100%;
  border:1px solid var(--line);
  background:white;
  border-radius:8px;
  padding:9px 10px;
  text-align:left;
  margin:3px 0;
  cursor:pointer;
  font-size:12px;
}

.inline-form {
  display:flex;
  gap:6px;
  margin-top:12px;
}

.inline-form button {
  border:0;
  border-radius:8px;
  background:var(--green);
  color:white;
  padding:0 12px;
  cursor:pointer;
}

.relationship-line {
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid #ecece7;
  padding:10px 0;
  font-size:12px;
}

.relationship-line span {
  color:var(--muted);
}

.activity-line {
  display:flex;
  gap:10px;
  padding:10px 0;
  font-size:12px;
}

.activity-line i {
  width:8px;
  height:8px;
  margin-top:4px;
  border-radius:50%;
  background:#91a79d;
}

.activity-line div {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.activity-line b {
  text-transform:capitalize;
}

.activity-line small {
  color:var(--muted);
}

.stack-form {
  display:grid;
  gap:7px;
  margin-top:13px;
}

.stack-form select,.stack-form input {
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
  padding:9px;
}

.stack-form > div {
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px;
}

.stack-form button {
  border:0;
  border-radius:8px;
  background:var(--green);
  color:white;
  padding:0 11px;
  cursor:pointer;
}

.knowledge-layout {
  display:grid;
  grid-template-columns:minmax(360px,1fr) minmax(300px,.8fr);
  min-height:520px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
  overflow:hidden;
}

.knowledge-list {
  border-right:1px solid var(--line);
}

.knowledge-list-head {
  display:flex;
  justify-content:space-between;
  padding:16px 19px;
  background:#f4f4f0;
  color:var(--muted);
  font-size:11px;
}

.knowledge-row {
  width:100%;
  display:grid;
  grid-template-columns:38px 1fr auto;
  gap:10px;
  align-items:center;
  text-align:left;
  border:0;
  border-top:1px solid #ecece7;
  background:transparent;
  padding:16px 18px;
  cursor:pointer;
}

.knowledge-row:hover {
  background:#f8f8f4;
}

.knowledge-row > span:nth-child(2) {
  display:flex;
  flex-direction:column;
  gap:4px;
}

.knowledge-row small {
  color:var(--muted);
  text-transform:capitalize;
}

.knowledge-type {
  width:34px;
  height:34px;
  border-radius:9px;
  background:var(--green-soft);
  color:var(--green);
  display:grid;
  place-items:center;
}

.knowledge-intro {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px;
}

.knowledge-intro h2 {
  margin:18px 0 7px;
}

.knowledge-intro p {
  color:var(--muted);
  line-height:1.6;
  max-width:360px;
}

.core-strip {
  display:flex;
  align-items:center;
  gap:14px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  background:linear-gradient(120deg,#f8f8f4,#eef2ed);
  margin-bottom:34px;
}

.core-strip > div:first-child {
  margin-right:auto;
}

.core-strip h2 {
  font-size:19px;
  margin-top:5px;
}

.core-module {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #d7ded8;
  border-radius:18px;
  padding:7px 11px;
  background:rgba(255,255,255,.6);
  font-size:11px;
  font-weight:600;
}

.core-module span {
  color:var(--green);
}

.module-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:16px;
}

.module-heading h2 {
  margin-top:6px;
}

.retention-note {
  font-size:11px;
  color:var(--muted);
}

.module-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:12px;
}

.module-card {
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--paper);
  padding:19px;
  min-height:190px;
}

.module-card.enabled {
  border-color:#aac1b6;
  box-shadow:inset 0 3px 0 #668d7c;
}

.module-top {
  display:flex;
  justify-content:space-between;
}

.module-icon {
  width:37px;
  height:37px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#eeeee8;
  color:#69706b;
  font-size:18px;
}

.module-card h3 {
  margin:18px 0 7px;
  font-size:15px;
}

.module-card p {
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  min-height:36px;
}

.module-meta {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:10px;
  text-transform:capitalize;
  margin-top:14px;
}

.module-meta small {
  margin-left:auto;
  max-width:100px;
  text-align:right;
  text-transform:none;
}

.state-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#b7bbb6;
}

.enabled .state-dot {
  background:#5b8c76;
}

.module-card.unavailable {
  background:#f5f5f1;
}

.module-card.unavailable .switch {
  opacity:.45;
}

.module-card.unavailable .module-icon {
  opacity:.7;
}

.switch {
  position:relative;
  width:37px;
  height:22px;
}

.switch input {
  opacity:0;
  width:0;
  height:0;
}

.switch span {
  position:absolute;
  inset:0;
  background:#d9dbd6;
  border-radius:20px;
  cursor:pointer;
}

.switch span::after {
  content:'';
  position:absolute;
  width:16px;
  height:16px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:white;
  box-shadow:0 1px 3px rgba(0,0,0,.18);
  transition:.15s;
}

.switch input:checked + span {
  background:var(--green);
}

.switch input:checked + span::after {
  transform:translateX(15px);
}

.demo-mode-control {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.demo-mode-control .switch {
  display:inline-block;
  flex:0 0 37px;
}

.admin-note {
  display:flex;
  gap:12px;
  border:1px solid #e0d6c7;
  background:#f4eee5;
  border-radius:10px;
  padding:14px 16px;
  margin-top:18px;
  font-size:11px;
  color:#796c59;
}

.admin-note span {
  color:#877c6b;
}

.data-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--paper);
  padding:20px;
  margin-top:18px;
}

.data-actions h2 {
  font-size:17px;
  margin:4px 0;
}

.data-actions p {
  margin:0;
  color:var(--muted);
  font-size:11px;
}

.data-action-buttons {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px
}

.data-action-buttons>button {
  height:42px;
  min-height:42px;
  padding:9px 16px;
  font-size:13px;
  line-height:1;
  white-space:nowrap
}

.data-action-buttons [data-action="restore-defaults"],.data-action-buttons [data-action="reset-local-preferences"],.data-action-buttons [data-action="load-demo-data"] {
  width:120px
}

.data-action-buttons .danger-button {
  white-space:nowrap
}

.data-action-buttons .local-preferences-reset,html[data-theme="dark"] .data-action-buttons .local-preferences-reset {
  border-color:#3977d9;
  background:#3977d9;
  color:#fff
}

.data-action-buttons .local-preferences-reset:hover,html[data-theme="dark"] .data-action-buttons .local-preferences-reset:hover {
  border-color:#2e63b8;
  background:#2e63b8;
  color:#fff
}

.data-action-buttons .demo-data-button,html[data-theme="dark"] .data-action-buttons .demo-data-button {
  background:#2d9c74
}

.data-action-buttons .demo-data-button:hover,html[data-theme="dark"] .data-action-buttons .demo-data-button:hover {
  background:#247e5e
}

.modal-overlay {
  position:fixed;
  inset:0;
  background:rgba(31,38,34,.3);
  backdrop-filter:blur(3px);
  z-index:90;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.modal-card {
  width:min(560px,90vw);
  max-height:88vh;
  overflow:auto;
  background:var(--paper);
  border:1px solid #d7d9d3;
  border-radius:16px;
  box-shadow:0 30px 90px rgba(29,37,33,.24);
}

.modal-card.compact-modal {
  width:min(440px,90vw);
}

.modal-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:23px 24px 18px;
  border-bottom:1px solid var(--line);
}

.modal-header h2 {
  font-size:22px;
  margin-top:5px;
}

.modal-header p {
  color:var(--muted);
  font-size:12px;
  margin:6px 0 0;
}

.modal-header > button {
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:24px;
  cursor:pointer;
}

.modal-form {
  padding:22px 24px;
  display:grid;
  gap:15px;
}

.modal-form label {
  display:grid;
  gap:7px;
  color:#666d68;
  font-size:11px;
  font-weight:600;
}

.modal-form label > span {
  color:#9a9d98;
  font-weight:400;
  float:right;
}

.modal-form input,.modal-form select,.modal-form textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
  color:var(--ink);
  padding:10px 11px;
  outline:0;
}

.modal-form input:focus,.modal-form select:focus,.modal-form textarea:focus {
  border-color:#8da99d;
  box-shadow:0 0 0 3px rgba(49,94,80,.08);
}

.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:5px;
  padding-top:17px;
  border-top:1px solid var(--line);
}

.modal-form>label,.modal-form>.form-pair>label {
  display:block
}

.modal-form>label>span,.modal-form>.form-pair>label>span {
  display:inline;
  margin-left:4px;
  float:none
}

.modal-form>label>input,.modal-form>label>select,.modal-form>label>textarea,.modal-form>.form-pair>label>input,.modal-form>.form-pair>label>select,.modal-form>.form-pair>label>textarea {
  display:block;
  margin-top:7px
}

.modal-form .task-column-options label {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--ink);
  font-weight:600;
  cursor:pointer
}

.modal-form .task-column-options input {
  width:16px;
  height:16px;
  margin:0;
  padding:0;
  flex:0 0 auto
}

.confirmation-dialog .modal-actions {
  margin:0;
  padding:18px 24px 22px
}

.recurrence-children-modal {
  width:min(640px,94vw)
}

.recurrence-children-modal.has-independent-effort {
  width:min(704px,94vw)
}

.recurrence-children-modal .modal-header {
  padding-bottom:16px
}

.recurrence-children-form {
  padding:0 24px 22px
}

.recurrence-children-form table {
  width:100%;
  border-collapse:collapse;
  margin-top:18px;
  font-size:12px
}

.recurrence-children-form th,.recurrence-children-form td {
  padding:11px 10px;
  border-bottom:1px solid var(--line);
  text-align:left
}

.recurrence-children-form tr.recurrence-child-done [data-recurrence-status] {
  border-color:#579bfc;
  background:#579bfc;
  color:#fff
}

.recurrence-children-form th {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.06em;
  text-transform:uppercase
}

.recurrence-children-form td:first-child {
  width:42px;
  font-weight:700
}

.recurrence-children-form input,.recurrence-children-form .date-time-trigger {
  width:100%;
  min-height:36px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  color:var(--ink);
  padding:7px 34px 7px 9px;
  font:inherit
}

.recurrence-children-form .recurrence-effort-heading,.recurrence-children-form .recurrence-effort-cell {
  width:82px
}

.recurrence-children-form .recurrence-effort-cell [data-recurrence-effort] {
  width:100%
}

.recurrence-children-form .recurrence-skip-checkbox {
  width:14px;
  min-width:14px;
  height:14px;
  min-height:14px;
  margin:0;
  padding:0;
  border:0;
  border-radius:3px;
  accent-color:#579bfc;
  cursor:pointer;
  vertical-align:middle
}

.recurrence-children-form .date-time-trigger {
  position:relative;
  text-align:left;
  cursor:pointer
}

.recurrence-children-form .date-time-trigger::after {
  content:'▣';
  position:absolute;
  right:10px;
  color:var(--muted);
  font-size:14px
}

.recurrence-children-form .modal-actions {
  margin-top:16px
}

.task-create-title {
  gap:0!important;
  margin-bottom:-4px;
  color:transparent!important;
  font-size:0!important
}

.task-create-title>input {
  box-sizing:border-box;
  color:var(--ink);
  font-size:13px;
  height:43px;
  min-height:43px;
  line-height:1.2
}

.task-create-modal .modal-header p {
  display:none
}

.task-create-modal .modal-header .eyebrow {
  display:none
}

.task-create-modal .modal-header {
  padding:14px 24px 12px
}

.task-create-modal .modal-header h2 {
  margin-top:0
}

.task-create-section {
  display:grid;
  gap:12px;
  padding:15px;
  border:1px solid color-mix(in srgb,var(--line) 86%,var(--paper));
  border-radius:12px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.task-create-modal .task-create-section {
  gap:10px;
  padding:12px 15px
}

.task-create-section-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px
}

.task-create-modal .task-create-section-heading {
  display:none
}

.task-create-section-heading b {
  color:var(--ink);
  font-size:13px
}

.task-create-section-heading span {
  color:var(--muted);
  font-size:11px
}

.task-create-section .form-pair {
  gap:12px
}

.task-create-section>[data-mytoday-exact-time] {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  column-gap:8px;
  row-gap:0;
  width:calc(50% - 6px);
  margin-left:calc(50% + 6px)
}

.task-create-section>[data-mytoday-exact-time][hidden] {
  display:none
}

.task-create-section>[data-mytoday-exact-time]>span {
  justify-self:end;
  margin:0;
  color:color-mix(in srgb,var(--muted) 68%,transparent);
  white-space:nowrap
}

.task-create-section>[data-mytoday-exact-time]>input {
  grid-column:1;
  margin-top:7px
}

.exact-time-selects {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-weight:700
}

.task-create-section>[data-mytoday-exact-time]>.exact-time-selects {
  grid-column:1;
  justify-self:start;
  margin-top:7px
}

.modal-form .exact-time-selects>select,
.detail-form .exact-time-selects>select {
  box-sizing:border-box;
  width:66px;
  min-width:66px;
  height:43px;
  padding:8px 7px;
  text-align:center
}

.task-create-schedule .date-time-trigger,
.task-create-schedule input[name="myTodayTime"] {
  box-sizing:border-box;
  height:43px;
  min-height:43px
}

.task-create-section .form-pair>label {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  column-gap:8px;
  row-gap:0
}

.task-create-section .form-pair>label>span {
  justify-self:end;
  margin:0;
  color:color-mix(in srgb,var(--muted) 68%,transparent);
  white-space:nowrap
}

.task-create-section .form-pair>label>[data-task-time-label] {
  justify-self:start;
  color:inherit;
  font-size:inherit;
  font-weight:inherit
}

.task-create-section .form-pair>label>.date-time-trigger {
  margin-top:7px
}

.task-create-section .form-pair>label>input,.task-create-section .form-pair>label>select,.task-create-section .form-pair>label>.create-purpose-trigger {
  grid-column:1 / -1;
  margin-top:7px
}

.task-create-section [data-create-purpose-inputs] {
  display:contents
}

.task-create-section [data-recurrence-count].disabled {
  color:var(--muted);
  opacity:.48
}

.task-create-section [data-recurrence-count].disabled input {
  cursor:not-allowed
}

.task-effort-control {
  display:contents
}

.task-create-section [data-parent-selection] {
  margin-top:-2px
}

.task-create-section .form-hint {
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4
}

.task-create-details {
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas));
  overflow:hidden
}

.task-create-details summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 13px;
  cursor:pointer;
  list-style:none
}

.task-create-details summary::-webkit-details-marker {
  display:none
}

.task-create-details summary b {
  font-size:12px
}

.task-create-details summary span {
  color:var(--muted);
  font-size:11px
}

.task-create-details>div {
  padding:1px 13px 13px;
  border-top:1px solid var(--line)
}

.task-create-details label {
  margin-top:12px
}

@media(max-width:520px) {
  .task-create-section {
    padding:13px
  }
  .task-create-section-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:3px
  }
  .task-create-section .form-pair {
    grid-template-columns:1fr
  }
  .task-create-section>[data-mytoday-exact-time] {
    width:100%;
    margin-left:0
  }
  .task-create-section .task-context-row {
    grid-template-columns:minmax(0,1fr) minmax(125px,.7fr)
  }
}

.task-create-section-heading>span {
  display:none
}

.task-create-section .form-pair>label {
  min-width:0
}

.task-create-section .form-pair>label>input,.task-create-section .form-pair>label>select,.task-create-section .form-pair>label>.create-purpose-trigger {
  justify-self:stretch;
  inline-size:100%;
  width:100%;
  min-width:0;
  max-width:none
}

.task-create-modal {
  display:flex;
  flex-direction:column;
  height:min(766px,calc(100dvh - 32px));
  max-height:none;
  overflow:clip
}

.task-create-modal .modal-form {
  display:flex;
  flex:1;
  min-height:0;
  flex-direction:column;
  gap:0;
  padding:0
}

.task-create-body {
  display:grid;
  flex:1;
  min-height:0;
  gap:15px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:22px 24px 0
}

.task-create-modal .task-create-body {
  gap:10px;
  padding-top:8px;
  padding-bottom:12px
}

.task-create-modal .modal-actions {
  flex:0 0 auto;
  margin:0;
  padding:17px 24px 22px;
  background:var(--paper)
}

.task-create-modal .modal-actions {
  padding:12px 24px 14px
}

.task-create-modal input[type=datetime-local] {
  min-inline-size:0;
  font-size:12px
}

.task-create-modal .date-time-trigger {
  min-inline-size:0;
  white-space:nowrap
}

.agile-initiative-modal .modal-header {
  padding-bottom:16px
}

.agile-initiative-modal .modal-form {
  gap:18px
}

.agile-initiative-modal .form-hint {
  display:block;
  margin:7px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
  line-height:1.45
}

.agile-initiative-modal .modal-actions {
  margin-top:2px
}

.detail-form>label,.detail-form>.form-pair>label {
  display:block
}

.detail-form>label>span,.detail-form>.form-pair>label>span {
  display:inline;
  margin-left:4px;
  float:none
}

.detail-form>label>input,.detail-form>label>select,.detail-form>label>textarea,.detail-form>.form-pair>label>input,.detail-form>.form-pair>label>select,.detail-form>.form-pair>label>textarea {
  display:block;
  margin-top:6px
}

.task-detail-title {
  margin-bottom:0
}

.task-detail-group {
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid color-mix(in srgb,var(--line) 86%,var(--paper));
  border-radius:12px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.task-detail-group-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px
}

.task-detail-group-heading b {
  color:var(--ink);
  font-size:13px
}

.task-detail-group-heading span {
  color:var(--muted);
  font-size:11px
}

.task-detail-group>label {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  column-gap:8px;
  row-gap:0
}

.task-detail-group>label>span {
  justify-self:end;
  margin:0;
  white-space:nowrap
}

.task-detail-group>label>input,.task-detail-group>label>select,.task-detail-group>label>textarea,.task-detail-group>label>.detail-purpose-trigger {
  grid-column:1 / -1;
  margin-top:6px
}

.task-detail-group [data-detail-purpose-inputs] {
  display:contents
}

.task-detail-schedule .detail-call-details {
  display:grid;
  gap:12px
}

.task-detail-schedule .deadline-field {
  width:calc(50% - 6px)
}

.task-detail-schedule .deadline-field .date-time-picker {
  left:0;
  right:auto
}

.task-detail-schedule .deadline-watch-row {
  display:flex;
  align-items:start;
  gap:12px
}

.task-detail-schedule .watch-field {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:23px;
  color:var(--muted);
  white-space:nowrap
}

.task-detail-schedule .watch-field input {
  width:auto;
  margin:0
}

.task-detail-schedule .detail-call-details .date-time-field {
  display:block;
  grid-template-columns:none
}

.task-detail-schedule .detail-call-details .date-time-trigger {
  display:block;
  margin-top:6px
}

@media(max-width:420px) {
  .task-detail-group-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:3px
  }
}

.task-detail-group>summary {
  display:flex;
  align-items:center;
  gap:6px;
  min-height:20px;
  list-style:none;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  cursor:pointer
}

.task-detail-group>summary::-webkit-details-marker {
  display:none
}

.task-detail-group>summary::before {
  content:'▾';
  color:var(--ink);
  font-size:13px;
  line-height:1
}

.task-detail-group:not([open])>summary::before {
  content:'▸'
}

/* Collapsed primary task groups follow the compact advanced-panel treatment. */
.task-detail-group:not([open]) {
  display:block;
  padding:0;
  border-radius:9px;
  background:color-mix(in srgb,var(--paper) 82%,var(--canvas));
  overflow:hidden
}

.task-detail-group:not([open])>summary {
  padding:10px 14px
}

.detail-advanced {
  border:1px solid var(--line);
  border-radius:9px;
  background:color-mix(in srgb,var(--paper) 82%,var(--canvas));
  overflow:hidden
}

.detail-advanced summary {
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  list-style:none;
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  cursor:pointer
}

.detail-advanced summary::-webkit-details-marker {
  display:none
}

.detail-advanced summary::before {
  content:'▾';
  color:var(--ink);
  font-size:13px;
  line-height:1
}

.detail-advanced:not([open]) summary::before {
  content:'▸'
}

.detail-advanced-fields {
  display:grid;
  gap:12px;
  padding:12px 16px 16px;
  border-top:1px solid var(--line)
}

.detail-advanced .form-pair {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.detail-advanced .form-pair>label,.detail-advanced input,.detail-advanced select {
  min-width:0
}

.detail-advanced [data-detail-recurrence-count].disabled {
  color:var(--muted);
  opacity:.48
}

.detail-advanced [data-detail-recurrence-count].disabled input {
  cursor:not-allowed
}

.detail-call-details {
  width:100%
}

.detail-call-details summary {
  display:inline-flex;
  align-items:center;
  min-height:26px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--paper);
  padding:4px 9px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  cursor:pointer
}

.detail-call-details[open] summary {
  margin-bottom:12px;
  color:var(--ink);
  border-color:var(--green)
}

.detail-call-details>div {
  display:grid;
  gap:12px;
  padding:0
}

.detail-call-details .form-pair {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.workspace-options {
  padding:10px;
  display:grid;
  gap:4px;
}

.workspace-option {
  display:grid;
  grid-template-columns:38px 1fr auto;
  align-items:center;
  gap:11px;
  width:100%;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  padding:10px;
  text-align:left;
  cursor:pointer;
}

.workspace-option:hover {
  background:#f0f1eb;
}

.workspace-option.selected {
  border-color:#cfdbd4;
  background:var(--green-soft);
}

.workspace-option > span:nth-child(2) {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.workspace-option small {
  color:var(--muted);
}

.new-from-switcher {
  width:calc(100% - 20px);
  margin:0 10px 14px;
  border:1px dashed #cfd2cc;
  border-radius:9px;
  background:transparent;
  padding:11px;
  color:var(--green);
  cursor:pointer;
}

.search-overlay {
  position:fixed;
  inset:0;
  background:rgba(31,38,34,.25);
  backdrop-filter:blur(3px);
  z-index:80;
  padding-top:9vh;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

.search-dialog {
  width:min(650px,80vw);
  max-height:72vh;
  background:var(--paper);
  border:1px solid #d6d8d2;
  border-radius:15px;
  box-shadow:0 28px 80px rgba(29,37,33,.2);
  overflow:hidden;
}

.search-input {
  display:flex;
  align-items:center;
  gap:11px;
  border-bottom:1px solid var(--line);
  padding:13px 15px;
}

.search-input > span {
  font-size:22px;
  color:var(--muted);
}

.search-input input {
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  padding:8px 0;
  font-size:16px;
}

.search-input button {
  border:1px solid var(--line);
  border-radius:6px;
  background:#f1f1ed;
  color:var(--muted);
  font-size:10px;
  padding:4px 7px;
  cursor:pointer;
}

.search-results {
  max-height:55vh;
  overflow:auto;
  padding:8px;
}

.search-hint {
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  gap:7px;
  font-size:12px;
}

.search-hint b {
  color:var(--ink);
  font-size:14px;
}

.search-result {
  width:100%;
  display:grid;
  grid-template-columns:75px 1fr auto;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:9px;
  background:transparent;
  padding:12px;
  text-align:left;
  cursor:pointer;
}

.search-result:hover {
  background:#eeeee9;
}

.result-type {
  color:#718078;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:9px;
  font-weight:700;
}

.search-result > span:nth-child(2) {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.search-result small {
  color:var(--muted);
}

.search-command-section {
  padding:7px
}

.search-command-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
  padding:9px 10px 10px
}

.search-command-heading b {
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em
}

.search-command-heading span {
  color:var(--muted);
  font-size:11px
}

.search-command-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px
}

.search-command {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:62px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  padding:9px 10px;
  text-align:left;
  cursor:pointer
}

.search-command:hover,.search-command:focus-visible {
  border-color:var(--line);
  background:color-mix(in srgb,var(--green-soft) 58%,transparent);
  outline:none
}

.search-command-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:16px;
  font-weight:700
}

.search-command>span:nth-child(2) {
  display:grid;
  gap:3px;
  min-width:0
}

.search-command b {
  font-size:12px
}

.search-command small {
  overflow:hidden;
  color:var(--muted);
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap
}

.search-command>kbd,.search-command>span:last-child {
  color:var(--muted);
  font-size:10px
}

.empty {
  border:1px dashed #d6d7d1;
  border-radius:12px;
  padding:28px;
  color:var(--muted);
  background:rgba(255,255,255,.35);
}

.empty.large {
  min-height:350px;
  display:grid;
  place-items:center;
}

.muted {
  color:var(--muted);
}

.small {
  font-size:12px;
  padding:0 10px;
}

.toast {
  position:fixed;
  left:50%;
  bottom:-70px;
  transform:translateX(-50%);
  background:#26342f;
  color:white;
  padding:11px 17px;
  border-radius:9px;
  box-shadow:var(--shadow);
  transition:.25s ease;
  z-index:100;
  font-size:13px;
}

.toast.show {
  bottom:24px;
}

.toast.error {
  background:var(--red);
}

.toast.undo {
  display:flex;
  align-items:center;
  gap:14px;
}

.toast.undo button {
  appearance:none;
  border:0;
  border-radius:5px;
  padding:6px 10px;
  background:var(--green);
  color:white;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  line-height:1;
  letter-spacing:0;
  cursor:pointer;
}

.toast.undo button:hover,.toast.undo button:focus-visible {
  background:var(--green-dark);
  outline:0;
}

@media( max-width:1050px) {
  .saved-indicator {
    display:none;
  }
  .layout,.layout:has(.detail-pane.open) {
    grid-template-columns:210px minmax(0,1fr)
  }
  .detail-pane.open {
    position:fixed;
    right:0;
    top:68px;
    width:400px;
    z-index:15
  }
  .sidebar {
    padding-left:8px;
    padding-right:8px
  }
  .main {
    padding-left:30px;
    padding-right:30px
  }
  .mode-launcher {
    grid-template-columns:1fr
  }
  .mode-grid {
    grid-template-columns:repeat(2,minmax(150px,1fr))
  }
  .project-tabs {
    grid-template-columns:repeat(2,minmax(130px,1fr))
  }
  .home-grid {
    grid-template-columns:1fr
  }
  .stat-panel {
    display:grid;
    grid-template-columns:auto 1fr auto 1fr;
    gap:12px
  }
  .stat-panel hr {
    display:none
  }
  .today-grid {
    grid-template-columns:1fr
  }
  .task-head,.task-row {
    grid-template-columns:34px minmax(200px,1fr) 110px 100px 90px 60px
  }
  .module-grid {
    grid-template-columns:repeat(2,minmax(220px,1fr))
  }
  .core-strip {
    flex-wrap:wrap
  }
  .core-strip > div:first-child {
    width:100%
  }
  .knowledge-layout {
    grid-template-columns:1fr
  }
  .knowledge-intro {
    display:none
  }
}

@media( prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important
  }
}

html[data-theme="dark"] {
  color-scheme:dark;
  --ink:#e7e9f3;
  --muted:#a6a9bd;
  --line:#444966;
  --paper:#1c203b;
  --canvas:#171a30;
  --green:#579bfc;
  --green-dark:#78adfa;
  --green-soft:#293458;
  --warm:#fdab3d;
  --red:#ff6b7a;
  --shadow:0 18px 46px rgba(3,5,18,.34);
}

html[data-theme="dark"] body {
  background:var(--canvas);
}

html[data-theme="dark"] .topbar,html[data-theme="dark"] .sidebar {
  background:#191c34;
  border-color:#393e5b;
}

html[data-theme="dark"] .brand-mark,html[data-theme="dark"] .primary,html[data-theme="dark"] .capture-card button,html[data-theme="dark"] .inline-form button,html[data-theme="dark"] .stack-form button {
  background:#579bfc;
  color:#fff;
}

html[data-theme="dark"] .search-trigger,html[data-theme="dark"] .secondary,html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .capture-card,html[data-theme="dark"] .feature-panel,html[data-theme="dark"] .stat-panel,html[data-theme="dark"] .project-card,html[data-theme="dark"] .task-table,html[data-theme="dark"] .list-toolbar,html[data-theme="dark"] .inbox-item,html[data-theme="dark"] .today-section,html[data-theme="dark"] .detail-pane,html[data-theme="dark"] .detail-header,html[data-theme="dark"] .knowledge-layout,html[data-theme="dark"] .module-card,html[data-theme="dark"] .data-actions,html[data-theme="dark"] .modal-card,html[data-theme="dark"] .search-dialog {
  background:var(--paper);
  border-color:var(--line);
}

html[data-theme="dark"] .feature-panel {
  background:linear-gradient(135deg,#242946,#1d2341);
}

html[data-theme="dark"] .nav-link,html[data-theme="dark"] .nav-icon {
  color:#a6a9bd;
}

html[data-theme="dark"] .nav-link:hover,html[data-theme="dark"] .task-row:hover,html[data-theme="dark"] .agenda-row:hover,html[data-theme="dark"] .knowledge-row:hover,html[data-theme="dark"] .search-result:hover,html[data-theme="dark"] .workspace-option:hover {
  background:#252a49;
  color:var(--ink);
}

html[data-theme="dark"] .nav-link.active,html[data-theme="dark"] .workspace-option.selected {
  background:#293458;
  color:#82b4ff;
}

html[data-theme="dark"] .count,html[data-theme="dark"] .today-heading>span,html[data-theme="dark"] .status-todo,html[data-theme="dark"] kbd {
  background:#2a2f4d;
  color:#c3c6d7;
  border-color:#484d6b;
}

html[data-theme="dark"] .task-head,html[data-theme="dark"] .knowledge-list-head,html[data-theme="dark"] .archive-table th,html[data-theme="dark"] .intake-table th,html[data-theme="dark"] .module-card.unavailable {
  background:#222640;
}

html[data-theme="dark"] .project-welcome,html[data-theme="dark"] .empty {
  background:rgba(255,255,255,.018);
  border-color:#484d69;
}

html[data-theme="dark"] .detail-form input,html[data-theme="dark"] .detail-form select,html[data-theme="dark"] .detail-form textarea,html[data-theme="dark"] .inline-form select,html[data-theme="dark"] .stack-form select,html[data-theme="dark"] .stack-form input,html[data-theme="dark"] .modal-form input,html[data-theme="dark"] .modal-form select,html[data-theme="dark"] .modal-form textarea,html[data-theme="dark"] .linked-item {
  background:#171a30;
  color:var(--ink);
  border-color:var(--line);
}

html[data-theme="dark"] .project-title-input {
  background:#171a30;
  color:var(--ink);
  border-color:#579bfc;
}

html:not([data-theme="dark"]) {
  scrollbar-color:#9ba4b3 #eef1f5;
}

html:not([data-theme="dark"])::-webkit-scrollbar-track {
  background:#eef1f5;
}

html:not([data-theme="dark"])::-webkit-scrollbar-thumb {
  background:#9ba4b3;
  border-color:#eef1f5;
}

html:not([data-theme="dark"])::-webkit-scrollbar-thumb:hover {
  background:#737e90;
}

html[data-theme="dark"] .core-strip {
  background:linear-gradient(120deg,#222743,#1d2441);
  border-color:var(--line);
}

html[data-theme="dark"] .core-module {
  background:#262b49;
  border-color:#484e70;
}

html[data-theme="dark"] .admin-note {
  background:#332b2f;
  border-color:#60464b;
  color:#e4b9aa;
}

html[data-theme="dark"] .admin-note span {
  color:#c7a39a;
}

html[data-theme="dark"] .toast {
  background:#e7e9f3;
  color:#171a30;
}

html[data-theme="dark"] .ghost-danger {
  color:#ff8b9a;
}

html[data-theme="dark"] .ghost-danger:hover {
  background:#432b3a;
}

html[data-theme="dark"] .calendar-main,html[data-theme="dark"] .calendar-unscheduled {
  background:#1c203b;
  border-color:#444966;
}

html[data-theme="dark"] .calendar-weekdays,html[data-theme="dark"] .calendar-toolbar button {
  background:#242844;
  border-color:#444966;
}

html[data-theme="dark"] .calendar-toolbar,html[data-theme="dark"] .calendar-toolbar button,html[data-theme="dark"] .calendar-toolbar>span,html[data-theme="dark"] .calendar-weekdays span,html[data-theme="dark"] .calendar-day>header,html[data-theme="dark"] .calendar-kicker,html[data-theme="dark"] .calendar-unscheduled h3,html[data-theme="dark"] .calendar-unscheduled>p,html[data-theme="dark"] .calendar-unscheduled>div>button,html[data-theme="dark"] .calendar-unscheduled small,html[data-theme="dark"] .calendar-empty {
  color:#f8f9ff;
}

html[data-theme="dark"] .calendar-day {
  border-color:#373c58;
}

html[data-theme="dark"] .calendar-day.outside {
  background:#181b32;
  color:#f8f9ff;
}

html[data-theme="dark"] .calendar-day.today>header>span {
  background:#579bfc;
  color:#fff;
}

html[data-theme="dark"] .calendar-day.drag-over {
  background:#293458;
}

html[data-theme="dark"] .calendar-item {
  background:#315a91;
  color:#fff;
}

html[data-theme="dark"] .calendar-item.priority-high {
  background:#755328;
  color:#fff;
}

html[data-theme="dark"] .calendar-item.priority-urgent {
  background:#753846;
  color:#fff;
}

html[data-theme="dark"] .calendar-deadline {
  border-color:#ff6b7a;
  color:#fff;
}

html[data-theme="dark"] .calendar-unscheduled>div>button {
  background:#181b32;
  border-color:#444966;
  color:var(--ink);
}

html[data-theme="dark"] .gantt-shell,html[data-theme="dark"] .gantt-names {
  background:#1c203b;
  border-color:#444966;
}

html[data-theme="dark"] .gantt-name-head,html[data-theme="dark"] .gantt-days {
  background:#242844;
  border-color:#444966;
}

html[data-theme="dark"] .gantt-name:hover {
  background:#252a49;
}

html[data-theme="dark"] .gantt-name,html[data-theme="dark"] .gantt-track {
  border-color:#373c58;
}

html[data-theme="dark"] .gantt-track {
  background:repeating-linear-gradient(to right,transparent 0,transparent 27px,#343952 27px,#343952 28px);
}

html[data-theme="dark"] .gantt-days>span {
  border-color:#444966;
}

html[data-theme="dark"] .gantt-days>span.weekend {
  background:#20233c;
}

html[data-theme="dark"] .gantt-days>span.today {
  background:#29446d;
  color:#b9d7ff;
}

html[data-theme="dark"] .primary:hover {
  background:#6ca7fb;
}

html[data-theme="dark"] .project-tabs button.active,html[data-theme="dark"] .project-tabs a.active,html[data-theme="dark"] .project-subview:hover,html[data-theme="dark"] .project-subview.active {
  background:#293458;
  color:#82b4ff;
}

html[data-theme="dark"]:is(button,a,input,select,textarea):focus-visible {
  outline:2px solid #579bfc;
  outline-offset:2px;
}

/* Personal productivity mode favors glanceable, comfortable controls over dense admin UI. */
.topbar {
  height:72px
}

.layout {
  min-height:calc(100vh - 72px)
}

.sidebar {
  top:72px;
  height:calc(100vh - 72px)
}

.brand {
  font-size:18px
}

.workspace-switch {
  font-size:15px
}

.search-trigger {
  font-size:14px;
  padding:10px 13px
}

.saved-indicator {
  font-size:13px
}

.theme-toggle {
  font-size:13px;
  padding:9px 12px
}

.nav-link {
  min-height:44px;
  font-size:15px
}

.project-links .nav-link {
  font-size:14px
}

.nav-section {
  font-size:11px
}

.new-workspace {
  font-size:14px
}

.page-header {
  margin-bottom:30px
}

.eyebrow,.panel-label {
  font-size:11px
}

h1 {
  font-size:38px
}

.page-header p {
  font-size:15px;
  line-height:1.5
}

.primary,.secondary {
  min-height:44px;
  padding:10px 18px;
  font-size:14px
}

.primary.compact {
  min-height:42px;
  padding:9px 16px;
  font-size:14px
}

.page-header .primary {
  height:44px;
  min-height:44px;
  padding-block:0;
  font-size:18px;
  line-height:1
}

.project-view-label {
  font-size:11px
}

.project-tabs button,.project-tabs a {
  min-height:66px;
  font-size:15px
}

.project-knowledge-link {
  font-size:12px
}

@media( max-width:1050px) {
  .detail-pane.open {
    top:72px
  }
  .sidebar {
    top:72px;
    height:calc(100vh - 72px)
  }
}

/* Monday-style project list refinements */
html[data-theme="dark"] .task-table .status-todo {
  background:#315a91;
  color:#d7e9ff
}

html[data-theme="dark"] .task-table .status-in_progress {
  background:#7a5422;
  color:#ffe0b0
}

html[data-theme="dark"] .task-table .status-blocked {
  background:#65303d;
  color:#ffd7de
}

html[data-theme="dark"] .task-table .status-done {
  background:#174d3d;
  color:#c0f4df
}

html[data-theme="dark"] .task-row.group-row {
  background:#20243e
}

@media(max-width:1050px) {
  .task-table {
    overflow-x:auto
  }
  .task-head,.task-row {
    min-width:920px;
    grid-template-columns:38px minmax(260px,1.5fr) minmax(145px,.8fr) 92px 110px minmax(130px,.7fr) 68px
  }
}

/* Large-type accessibility pass: compact metadata never carries primary information. */
body {
  font-size:16px
}

kbd,.saved-indicator,.count {
  font-size:13px
}

.theme-toggle {
  font-size:14px
}

.theme-toggle span {
  font-size:16px
}

.nav-section,.eyebrow,.panel-label,.project-view-label {
  font-size:12px
}

.project-links .nav-link,.project-subview,.project-view-chip,.project-knowledge-link {
  font-size:14px
}

.page-header p,.mode-card small,.project-card p,.stat-panel {
  font-size:15px
}

.primary,.secondary {
  font-size:15px
}

.project-tabs button,.project-tabs a {
  font-size:16px
}

.list-toolbar {
  min-height:72px
}

.list-title b {
  font-size:18px
}

.list-title small {
  font-size:13px
}

.list-title>span {
  font-size:20px
}

.tool-button {
  padding:10px 13px;
  font-size:13px
}

.task-head,.task-row {
  grid-template-columns:42px minmax(300px,1.5fr) minmax(170px,.8fr) 108px 126px minmax(155px,.7fr) 74px
}

.task-head {
  min-height:48px;
  font-size:12px
}

.task-row {
  min-height:60px;
  font-size:15px
}

.task-row.group-row {
  min-height:64px
}

.check-button {
  width:22px;
  height:22px;
  font-size:14px
}

.task-title small {
  font-size:11px;
  padding:4px 7px
}

.timeline-cell {
  font-size:13px
}

.status,.priority {
  font-size:12px;
  padding:8px 9px!important
}

.status {
  width:102px
}

.priority {
  width:82px
}

.progress-cell {
  grid-template-columns:1fr 38px;
  gap:9px
}

.progress-cell>span {
  height:7px
}

.progress-cell b {
  font-size:12px
}

.detail-form label,.modal-form label {
  font-size:13px
}

.detail-section h3 {
  font-size:14px
}

.linked-item,.relationship-line,.activity-line {
  font-size:14px
}

.knowledge-list-head,.retention-note,.module-meta,.admin-note,.data-actions p {
  font-size:13px
}

.module-card p {
  font-size:14px
}

.module-card h3 {
  font-size:17px
}

.search-result small,.search-hint {
  font-size:14px
}

.result-type {
  font-size:12px
}

@media(max-width:1050px) {
  .task-head,.task-row {
    min-width:1080px;
    grid-template-columns:42px minmax(300px,1.5fr) minmax(170px,.8fr) 108px 126px minmax(155px,.7fr) 74px
  }
}

/* Product typography contract: 14px metadata, 16px working text, large controls. */
body small,kbd,.saved-indicator,.count {
  font-size:14px
}

.nav-link {
  font-size:16px
}

.nav-section,.eyebrow,.panel-label,.project-view-label {
  font-size:14px
}

.project-links .nav-link,.project-subview,.project-view-chip,.project-knowledge-link {
  font-size:15px
}

.primary,.secondary {
  min-height:46px;
  padding:11px 19px;
  font-size:16px
}

.list-toolbar {
  min-height:76px
}

.list-title b {
  font-size:19px
}

.list-title small {
  font-size:14px
}

.list-title>span {
  font-size:21px
}

.tool-button {
  min-height:42px;
  padding:10px 14px;
  font-size:14px
}

.task-head {
  min-height:52px;
  font-size:14px
}

.task-row {
  min-height:64px;
  font-size:16px
}

.task-row.group-row {
  min-height:68px
}

.task-title small {
  font-size:14px;
  padding:4px 8px
}

.timeline-cell {
  font-size:14px
}

.status,.priority {
  font-size:14px;
  padding:9px 10px!important
}

.status {
  width:112px
}

.priority {
  width:92px
}

.progress-cell {
  grid-template-columns:1fr 46px;
  gap:10px
}

.progress-cell>span {
  height:8px
}

.progress-cell b {
  font-size:14px
}

.detail-form label,.modal-form label {
  font-size:14px
}

.detail-section h3 {
  font-size:16px
}

.linked-item,.relationship-line,.activity-line {
  font-size:15px
}

.knowledge-list-head,.retention-note,.module-meta,.admin-note,.data-actions p {
  font-size:14px
}

.module-card p {
  font-size:15px
}

.module-card h3 {
  font-size:18px
}

.result-type {
  font-size:14px
}

/* Large app chrome shared by every browser view. */
.topbar {
  height:82px;
  gap:22px;
  padding:0 24px
}

.brand {
  width:224px;
  font-size:21px;
  gap:12px
}

.brand-mark {
  width:38px;
  height:38px;
  font-size:17px;
  border-radius:11px
}

.workspace-switch {
  min-width:180px;
  font-size:17px;
  padding:12px 8px
}

.search-trigger {
  width:min(520px,40vw);
  min-height:48px;
  padding:11px 15px;
  font-size:16px
}

.search-trigger kbd {
  font-size:13px;
  padding:3px 7px
}

.saved-indicator {
  font-size:14px
}

.theme-toggle {
  min-height:46px;
  padding:10px 14px;
  font-size:15px
}

.topbar .primary {
  min-height:48px;
  padding:11px 20px;
  font-size:16px
}

.layout {
  grid-template-columns:270px minmax(0,1fr) 0;
  min-height:calc(100vh - 82px)
}

.layout:has(.detail-pane.open) {
  grid-template-columns:270px minmax(0,1fr) 420px
}

.sidebar {
  top:82px;
  height:calc(100vh - 82px);
  padding:24px 15px 18px
}

.nav-link {
  min-height:52px;
  gap:13px;
  padding:10px 12px;
  border-radius:10px;
  font-size:17px
}

.nav-icon {
  width:23px;
  height:23px;
  flex-basis:23px
}

.nav-icon svg {
  width:19px;
  height:19px
}

.count {
  min-width:24px;
  padding:3px 7px
}

.nav-section {
  margin:28px 10px 9px;
  font-size:14px
}

.nav-section button {
  font-size:20px
}

.project-links .nav-link {
  font-size:16px
}

.project-subviews {
  gap:5px;
  padding:5px 7px 10px 38px
}

.project-subview {
  min-height:38px;
  padding:8px 9px;
  font-size:15px
}

.new-workspace {
  min-height:48px;
  padding:12px;
  font-size:16px
}

.detail-pane {
  top:82px;
  height:calc(100vh - 82px)
}

.page-header {
  margin-bottom:34px
}

.eyebrow,.panel-label {
  font-size:14px
}

h1 {
  font-size:40px
}

.page-header p {
  font-size:17px
}

.page-header .primary {
  height:48px;
  min-height:48px;
  font-size:17px
}

/* Admin is organized around decisions, not a wall of settings cards. */
.admin-preference {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 20px;
  margin:-4px 0 16px;
  border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));
  border-radius:14px;
  background:var(--paper)
}

.admin-preference h2 {
  margin:5px 0;
  font-size:18px
}

.admin-preference p {
  margin:0;
  color:var(--muted);
  font-size:13px
}

.admin-preference form {
  display:flex;
  align-items:end;
  gap:8px
}

.admin-preference label {
  display:grid;
  gap:5px;
  color:var(--muted);
  font-size:12px
}

.admin-preference select {
  min-width:130px
}

.admin-preference .secondary {
  min-height:38px;
  padding:7px 12px;
  font-size:14px
}

.admin-overview {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:34px;
  padding:28px 30px;
  margin:-4px 0 26px;
  border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));
  border-radius:16px;
  background:linear-gradient(115deg,var(--green-soft),color-mix(in srgb,var(--paper) 94%,var(--green-soft)));
}

.admin-overview h2 {
  font-size:25px;
  margin:7px 0 5px
}

.admin-overview p,.admin-panel-heading p {
  margin:0;
  color:var(--muted);
  line-height:1.5
}

.admin-health-stats {
  display:flex;
  align-items:stretch;
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper);
  overflow:hidden
}

.admin-health-stats span {
  display:grid;
  gap:2px;
  min-width:122px;
  padding:12px 16px;
  color:var(--muted);
  font-size:12px
}

.admin-health-stats span+span {
  border-left:1px solid var(--line)
}

.admin-health-stats b {
  color:var(--ink);
  font-size:18px
}

.admin-layout {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(290px,.86fr);
  gap:16px;
  margin-bottom:16px
}

.admin-panel {
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--paper);
  padding:24px
}

.admin-panel-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:20px
}

.admin-panel-heading h2 {
  margin:6px 0 7px;
  font-size:22px
}

.integration-list {
  border-top:1px solid var(--line)
}

.integration-row {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:16px 0;
  border-bottom:1px solid var(--line)
}

.integration-row:last-child {
  border-bottom:0;
  padding-bottom:0
}

.integration-row h3 {
  font-size:16px
}

.integration-row p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:14px
}

.integration-action {
  display:flex;
  align-items:center;
  gap:12px
}

.integration-action .secondary {
  min-height:38px;
  padding:7px 12px;
  font-size:14px
}

.connection-state {
  color:var(--muted);
  font-size:13px;
  white-space:nowrap
}

.connection-state::before {
  content:'';
  display:inline-block;
  width:7px;
  height:7px;
  margin:0 7px 1px 0;
  border-radius:50%;
  background:#a1a7a4
}

.connection-state.connected {
  color:var(--green)
}

.connection-state.connected::before {
  background:var(--green)
}

.admin-core {
  background:linear-gradient(145deg,var(--paper),var(--green-soft))
}

.core-list {
  display:flex;
  flex-wrap:wrap;
  gap:9px
}

.admin-core .core-module {
  border-color:color-mix(in srgb,var(--green) 24%,var(--line));
  background:var(--paper);
  font-size:14px;
  padding:9px 11px
}

.admin-core .core-module i {
  font-style:normal;
  color:var(--green)
}

.admin-capabilities {
  margin-bottom:16px
}

.planning-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}

.planning-card {
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
  background:color-mix(in srgb,var(--paper) 96%,var(--canvas));
}

.planning-card.enabled {
  border-color:color-mix(in srgb,var(--green) 56%,var(--line));
  box-shadow:inset 0 3px 0 var(--green)
}

.planning-card h3 {
  margin:18px 0 7px;
  font-size:17px
}

.planning-card p {
  min-height:44px;
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45
}

.planning-card .module-meta {
  margin-top:16px;
  font-size:13px
}

.planning-card .module-meta small {
  max-width:130px
}

.extension-contract {
  margin-top:18px;
  border-top:1px solid var(--line);
  padding-top:15px
}

.extension-contract summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  color:var(--muted);
  font-size:14px
}

.extension-contract summary span {
  color:var(--ink);
  font-weight:600
}

.extension-contract summary small {
  font-size:12px
}

.extension-contract>div {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding-top:15px
}

.extension-contract article {
  display:grid;
  grid-template-columns:34px 1fr;
  gap:9px;
  padding:12px;
  border-radius:10px;
  background:var(--canvas)
}

.extension-contract .module-icon {
  width:34px;
  height:34px;
  font-size:14px
}

.extension-contract b {
  font-size:13px
}

.extension-contract p {
  margin:3px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.35
}

.extension-contract article>small {
  grid-column:2;
  color:var(--muted);
  font-size:11px
}

.admin-email {
  margin-bottom:16px
}

.admin-email .intake-sync-grid {
  gap:12px
}

.admin-email .intake-sync-card {
  gap:13px;
  padding:18px
}

.admin-email .intake-sync-card h3 {
  font-size:17px
}

.admin-email .intake-sync-card .gmail-status {
  margin:4px 0 0
}

.policy-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}

.admin-email .secondary {
  justify-self:start
}

.admin-backup {
  margin-top:0;
  background:linear-gradient(90deg,var(--paper),color-mix(in srgb,var(--paper) 90%,var(--green-soft)))
}

html[data-theme="dark"] .admin-overview {
  background:linear-gradient(115deg,#202b4b,#1b203a);
  border-color:#485b88
}

html[data-theme="dark"] .admin-health-stats {
  background:#171b32;
  border-color:var(--line)
}

html[data-theme="dark"] .admin-core {
  background:linear-gradient(145deg,#1c203b,#222b49)
}

html[data-theme="dark"] .planning-card {
  background:#1a1e37;
  border-color:#454b68
}

html[data-theme="dark"] .planning-card.enabled {
  border-color:#5278b6;
  box-shadow:inset 0 3px 0 #579bfc
}

html[data-theme="dark"] .extension-contract article {
  background:#171a30
}

.admin-panel,.admin-overview {
  box-shadow:0 10px 30px rgba(29,37,33,.025)
}

@media(max-width:1050px) {
  .admin-overview {
    align-items:flex-start;
    flex-direction:column
  }
  .admin-layout {
    grid-template-columns:1fr
  }
  .planning-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .extension-contract>div {
    grid-template-columns:1fr 1fr
  }
}

@media(max-width:720px) {
  .admin-health-stats {
    width:100%
  }
  .admin-health-stats span {
    min-width:0;
    flex:1;
    padding:10px
  }
  .integration-row {
    grid-template-columns:40px 1fr
  }
  .integration-action {
    grid-column:2;
    justify-content:space-between
  }
  .planning-grid,.extension-contract>div {
    grid-template-columns:1fr
  }
  .policy-fields {
    grid-template-columns:1fr
  }
  .admin-panel-heading {
    flex-direction:column;
    gap:12px
  }
  .admin-panel {
    padding:19px
  }
}

/* The admin page separates input sources from workspace projections. */
.admin-section-nav {
  display:flex;
  gap:8px;
  margin:0 0 38px
}

.admin-section-nav a {
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:var(--muted);
  font-size:14px;
  font-weight:600
}

.admin-section-nav a:hover {
  border-color:var(--green);
  color:var(--green)
}

.admin-section-nav a span {
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--green-soft);
  color:var(--green);
  font-size:10px
}

.admin-group {
  scroll-margin-top:104px;
  margin-bottom:42px
}

.admin-group-heading {
  max-width:680px;
  margin:0 0 19px
}

.admin-group-heading h2 {
  margin:7px 0 7px;
  font-size:27px
}

.admin-group-heading p {
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.5
}

.admin-source-layout {
  grid-template-columns:minmax(320px,.86fr) minmax(480px,1.35fr)
}

.admin-core-layout {
  margin-bottom:16px
}

.admin-core-layout .admin-core {
  min-height:0
}

.admin-core-layout .admin-panel-heading {
  margin-bottom:16px
}

.admin-source-layout .admin-email {
  margin-bottom:0
}

.admin-source-layout .admin-email .intake-sync-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.admin-source-layout .admin-email .intake-sync-card {
  min-width:0
}

.admin-source-layout .admin-email .intake-sync-card .policy-fields {
  grid-template-columns:1fr
}

.admin-source-layout .admin-email .secondary {
  font-size:14px;
  padding-left:13px;
  padding-right:13px
}

.admin-group + .data-actions {
  margin-top:-18px
}

@media(max-width:1050px) {
  .admin-source-layout {
    grid-template-columns:1fr
  }
  .admin-source-layout .admin-email .intake-sync-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media(max-width:720px) {
  .admin-section-nav {
    margin-bottom:30px
  }
  .admin-group-heading h2 {
    font-size:24px
  }
  .admin-source-layout .admin-email .intake-sync-grid {
    grid-template-columns:1fr
  }
}

/* Email is an optional expansion of the same source-connection list. */
.admin-source-layout {
  grid-template-columns:1fr
}

.integration-email-fold {
  border-top:1px solid var(--line)
}

.integration-email-fold summary {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:16px 0;
  cursor:pointer;
  list-style:none
}

.integration-email-fold summary::-webkit-details-marker {
  display:none
}

.integration-email-fold summary h3 {
  font-size:16px
}

.integration-email-fold summary p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:14px
}

.fold-summary {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap
}

.fold-summary i {
  font-style:normal;
  font-size:18px;
  transition:transform .16s ease
}

.integration-email-fold[open] .fold-summary {
  color:var(--green)
}

.integration-email-fold[open] .fold-summary i {
  transform:rotate(180deg)
}

.email-fold-body {
  border-top:1px solid var(--line);
  padding:18px 0 2px
}

.email-fold-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 14px
}

.email-fold-heading p {
  margin:0;
  color:var(--muted);
  font-size:14px
}

.email-fold-heading .secondary {
  min-height:38px;
  padding:7px 12px;
  font-size:14px
}

.email-fold-body .intake-sync-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}

.email-fold-body .intake-sync-card {
  gap:13px;
  padding:18px
}

.email-fold-body .intake-sync-card h3 {
  font-size:17px
}

.email-fold-body .intake-sync-card .gmail-status {
  margin:4px 0 0
}

.email-fold-body .secondary {
  justify-self:start
}

@media(max-width:720px) {
  .integration-email-fold summary {
    grid-template-columns:40px 1fr
  }
  .fold-summary {
    grid-column:2;
    justify-content:space-between
  }
  .email-fold-heading {
    align-items:flex-start;
    flex-direction:column
  }
  .email-fold-body .intake-sync-grid {
    grid-template-columns:1fr
  }
}

.project-view-bar {
  min-height:84px;
  padding:12px 14px
}

.project-view-label {
  font-size:14px
}

.project-tabs button,.project-tabs a {
  min-height:64px;
  font-size:17px
}

.project-knowledge-link {
  font-size:15px
}

@media(max-width:1050px) {
  .layout,.layout:has(.detail-pane.open) {
    grid-template-columns:236px minmax(0,1fr)
  }
  .sidebar {
    top:82px;
    height:calc(100vh - 82px)
  }
  .detail-pane.open {
    top:82px
  }
  .brand {
    width:190px
  }
  .workspace-switch {
    min-width:140px
  }
  .main {
    padding-left:28px;
    padding-right:28px
  }
}

/* Compact desktop density: keep the workspace comfortably scannable on one screen. */
@media( min-width:1051px) {
  .topbar {
    height:60px;
    gap:16px;
    padding:0 18px
  }
  .brand {
    width:180px;
    gap:9px;
    font-size:16px
  }
  .brand-mark {
    width:30px;
    height:30px;
    font-size:14px;
    border-radius:9px
  }
  .workspace-switch {
    min-width:140px;
    padding:0;
    font-size:14px
  }
  .search-trigger {
    width:min(400px,36vw);
    min-height:0;
    padding:7px 10px;
    font-size:13px
  }
  .saved-indicator {
    font-size:11px
  }
  .theme-toggle {
    min-height:0;
    padding:7px 9px;
    font-size:10px
  }
  .theme-toggle span {
    font-size:13px
  }
  .layout {
    grid-template-columns:250px minmax(0,1fr) 0;
    min-height:calc(100vh - 60px)
  }
  .layout:has(.detail-pane.open) {
    grid-template-columns:250px minmax(0,1fr) 360px
  }
  .sidebar {
    top:60px;
    height:calc(100vh - 60px);
    padding:18px 11px 14px
  }
  .nav-link {
    min-height:36px;
    gap:9px;
    padding:6px 9px;
    border-radius:8px;
    font-size:13px
  }
  .nav-icon {
    width:18px;
    height:18px;
    flex-basis:18px
  }
  .nav-icon svg {
    width:16px;
    height:16px
  }
  .nav-section {
    margin:20px 8px 7px;
    font-size:9px
  }
  .nav-section button {
    font-size:15px
  }
  .project-links .nav-link {
    font-size:12px
  }
  .new-workspace {
    min-height:0;
    padding:8px;
    font-size:13px
  }
  .detail-pane {
    top:60px;
    height:calc(100vh - 60px)
  }
  .main {
    padding-top:32px;
    padding-bottom:52px
  }
  .page-header {
    margin-bottom:24px
  }
  .eyebrow,.panel-label {
    font-size:10px
  }
  h1 {
    font-size:30px
  }
  .page-header p {
    margin-top:7px;
    font-size:14px;
    line-height:1.4
  }
  .page-header .primary {
    height:38px;
    min-height:38px;
    padding-block:0;
    font-size:13px
  }
  .primary,.secondary {
    min-height:36px;
    padding:8px 14px;
    font-size:12px
  }
  .primary.compact {
    min-height:34px;
    padding:7px 11px;
    font-size:12px
  }
  .project-view-bar {
    min-height:0;
    margin-bottom:20px;
    padding:8px
  }
  .project-view-label {
    font-size:9px
  }
  .project-tabs {
    gap:6px
  }
  .project-tabs button,.project-tabs a {
    min-height:54px;
    padding:10px 12px;
    font-size:13px
  }
  .project-knowledge-link {
    font-size:11px
  }
}

/* Final palette guard: later component rules inherit the same silver / sky-blue language. */
html:not([data-theme="dark"]) .nav-tree-header:hover,html:not([data-theme="dark"]) .sidebar-item-row:hover {
  background:#e5ebf1;
  color:#1f2d3d
}

html:not([data-theme="dark"]) .nav-tree-header.active,html:not([data-theme="dark"]) .sidebar-item-row.active {
  background:#dcebf1;
  color:#15536d
}

html:not([data-theme="dark"]) .calendar-control-group {
  border-color:#cfd8e2;
  background:#eef2f6;
  box-shadow:0 6px 18px rgba(35,53,72,.04)
}

html:not([data-theme="dark"]) .calendar-period {
  border-color:#d7dfe7
}

html:not([data-theme="dark"]) .calendar-toolbar h2 {
  color:#1f2d3d
}

html:not([data-theme="dark"]) .calendar-toolbar button,html:not([data-theme="dark"]) .calendar-view-label,html:not([data-theme="dark"]) .calendar-main,html:not([data-theme="dark"]) .calendar-unscheduled,html:not([data-theme="dark"]) .calendar-unscheduled>div>button {
  border-color:#cfd8e2;
  background:#f8f9fb;
  color:#1f2d3d
}

html:not([data-theme="dark"]) .calendar-toolbar button:hover {
  border-color:#3197c2;
  background:#e6f1f6
}

html:not([data-theme="dark"]) .calendar-weekdays {
  border-color:#d1d9e3;
  background:#e5eaf0
}

html:not([data-theme="dark"]) .calendar-weekdays span {
  color:#607187
}

html:not([data-theme="dark"]) .calendar-day {
  border-color:#dce2e9;
  background:#f8f9fb
}

html:not([data-theme="dark"]) .calendar-day.outside {
  background:#eef1f5;
  color:#8491a1
}

html:not([data-theme="dark"]) .calendar-day>header {
  color:#526276
}

html:not([data-theme="dark"]) .calendar-day.today>header>span {
  background:#226f8c
}

html:not([data-theme="dark"]) .calendar-day.drag-over {
  background:#dcebf1;
  box-shadow:inset 0 0 0 2px #6da7bd
}

/* Light theme is a first-class palette, not an inversion of dark mode. */
html:not([data-theme="dark"]) body {
  background:#f4f6f8;
  color:#20242e
}

html:not([data-theme="dark"]) .topbar,html:not([data-theme="dark"]) .sidebar {
  background:#fff;
  border-color:#d8dce6
}

html:not([data-theme="dark"]) .search-trigger,html:not([data-theme="dark"]) .theme-toggle,html:not([data-theme="dark"]) .secondary {
  background:#fff;
  border-color:#cfd4df;
  box-shadow:0 2px 8px rgba(31,38,54,.05)
}

html:not([data-theme="dark"]) .nav-link {
  color:#465061
}

html:not([data-theme="dark"]) .nav-link:hover {
  background:#eef2f6;
  color:#20242e
}

html:not([data-theme="dark"]) .nav-link.active {
  background:#e3eee9;
  color:#245646
}

html:not([data-theme="dark"]) .project-view-bar,html:not([data-theme="dark"]) .list-toolbar,html:not([data-theme="dark"]) .task-table {
  background:#fff;
  border-color:#d8dce6;
  box-shadow:0 5px 18px rgba(31,38,54,.04)
}

html:not([data-theme="dark"]) .project-tabs a.active {
  background:#e3eee9;
  color:#245646
}

html:not([data-theme="dark"]) .project-tabs a:hover {
  background:#f0f3f6;
  color:#20242e
}

html:not([data-theme="dark"]) .task-head {
  background:#eef1f5;
  color:#4f596a
}

html:not([data-theme="dark"]) .task-row {
  border-color:#e1e4eb
}

html:not([data-theme="dark"]) .task-row.group-row {
  background:#f6f3fb
}

html:not([data-theme="dark"]) .task-row:hover {
  background:#f2f6fa
}

html:not([data-theme="dark"]) .check-button {
  background:#fff;
  border-color:#aeb5c2
}

html:not([data-theme="dark"]) .complete .check-button {
  background:#397dcc;
  border-color:#397dcc
}

html:not([data-theme="dark"]) .progress-cell>span {
  background:#e3e7ee
}

html:not([data-theme="dark"]) .progress-cell i {
  background:#397dcc
}

html:not([data-theme="dark"]) .tool-button {
  border-color:#cfd4df;
  background:#fff
}

html:not([data-theme="dark"]) .tool-button:hover {
  background:#eef2f6
}

/* Silver light mode: soft paper, quiet chrome, and a sky-blue working accent. */
html:not([data-theme="dark"]) body {
  background:#e9edf2;
  color:#1f2d3d
}

html:not([data-theme="dark"]) .topbar,html:not([data-theme="dark"]) .sidebar {
  background:#f3f5f7;
  border-color:#d1d9e3
}

html:not([data-theme="dark"]) .search-trigger,html:not([data-theme="dark"]) .theme-toggle,html:not([data-theme="dark"]) .secondary,html:not([data-theme="dark"]) .project-view-bar,html:not([data-theme="dark"]) .list-toolbar,html:not([data-theme="dark"]) .task-table {
  background:#f8f9fb;
  border-color:#d1d9e3;
  box-shadow:0 5px 18px rgba(35,53,72,.045)
}

html:not([data-theme="dark"]) .nav-link,html:not([data-theme="dark"]) .nav-tree-header,html:not([data-theme="dark"]) .sidebar-item-row {
  color:#526276
}

html:not([data-theme="dark"]) .nav-link:hover,html:not([data-theme="dark"]) .nav-tree-header:hover,html:not([data-theme="dark"]) .sidebar-item-row:hover,html:not([data-theme="dark"]) .tool-button:hover {
  background:#e5ebf1;
  color:#1f2d3d
}

html:not([data-theme="dark"]) .nav-link.active,html:not([data-theme="dark"]) .nav-tree-header.active,html:not([data-theme="dark"]) .sidebar-item-row.active,html:not([data-theme="dark"]) .project-tabs a.active {
  background:#dcebf1;
  color:#15536d
}

html:not([data-theme="dark"]) .project-tabs a:hover {
  background:#e5ebf1;
  color:#1f2d3d
}

html:not([data-theme="dark"]) .task-head {
  background:#e5eaf0;
  color:#526276
}

html:not([data-theme="dark"]) .task-row {
  border-color:#dce2e9
}

html:not([data-theme="dark"]) .task-row.group-row {
  background:#eef1f5
}

html:not([data-theme="dark"]) .task-row:hover {
  background:#e8eff4
}

html:not([data-theme="dark"]) .check-button,html:not([data-theme="dark"]) .tool-button {
  background:#f8f9fb;
  border-color:#c5d0dc
}

html:not([data-theme="dark"]) .complete .check-button,html:not([data-theme="dark"]) .progress-cell i {
  background:#287d9d;
  border-color:#287d9d
}

html:not([data-theme="dark"]) .progress-cell>span {
  background:#dbe3eb
}

/* Metallic header separates the global controls from the working canvas. */
html:not([data-theme="dark"]) .topbar {
  background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,255,255,0) 45%),linear-gradient(105deg,#c7cdd4 0%,#f3f5f7 20%,#d4d9df 49%,#fafbfc 72%,#c3c9d1 100%);
  border-bottom-color:#aeb6c0;
  box-shadow:inset 0 1px rgba(255,255,255,.9),0 3px 12px rgba(35,53,72,.12);
}

html:not([data-theme="dark"]) .topbar .workspace-switch {
  color:#273544
}

html:not([data-theme="dark"]) .topbar .search-trigger,html:not([data-theme="dark"]) .topbar .theme-toggle {
  background:rgba(255,255,255,.68);
  border-color:#b8c0ca;
  box-shadow:inset 0 1px rgba(255,255,255,.85),0 2px 5px rgba(35,53,72,.08);
}

/* Sidebar information architecture: global TownHall, pins, then owned life areas. */
.pinned-heading {
  margin-top:22px;
  margin-bottom:7px
}

.pinned-links {
  margin-bottom:12px
}

.nav-tree {
  margin-top:6px
}

.nav-tree-header {
  min-height:52px;
  display:grid;
  grid-template-columns:28px minmax(0,1fr) 34px;
  align-items:center;
  border-radius:10px;
  color:#555a56
}

.nav-tree-header:hover {
  background:#edeee8;
  color:var(--ink)
}

.nav-tree-header.active {
  color:var(--green-dark);
  font-weight:600
}

.tree-toggle,.tree-add,.pin-button {
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer
}

.tree-toggle {
  width:14px;
  height:14px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  border-radius:3px;
  font-size:11px;
  line-height:1;
  opacity:.5
}

.tree-toggle span {
  transform:translateY(-.5px)
}

.tree-toggle:hover,.tree-toggle:focus-visible {
  opacity:1
}

.tree-title {
  min-width:0;
  height:52px;
  padding:0;
  display:flex;
  align-items:center;
  gap:13px;
  text-align:left;
  font-size:17px;
  font-weight:inherit;
  cursor:default
}

.tree-title {
  text-decoration:none;
  color:inherit;
  cursor:pointer
}

.tree-add {
  width:32px;
  height:38px;
  border-radius:8px;
  font-size:20px;
  color:var(--muted)
}

.tree-add:hover {
  background:rgba(127,127,127,.12);
  color:var(--ink)
}

.tree-children {
  padding:4px 0 8px 20px
}

.tree-children[hidden] {
  display:none
}

.project-directory-table {
  border:1px solid var(--line);
  border-radius:0 0 12px 12px;
  background:var(--paper);
  overflow:hidden
}

.project-directory-head,.project-directory-row {
  display:grid;
  grid-template-columns:minmax(270px,1.5fr) minmax(160px,.7fr) 120px minmax(180px,.8fr) minmax(150px,.7fr) 52px;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:0 16px
}

.project-directory-head {
  min-height:38px;
  border-bottom:1px solid var(--line);
  background:var(--canvas);
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase
}

.project-directory-row {
  border-bottom:1px solid var(--line);
  color:var(--ink);
  font-size:13px;
  text-decoration:none
}

.project-directory-row:last-child {
  border-bottom:0
}

.project-directory-row:hover {
  background:var(--green-soft)
}

.project-directory-name {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0
}

.project-directory-name>i {
  width:10px;
  height:10px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--project-color)
}

.project-directory-name b,.project-directory-name small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.project-directory-name small,.project-directory-progress small {
  margin-top:3px;
  color:var(--muted);
  font-size:11px
}

.project-directory-progress {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px
}

.project-directory-progress>i {
  height:7px;
  overflow:hidden;
  border-radius:99px;
  background:var(--canvas)
}

.project-directory-progress>i>b {
  display:block;
  height:100%;
  border-radius:inherit;
  background:#579bfc
}

.project-directory-progress small {
  margin:0
}

.project-directory-row>span:last-child {
  color:var(--muted);
  font-size:16px
}

.project-directory-table .purpose-chip {
  max-width:92px
}

.project-directory-head>span:last-child {
  text-align:center
}

.project-sort-button {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  cursor:pointer
}

.project-sort-button>span {
  font-size:12px;
  line-height:1;
  opacity:.5
}

.project-sort-button.active,.project-sort-button:hover,.project-sort-button:focus-visible {
  color:var(--ink)
}

.project-sort-button.active>span {
  opacity:1
}

.project-sort-button:focus-visible {
  outline:2px solid var(--green);
  outline-offset:3px;
  border-radius:2px
}

@media(max-width:760px) {
  .project-directory-table {
    overflow-x:auto
  }
  .project-directory-head,.project-directory-row {
    min-width:800px
  }
}

.project-directory-row[draggable="true"] {
  cursor:grab
}

.project-directory-row.dragging {
  opacity:.45
}

.project-directory-row.drag-over {
  background:var(--green-soft);
  box-shadow:inset 0 2px 0 var(--green)
}

.sidebar-item-row {
  min-height:46px;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 32px;
  align-items:center;
  border-radius:9px;
  color:#555a56;
}

.sidebar-item-row:hover {
  background:#edeee8;
  color:var(--ink)
}

.sidebar-item-row.active {
  background:var(--green-soft);
  color:var(--green-dark);
  font-weight:600
}

.project-color-indicator {
  width:12px;
  height:12px;
  justify-self:center;
  border-radius:50%;
  background:var(--project-color);
  box-shadow:0 0 0 1px rgba(0,0,0,.22)
}

.sidebar-project-link {
  min-width:0;
  height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 4px
}

.sidebar-project-link .nav-icon {
  flex:0 0 23px
}

.sidebar-item-name {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.sidebar-item-name {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px
}

.sidebar-project-link small {
  margin-left:auto;
  color:var(--muted);
  font-size:11px;
  font-weight:500
}

.pin-button {
  width:30px;
  height:34px;
  border-radius:8px;
  opacity:0;
  color:var(--muted);
  display:grid;
  place-items:center
}

.pin-button>span {
  position:relative;
  display:block;
  width:14px;
  height:16px
}

.pin-button>span::before {
  content:'';
  position:absolute;
  left:3px;
  top:1px;
  width:7px;
  height:7px;
  border:1.5px solid currentColor;
  border-radius:2px;
  transform:rotate(45deg)
}

.pin-button>span::after {
  content:'';
  position:absolute;
  left:6px;
  top:8px;
  width:1.5px;
  height:7px;
  background:currentColor;
  border-radius:2px
}

.sidebar-item-row:hover .pin-button,.pin-button:focus-visible,.pin-button.pinned {
  opacity:1
}

.pin-button:hover {
  background:rgba(127,127,127,.13);
  color:var(--ink)
}

.pin-button.pinned {
  color:#579bfc
}

html[data-theme="dark"] .nav-tree-header,html[data-theme="dark"] .sidebar-item-row {
  color:#c3c9df
}

html[data-theme="dark"] .nav-tree-header:hover,html[data-theme="dark"] .sidebar-item-row:hover {
  background:#222740;
  color:#fff
}

html[data-theme="dark"] .nav-tree-header.active,html[data-theme="dark"] .sidebar-item-row.active {
  background:#293458;
  color:#82b4ff
}

html:not([data-theme="dark"]) .nav-tree-header,html:not([data-theme="dark"]) .sidebar-item-row {
  color:#465061
}

html:not([data-theme="dark"]) .nav-tree-header:hover,html:not([data-theme="dark"]) .sidebar-item-row:hover {
  background:#eef2f6;
  color:#20242e
}

html:not([data-theme="dark"]) .nav-tree-header.active,html:not([data-theme="dark"]) .sidebar-item-row.active {
  background:#e3eee9;
  color:#245646
}

.source-range-fold {
  grid-column:2/-1;
  margin:-4px 0 4px
}

.source-range-fold summary {
  cursor:pointer;
  color:var(--muted);
  font-size:13px
}

.source-range-fold form,.email-fold-body>form[data-source-id] {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:9px
}

.source-range-fold form>b,.email-fold-body>form[data-source-id]>b {
  display:none
}

.source-range-fold label,.email-fold-body>form[data-source-id] label {
  font-size:12px;
  color:var(--muted)
}

.source-range-fold input,.email-fold-body>form[data-source-id] input {
  width:46px;
  margin:0 4px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--canvas);
  color:var(--ink);
  padding:4px;
  text-align:center
}

.source-range-fold .secondary,.email-fold-body>form[data-source-id] .secondary {
  min-height:30px;
  padding:4px 9px;
  font-size:12px
}

.email-fold-body .intake-sync-grid {
  grid-template-columns:1fr
}

.email-account-fold {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper)
}

.email-account-fold summary {
  cursor:pointer;
  padding:12px 15px;
  font-size:14px;
  font-weight:700
}

.email-account-fold[open] summary {
  border-bottom:1px solid var(--line)
}

.email-account-fold .intake-sync-card {
  border:0;
  border-radius:0;
  padding:18px
}

.email-account-fold form[data-source-id] {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:4px
}

.email-account-fold form[data-source-id]>b {
  display:none
}

.email-account-fold form[data-source-id] label {
  font-size:12px;
  color:var(--muted)
}

.email-account-fold form[data-source-id] input {
  width:46px;
  margin:0 4px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--canvas);
  color:var(--ink);
  padding:4px;
  text-align:center
}

.email-account-fold form[data-source-id] .secondary {
  min-height:30px;
  padding:4px 9px;
  font-size:12px
}

.email-source-row .email-account-fold {
  grid-column:2/-1;
  margin:0 0 4px
}

.admin-preference {
  display:flex;
  align-items:center;
  gap:18px;
  margin:0 0 16px;
  padding:0 0 14px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:none
}

.admin-preference h2 {
  margin:0;
  font-size:16px
}

.admin-preference form {
  align-items:center
}

.admin-preference label {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:13px
}

.admin-preference select {
  min-width:122px
}

.admin-preference .secondary {
  min-height:32px;
  padding:5px 10px;
  font-size:13px
}

.admin-repeat-limit {
  margin:0 0 0 auto;
  color:var(--muted);
  font-size:13px
}

.admin-repeat-limit b {
  color:var(--ink)
}

.admin-overview {
  gap:20px;
  margin:0 0 18px;
  padding:15px 0;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:none;
  box-shadow:none
}

.admin-overview h2 {
  margin:3px 0;
  font-size:18px
}

.admin-overview p {
  font-size:13px
}

.admin-health-stats {
  border:0;
  border-radius:0;
  background:none
}

.admin-health-stats span {
  min-width:104px;
  padding:4px 12px
}

.admin-health-stats b {
  font-size:16px
}

.admin-section-nav {
  gap:0;
  margin:0 0 24px;
  border-bottom:1px solid var(--line)
}

.admin-section-nav a {
  padding:8px 12px;
  border:0;
  border-radius:0;
  background:none
}

.admin-section-nav a span {
  width:auto;
  height:auto;
  background:none
}

.admin-group {
  margin-bottom:28px
}

.admin-group-heading {
  margin-bottom:13px
}

.admin-group-heading h2 {
  margin:4px 0;
  font-size:21px
}

.admin-group-heading p {
  font-size:13px
}

.admin-panel {
  padding:16px;
  border-radius:7px;
  box-shadow:none
}

.admin-panel-heading {
  margin-bottom:14px
}

.admin-panel-heading h2 {
  margin:3px 0;
  font-size:18px
}

.integration-row {
  padding:12px 0
}

.planning-card {
  padding:13px;
  border-radius:7px;
  box-shadow:none
}

.planning-card.enabled {
  box-shadow:none
}

.planning-card h3 {
  margin:12px 0 4px
}

.planning-card p {
  min-height:0;
  font-size:13px
}

.planning-card .module-meta {
  margin-top:10px
}

.admin-backup {
  background:none
}

@media(max-width:720px) {
  .admin-preference {
    align-items:flex-start;
    flex-direction:column;
    gap:10px
  }
  .admin-repeat-limit {
    margin-left:0
  }
  .admin-overview {
    align-items:flex-start;
    flex-direction:column
  }
  .admin-health-stats {
    width:100%
  }
}

.source-sync-window {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 20px;
  margin:0 0 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper)
}

.source-sync-window h3 {
  margin:5px 0;
  font-size:17px
}

.source-sync-window p {
  margin:0;
  color:var(--muted);
  font-size:13px
}

.source-range-grid {
  display:flex;
  gap:8px
}

.source-range-grid form {
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:9px;
  font-size:11px
}

.source-range-grid form>b {
  grid-column:1/-1;
  font-size:12px
}

.source-range-grid label {
  display:flex;
  align-items:center;
  gap:4px;
  color:var(--muted)
}

.source-range-grid input {
  width:43px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--canvas);
  color:var(--ink);
  padding:4px;
  text-align:center
}

.source-range-grid .secondary {
  grid-column:1/-1;
  min-height:29px;
  padding:4px 8px;
  font-size:11px
}

@media(max-width:1050px) {
  .source-sync-window {
    align-items:flex-start;
    flex-direction:column
  }
  .source-range-grid {
    width:100%;
    flex-wrap:wrap
  }
}

@media(max-width:720px) {
  .source-range-grid {
    display:grid;
    grid-template-columns:1fr
  }
  .source-range-grid form {
    grid-template-columns:1fr 1fr
  }
}

.source-context-form {
  display:flex;
  align-items:end;
  gap:8px;
  margin:10px 0 0 54px
}

.source-context-form label {
  display:grid;
  gap:4px;
  color:var(--muted);
  font-size:12px
}

.source-context-form select {
  min-width:120px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--canvas);
  color:var(--ink);
  padding:6px
}

.source-context-form .secondary {
  min-height:31px;
  padding:5px 9px;
  font-size:12px
}

.detail-advanced .repeat-count-control {
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:end
}

.repeat-count-control label {
  margin:0
}

.detail-recurrence-options {
  display:grid;
  grid-template-columns:minmax(0,65fr) minmax(0,35fr);
  align-items:end;
  gap:8px
}

.detail-recurrence-options .detail-skip-weekends {
  display:grid;
  grid-template-rows:14px 1fr;
  align-content:start;
  gap:3px;
  min-height:36px;
  color:#7f879c;
  font-size:10px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer
}

.detail-recurrence-options .detail-skip-weekends input {
  width:13px;
  height:13px;
  align-self:start;
  margin:0;
  padding:0;
  accent-color:#579bfc
}

.detail-recurrence-options .detail-skip-weekends.disabled {
  opacity:.48;
  cursor:not-allowed
}

.recurrence-child-button {
  justify-self:end;
  height:28px!important;
  min-height:28px!important;
  margin-bottom:4px;
  padding:0 10px!important;
  line-height:1
}

.detail-recurrence-options {
  grid-template-columns:minmax(0,58fr) minmax(0,42fr)
}

.detail-recurrence-options .detail-recurrence-options-toggles {
  position:relative;
  top:-6px;
  display:grid;
  align-content:start;
  gap:6px;
  min-height:0;
  margin-top:-4px
}

.detail-recurrence-options .detail-recurrence-options-toggles label {
  display:flex;
  align-items:center;
  gap:4px;
  min-height:13px;
  color:#7f879c;
  font-size:10px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer
}

.detail-recurrence-options .detail-recurrence-options-toggles input {
  width:13px;
  height:13px;
  flex:0 0 auto;
  align-self:auto;
  margin:0;
  padding:0;
  accent-color:#579bfc
}

.detail-recurrence-options .detail-recurrence-options-toggles .disabled {
  opacity:.48;
  cursor:not-allowed
}

.detail-advanced .repeat-count-control {
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"options child""status .";
  align-items:center;
  gap:14px 18px
}

.detail-recurrence-options {
  grid-area:options;
  grid-template-columns:120px minmax(0,1fr);
  gap:10px
}

.detail-recurrence-options .detail-recurrence-options-toggles {
  position:relative;
  top:9px;
  align-self:center;
  align-content:center;
  margin:0
}

.detail-recurrence-options .detail-recurrence-options-toggles input {
  position:relative;
  z-index:1;
  order:-1;
  pointer-events:auto;
  cursor:pointer
}

.detail-advanced .repeat-count-control>.repeat-status-controls {
  grid-area:status;
  width:120px
}

.repeat-status-controls {
  display:grid;
  grid-template-columns:120px auto;
  align-items:end;
  gap:9px
}

.repeat-status-controls>label {
  margin:0
}

.repeat-status-controls>label[title] {
  display:flex;
  align-items:center;
  gap:4px;
  align-self:start;
  margin-top:23px;
  color:#7f879c;
  font-size:10px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer
}

.repeat-status-controls>label[title] input {
  width:13px;
  height:13px;
  margin:0;
  padding:0;
  accent-color:#579bfc;
  cursor:pointer
}

.repeat-status-controls>label[title].disabled {
  opacity:.48;
  cursor:not-allowed
}

.detail-advanced .repeat-count-control>.recurrence-child-button {
  grid-area:child;
  align-self:center;
  justify-self:end;
  margin:0
}

.detail-header-actions>.detail-save {
  box-sizing:border-box;
  flex:0 0 47px;
  inline-size:47px!important;
  min-inline-size:47px!important;
  max-inline-size:47px!important;
  height:36px;
  min-height:36px
}

/* Town Hall's context belongs with its page identity and persists across every view. */
.page-title-with-control {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap
}

.townhall-gantt-control {
  display:inline-flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap
}

.townhall-context {
  display:inline-flex;
  align-items:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden;
  background:var(--paper);
  vertical-align:middle
}

.townhall-context button {
  min-height:0;
  padding:6px 9px;
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:10px;
  font-weight:700;
  line-height:1;
  cursor:pointer
}

.townhall-context button:last-child {
  border-right:0
}

.townhall-context button:hover,.townhall-context button.active {
  background:var(--green-soft);
  color:var(--green-dark);
  box-shadow:none
}

.skip-done-control {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer
}

.skip-done-control input {
  width:16px;
  height:16px;
  margin:0;
  accent-color:#579bfc;
  cursor:pointer
}

html[data-theme="dark"] .townhall-context {
  background:#202641;
  border-color:#424966
}

html[data-theme="dark"] .townhall-context button:hover {
  background:#2a3355;
  color:#fff
}

@media(max-width:720px) {
  .page-title-with-control {
    align-items:flex-start;
    flex-direction:column;
    gap:10px
  }
  .townhall-gantt-control {
    gap:10px
  }
  .townhall-context {
    max-width:100%
  }
  .townhall-context button {
    padding-inline:9px
  }
}

/* The table keeps every task's personal or professional context visible. */
.sphere-cell {
  display:flex;
  align-items:center;
  color:var(--muted);
  font-size:14px
}

.zone-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin:0 0 24px
}

.zone-card {
  position:relative;
  display:grid;
  grid-template-columns:12px minmax(0,1fr) auto;
  gap:0 11px;
  align-items:start;
  min-height:142px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  text-decoration:none;
  box-shadow:0 4px 14px rgba(15,25,45,.04)
}

.zone-card:hover,.zone-card.active {
  border-color:var(--zone-color);
  box-shadow:0 7px 22px color-mix(in srgb,var(--zone-color) 18%,transparent)
}

.zone-card-dot {
  width:10px;
  height:10px;
  margin-top:6px;
  border-radius:50%;
  background:var(--zone-color)
}

.zone-card h2 {
  margin:0;
  font-size:18px
}

.zone-card p {
  grid-column:2;
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.4
}

.zone-card b {
  grid-column:3;
  grid-row:1;
  font-size:27px;
  line-height:1
}

.zone-card small {
  grid-column:3;
  grid-row:2;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap
}

.zone-detail {
  padding:4px 0
}

.zone-task-list {
  display:grid;
  gap:8px
}

.zone-task {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:4px 12px;
  align-items:center;
  width:100%;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  color:var(--ink);
  text-align:left;
  cursor:pointer
}

.zone-task:hover {
  border-color:#579bfc;
  background:color-mix(in srgb,#579bfc 7%,var(--paper))
}

.zone-task.complete {
  opacity:.6
}

.zone-task b {
  font-size:14px
}

.zone-task small {
  grid-column:2;
  color:var(--muted);
  font-size:12px
}

.zone-status {
  grid-row:1 / span 2;
  font-size:11px
}

@media(max-width:1000px) {
  .zone-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media(max-width:600px) {
  .zone-grid {
    grid-template-columns:1fr
  }
  .zone-card {
    min-height:112px
  }
}

/* MyZone follows the compact card rhythm used by the workspace views. */
.zone-grid {
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:11px;
  margin-bottom:20px
}

.zone-card {
  grid-template-columns:10px minmax(0,1fr) auto;
  gap:0 9px;
  min-height:112px;
  padding:14px;
  border-radius:10px
}

.zone-card-dot {
  width:9px;
  height:9px;
  margin-top:5px
}

.zone-card h2 {
  font-size:16px
}

.zone-card p {
  margin-top:4px;
  font-size:12px;
  line-height:1.35
}

.zone-card b {
  font-size:23px
}

.zone-card small {
  margin-top:4px;
  font-size:10px
}

.zone-detail {
  padding-top:2px
}

.zone-task-list {
  gap:6px
}

.zone-task {
  gap:3px 10px;
  padding:10px 12px;
  border-radius:8px
}

.zone-task b {
  font-size:13px
}

.zone-task small {
  font-size:11px
}

.zone-status {
  font-size:10px
}

/* Keep MyProject aligned with the other first-level navigation entries. */
@media( min-width:1051px) {
  .nav-tree-header {
    min-height:36px;
    grid-template-columns:20px minmax(0,1fr) 28px;
    border-radius:8px
  }
  .tree-toggle {
    width:13px;
    height:13px;
    margin-left:3px;
    font-size:10px
  }
  .tree-title {
    height:36px;
    gap:9px;
    font-size:13px
  }
  .tree-add {
    width:28px;
    height:34px;
    font-size:16px
  }
  .tree-children {
    padding:2px 0 6px 18px
  }
  .sidebar-item-row {
    min-height:36px;
    grid-template-columns:20px minmax(0,1fr) 28px;
    border-radius:8px
  }
  .project-color-indicator {
    width:10px;
    height:10px
  }
  .sidebar-project-link {
    height:36px;
    gap:8px;
    padding:4px 3px
  }
  .sidebar-item-name {
    font-size:12px
  }
  .pin-button {
    width:28px;
    height:32px
  }
}

/* Today prioritizes the work list without oversized empty dashboard space. */
.today-grid {
  gap:14px
}

.today-grid>div {
  gap:14px
}

.today-section {
  border-radius:10px
}

.today-section.attention,.today-section.blocked {
  border-top-width:2px
}

.today-heading {
  padding:13px 15px 10px
}

.today-heading h2 {
  margin-top:3px;
  font-size:16px
}

.today-heading>span {
  width:22px;
  height:22px;
  font-size:10px
}

.agenda-row {
  grid-template-columns:26px 1fr auto;
  gap:7px;
  padding:10px 14px
}

.agenda-row b {
  font-size:13px
}

.agenda-row small {
  font-size:11px
}

.agenda-check {
  width:17px;
  height:17px;
  border-radius:5px
}

.agenda-meta {
  gap:2px;
  min-width:74px
}

.agenda-meta strong {
  font-size:10px
}

.agenda-meta small {
  padding:2px 5px;
  font-size:8px
}

.section-empty {
  padding:12px 15px;
  font-size:11px
}

.today-show-more {
  padding:10px;
  font-size:11px
}

.today-clock {
  min-width:82px;
  padding:7px 11px;
  font-size:16px
}

.today-clock small {
  font-size:9px
}

/* Today is a decision surface: choose the next move first, then inspect the plan and exceptions. */
.today-focus {
  display:grid;
  gap:14px;
  margin:-10px 0 16px;
  padding:17px 18px;
  border:1px solid color-mix(in srgb,var(--green) 38%,var(--line));
  border-radius:12px;
  background:linear-gradient(120deg,color-mix(in srgb,var(--green-soft) 68%,var(--paper)),var(--paper) 58%);
  box-shadow:0 5px 18px rgba(31,45,61,.045)
}

.today-focus-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}

.today-focus-cue {
  padding:4px 7px;
  border-radius:999px;
  background:var(--paper);
  color:var(--green-dark);
  font-size:10px;
  font-weight:700
}

.today-focus-body {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px
}

.today-focus h2 {
  margin:0;
  font-size:20px;
  letter-spacing:-.02em
}

.today-focus p {
  margin:5px 0 5px;
  color:var(--muted);
  font-size:12px
}

.today-focus small {
  color:var(--muted);
  font-size:10px
}

.today-focus .primary {
  flex:0 0 auto;
  min-height:35px;
  padding:7px 12px;
  font-size:11px
}

.today-focus-empty {
  grid-template-columns:1fr auto;
  align-items:center;
  border-color:var(--line);
  background:var(--paper)
}

.today-focus-empty h2 {
  margin-top:4px
}

.today-focus-empty p {
  max-width:560px;
  line-height:1.45
}

.today-command-grid {
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(290px,.78fr);
  gap:14px;
  align-items:start
}

.today-primary-column,.today-exception-column {
  display:grid;
  gap:14px
}

.today-plan-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:15px;
  padding:0 2px
}

.today-plan-heading h2 {
  margin:3px 0 0;
  font-size:16px
}

.today-plan-heading>span {
  color:var(--muted);
  font-size:10px;
  white-space:nowrap
}

.today-exception-column .today-section {
  box-shadow:none
}

.today-exception-column .today-section.blocked {
  opacity:.9
}

.today-exception-column .today-section.blocked .agenda-row:nth-of-type(n+4) {
  display:none
}

.today-exception-column .today-section.blocked .today-show-more {
  display:block
}

.today-exception-column .today-section.blocked.expanded .agenda-row:nth-of-type(n+4) {
  display:grid
}

@media(max-width:1050px) {
  .today-command-grid {
    grid-template-columns:1fr
  }
  .today-focus {
    margin-top:-4px
  }
  .today-exception-column {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start
  }
  .today-exception-column .today-section.blocked {
    grid-column:1 / -1
  }
}

@media(max-width:650px) {
  .today-focus-body,.today-focus-empty {
    align-items:flex-start;
    flex-direction:column
  }
  .today-focus .primary,.today-focus-empty .secondary {
    width:100%;
    text-align:center
  }
  .today-exception-column {
    grid-template-columns:1fr
  }
  .today-exception-column .today-section.blocked {
    grid-column:auto
  }
  .today-plan-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:5px
  }
}

/* Density audit: normalize remaining workspace boards, tables, and cards. */
.list-toolbar {
  min-height:54px;
  padding:0 13px 0 15px;
  font-size:11px
}

.list-title {
  gap:9px
}

.list-title>span {
  font-size:15px
}

.list-title b {
  font-size:13px
}

.list-title small {
  font-size:9px
}

.tool-button {
  padding:7px 9px;
  font-size:9px
}

.task-head,.task-row {
  grid-template-columns:26px 34px minmax(230px,1.5fr) minmax(130px,.8fr) 86px 100px minmax(120px,.7fr) 62px;
  min-height:44px
}

.task-head {
  min-height:36px;
  font-size:8px
}

.task-row {
  font-size:11px
}

.task-row.group-row {
  min-height:48px
}

.task-head>span,.task-row>* {
  padding:0 8px
}

.check-button {
  width:17px;
  height:17px;
  margin-left:9px;
  font-size:10px
}

.task-title {
  padding-left:calc(8px + var(--depth) * 18px)!important
}

.status,.priority {
  font-size:8px;
  padding:5px 6px!important;
  width:76px
}

.priority {
  width:58px
}

.timeline-cell {
  font-size:9px
}

.progress-cell {
  grid-template-columns:1fr 26px;
  gap:6px
}

.progress-cell b {
  font-size:7px
}

.sprint-summary {
  gap:10px;
  margin-bottom:13px
}

.sprint-summary article {
  padding:13px
}

.sprint-summary b {
  font-size:22px
}

.sprint-board {
  gap:12px
}

.sprint-board header {
  padding:14px
}

.sprint-board header h2 {
  font-size:16px
}

.sprint-task-list {
  gap:6px;
  padding:10px;
  min-height:130px
}

.sprint-task {
  gap:5px 8px;
  padding:9px
}

.sprint-task b {
  font-size:12px
}

.sprint-task small {
  font-size:10px
}

.template-sections {
  gap:22px
}

.template-section {
  gap:12px
}

.template-card {
  grid-template-columns:40px minmax(0,1fr) 26px;
  gap:11px;
  padding:15px
}

.template-card-icon {
  width:40px;
  height:40px;
  font-size:18px
}

.template-page-grid {
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:11px
}

.template-empty {
  min-height:118px;
  padding:16px
}

/* Home dashboard: action shortcuts stay compact even with long project names. */
.mode-launcher {
  grid-template-columns:210px minmax(0,1fr);
  gap:12px;
  margin:-6px 0 18px
}

.mode-launcher-heading {
  min-height:92px;
  padding:14px;
  border-radius:10px
}

.mode-launcher-heading h2 {
  margin-top:5px;
  font-size:18px;
  line-height:1.2
}

.mode-grid {
  gap:9px
}

.mode-card {
  min-height:92px;
  column-gap:10px;
  padding:13px;
  border-radius:10px
}

.mode-card strong {
  font-size:16px
}

.mode-card small {
  font-size:11px;
  line-height:1.35
}

.mode-icon {
  width:38px;
  height:38px;
  border-radius:10px;
  font-size:15px
}

.capture-card {
  margin-bottom:20px;
  padding:8px 10px 8px 14px;
  border-radius:11px
}

.capture-card>span {
  font-size:17px
}

.capture-card input {
  font-size:13px;
  padding:8px 0
}

.capture-card button {
  padding:8px 13px;
  font-size:12px
}

.home-grid {
  grid-template-columns:minmax(0,1fr) 200px;
  gap:12px;
  margin-bottom:28px
}

.feature-panel,.stat-panel {
  border-radius:12px
}

.feature-panel {
  min-height:190px;
  padding:23px
}

.feature-panel::after {
  right:14px;
  bottom:-65px;
  font-size:190px
}

.feature-panel h2 {
  margin:12px 0 8px;
  font-size:24px
}

.feature-panel p {
  font-size:13px;
  line-height:1.45
}

.button-row {
  gap:7px;
  margin-top:16px
}

.stat-panel {
  padding:20px;
  font-size:11px
}

.stat-panel hr {
  margin:16px 0
}

.stat-value {
  font-size:28px
}

/* Central view navigation: slimmer rail, stronger labels. */
.project-view-bar {
  gap:10px;
  margin-bottom:18px;
  padding:6px 8px;
  border-radius:11px
}

.project-view-label {
  font-size:10px
}

.project-tabs {
  gap:5px
}

.project-tabs button,.project-tabs a {
  min-height:46px;
  padding:8px 10px;
  font-size:15px
}

.project-knowledge-link {
  padding:6px;
  font-size:12px
}

/* Sprint burndown is a compact pace check, not a second planning surface. */
.sprint-burndown {
  display:grid;
  gap:10px;
  margin:0 0 13px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper)
}

.sprint-burndown-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px
}

.sprint-burndown h2 {
  margin:4px 0 0;
  font-size:16px
}

.sprint-burndown-metrics {
  display:flex;
  gap:14px;
  color:var(--muted);
  font-size:10px
}

.sprint-burndown-metrics span {
  display:grid;
  gap:2px
}

.sprint-burndown-metrics b {
  color:var(--ink);
  font-size:13px
}

.sprint-burndown-chart {
  height:156px
}

.sprint-burndown svg {
  display:block;
  width:100%;
  height:100%;
  overflow:visible
}

.sprint-burndown svg text {
  fill:var(--muted);
  font-family:inherit;
  font-size:10px
}

.burndown-axis {
  fill:none;
  stroke:var(--line);
  stroke-width:1
}

.burndown-guide {
  fill:none;
  stroke:var(--line);
  stroke-width:1;
  stroke-dasharray:3 4;
  opacity:.7
}

.burndown-ideal {
  fill:none;
  stroke:#579bfc;
  stroke-width:2;
  stroke-dasharray:5 4
}

.burndown-now-line {
  fill:none;
  stroke:var(--green);
  stroke-width:1.5;
  stroke-dasharray:3 3
}

.burndown-now {
  fill:var(--green);
  stroke:var(--paper);
  stroke-width:3
}

.sprint-burndown-note {
  margin:0;
  color:var(--muted);
  font-size:10px
}

.sprint-burndown-empty {
  min-height:96px;
  align-content:center
}

.sprint-burndown-empty p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.4
}

@media(max-width:720px) {
  .sprint-burndown-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:8px
  }
  .sprint-burndown-metrics {
    gap:10px
  }
  .sprint-burndown-chart {
    height:130px
  }
}

/* MyAgile is a focused zone workspace, not another combined view. */
.agile-layout {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:12px
}

.agile-initiatives,.agile-workspace,.agile-empty,.agile-candidates {
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper)
}

.agile-initiatives {
  display:grid;
  align-content:start;
  gap:5px;
  padding:12px
}

.agile-initiatives>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:4px
}

.agile-initiatives .secondary {
  min-height:30px;
  padding:5px 8px;
  font-size:10px
}

.agile-initiative-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 25px;
  align-items:center;
  border-radius:7px
}

.agile-initiative-row.active,.agile-initiative-row:hover {
  background:var(--green-soft);
  color:var(--green-dark)
}

.agile-initiative-link {
  display:grid;
  grid-template-columns:8px minmax(0,1fr);
  gap:7px;
  align-items:center;
  padding:8px;
  border-radius:7px;
  font-size:12px
}

.agile-initiative-link>span {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--zone-color)
}

.agile-initiative-link small {
  grid-column:2;
  color:var(--muted);
  font-size:9px
}

.agile-initiative-edit {
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  padding:0;
  border:0;
  border-radius:5px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  cursor:pointer
}

.agile-initiative-edit:hover,.agile-initiative-row.active .agile-initiative-edit {
  background:rgba(87,155,252,.15);
  color:var(--green-dark)
}

.agile-main {
  display:grid;
  align-content:start;
  gap:12px
}

.agile-candidates {
  padding:12px
}

.agile-candidates>header {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center
}

.agile-candidates header>div {
  display:grid;
  gap:3px
}

.agile-candidates header b {
  font-size:13px
}

.agile-candidates header>span {
  max-width:340px;
  color:var(--muted);
  font-size:10px;
  line-height:1.35
}

.agile-candidate-filters {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px
}

.agile-candidate-filters button {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:26px;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--canvas);
  color:var(--muted);
  font:inherit;
  font-size:10px;
  cursor:pointer
}

.agile-candidate-filters button:hover,.agile-candidate-filters button.active {
  border-color:var(--green);
  background:var(--green-soft);
  color:var(--green-dark)
}

.agile-candidate-filters button span {
  display:grid;
  place-items:center;
  min-width:15px;
  height:15px;
  border-radius:999px;
  background:var(--paper);
  font-size:8px
}

.agile-candidate-filters i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--purpose-color)
}

.agile-candidate-list {
  display:grid;
  gap:6px;
  margin-top:10px
}

.agile-candidate-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--canvas)
}

.agile-candidate-card>div {
  display:grid;
  gap:3px;
  min-width:0
}

.agile-candidate-card b {
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.agile-candidate-card small {
  color:var(--muted);
  font-size:9px
}

.agile-candidate-card .secondary {
  min-height:30px;
  padding:5px 8px;
  font-size:10px;
  white-space:nowrap
}

.agile-workspace {
  padding:14px
}

.agile-context {
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:12px
}

.agile-context>div {
  flex:1
}

.agile-context h2 {
  margin:3px 0 0;
  font-size:17px
}

.agile-context-actions {
  display:flex;
  flex:none!important;
  gap:6px
}

.zone-dot {
  width:11px;
  height:11px;
  border-radius:50%;
  background:var(--zone-color)
}

.agile-context .secondary {
  min-height:32px;
  padding:6px 10px;
  font-size:11px
}

.agile-context .danger {
  color:#d9485f
}

.agile-lanes {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}

.agile-cycle-lanes {
  display:grid;
  gap:10px
}

.agile-lanes section {
  min-height:180px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--canvas)
}

.agile-lanes .agile-cycle-lanes section {
  min-height:0
}

.agile-lanes .agile-on-hold {
  min-height:128px;
  border-style:dashed;
  background:color-mix(in srgb,var(--canvas) 88%,var(--paper))
}

.agile-lanes header {
  display:flex;
  justify-content:space-between;
  margin-bottom:8px
}

.agile-lanes header b {
  font-size:11px;
  color:var(--muted)
}

.agile-item {
  display:grid;
  gap:3px;
  margin:6px 0;
  padding:9px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper)
}

.agile-item span {
  font-size:8px;
  text-transform:uppercase;
  color:var(--muted);
  letter-spacing:.06em
}

.agile-item.virtual {
  border-style:dashed
}

.agile-item b {
  font-size:12px
}

.agile-empty {
  display:grid;
  place-content:center;
  gap:5px;
  min-height:190px;
  padding:20px;
  color:var(--muted)
}

.agile-empty b {
  color:var(--ink)
}

@media(max-width:850px) {
  .agile-layout {
    grid-template-columns:1fr
  }
  .agile-lanes {
    grid-template-columns:1fr
  }
  .agile-candidates>header {
    align-items:flex-start;
    flex-direction:column
  }
  .agile-candidates header>span {
    max-width:none
  }
  .agile-context-actions {
    flex-wrap:wrap
  }
}

.agile-cycle-label {
  display:flex;
  align-items:center;
  gap:8px;
  margin:-4px 0 11px
}

.agile-cycle-label b {
  font-size:12px
}

.agile-capacity-report {
  display:grid;
  gap:12px;
  margin-top:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper)
}

.agile-capacity-report>header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px
}

.agile-capacity-report h3 {
  margin:3px 0 0;
  font-size:15px
}

.agile-capacity-report p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4
}

.agile-capacity-report .secondary {
  min-height:30px;
  padding:5px 9px;
  font-size:10px;
  white-space:nowrap
}

.agile-capacity-key,.agile-capacity-legend {
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  color:var(--muted);
  font-size:9px
}

.agile-capacity-key span,.agile-capacity-legend span {
  display:flex;
  align-items:center;
  gap:4px
}

.agile-capacity-key i,.agile-capacity-legend i {
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:2px
}

.agile-capacity-bar i.office,.agile-capacity-key .office,.agile-capacity-legend .office {
  background:#579bfc
}

.agile-capacity-bar i.travel,.agile-capacity-key .travel,.agile-capacity-legend .travel {
  background:#a25ddc
}

.agile-capacity-bar i.personal-used,.agile-capacity-key .personal-used,.agile-capacity-legend .personal-used {
  background:#ffab3d
}

.agile-capacity-bar i.personal,.agile-capacity-key .personal,.agile-capacity-legend .personal {
  background:#a9d45b
}

.agile-capacity-bar i.over {
  background:#e2445c
}

.agile-capacity-days {
  display:grid;
  grid-template-columns:repeat(7,minmax(104px,1fr));
  gap:8px;
  overflow-x:auto
}

.agile-capacity-day {
  display:grid;
  gap:7px;
  min-width:104px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--canvas)
}

.agile-capacity-day.overextended {
  border-color:#e2445c;
  background:color-mix(in srgb,#e2445c 8%,var(--canvas))
}

.agile-capacity-day header {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:5px
}

.agile-capacity-day header b {
  font-size:11px
}

.agile-capacity-day header small {
  color:var(--muted);
  font-size:8px;
  white-space:nowrap
}

.agile-capacity-bar {
  display:flex;
  overflow:hidden;
  height:12px;
  border-radius:4px;
  background:var(--line)
}

.agile-capacity-bar i {
  display:block;
  height:100%
}

.agile-capacity-legend {
  display:grid;
  gap:3px;
  font-size:8px
}

.agile-capacity-project,.agile-capacity-warning {
  margin:0!important;
  font-size:8px!important
}

.agile-capacity-project strong,.agile-capacity-warning {
  color:#d9485f!important
}

.capacity-schedule-modal {
  max-width:640px!important
}

.capacity-schedule-head,.capacity-schedule-row {
  display:grid;
  grid-template-columns:58px 90px 90px minmax(110px,1fr);
  gap:12px;
  align-items:center
}

.capacity-schedule-head {
  padding:0 3px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.06em
}

.capacity-schedule-list {
  display:grid;
  gap:6px
}

.capacity-schedule-row {
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--canvas)
}

.capacity-schedule-row>b {
  font-size:12px
}

.capacity-schedule-row label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  color:var(--muted);
  font-size:10px
}

.capacity-schedule-row label input {
  width:76px;
  min-width:76px;
  padding:7px 8px;
  font-size:13px
}

.capacity-schedule-row output {
  display:block;
  min-width:0
}

.capacity-edit-bar {
  display:flex;
  overflow:hidden;
  width:100%;
  height:12px;
  border-radius:999px;
  background:var(--line);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)
}

.capacity-edit-bar i {
  display:block;
  height:100%
}

.capacity-edit-bar .office {
  background:#579bfc
}

.capacity-edit-bar .travel {
  background:#a25ddc
}

.capacity-edit-bar .personal {
  background:#a9d45b
}

.capacity-help {
  display:inline-grid;
  place-items:center;
  width:17px;
  height:17px;
  margin-left:5px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:11px;
  vertical-align:2px;
  cursor:help
}

@media(max-width:620px) {
  .agile-capacity-report>header {
    flex-direction:column
  }
  .capacity-schedule-head {
    display:none
  }
  .capacity-schedule-row {
    grid-template-columns:42px 1fr 1fr;
    gap:8px
  }
  .capacity-schedule-row output {
    grid-column:2/-1
  }
  .capacity-schedule-row label {
    font-size:9px
  }
}

.agile-item {
  grid-template-columns:18px minmax(0,1fr) auto;
  align-items:center;
  cursor:grab
}

.agile-item:active {
  cursor:grabbing
}

.agile-item.dragging {
  opacity:.45
}

.agile-drag-grip {
  padding:0!important;
  color:var(--muted);
  font-size:15px;
  line-height:1;
  cursor:grab
}

.agile-lanes section.agile-drop-target {
  border-color:#579bfc;
  background:rgba(87,155,252,.09);
  box-shadow:inset 0 0 0 1px rgba(87,155,252,.3)
}

.agile-item>div:nth-child(2) {
  display:grid;
  gap:3px;
  min-width:0
}

.agile-item-actions {
  display:flex;
  align-items:center;
  gap:5px
}

.agile-item-actions .secondary,.agile-item-actions .promote-button {
  min-height:27px;
  padding:4px 7px;
  font-size:9px;
  white-space:nowrap
}

.agile-item-actions .promote-button {
  min-height:28px;
  border-radius:6px
}

.agile-item-actions .danger {
  color:#d9485f
}

.agile-item-menu {
  position:relative
}

.agile-item-menu summary {
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border:1px solid var(--line);
  border-radius:6px;
  list-style:none;
  color:var(--muted);
  cursor:pointer;
  font-size:16px;
  line-height:1
}

.agile-item-menu summary::-webkit-details-marker {
  display:none
}

.agile-item-menu[open] summary {
  background:var(--green-soft);
  color:var(--green-dark)
}

.agile-item-menu[open]>button {
  display:block
}

.agile-item-menu>button {
  display:none;
  position:absolute;
  right:0;
  top:31px;
  z-index:5;
  min-width:116px;
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--paper);
  box-shadow:var(--shadow);
  color:var(--ink);
  font:inherit;
  font-size:10px;
  text-align:left;
  white-space:nowrap;
  cursor:pointer
}

.agile-item-menu>button+button {
  top:61px
}

.agile-item-menu>button.danger {
  color:#d9485f
}

@media(max-width:620px) {
  .agile-item {
    grid-template-columns:18px 1fr
  }
  .agile-item-actions {
    grid-column:2;
    justify-content:flex-start
  }
}

/* The schedule editor needs text as well as color to explain remaining capacity. */
.capacity-schedule-row output {
  display:grid;
  gap:5px
}

.capacity-schedule-row output strong {
  color:var(--ink);
  font-size:10px;
  font-weight:650
}

.capacity-edit-legend {
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-top:8px;
  color:var(--muted);
  font-size:9px
}

.capacity-edit-legend span {
  display:flex;
  align-items:center;
  gap:4px
}

.capacity-edit-legend i {
  width:8px;
  height:8px;
  border-radius:2px
}

.capacity-edit-legend .office {
  background:#579bfc
}

.capacity-edit-legend .travel {
  background:#a25ddc
}

.capacity-edit-legend .personal {
  background:#a9d45b
}

.capacity-close {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  flex:none;
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:transparent;
  color:var(--ink);
  font-size:20px;
  line-height:1;
  cursor:pointer
}

.capacity-close:hover,.capacity-close:focus-visible {
  border-color:#579bfc;
  background:rgba(87,155,252,.12);
  outline:none
}

.capacity-work-time-config {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:12px
}

.capacity-work-time-config label {
  display:grid;
  gap:4px;
  color:var(--muted);
  font-size:9px
}

.capacity-work-time-config input {
  width:100%;
  box-sizing:border-box;
  padding:6px 7px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--canvas);
  color:var(--ink);
  font:inherit;
  font-size:11px
}

.capacity-schedule-row.today {
  border-color:rgba(87,155,252,.9);
  box-shadow:0 0 0 1px rgba(87,155,252,.24),0 0 16px rgba(87,155,252,.2)
}

.agile-capacity-report>header p {
  display:none
}

.agile-capacity-bar i.project-booked {
  background:var(--capacity-project)
}

.agile-capacity-day.today {
  border-color:rgba(87,155,252,.9);
  box-shadow:0 0 0 1px rgba(87,155,252,.24),0 0 16px rgba(87,155,252,.2)
}

.agile-capacity-balance {
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:5px
}

.agile-capacity-balance strong {
  font-size:15px;
  letter-spacing:-.03em
}

.agile-capacity-balance .used {
  color:#ffbe5c
}

.agile-capacity-balance .available {
  color:#c4ee70;
  text-shadow:none
}

.agile-capacity-balance .capacity-balance-divider {
  color:var(--muted);
  font-size:13px;
  font-weight:700
}

.agile-capacity-balance .capacity-balance-label {
  color:#c4ee70;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  text-shadow:none
}

.agile-capacity-balance.over strong,.agile-capacity-balance.over span {
  color:#e2445c;
  text-shadow:none
}

.capacity-demand-day {
  grid-template-columns:minmax(0,1fr) auto;
  align-content:start;
  align-items:start
}

.capacity-demand-day>header {
  justify-self:end;
  align-self:start
}

.capacity-add-task {
  min-height:28px;
  padding:5px 9px;
  border:1px solid rgba(87,155,252,.72);
  border-radius:6px;
  background:rgba(87,155,252,.12);
  color:#9cc5ff;
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer
}

.capacity-add-task:hover,.capacity-add-task:focus-visible {
  border-color:#82b4ff;
  background:rgba(87,155,252,.24);
  outline:none
}

.capacity-demand-day.empty {
  align-items:start;
  justify-items:stretch
}

.capacity-demand-day.empty p {
  align-self:center
}

.capacity-demand-day {
  grid-template-rows:minmax(0,1fr)
}

.capacity-demand-day>header {
  align-self:start
}

.agile-capacity-report h3 {
  display:none
}

.capacity-schedule-row output strong {
  order:2;
  justify-self:end
}

.capacity-schedule-row output .capacity-edit-bar {
  order:1
}

.agile-capacity-report {
  position:relative
}

.agile-capacity-key {
  position:absolute;
  top:16px;
  left:170px;
  margin:0
}

.capacity-demand-label.project::before,.capacity-demand-task>i.project {
  background:#163f8e
}

.capacity-demand-task.project {
  border-color:rgba(47,111,209,.75);
  background:rgba(22,63,142,.24)
}

.capacity-demand-task.project:hover {
  border-color:#579bfc;
  background:rgba(22,63,142,.42)
}

@media(max-width:720px) {
  .agile-capacity-key {
    position:static;
    margin-top:2px
  }
}

.capacity-demand-task.single {
  border-color:rgba(255,171,61,.72);
  background:rgba(255,171,61,.12)
}

.capacity-demand-task.single:hover {
  border-color:#ffbe5c;
  background:rgba(255,171,61,.22)
}

.capacity-demand-task[draggable="true"] {
  cursor:grab
}

.capacity-demand-task[draggable="true"]:active {
  cursor:grabbing
}

.capacity-demand-task.dragging {
  opacity:.45
}

.capacity-demand-day.drag-over {
  border-color:#579bfc;
  background:rgba(87,155,252,.11);
  box-shadow:inset 0 0 0 1px rgba(87,155,252,.28)
}

.agile-capacity-balance .used-label {
  color:#ffbe5c;
  text-shadow:none
}

.agile-candidate-groups {
  display:grid;
  gap:9px;
  margin-top:10px
}

.agile-candidate-group {
  display:grid;
  gap:5px
}

.agile-candidate-group>header {
  display:flex;
  align-items:center;
  gap:6px
}

.agile-candidate-group>header .zone-dot {
  width:8px;
  height:8px
}

.agile-candidate-group>header b {
  font-size:10px
}

.agile-candidate-group>header small {
  display:grid;
  place-items:center;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border-radius:9px;
  background:var(--canvas);
  color:var(--muted);
  font-size:9px
}

.agile-candidate-card {
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  cursor:grab
}

.agile-candidate-card:active {
  cursor:grabbing
}

.agile-candidate-card.dragging {
  opacity:.45
}

.candidate-drag-grip {
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:14px;
  line-height:1;
  cursor:grab
}

.agile-candidate-card>.agile-candidate-actions {
  display:flex;
  align-items:center;
  gap:5px
}

.agile-candidate-purposes {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:2px
}

.candidate-edit {
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  cursor:pointer
}

.candidate-edit:hover {
  background:var(--green-soft);
  color:var(--green-dark)
}

/* MyZone is the purpose layer: compact selection above, focused execution pulse beside the work. */
.zone-grid {
  grid-template-columns:repeat(auto-fit,minmax(176px,1fr));
  gap:8px;
  margin-bottom:16px
}

.zone-card {
  min-height:86px;
  padding:11px
}

.zone-card p {
  display:none
}

.zone-card h2 {
  font-size:15px
}

.zone-card b {
  font-size:21px
}

.zone-card small {
  font-size:9px
}

.zone-command-grid {
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:12px;
  align-items:start
}

.zone-pulse {
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper)
}

.zone-pulse-heading {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.zone-pulse-dot {
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--zone-color)
}

.zone-pulse-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px
}

.zone-pulse-stats span {
  display:grid;
  gap:2px;
  padding:8px;
  border-radius:7px;
  background:var(--canvas);
  color:var(--muted);
  font-size:10px
}

.zone-pulse-stats b {
  color:var(--ink);
  font-size:17px
}

.zone-pulse-agile {
  display:grid;
  gap:7px
}

.zone-pulse-agile>a {
  display:grid;
  gap:3px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--ink);
  text-decoration:none
}

.zone-pulse-agile>a:hover {
  border-color:var(--green);
  background:var(--green-soft)
}

.zone-pulse-agile b {
  font-size:12px
}

.zone-pulse-agile small,.zone-pulse-agile p {
  margin:0;
  color:var(--muted);
  font-size:10px;
  line-height:1.4
}

.zone-pulse-agile .secondary {
  justify-self:start;
  min-height:30px;
  padding:5px 8px;
  font-size:10px
}

.zone-detail .section-heading .primary {
  display:none
}

@media(max-width:850px) {
  .zone-command-grid {
    grid-template-columns:1fr
  }
  .zone-pulse {
    grid-template-columns:150px 1fr;
    align-items:start
  }
  .zone-pulse-agile {
    grid-column:1 / -1
  }
}

@media(max-width:520px) {
  .zone-pulse {
    grid-template-columns:1fr
  }
}

.task-head,.task-row {
  grid-template-columns:42px minmax(210px,1.12fr) 108px minmax(110px,.45fr) 132px 108px 126px minmax(145px,.66fr) 74px
}

.task-table.selection-mode .task-head,.task-table.selection-mode .task-row {
  grid-template-columns:42px 42px minmax(210px,1.12fr) 108px minmax(110px,.45fr) 132px 108px 126px minmax(145px,.66fr) 74px
}

.purpose-summary {
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  padding:3px 6px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:10px;
  text-align:left;
  cursor:pointer
}

.purpose-summary:hover,.purpose-summary:focus-visible {
  border-color:var(--green);
  background:var(--green-soft);
  outline:0
}

.purpose-chip {
  max-width:76px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:3px 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--purpose-color) 22%,var(--canvas));
  color:var(--ink);
  font-size:9px;
  line-height:1.1;
  font-weight:700
}

.purpose-chip::before {
  content:'';
  display:inline-block;
  width:5px;
  height:5px;
  margin:0 4px 1px 0;
  border-radius:50%;
  background:var(--purpose-color)
}

.purpose-more,.purpose-empty {
  color:var(--muted);
  font-size:10px
}

.purpose-picker {
  position:fixed;
  z-index:120;
  width:250px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  box-shadow:0 16px 38px rgba(25,35,50,.24);
  overflow:hidden
}

.purpose-picker header {
  display:grid;
  gap:2px;
  padding:12px 13px 10px;
  border-bottom:1px solid var(--line)
}

.purpose-picker header b {
  font-size:12px
}

.purpose-picker header span {
  color:var(--muted);
  font-size:10px
}

.purpose-picker>div {
  display:grid;
  padding:6px
}

.purpose-picker label {
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px;
  border-radius:6px;
  font-size:11px;
  cursor:pointer
}

.purpose-picker label:hover {
  background:var(--canvas)
}

.purpose-picker label i {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--purpose-color)
}

.purpose-picker footer {
  display:flex;
  justify-content:flex-end;
  gap:7px;
  padding:9px 10px;
  border-top:1px solid var(--line)
}

.purpose-picker footer button {
  padding:6px 10px;
  font-size:10px
}

.purpose-header {
  display:flex;
  align-items:center;
  gap:4px
}

.purpose-manage {
  width:18px;
  height:18px;
  padding:0;
  border:0;
  border-radius:4px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  line-height:1;
  cursor:pointer
}

.purpose-manage:hover {
  background:var(--green-soft);
  color:var(--green)
}

.purpose-manager {
  width:min(360px,90vw)!important
}

.purpose-manager-body {
  padding:12px 16px 16px
}

.purpose-manager-list {
  display:grid;
  gap:7px;
  margin:0
}

.purpose-manager-row {
  display:grid;
  grid-template-columns:18px 12px minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:7px
}

.purpose-manager-row.dragging {
  opacity:.45
}

.purpose-manager-row.drag-over {
  border-color:var(--green);
  background:var(--green-soft)
}

.purpose-drag-handle {
  border:0;
  border-radius:4px;
  background:transparent;
  color:var(--muted);
  cursor:grab;
  font-size:15px;
  line-height:1;
  padding:4px 1px
}

.purpose-drag-handle:active {
  cursor:grabbing
}

.purpose-drag-handle:hover,.purpose-drag-handle:focus-visible {
  background:var(--canvas);
  color:var(--ink);
  outline:0
}

.purpose-manager-row b {
  font-size:13px
}

.purpose-manager-row .secondary,.purpose-manager-actions .secondary {
  min-height:30px;
  padding:5px 8px;
  font-size:11px
}

.purpose-manager-actions {
  display:flex;
  justify-content:flex-start;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line)
}

.purpose-color-dot {
  padding:0;
  border:0;
  cursor:pointer
}

.purpose-color-dot:hover {
  outline:2px solid var(--ink);
  outline-offset:3px
}

.destructive-dialog .modal-header {
  border-bottom:0
}

.destructive-dialog .modal-header h2 {
  color:var(--red)
}

.destructive-dialog .modal-form {
  padding-top:5px
}

.destructive-note {
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid color-mix(in srgb,var(--red) 32%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--red) 8%,var(--paper));
  padding:11px 12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45
}

.destructive-note span {
  display:grid;
  place-items:center;
  flex:0 0 18px;
  height:18px;
  border-radius:50%;
  background:var(--red);
  color:white;
  font-size:12px;
  font-weight:800
}

.destructive-note p {
  margin:0
}

.danger-button {
  background:var(--red);
  border-color:var(--red);
  color:#fff
}

.danger-button:hover {
  filter:brightness(.92)
}

.initiative-delete-dialog {
  overflow:hidden
}

.initiative-delete-dialog .modal-header {
  padding:22px 24px 12px
}

.destructive-heading {
  display:flex;
  align-items:center;
  gap:12px
}

.destructive-icon {
  display:grid;
  place-items:center;
  flex:0 0 32px;
  width:32px;
  height:32px;
  border-radius:50%;
  background:color-mix(in srgb,var(--red) 15%,var(--paper));
  color:var(--red);
  font-size:18px;
  font-weight:800
}

.initiative-delete-dialog .modal-form {
  gap:16px;
  padding:8px 24px 22px
}

.destructive-lede {
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5
}

.destructive-lede strong {
  color:var(--ink);
  font-weight:700
}

.destructive-impact {
  display:grid;
  gap:8px
}

.destructive-impact>div {
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:11px 12px;
  border:1px solid color-mix(in srgb,var(--red) 25%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--red) 6%,var(--paper))
}

.destructive-impact>div>span {
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--red);
  color:#fff;
  font-size:14px;
  font-weight:800
}

.destructive-impact p {
  display:grid;
  gap:2px;
  margin:0
}

.destructive-impact b {
  font-size:12px
}

.destructive-impact small {
  color:var(--muted);
  font-size:11px;
  line-height:1.4
}

.destructive-impact .safe-impact {
  border-color:color-mix(in srgb,var(--green) 26%,var(--line));
  background:color-mix(in srgb,var(--green) 7%,var(--paper))
}

.destructive-impact .safe-impact>span {
  background:var(--green)
}

.initiative-delete-dialog .modal-actions {
  margin-top:1px;
  padding-top:16px
}

.initiative-delete-dialog .danger-button {
  min-width:136px
}

@media(max-width:440px) {
  .initiative-delete-dialog .modal-actions {
    flex-direction:column-reverse
  }
  .initiative-delete-dialog .modal-actions button {
    width:100%
  }
}

@media(max-width:1050px) {
  .task-head,.task-row {
    min-width:1220px;
    grid-template-columns:42px minmax(300px,1.4fr) 128px minmax(170px,.8fr) 108px 126px minmax(155px,.7fr) 74px
  }
  .task-table.selection-mode .task-head,.task-table.selection-mode .task-row {
    min-width:1262px;
    grid-template-columns:42px 42px minmax(300px,1.4fr) 128px minmax(170px,.8fr) 108px 126px minmax(155px,.7fr) 74px
  }
}

/* Keep the compact purpose picker footer from inheriting the global button height. */
.purpose-picker footer button {
  min-height:30px;
  padding:5px 10px
}

/* Complex projects inherit the project purpose; their task table has no per-item purpose column. */
.focused-task-table.complex-project-task-table .task-head,.focused-task-table.complex-project-task-table .task-row {
  grid-template-columns:42px minmax(210px,350px) minmax(160px,.7fr) calc(var(--task-control-width) + var(--task-control-gap)) calc(var(--task-control-width) + var(--task-control-gap)) minmax(245px,1fr) 74px
}

.focused-task-table.complex-project-task-table.selection-mode .task-head,.focused-task-table.complex-project-task-table.selection-mode .task-row {
  grid-template-columns:42px 42px minmax(210px,350px) minmax(160px,.7fr) calc(var(--task-control-width) + var(--task-control-gap)) calc(var(--task-control-width) + var(--task-control-gap)) minmax(245px,1fr) 74px
}

@media(max-width:1050px) {
  .focused-task-table.complex-project-task-table .task-head,.focused-task-table.complex-project-task-table .task-row {
    min-width:838px;
    grid-template-columns:42px minmax(210px,1.15fr) minmax(110px,.45fr) calc(var(--task-control-width) + var(--task-control-gap)) calc(var(--task-control-width) + var(--task-control-gap)) minmax(145px,.7fr) 74px
  }
  .focused-task-table.complex-project-task-table.selection-mode .task-head,.focused-task-table.complex-project-task-table.selection-mode .task-row {
    min-width:880px;
    grid-template-columns:42px 42px minmax(210px,1.15fr) minmax(110px,.45fr) calc(var(--task-control-width) + var(--task-control-gap)) calc(var(--task-control-width) + var(--task-control-gap)) minmax(145px,.7fr) 74px
  }
}

.focused-task-table .task-head,.focused-task-table .task-row {
  grid-template-columns:42px minmax(210px,318px) minmax(160px,.7fr) 182px 92px 92px minmax(245px,1fr) 74px
}

.focused-task-table.selection-mode .task-head,.focused-task-table.selection-mode .task-row {
  grid-template-columns:42px 42px minmax(210px,318px) minmax(160px,.7fr) 182px 92px 92px minmax(245px,1fr) 74px
}

.focused-task-table .priority,.focused-task-table .status {
  width:76px
}

.focused-task-table .task-row::before {
  display:none
}

@media(max-width:1050px) {
  .focused-task-table .task-head,.focused-task-table .task-row {
    min-width:1020px;
    grid-template-columns:42px minmax(210px,1.15fr) minmax(110px,.45fr) 182px 92px 92px minmax(145px,.7fr) 74px
  }
  .focused-task-table.selection-mode .task-head,.focused-task-table.selection-mode .task-row {
    min-width:1062px;
    grid-template-columns:42px 42px minmax(210px,1.15fr) minmax(110px,.45fr) 182px 92px 92px minmax(145px,.7fr) 74px
  }
}

.project-task-table .task-head,.project-task-table .task-row {
  grid-template-columns:42px minmax(210px,350px) minmax(160px,.7fr) 182px 92px 92px minmax(245px,1fr) 74px
}

.project-task-table.selection-mode .task-head,.project-task-table.selection-mode .task-row {
  grid-template-columns:42px 42px minmax(210px,350px) minmax(160px,.7fr) 182px 92px 92px minmax(245px,1fr) 74px
}

@media(max-width:1050px) {
  .project-task-table .task-head,.project-task-table .task-row {
    min-width:1020px;
    grid-template-columns:42px minmax(210px,1.15fr) minmax(110px,.45fr) 182px 92px 92px minmax(145px,.7fr) 74px
  }
  .project-task-table.selection-mode .task-head,.project-task-table.selection-mode .task-row {
    min-width:1062px;
    grid-template-columns:42px 42px minmax(210px,1.15fr) minmax(110px,.45fr) 182px 92px 92px minmax(145px,.7fr) 74px
  }
}

@media(min-width:1051px) {
  .focused-task-table:not(.project-task-table) .task-head,.focused-task-table:not(.project-task-table) .task-row {
    grid-template-columns:42px minmax(210px,350px) minmax(160px,240px) 148px 92px 126px minmax(245px,1fr) 74px
  }
  .focused-task-table:not(.project-task-table).selection-mode .task-head,.focused-task-table:not(.project-task-table).selection-mode .task-row {
    grid-template-columns:42px 42px minmax(210px,350px) minmax(160px,240px) 148px 92px 126px minmax(245px,1fr) 74px
  }
}

/* Task-table metadata controls share one visible gutter in every context. */
.focused-task-table .priority,.focused-task-table .status {
  width:var(--task-control-width)
}

.focused-task-table .task-head,.focused-task-table .task-row {
  grid-template-columns:42px minmax(210px,350px) minmax(160px,.7fr) 182px calc(var(--task-control-width) + var(--task-control-gap)) calc(var(--task-control-width) + var(--task-control-gap)) minmax(245px,1fr) 74px
}

.focused-task-table.selection-mode .task-head,.focused-task-table.selection-mode .task-row {
  grid-template-columns:42px 42px minmax(210px,350px) minmax(160px,.7fr) 182px calc(var(--task-control-width) + var(--task-control-gap)) calc(var(--task-control-width) + var(--task-control-gap)) minmax(245px,1fr) 74px
}

@media(min-width:1051px) {
  .focused-task-table:not(.project-task-table) .task-head,.focused-task-table:not(.project-task-table) .task-row {
    grid-template-columns:42px minmax(210px,350px) minmax(160px,240px) 148px calc(var(--task-control-width) + var(--task-control-gap)) calc(var(--task-control-width) + var(--task-control-gap)) minmax(245px,1fr) 74px
  }
  .focused-task-table:not(.project-task-table).selection-mode .task-head,.focused-task-table:not(.project-task-table).selection-mode .task-row {
    grid-template-columns:42px 42px minmax(210px,350px) minmax(160px,240px) 148px calc(var(--task-control-width) + var(--task-control-gap)) calc(var(--task-control-width) + var(--task-control-gap)) minmax(245px,1fr) 74px
  }
}

/* Global settings are operational controls, grouped one setting at a time. */
.global-settings {
  margin:0 0 24px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper)
}

.global-settings>header {
  padding:15px 16px;
  border-bottom:1px solid var(--line)
}

.global-settings h2 {
  margin:3px 0;
  font-size:18px
}

.global-settings header p {
  margin:0;
  color:var(--muted);
  font-size:13px
}

.global-settings-list {
  padding:0 16px
}

.global-setting-row {
  display:grid;
  grid-template-columns:minmax(260px,1fr) 190px auto;
  align-items:center;
  gap:14px;
  padding:13px 0;
  border:0;
  border-bottom:1px solid var(--line)
}

.global-setting-row:last-child {
  border-bottom:0
}

.global-setting-row h3 {
  margin:0 0 3px;
  font-size:14px
}

.global-setting-row p {
  margin:0;
  color:var(--muted);
  font-size:13px
}

.global-setting-row label {
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px
}

.global-setting-row input,.global-setting-row select {
  min-width:0;
  padding:6px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--canvas);
  color:var(--ink)
}

.global-setting-row .secondary {
  min-height:32px;
  padding:5px 10px;
  font-size:13px
}

.recurrence-limit-setting {
  grid-template-columns:minmax(260px,1fr) minmax(390px,500px) auto
}

.recurrence-limit-inputs {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px
}

.recurrence-limit-inputs label {
  min-width:0
}

@media(max-width:720px) {
  .global-setting-row,.recurrence-limit-setting {
    grid-template-columns:1fr;
    gap:8px
  }
  .global-setting-row label {
    max-width:240px
  }
  .recurrence-limit-inputs {
    max-width:480px
  }
  .global-setting-row .secondary {
    justify-self:start
  }
}

.single-color-picker {
  position:relative;
  justify-self:start
}

.single-color-picker summary {
  display:block;
  cursor:pointer;
  list-style:none
}

.single-color-picker summary::-webkit-details-marker {
  display:none
}

.single-color-picker summary>span {
  display:block;
  width:36px;
  height:28px;
  border:2px solid rgba(255,255,255,.45);
  border-radius:5px;
  background-color:var(--project-color);
  box-shadow:0 0 0 1px rgba(0,0,0,.38),0 2px 5px rgba(0,0,0,.25)
}

.single-color-picker[open] summary>span {
  outline:2px solid var(--ink);
  outline-offset:2px
}

.single-color-options {
  position:absolute;
  z-index:4;
  right:0;
  bottom:calc(100% + 8px);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  width:154px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  box-shadow:0 8px 20px rgba(0,0,0,.2)
}

.single-color-options label {
  display:block!important
}

.single-color-options input {
  position:absolute;
  opacity:0
}

.single-color-options span {
  display:block;
  width:21px;
  height:21px;
  border-radius:4px;
  background:var(--project-color);
  cursor:pointer;
  border:2px solid transparent
}

.single-color-options input:checked+span {
  outline:2px solid var(--ink);
  outline-offset:2px
}

.palette-preview-setting {
  grid-template-columns:minmax(260px,1fr) minmax(360px,500px) auto
}

.palette-preview-grid {
  display:grid;
  gap:7px
}

.palette-preview-grid>div {
  display:grid;
  grid-template-columns:120px 1fr;
  align-items:center;
  gap:9px;
  min-height:20px
}

.palette-preview-grid b {
  color:var(--muted);
  font-size:11px
}

.palette-preview-grid span {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}

.palette-preview-grid i {
  display:block;
  width:22px;
  height:18px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:4px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)
}

.palette-preview-grid i.selected {
  display:grid;
  place-items:center;
  color:#fff;
  font-size:13px;
  font-style:normal;
  font-weight:900;
  line-height:1;
  text-shadow:0 1px 2px rgba(0,0,0,.6)
}

.palette-preview-setting>small {
  color:var(--muted);
  font-size:11px;
  line-height:1.35
}

@media(max-width:720px) {
  .palette-preview-setting {
    grid-template-columns:1fr
  }
  .palette-preview-setting>small {
    max-width:420px
  }
}

.selected-tone-options label {
  display:block;
  cursor:pointer
}

.selected-tone-options input {
  position:absolute;
  opacity:0
}

.selected-tone-options input:focus-visible+i {
  outline:2px solid var(--ink);
  outline-offset:2px
}

.selected-tone-options input:checked+i {
  display:grid;
  place-items:center;
  color:#fff;
  font-size:13px;
  font-style:normal;
  font-weight:900;
  line-height:1;
  text-shadow:0 1px 2px rgba(0,0,0,.6);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12),0 0 0 1px var(--ink)
}

.admin-core-layout {
  display:none
}

/* Project directory matches the compact task lists: capped identity, deliberate metadata tracks. */
.project-directory-head,.project-directory-row {
  grid-template-columns:minmax(300px,440px) 104px minmax(160px,220px) minmax(180px,210px) minmax(190px,1fr) 48px;
  gap:12px
}

.project-directory-head {
  min-height:36px;
  font-size:10px
}

.project-directory-row {
  min-height:54px;
  font-size:11px
}

.project-directory-name {
  gap:9px
}

.project-directory-name b {
  font-size:12px
}

.project-directory-name small,.project-directory-progress small {
  margin-top:2px;
  font-size:10px
}

.project-directory-purpose {
  display:flex;
  align-items:center;
  gap:7px
}

.project-directory-purpose>i {
  width:10px;
  height:10px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--purpose-color)
}

.project-directory-progress {
  max-width:320px
}

.project-directory-progress>i {
  height:6px
}

.project-directory-head>span:last-child {
  text-align:center
}

@media(max-width:760px) {
  .project-directory-head,.project-directory-row {
    min-width:900px
  }
}

.project-purpose-summary {
  justify-self:start
}

.candidate-purpose-trigger,.detail-purpose-trigger,.create-purpose-trigger {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  min-height:42px;
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--canvas);
  text-align:left
}

.detail-form .detail-purpose-trigger {
  min-height:36px;
  margin-top:7px;
  padding:6px 9px
}

.project-directory-open {
  color:var(--muted);
  font-size:14px;
  text-decoration:none
}

.project-directory-open:hover {
  color:var(--green)
}

.project-directory-table {
  border-radius:12px
}

.project-directory-head,.project-directory-row {
  grid-template-columns:minmax(260px,1.2fr) 92px 100px minmax(145px,.68fr) 82px minmax(165px,.74fr) minmax(190px,.85fr);
  gap:14px
}

.project-directory-head {
  min-height:40px
}

.project-directory-row {
  min-height:68px;
  cursor:pointer;
  transition:background .15s ease,box-shadow .15s ease
}

.project-directory-row:hover {
  background:var(--green-soft);
  box-shadow:inset 3px 0 0 var(--green)
}

.project-directory-row:focus-visible {
  outline:2px solid var(--green);
  outline-offset:-2px;
  background:var(--green-soft)
}

.project-directory-name b {
  font-size:13px
}

.project-directory-name small {
  font-size:11px
}

.project-directory-context {
  color:var(--muted);
  font-weight:700
}

.project-structure-badge {
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:99px;
  padding:4px 8px;
  font-size:10px;
  line-height:1;
  color:var(--muted);
  font-weight:700
}

.project-structure-badge.complex {
  border-color:#c6b2df;
  background:#f3edfb;
  color:#704aa4
}

.project-structure-badge.casual {
  border-color:#c8dce4;
  background:#edf7fa;
  color:#24728a
}

.project-directory-timeline {
  font-weight:600;
  color:var(--ink)
}

.project-directory-days {
  display:grid;
  gap:2px
}

.project-directory-days b {
  font-size:13px
}

.project-directory-days small {
  color:var(--muted);
  font-size:10px;
  font-weight:600
}

.project-directory-progress {
  grid-template-columns:1fr;
  gap:5px;
  max-width:none
}

.project-directory-progress>i {
  height:8px
}

.project-directory-progress small {
  font-size:10px;
  font-weight:600
}

.project-directory-table .purpose-chip {
  max-width:110px
}

@media(max-width:760px) {
  .project-directory-head,.project-directory-row {
    min-width:1120px
  }
}

/* Project metadata uses one shared pill rhythm: type, context, and purpose. */
.project-directory .project-structure-badge,.project-directory .project-context-badge,.project-directory .purpose-chip {
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.project-directory .purpose-summary {
  min-height:24px;
  padding:0;
  border:0;
  background:transparent
}

.project-directory .purpose-chip {
  max-width:118px;
  border:1px solid color-mix(in srgb,var(--purpose-color) 46%,var(--line));
  background:color-mix(in srgb,var(--purpose-color) 16%,var(--paper));
  color:color-mix(in srgb,var(--purpose-color) 78%,var(--ink))
}

.project-directory .purpose-chip::before {
  width:5px;
  height:5px;
  margin:0 5px 0 0
}

.project-directory .purpose-chip-empty {
  min-width:48px;
  justify-content:center;
  border:1px solid var(--line);
  background:color-mix(in srgb,var(--paper) 86%,var(--canvas));
  color:var(--muted)
}

.project-directory .purpose-chip-empty::before {
  display:none
}

/* Project metadata is descriptive, not a status system: use one neutral token. */
.project-directory .project-structure-badge.complex,.project-directory .project-structure-badge.casual,.project-directory .project-context-badge.profession,.project-directory .project-context-badge.personal,.project-directory .purpose-chip,.project-directory .purpose-chip-empty {
  border-color:var(--line);
  background:color-mix(in srgb,var(--paper) 84%,var(--canvas));
  color:var(--muted);
}

/* Purpose is expressed consistently in every task and project list. */
.purpose-chip {
  display:inline-flex;
  align-items:center;
  min-height:24px;
  max-width:118px;
  padding:4px 8px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:999px;
  background:color-mix(in srgb,var(--paper) 84%,var(--canvas));
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  line-height:1;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.purpose-chip::before {
  width:5px;
  height:5px;
  flex:0 0 5px;
  margin:0 5px 0 0
}

.purpose-chip-empty {
  min-width:48px;
  justify-content:center
}

.purpose-chip-empty::before {
  display:none
}

/* LinkedIn-inspired white mode: white working surfaces, titanium-gray structure,
   bluish-silver chrome, and light-blue interaction states. */
html:not([data-theme="dark"]) {
  --ink:#243447;
  --muted:#5f7184;
  --line:#cbd5df;
  --paper:#ffffff;
  --canvas:#f3f6f8;
  --green:#1769aa;
  --green-dark:#0b4f88;
  --green-soft:#e5f1fb;
  --shadow:0 7px 20px rgba(43,59,76,.08);
  scrollbar-color:#8c9baa #e8edf1;
}

html:not([data-theme="dark"]) body {
  background:#f3f6f8;
  color:#243447
}

html:not([data-theme="dark"]) .topbar,html:not([data-theme="dark"]) .sidebar {
  background:#fff;
  border-color:#d6dee6
}

html:not([data-theme="dark"]) .topbar {
  background:#fff;
  border-bottom-color:#d6dee6;
  box-shadow:0 1px 3px rgba(43,59,76,.08);
}

html:not([data-theme="dark"]) .topbar .search-trigger,html:not([data-theme="dark"]) .topbar .theme-toggle,html:not([data-theme="dark"]) .search-trigger,html:not([data-theme="dark"]) .theme-toggle,html:not([data-theme="dark"]) .secondary {
  background:#f8fafc;
  border-color:#cbd5df;
  box-shadow:none
}

html:not([data-theme="dark"]) .project-view-bar,html:not([data-theme="dark"]) .list-toolbar,html:not([data-theme="dark"]) .task-table,html:not([data-theme="dark"]) .template-card,html:not([data-theme="dark"]) .intake-sync-card,html:not([data-theme="dark"]) .source-sync-window,html:not([data-theme="dark"]) .email-account-fold,html:not([data-theme="dark"]) .global-settings {
  background:#fff;
  border-color:#d6dee6;
  box-shadow:0 3px 12px rgba(43,59,76,.045)
}

html:not([data-theme="dark"]) .nav-link,html:not([data-theme="dark"]) .nav-tree-header,html:not([data-theme="dark"]) .sidebar-item-row {
  color:#526477
}

html:not([data-theme="dark"]) .nav-link:hover,html:not([data-theme="dark"]) .nav-tree-header:hover,html:not([data-theme="dark"]) .sidebar-item-row:hover,html:not([data-theme="dark"]) .tool-button:hover,html:not([data-theme="dark"]) .project-tabs a:hover {
  background:#eef4f8;
  color:#243447
}

html:not([data-theme="dark"]) .nav-link.active,html:not([data-theme="dark"]) .nav-tree-header.active,html:not([data-theme="dark"]) .sidebar-item-row.active,html:not([data-theme="dark"]) .project-tabs a.active {
  background:#e5f1fb;
  color:#0b4f88
}

html:not([data-theme="dark"]) .task-head {
  background:#edf2f6;
  color:#526477
}

html:not([data-theme="dark"]) .task-row {
  border-color:#e0e6eb
}

html:not([data-theme="dark"]) .task-row.group-row {
  background:#f5f7f9
}

html:not([data-theme="dark"]) .task-row:hover {
  background:#f0f7fc
}

html:not([data-theme="dark"]) .check-button,html:not([data-theme="dark"]) .tool-button {
  background:#fff;
  border-color:#cbd5df
}

html:not([data-theme="dark"]) .complete .check-button,html:not([data-theme="dark"]) .progress-cell i {
  background:#1769aa;
  border-color:#1769aa
}

html:not([data-theme="dark"]) .progress-cell>span {
  background:#dce5ec
}

html:not([data-theme="dark"]) .project-menu-button:hover,html:not([data-theme="dark"]) .sprint-task:hover,html:not([data-theme="dark"]) .date-time-picker header button:hover,html:not([data-theme="dark"]) .date-time-day:hover {
  background:#e5f1fb;
  border-color:#8bbce0
}

/* Titanium-forward pass: reserve white for controls and bring weight back to the workspace. */
html:not([data-theme="dark"]) {
  --paper:#f5f7f9;
  --canvas:#e4e9ee;
  --line:#c5d0da;
}

html:not([data-theme="dark"]) body {
  background:#e4e9ee
}

html:not([data-theme="dark"]) .sidebar {
  background:#edf1f4;
  border-color:#c7d1db
}

html:not([data-theme="dark"]) .topbar {
  background:#f8fafb;
  border-color:#c7d1db
}

html:not([data-theme="dark"]) .project-view-bar,html:not([data-theme="dark"]) .list-toolbar,html:not([data-theme="dark"]) .task-table,html:not([data-theme="dark"]) .template-card,html:not([data-theme="dark"]) .intake-sync-card,html:not([data-theme="dark"]) .source-sync-window,html:not([data-theme="dark"]) .email-account-fold,html:not([data-theme="dark"]) .global-settings {
  background:#f3f5f7;
  border-color:#c5d0da
}

html:not([data-theme="dark"]) .task-head {
  background:#dde4ea;
  color:#4b6073
}

html:not([data-theme="dark"]) .task-row {
  background:#f6f8fa;
  border-color:#d2dbe3
}

html:not([data-theme="dark"]) .task-row.group-row {
  background:#e9eef2
}

html:not([data-theme="dark"]) .task-row:hover {
  background:#eaf3f9
}

/* MyIntake uses the same compact table rhythm as the other workspace lists. */
.intake-bulk-toolbar {
  min-height:46px;
  padding:7px 14px;
  font-size:11px
}

.intake-bulk-toolbar button {
  min-height:30px;
  padding:5px 9px;
  font-size:11px
}

.intake-table {
  font-size:12px
}

.intake-table th,.intake-table td {
  padding:8px 12px
}

.intake-table th {
  font-size:9px
}

.intake-table th:first-child,.intake-table td:first-child {
  width:44px
}

.intake-table td b {
  font-size:13px;
  line-height:1.3
}

.intake-table td small {
  gap:5px;
  margin-top:4px;
  font-size:10px
}

.intake-table input[type=checkbox] {
  width:15px;
  height:15px
}

.intake-table th:nth-child(3),.intake-table td:nth-child(3) {
  width:132px;
  white-space:nowrap
}

.intake-table th:nth-child(4),.intake-table td:nth-child(4) {
  width:180px
}

.intake-sort-header {
  display:inline-flex;
  align-items:center;
  padding:3px 0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  cursor:pointer
}

.intake-sort-header:hover,.intake-sort-header.active {
  color:#579bfc
}

.intake-sort-header:focus-visible {
  outline:2px solid #82b4ff;
  outline-offset:2px;
  border-radius:3px
}

.intake-date {
  color:var(--muted);
  font-variant-numeric:tabular-nums
}

.intake-source-cell {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px
}

/* Archive is the other data table; keep its density aligned with MyIntake. */
.archive-toolbar {
  min-height:46px;
  padding:7px 14px;
  font-size:11px
}

.archive-toolbar .secondary {
  min-height:30px;
  padding:5px 9px;
  font-size:11px
}

.archive-table {
  font-size:12px
}

.archive-table th,.archive-table td {
  padding:8px 12px
}

.archive-table th {
  font-size:9px
}

.archive-table th:first-child,.archive-table td:first-child {
  width:44px
}

.archive-table th:nth-child(2),.archive-table td:nth-child(2) {
  width:118px
}

.archive-table input[type=checkbox] {
  width:15px;
  height:15px
}

/* Knowledge is a selectable workspace list, so it follows the same compact rhythm. */
.knowledge-list-head {
  padding:9px 13px;
  font-size:9px
}

.knowledge-row {
  grid-template-columns:28px minmax(0,1fr) auto;
  gap:8px;
  padding:9px 12px
}

.knowledge-row>span:nth-child(2) {
  gap:2px
}

.knowledge-row>span:nth-child(2)>b {
  font-size:13px;
  line-height:1.3
}

.knowledge-row small {
  font-size:10px
}

.knowledge-type {
  width:26px;
  height:26px;
  border-radius:7px;
  font-size:13px
}

/* Keep the Agile candidate control compact so it reads as a checkbox, not a work area. */
html .focused-task-table .task-head,html .focused-task-table .task-row {
  grid-template-columns:42px minmax(260px,1.15fr) 108px 92px 46px 152px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

html .focused-task-table:not(.project-task-table) .task-head,html .focused-task-table:not(.project-task-table) .task-row {
  grid-template-columns:42px minmax(260px,1.15fr) 108px 92px 46px 152px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

.task-head>span:nth-child(5),.agile-candidate {
  justify-self:center
}

/* Complex projects inherit the project purpose, so their tasks omit that column. */
html .focused-task-table.complex-project-task-table .task-head,html .focused-task-table.complex-project-task-table .task-row {
  grid-template-columns:42px minmax(260px,1.15fr) 108px 92px 46px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

@media(max-width:1500px) {
  /* Preserve the deliberate column rhythm instead of squeezing controls together. */
  html .focused-task-table {
    overflow-x:auto
  }
  html .focused-task-table .task-head,html .focused-task-table .task-row {
    min-width:1459px
  }
  html .focused-task-table.complex-project-task-table .task-head,html .focused-task-table.complex-project-task-table .task-row {
    min-width:1307px
  }
}

/* The task editor uses the same confirmed date-time picker as task creation. */
.detail-form .date-time-field {
  position:relative
}

.detail-form .date-time-trigger {
  width:100%;
  min-height:41px;
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
  color:var(--ink);
  padding:10px 38px 10px 11px;
  text-align:left;
  font:inherit;
  cursor:pointer;
  position:relative
}

.detail-form .date-time-trigger::after {
  content:'▣';
  position:absolute;
  right:12px;
  color:var(--muted);
  font-size:16px
}

html[data-theme="dark"] .detail-form .date-time-trigger {
  background:#171a30;
  border-color:var(--line)
}

.detail-advanced[open] {
  overflow:visible
}

.detail-form .date-time-picker {
  top:calc(100% + 7px);
  bottom:auto;
  width:min(280px,calc(100vw - 48px));
  box-sizing:border-box
}

.detail-call-details>.form-pair>.date-time-field:first-child .date-time-picker {
  left:0;
  right:auto
}

.detail-form .date-time-picker.opens-up {
  top:auto;
  bottom:calc(100% + 7px)
}

.detail-form .date-time-picker footer {
  display:flex;
  align-items:center;
  gap:7px
}

.detail-form .date-time-picker footer span {
  flex:1
}

/* Creation uses the same compact date-time picker footprint as the task editor. */
.modal-form .date-time-picker {
  width:min(280px,calc(100vw - 48px));
  box-sizing:border-box
}

/* Visual refresh: a quieter frame, more deliberate spacing, and clearer focus states. */
:root {
  --surface-raised:#ffffff;
  --surface-tint:#f8fafc;
  --focus-ring:0 0 0 3px color-mix(in srgb,var(--green) 22%,transparent);
  --shadow-soft:0 2px 5px rgba(31,45,61,.04),0 14px 30px rgba(31,45,61,.07)
}

body {
  min-width:0;
  background:linear-gradient(135deg,#f1f5f9 0%,#f7f9fc 45%,#eef4f8 100%)
}

.topbar {
  height:72px;
  padding:0 clamp(16px,2.4vw,36px);
  gap:20px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(16px);
  border-bottom-color:rgba(203,213,225,.82);
  box-shadow:0 1px 0 rgba(255,255,255,.8)
}

.brand {
  width:204px;
  font-size:18px;
  letter-spacing:-.035em
}

.brand-mark {
  width:36px;
  height:36px;
  border-radius:12px;
  background:linear-gradient(145deg,#2580bc,#15536d);
  box-shadow:0 7px 15px rgba(34,111,140,.25)
}

.workspace-switch {
  padding:9px 10px;
  border-radius:9px;
  transition:background .16s ease;
  color:var(--ink)
}

.workspace-switch:hover {
  background:var(--green-soft)
}

.search-trigger {
  max-width:520px;
  border-radius:12px;
  padding:10px 13px;
  background:rgba(248,250,252,.9);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease
}

.search-trigger:hover {
  background:var(--paper);
  border-color:color-mix(in srgb,var(--green) 45%,var(--line));
  box-shadow:var(--focus-ring)
}

.theme-toggle {
  border-radius:10px;
  padding:8px 11px;
  background:var(--surface-tint)
}

.layout {
  grid-template-columns:270px minmax(0,1fr) 0;
  min-height:calc(100vh - 72px)
}

.layout:has(.detail-pane.open) {
  grid-template-columns:270px minmax(0,1fr) 400px
}

.sidebar {
  top:72px;
  height:calc(100vh - 72px);
  padding:20px 12px 15px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
  border-right-color:rgba(203,213,225,.75)
}

.nav-link {
  min-height:42px;
  margin:3px 0;
  border-radius:10px;
  padding:8px 11px;
  transition:background .15s ease,color .15s ease,transform .15s ease
}

.nav-link:hover {
  background:#edf4f7;
  transform:translateX(2px)
}

.nav-link.active {
  background:linear-gradient(90deg,#dceef4,#e9f5f8);
  box-shadow:inset 3px 0 0 var(--green)
}

.count {
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  font-size:10px;
  line-height:1;
  border-radius:999px
}

.nav-section {
  margin-top:26px
}

.main {
  padding:44px clamp(26px,5vw,84px) 76px
}

.page-header {
  margin-bottom:36px
}

.page-header h1 {
  font-size:clamp(24px,2.4vw,32px);
  letter-spacing:-.045em
}

.page-header p {
  max-width:720px;
  font-size:14px;
  line-height:1.55
}

.primary,.secondary {
  border-radius:10px;
  min-height:42px;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease
}

.primary {
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  box-shadow:0 7px 15px color-mix(in srgb,var(--green) 23%,transparent)
}

.primary:hover {
  transform:translateY(-1px);
  box-shadow:0 10px 19px color-mix(in srgb,var(--green) 28%,transparent)
}

.secondary:hover {
  border-color:color-mix(in srgb,var(--green) 48%,var(--line));
  background:var(--green-soft)
}

.capture-card {
  border-radius:16px;
  padding:12px 13px 12px 18px;
  box-shadow:var(--shadow-soft)
}

.capture-card:focus-within {
  border-color:var(--green);
  box-shadow:var(--focus-ring),var(--shadow-soft)
}

.feature-panel,.stat-panel {
  border-radius:18px;
  box-shadow:var(--shadow-soft)
}

.feature-panel {
  background:linear-gradient(135deg,#ffffff,#eff7f5)
}

.project-card {
  border-radius:14px;
  box-shadow:0 2px 4px rgba(31,45,61,.02)
}

.project-card:hover {
  box-shadow:var(--shadow-soft);
  border-color:color-mix(in srgb,var(--green) 35%,var(--line))
}

.task-table,.knowledge-layout,.inbox-item,.today-section,.module-card,.data-actions {
  box-shadow:0 5px 18px rgba(31,45,61,.035)
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:none;
  box-shadow:var(--focus-ring)
}

html[data-theme="dark"] body {
  background:radial-gradient(circle at top left,#222944 0%,#171a30 46%,#121522 100%)
}

html[data-theme="dark"] .topbar,html[data-theme="dark"] .sidebar {
  background:rgba(25,28,52,.88);
  border-color:rgba(68,73,102,.78)
}

html[data-theme="dark"] .brand-mark {
  background:linear-gradient(145deg,#6ab0ff,#3977d9);
  box-shadow:0 7px 17px rgba(56,116,220,.25)
}

html[data-theme="dark"] .workspace-switch:hover,html[data-theme="dark"] .nav-link:hover {
  background:#242b4b
}

html[data-theme="dark"] .nav-link.active {
  background:linear-gradient(90deg,#28395c,#263452);
  box-shadow:inset 3px 0 0 #78adfa
}

html[data-theme="dark"] .search-trigger,html[data-theme="dark"] .theme-toggle {
  background:#202641
}

html[data-theme="dark"] .feature-panel {
  background:linear-gradient(135deg,#252d4d,#1c2340)
}

html[data-theme="dark"] .primary {
  background:linear-gradient(135deg,#579bfc,#3977d9)
}

@media(max-width:1050px) {
  .layout,.layout:has(.detail-pane.open) {
    grid-template-columns:230px minmax(0,1fr)
  }
  .detail-pane.open {
    top:72px
  }
  .main {
    padding-top:36px
  }
}

@media(max-width:760px) {
  .topbar {
    height:auto;
    min-height:64px;
    gap:10px;
    flex-wrap:wrap;
    padding:12px 16px;
    position:relative
  }
  .brand {
    width:auto
  }
  .workspace-switch {
    min-width:96px;
    flex:1;
    text-align:right;
    white-space:nowrap
  }
  .search-trigger {
    order:3;
    flex:1 1 210px;
    width:auto;
    max-width:none
  }
  .saved-indicator {
    display:none
  }
  .layout,.layout:has(.detail-pane.open) {
    display:block;
    min-height:0
  }
  .sidebar {
    position:relative;
    top:0;
    width:100%;
    height:auto;
    padding:8px 12px;
    overflow:visible;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .sidebar nav {
    display:flex;
    gap:3px;
    overflow:auto;
    padding-bottom:2px
  }
  .sidebar nav>.nav-link,.nav-tree,.sidebar nav>.nav-section,.pinned-links {
    flex:0 0 auto
  }
  .sidebar .nav-section,.sidebar .nav-tree,.sidebar .pinned-links,.new-workspace {
    display:none
  }
  .nav-link {
    min-height:38px;
    margin:0;
    padding:7px 10px;
    white-space:nowrap
  }
  .nav-link:hover {
    transform:none
  }
  .main {
    padding:30px 18px 50px
  }
  .page-header {
    gap:18px;
    margin-bottom:28px
  }
  .page-header h1 {
    font-size:30px
  }
  .today-clock {
    display:none
  }
  .detail-pane.open {
    position:fixed;
    top:0;
    z-index:30;
    width:min(100%,420px);
    height:100vh
  }
  .mode-launcher {
    grid-template-columns:1fr;
    margin:0 0 22px
  }
  .mode-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px
  }
  .mode-card {
    min-height:100px;
    padding:13px;
    column-gap:9px
  }
  .mode-card strong {
    font-size:16px
  }
  .mode-card small {
    font-size:11px
  }
  .mode-icon {
    width:36px;
    height:36px;
    border-radius:10px;
    font-size:14px
  }
  .home-grid,.project-grid {
    grid-template-columns:1fr
  }
  .search-command-grid {
    grid-template-columns:1fr
  }
}

/* Phones use a vertical control flow.  The timeline remains deliberately
   scrollable instead of compressing dates and task controls beyond use. */
@media(max-width:760px) {
  .page-header {
    align-items:stretch;
    flex-direction:column
  }
  .page-header .primary {
    align-self:flex-start
  }
  .project-view-bar {
    position:static;
    align-items:stretch;
    flex-direction:column;
    gap:8px;
    padding:8px;
    margin-bottom:16px
  }
  .project-view-label {
    padding:0 4px;
    font-size:10px
  }
  .project-tabs {
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px
  }
  .project-tabs button,.project-tabs a {
    min-height:52px;
    padding:8px;
    font-size:14px
  }
  .project-knowledge-link {
    align-self:flex-end;
    margin-left:0;
    padding:4px 6px;
    font-size:12px
  }
  .gantt-panel {
    overflow-x:auto;
    -webkit-overflow-scrolling:touch
  }
  .gantt-toolbar {
    min-width:530px
  }
  .gantt-shell {
    grid-template-columns:230px minmax(300px,1fr);
    min-width:530px
  }
  .gantt-top-scroll {
    width:300px;
    margin-left:230px;
    min-width:300px
  }
  .gantt-name,.gantt-name-head {
    grid-template-columns:minmax(0,1fr) 74px
  }
  .gantt-name {
    padding-left:calc(9px + var(--depth) * 14px);
    padding-right:8px
  }
  .gantt-task-label>span {
    font-size:11px
  }
  .gantt-name small {
    font-size:8px
  }
}

/* MyCapacity is a weekly review: read Monday through Sunday, one day at a time. */
.agile-capacity-days {
  grid-template-columns:minmax(280px,520px);
  justify-content:start;
  overflow:visible
}

/* MyCapacity pairs each day’s available capacity with that day’s concrete task demand. */
.agile-capacity-days {
  grid-template-columns:minmax(0,1fr);
  gap:10px
}

.capacity-week-row {
  display:grid;
  grid-template-columns:minmax(280px,420px) minmax(0,1fr);
  gap:10px;
  align-items:stretch
}

.capacity-week-row .agile-capacity-day {
  min-width:0
}

.capacity-demand-day {
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:14px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--canvas)
}

.capacity-demand-day>header {
  display:grid;
  align-content:start;
  gap:8px
}

.capacity-demand-day>header>div {
  display:grid;
  gap:5px;
  color:var(--muted);
  font-size:9px
}

.capacity-demand-day>header>div span {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:7px
}

.capacity-demand-day>header b {
  color:var(--ink);
  font-size:10px
}

.capacity-demand-groups {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  min-width:0
}

.capacity-demand-groups>section {
  display:grid;
  align-content:start;
  gap:5px;
  min-width:0
}

.capacity-demand-groups p {
  margin:3px 0;
  color:var(--muted);
  font-size:10px
}

.capacity-demand-label {
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em
}

.capacity-demand-label::before {
  content:'';
  width:7px;
  height:7px;
  border-radius:2px;
  background:#579bfc
}

.capacity-demand-label.single::before {
  background:#ffab3d
}

.capacity-demand-task {
  display:grid;
  grid-template-columns:7px minmax(0,1fr) auto;
  gap:7px;
  align-items:center;
  width:100%;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--paper);
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer
}

.capacity-demand-task:hover {
  border-color:var(--green);
  background:var(--green-soft)
}

.capacity-demand-task>i {
  width:7px;
  height:7px;
  border-radius:2px;
  background:#579bfc
}

.capacity-demand-task>i.single {
  background:#ffab3d
}

.capacity-demand-task>span {
  display:grid;
  gap:2px;
  min-width:0
}

.capacity-demand-task b {
  overflow:hidden;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap
}

.capacity-demand-task small {
  overflow:hidden;
  color:var(--muted);
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap
}

.capacity-demand-task strong {
  font-size:10px;
  white-space:nowrap
}

.capacity-demand-task.unestimated {
  border-color:rgba(226,68,92,.6)
}

.capacity-demand-task.unestimated strong {
  color:#d9485f
}

@media(max-width:850px) {
  .capacity-week-row {
    grid-template-columns:1fr
  }
  .capacity-demand-day {
    grid-template-columns:1fr
  }
  .capacity-demand-groups {
    grid-template-columns:1fr
  }
}

/* Capacity is the constant; demand stays quiet until there is real scheduled work to inspect. */
.capacity-demand-day {
  display:grid;
  align-content:center;
  min-height:0;
  padding:9px 12px;
  background:transparent
}

.capacity-demand-day.empty {
  place-items:center;
  color:var(--muted);
  font-size:11px
}

.capacity-demand-day.empty p {
  margin:0
}

.capacity-demand-groups {
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:9px
}

.capacity-demand-groups>section {
  gap:4px
}

.capacity-demand-task {
  padding:6px 8px
}

.capacity-demand-task b {
  font-size:11px
}

.capacity-demand-task small {
  font-size:9px
}

@media(max-width:850px) {
  .capacity-demand-day {
    min-height:62px
  }
  .capacity-demand-groups {
    grid-template-columns:1fr
  }
}

/* Empty demand must not compete with the capacity card; project planning stays day-based. */
.capacity-demand-day.empty {
  align-content:start;
  align-items:start;
  justify-items:start;
  border:0;
  background:transparent;
  padding:10px 12px
}

.capacity-demand-day.empty p {
  padding-top:1px
}

.modal-form [data-project-duration][hidden],.modal-form [data-single-effort][hidden] {
  display:none!important
}

/* A day card should answer the balance question once; the bar key lives above the week. */
.agile-capacity-balance {
  margin:0!important;
  color:#a9d45b!important;
  font-size:9px!important;
  font-weight:700
}

.agile-capacity-balance.over {
  color:#e2445c!important
}

/* The weekly pattern is chosen by intent first; the numeric fields show its exact capacity. */
.capacity-schedule-modal {
  max-width:680px!important
}

.capacity-schedule-head,.capacity-schedule-row {
  grid-template-columns:150px 90px 90px minmax(150px,1fr);
  gap:12px
}

.capacity-schedule-head {
  padding:0 12px
}

.capacity-schedule-row {
  padding:10px 12px
}

.capacity-day {
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:8px;
  align-items:center
}

.capacity-day>b {
  font-size:12px
}

.capacity-day-toggles {
  display:grid;
  gap:5px
}

.capacity-day-toggles label {
  display:flex;
  align-items:center;
  justify-content:flex-start!important;
  gap:5px!important;
  color:var(--muted);
  font-size:9px;
  line-height:1
}

.capacity-day-toggles input[type="checkbox"] {
  width:14px!important;
  min-width:14px!important;
  height:14px;
  padding:0
}

.capacity-day-toggles label:has(input:disabled) {
  opacity:.35
}

@media(max-width:620px) {
  .capacity-schedule-modal {
    max-width:calc(100vw - 20px)!important
  }
  .capacity-schedule-head {
    display:none
  }
  .capacity-schedule-row {
    grid-template-columns:130px 1fr 1fr;
    gap:8px
  }
  .capacity-schedule-row output {
    grid-column:2/-1
  }
  .capacity-schedule-row label input {
    width:76px;
    min-width:76px
  }
}

.capacity-schedule-modal .modal-header {
  align-items:flex-start
}

.capacity-workday-template {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px 12px;
  min-width:258px;
  margin-left:auto;
  margin-right:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:color-mix(in srgb,var(--canvas) 72%,transparent);
  color:var(--muted);
  font-size:9px
}

.capacity-workday-template-title {
  grid-column:1/-1;
  color:var(--ink);
  font-size:10px
}

.capacity-workday-template-recal {
  grid-column:2;
  justify-self:end;
  align-self:center;
  min-height:22px;
  padding:3px 7px;
  font-size:9px;
  line-height:1
}

.capacity-workday-template label {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  white-space:nowrap
}

.capacity-workday-template input {
  width:60px;
  min-width:60px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--paper);
  color:var(--ink);
  padding:3px 4px;
  font:inherit;
  font-size:10px
}

.capacity-workday-template label:has([data-capacity-template^="transit"]) {
  grid-template-columns:minmax(0,1fr) 46px
}

.capacity-workday-template label:has([data-capacity-template^="transit"]) input {
  width:46px;
  min-width:46px
}

@media(max-width:620px) {
  .capacity-schedule-modal .modal-header {
    flex-wrap:wrap
  }
  .capacity-workday-template {
    order:3;
    width:100%;
    margin:0
  }
  .capacity-schedule-modal .capacity-close {
    margin-left:auto
  }
}

.capacity-schedule-modal .modal-actions {
  align-items:center
}

.capacity-gross-hours {
  display:grid;
  place-items:center;
  flex:0 0 50px;
  width:50px;
  height:50px;
  margin-right:auto;
  border:1px solid #579bfc;
  border-radius:50%;
  background:rgba(87,155,252,.12);
  color:#a9cbff;
  line-height:1
}

.capacity-gross-hours span {
  transform:translateY(4px);
  font-size:8px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em
}

.capacity-gross-hours strong {
  font-size:13px
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--capacity-hour-share) - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(var(--capacity-hour-share) - 1px),color-mix(in srgb,var(--line) 55%,transparent) var(--capacity-hour-share))!important
}

.capacity-timeline-grid.day .capacity-timeline-day-track .capacity-timeline-bar {
  left:var(--capacity-left);
  width:var(--capacity-width);
  max-width:calc(100% - var(--capacity-left))
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span {
  left:var(--capacity-hour-position)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span:first-child {
  transform:translate(0,-50%)
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span:last-child {
  right:auto;
  transform:translate(-100%,-50%)
}

/* Fixed 06:00–24:00 day ruler: labels and task lanes use the identical 18-column grid. */
.capacity-timeline-grid.day .capacity-timeline-hour-head {
  position:relative!important;
  display:block!important;
  isolation:isolate;
  background:repeating-linear-gradient(90deg,var(--paper) 0,var(--paper) calc(var(--capacity-hour-share) - 1px),var(--line) calc(var(--capacity-hour-share) - 1px),var(--line) var(--capacity-hour-share))!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span {
  position:absolute!important;
  z-index:1;
  top:50%;
  left:var(--capacity-hour-position)!important;
  margin:0;
  transform:translate(-50%,-50%)!important;
  line-height:1;
  white-space:nowrap
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span:first-child {
  transform:translate(0,-50%)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span:last-child {
  right:auto!important;
  transform:translate(-100%,-50%)!important
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--capacity-hour-share) - 1px),color-mix(in srgb,var(--line) 72%,transparent) calc(var(--capacity-hour-share) - 1px),color-mix(in srgb,var(--line) 72%,transparent) var(--capacity-hour-share))!important
}

/* Day and Mode are separate columns; keep the capacity bar inside the modal at every viewport width. */
.modal-overlay:has(.capacity-schedule-modal) {
  padding:8px
}

.modal-card.capacity-schedule-modal {
  width:min(680px,calc(100vw - 28px));
  box-sizing:border-box;
  max-height:calc(100vh - 16px);
  overflow-x:hidden
}

.capacity-schedule-head,.capacity-schedule-row {
  grid-template-columns:60px 86px 78px 78px minmax(0,1fr);
  gap:10px
}

.capacity-schedule-head {
  padding:0 12px
}

.capacity-schedule-row {
  padding:10px 12px
}

.capacity-day {
  display:contents
}

.capacity-day>b {
  align-self:center
}

.capacity-day-toggles {
  align-self:center
}

.capacity-schedule-row output {
  min-width:0
}

.capacity-schedule-row output .capacity-edit-bar {
  max-width:100%
}

@media(max-width:620px) {
  .capacity-schedule-head {
    display:none
  }
  .capacity-schedule-row {
    grid-template-columns:60px 86px 74px 74px minmax(0,1fr);
    gap:7px;
    padding:9px 10px
  }
  .capacity-schedule-row output {
    grid-column:auto
  }
  .capacity-schedule-row label input {
    width:64px;
    min-width:64px
  }
}

/* The daily balance belongs in the header; the bar remains a clean visual allocation. */
.agile-capacity-day header .agile-capacity-balance {
  justify-content:flex-end;
  align-items:baseline;
  margin:0!important;
  white-space:nowrap
}

.agile-capacity-day header .agile-capacity-balance strong {
  font-size:12px!important
}

.agile-capacity-day header .agile-capacity-balance .capacity-balance-label {
  font-size:8px
}

/* Demand cards are deliberate interaction targets: clear surfaces for clicking and drag-and-drop. */
.capacity-demand-day {
  grid-template-columns:minmax(0,1fr) auto!important;
  align-content:start!important;
  align-items:start!important;
  min-height:76px!important;
  padding:11px 14px!important;
  border:1px solid color-mix(in srgb,var(--line) 76%,transparent)!important;
  border-radius:8px;
  background:color-mix(in srgb,var(--canvas) 76%,transparent)!important
}

.capacity-demand-day.weekend {
  background:color-mix(in srgb,#a9d45b 3%,var(--canvas))!important
}

.capacity-demand-groups {
  width:auto;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:9px!important
}

.capacity-demand-groups>section {
  gap:4px!important
}

.capacity-demand-label {
  font-size:9px!important
}

.capacity-demand-task {
  min-height:46px!important;
  padding:8px 9px!important;
  border:1px solid var(--line)!important;
  border-radius:7px!important;
  background:var(--paper)!important
}

.capacity-demand-task.project {
  border-color:rgba(47,111,209,.75)!important;
  background:rgba(22,63,142,.24)!important
}

.capacity-demand-task.single {
  border-color:rgba(255,171,61,.72)!important;
  background:rgba(255,171,61,.12)!important
}

.capacity-demand-task small {
  display:block
}

.capacity-demand-task strong {
  padding:3px 5px!important;
  background:rgba(255,255,255,.055)!important
}

.capacity-demand-day.empty {
  display:grid!important;
  align-content:center!important;
  border-style:dashed!important;
  background:color-mix(in srgb,var(--canvas) 76%,transparent)!important
}

.capacity-empty-state {
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  margin:0!important;
  color:var(--muted)
}

.capacity-empty-state span {
  font-size:13px!important;
  line-height:1!important
}

.capacity-empty-state b {
  font-size:10px!important;
  color:var(--muted)!important
}

.capacity-demand-day.empty>header {
  justify-self:end
}

.capacity-add-task {
  opacity:1
}

/* The numbers carry the status colour; their labels stay deliberately quiet. */
.agile-capacity-balance:not(.over) .capacity-balance-label {
  color:#7899c9!important;
  text-shadow:none!important
}

.agile-capacity-day header>b {
  color:#7899c9!important
}

.agile-capacity-day-title {
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0
}

.agile-capacity-day-title>b {
  color:#7899c9
}

.agile-capacity-today {
  border:1px solid rgba(87,155,252,.65);
  border-radius:999px;
  padding:2px 5px;
  color:#a9cbff;
  font-size:8px;
  font-weight:700;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap
}

/* Capacity review refinement: make the day and its demand read as one quiet unit. */
.agile-capacity-report {
  gap:14px;
  padding:16px;
  border-color:color-mix(in srgb,var(--line) 82%,transparent);
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.agile-capacity-key {
  gap:8px 14px;
  color:color-mix(in srgb,var(--muted) 88%,white)
}

.agile-capacity-key i {
  width:7px;
  height:7px;
  border-radius:50%
}

.agile-capacity-days {
  gap:8px
}

.capacity-week-row {
  gap:8px;
  padding:2px;
  border:1px solid transparent;
  border-radius:10px;
  transition:border-color .16s ease,background .16s ease
}

.capacity-week-row.today {
  border-color:rgba(87,155,252,.48);
  background:rgba(87,155,252,.055)
}

.capacity-week-row.weekend {
  background:rgba(169,212,91,.025)
}

.capacity-week-row.today.weekend {
  background:linear-gradient(90deg,rgba(87,155,252,.065),rgba(169,212,91,.04))
}

.agile-capacity-day,.capacity-demand-day {
  border-color:color-mix(in srgb,var(--line) 76%,transparent);
  box-shadow:none!important
}

.agile-capacity-day {
  gap:8px;
  padding:11px 12px;
  background:color-mix(in srgb,var(--canvas) 92%,var(--paper))
}

.agile-capacity-day.today {
  border-color:color-mix(in srgb,#579bfc 62%,var(--line))
}

.agile-capacity-day.weekend {
  background:color-mix(in srgb,#a9d45b 5%,var(--canvas))
}

.agile-capacity-day header b {
  font-size:12px
}

.agile-capacity-day header small {
  font-size:9px
}

.agile-capacity-bar {
  height:11px;
  border-radius:999px;
  background:color-mix(in srgb,var(--line) 75%,transparent)
}

.agile-capacity-balance {
  justify-content:flex-start;
  gap:4px
}

.agile-capacity-balance strong {
  font-size:14px!important
}

.agile-capacity-balance .available,.agile-capacity-balance .capacity-balance-label {
  color:#c4ee70!important;
  text-shadow:none
}

.agile-capacity-balance .used {
  color:#ffbe5c!important
}

.capacity-demand-day {
  position:relative;
  min-height:76px;
  padding:11px 14px;
  background:color-mix(in srgb,var(--canvas) 76%,transparent)
}

.capacity-demand-day.weekend {
  background:color-mix(in srgb,#a9d45b 3%,var(--canvas))
}

.capacity-demand-day.empty {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-content:center;
  align-items:center;
  justify-items:stretch;
  border-style:dashed
}

.capacity-empty-state {
  display:grid;
  grid-template-columns:15px auto;
  column-gap:7px;
  align-items:center;
  margin:0!important;
  color:var(--muted)
}

.capacity-empty-state span {
  grid-row:1 / span 2;
  color:#7899c9;
  font-size:18px;
  line-height:1
}

.capacity-empty-state b {
  font-size:10px;
  color:color-mix(in srgb,var(--ink) 82%,var(--muted))
}

.capacity-empty-state small {
  font-size:9px
}

.capacity-demand-day.empty>header {
  justify-self:end
}

.capacity-demand-task {
  min-height:46px;
  padding:8px 9px;
  border-radius:7px
}

.capacity-demand-task b {
  font-size:11px
}

.capacity-demand-task strong {
  padding:3px 5px;
  border-radius:4px;
  background:rgba(255,255,255,.055);
  font-size:9px
}

.capacity-demand-label {
  margin-bottom:1px
}

.capacity-add-task {
  border-color:rgba(87,155,252,.58);
  background:transparent;
  color:#a9cbff
}

.capacity-add-task:hover,.capacity-add-task:focus-visible {
  background:rgba(87,155,252,.17)
}

.capacity-report-actions,.capacity-week-navigation {
  display:flex;
  align-items:center;
  gap:6px
}

.capacity-week-navigation {
  gap:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  box-shadow:0 2px 8px rgba(20,28,55,.1)
}

.capacity-week-label {
  display:grid;
  place-items:center;
  min-height:32px;
  padding:5px 11px;
  color:var(--ink);
  font-size:12px;
  font-weight:750;
  white-space:nowrap
}

.capacity-week-navigation .secondary {
  min-width:34px;
  min-height:32px;
  padding:4px 8px;
  border:0;
  border-left:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  font-size:17px;
  line-height:1
}

.capacity-week-navigation .secondary[data-action="capacity-current-week"],.capacity-week-navigation .secondary[data-action="capacity-tomorrow"] {
  min-width:auto;
  padding-inline:11px;
  font-size:11px;
  font-weight:750
}

.capacity-week-navigation .secondary:hover:not(:disabled),.capacity-week-navigation .secondary:focus-visible {
  background:var(--green-soft);
  box-shadow:none
}

.capacity-week-navigation .secondary:disabled {
  opacity:.5;
  cursor:default
}

@media(max-width:620px) {
  .agile-capacity-report>header {
    gap:10px
  }
  .capacity-report-actions {
    width:100%;
    justify-content:space-between
  }
}

.page-title-with-control {
  gap:12px
}

.page-title-with-control .capacity-week-navigation {
  margin:0
}

.page-header>.secondary {
  min-height:32px;
  margin-top:4px;
  box-shadow:0 2px 8px rgba(20,28,55,.1)
}

@media(max-width:620px) {
  .page-header {
    align-items:stretch;
    flex-direction:column;
    gap:12px
  }
  .page-header>.secondary {
    align-self:flex-start
  }
}

.capacity-week-navigation .secondary[data-action="capacity-tomorrow"] {
  color:#78adfa
}

.capacity-week-navigation .secondary[data-action="capacity-tomorrow"]:hover,.capacity-week-navigation .secondary[data-action="capacity-tomorrow"]:focus-visible {
  color:#a9cbff
}

.capacity-week-navigation .secondary[data-action="capacity-tomorrow"]:disabled {
  color:var(--muted)
}

/* MyCapacity list is a weekly scan, so all seven days should fit without
   making the user scroll through a stack of card-shaped containers. */
.agile-capacity-report:not(.landing-capacity-report) {
  gap:8px;
  margin-top:10px;
  padding:10px 12px
}

.agile-capacity-report:not(.landing-capacity-report)>header {
  min-height:16px;
  align-items:center
}

.agile-capacity-report:not(.landing-capacity-report)>header h3,.agile-capacity-report:not(.landing-capacity-report)>header p {
  display:none
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-key {
  position:static;
  margin-left:auto
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-days {
  gap:0;
  overflow:visible
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-week-row {
  grid-template-columns:minmax(430px,46%) minmax(0,1fr);
  gap:16px;
  min-height:56px;
  padding:6px 4px;
  border:0;
  border-top:1px solid color-mix(in srgb,var(--line) 68%,transparent);
  border-radius:0;
  background:transparent
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-week-row:first-child {
  border-top:0
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-week-row.today {
  margin-inline:-4px;
  padding-inline:8px;
  border-radius:7px;
  background:rgba(87,155,252,.07);
  box-shadow:inset 2px 0 0 #579bfc
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-week-row.weekend:not(.today) {
  background:transparent
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day {
  position:relative;
  grid-template-columns:126px minmax(180px,1fr);
  grid-template-rows:auto;
  gap:14px;
  align-items:center;
  min-width:0;
  padding:4px 10px 4px 6px;
  border:0;
  border-radius:7px;
  background:color-mix(in srgb,var(--canvas) 45%,transparent)
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day::after {
  content:'';
  position:absolute;
  top:8px;
  right:-9px;
  bottom:8px;
  width:1px;
  background:color-mix(in srgb,var(--line) 78%,transparent)
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day header {
  display:grid;
  grid-template-columns:1fr;
  gap:2px;
  align-content:center
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day header b {
  font-size:11px
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day-title {
  gap:5px
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-balance {
  white-space:nowrap
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-balance strong {
  font-size:11px!important;
  letter-spacing:-.01em
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-bar {
  height:14px;
  border-radius:4px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.045)
}

.agile-capacity-bar i.zero {
  flex:0 0 auto;
  background:#aeb4c0!important
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-warning {
  grid-column:2;
  margin-top:-8px!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day {
  grid-template-columns:minmax(0,1fr) 28px!important;
  align-items:center!important;
  min-height:38px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups {
  display:flex;
  align-items:center;
  gap:8px!important;
  overflow:hidden
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups>section {
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-label {
  flex:0 0 auto;
  width:7px;
  height:7px;
  overflow:hidden;
  margin:0;
  color:transparent;
  font-size:0
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-label::before {
  flex:0 0 7px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task {
  display:flex;
  flex:0 1 auto;
  gap:6px;
  width:auto;
  max-width:280px;
  min-height:30px!important;
  padding:5px 7px!important;
  border-color:color-mix(in srgb,var(--line) 76%,transparent)!important;
  border-radius:6px!important;
  background:color-mix(in srgb,var(--canvas) 82%,transparent)!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task.project {
  background:rgba(22,63,142,.13)!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task.single {
  background:rgba(255,171,61,.08)!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task>i {
  flex:0 0 6px;
  width:6px;
  height:6px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task>span {
  display:block;
  min-width:0
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task b {
  display:block;
  overflow:hidden;
  max-width:190px;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task small {
  display:none
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task strong {
  padding:0!important;
  background:transparent!important;
  font-size:8px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-empty-state {
  display:block!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-empty-state span {
  display:none
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-empty-state b {
  font-size:9px!important;
  font-weight:500!important
}

/* Keep the row action explicit and visibly actionable without competing with the day balance. */
.agile-capacity-report:not(.landing-capacity-report) .capacity-add-task {
  display:inline-flex;
  align-self:center;
  align-items:center;
  justify-content:center;
  min-width:68px;
  height:30px;
  min-height:30px;
  padding:5px 10px;
  border-color:rgba(126,180,255,.9);
  border-radius:7px;
  background:linear-gradient(135deg,rgba(87,155,252,.3),rgba(57,119,217,.2));
  box-shadow:0 2px 7px rgba(10,24,66,.28),inset 0 1px 0 rgba(255,255,255,.09);
  color:#e2efff;
  font-size:10px;
  font-weight:750;
  letter-spacing:.01em;
  line-height:1;
  white-space:nowrap;
  transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-add-task::before {
  content:none
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-week-row:hover .capacity-add-task,.agile-capacity-report:not(.landing-capacity-report) .capacity-add-task:hover {
  border-color:#c1dcff;
  background:linear-gradient(135deg,rgba(87,155,252,.52),rgba(57,119,217,.36));
  box-shadow:0 4px 11px rgba(10,24,66,.38),inset 0 1px 0 rgba(255,255,255,.14);
  transform:translateY(-1px)
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-add-task:active {
  transform:translateY(0);
  box-shadow:inset 0 1px 4px rgba(5,15,48,.35)
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-add-task:focus-visible {
  border-color:#d7e7ff;
  box-shadow:0 0 0 3px rgba(87,155,252,.32),0 4px 11px rgba(10,24,66,.38);
  outline:none
}

/* Three clear row regions: capacity summary, capacity bar, then task demand and its action. */
.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day {
  min-height:44px;
  padding:0;
  border:0;
  background:transparent
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day::after {
  display:none
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day header {
  align-self:stretch;
  box-sizing:border-box;
  padding:6px 9px;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent);
  border-radius:7px;
  background:color-mix(in srgb,var(--canvas) 50%,transparent)
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-bar {
  align-self:stretch;
  height:auto;
  min-height:44px;
  box-sizing:border-box;
  padding:4px;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent);
  border-radius:7px;
  background:color-mix(in srgb,var(--canvas) 50%,transparent)
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day {
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  min-height:44px!important;
  box-sizing:border-box;
  padding:4px 6px!important;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent)!important;
  border-radius:7px;
  background:color-mix(in srgb,var(--canvas) 50%,transparent)!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups {
  align-self:stretch;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day>header {
  display:flex;
  align-self:stretch;
  align-items:center;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day.empty .capacity-empty-state {
  display:flex!important;
  align-self:stretch;
  align-items:center;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent
}

@media(max-width:1100px) {
  .agile-capacity-report:not(.landing-capacity-report) .capacity-week-row {
    grid-template-columns:minmax(350px,44%) minmax(0,1fr)
  }
  .agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day {
    grid-template-columns:116px minmax(120px,1fr)
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task b {
    max-width:130px
  }
}

@media(max-width:760px) {
  .agile-capacity-report:not(.landing-capacity-report) .capacity-week-row {
    grid-template-columns:1fr;
    gap:4px;
    padding-block:8px
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day {
    min-height:30px!important
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups {
    overflow-x:auto
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task {
    flex:0 0 auto
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-empty-state {
    display:none!important
  }
}

/* Keep the MyProject destination in the compact navigation without exposing
   the full project tree in the already-scrollable phone rail. */
@media(max-width:760px) {
  .sidebar .nav-tree {
    display:block;
    flex:0 0 auto;
    margin:0
  }
  .sidebar .nav-tree-header {
    display:block;
    min-height:0
  }
  .sidebar .tree-toggle,.sidebar .tree-add,.sidebar .tree-children {
    display:none
  }
  .sidebar .tree-title {
    height:38px;
    padding:7px 10px;
    border-radius:10px;
    font-size:inherit;
    white-space:nowrap
  }
  .sidebar .nav-tree-header.active .tree-title {
    background:linear-gradient(90deg,#dceef4,#e9f5f8);
    box-shadow:inset 3px 0 0 var(--green)
  }
  html[data-theme="dark"] .sidebar .nav-tree-header.active .tree-title {
    background:linear-gradient(90deg,#28395c,#263452);
    box-shadow:inset 3px 0 0 #78adfa
  }
}

.project-menu {
  width:min(560px,90vw)!important
}

.project-menu .modal-header {
  padding:23px 24px 18px
}

.project-menu .project-menu-list {
  display:grid;
  gap:15px;
  padding:22px 24px
}

.project-menu .project-menu-group {
  gap:8px;
  padding:15px;
  border:1px solid color-mix(in srgb,var(--line) 86%,var(--paper));
  border-radius:12px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.project-menu .project-menu-group+.project-menu-group {
  border-top:1px solid color-mix(in srgb,var(--line) 86%,var(--paper))
}

.project-menu .project-menu-group>p {
  padding:0;
  color:var(--ink);
  font-size:13px;
  letter-spacing:0;
  text-transform:none
}

.project-menu .project-menu-group button {
  min-height:42px;
  padding:10px 12px
}

.project-menu .project-menu-detail {
  border:1px solid var(--line);
  background:var(--paper)
}

.project-menu .project-menu-detail:hover {
  border-color:var(--green);
  background:var(--green-soft)
}

.project-menu .project-menu-detail small {
  font-size:12px
}

.project-menu .project-menu-group:not(:first-child) button {
  padding-left:4px
}

.project-menu .project-menu-group:not(:first-child) button::after {
  content:'›';
  margin-left:auto;
  color:var(--muted);
  font-size:17px;
  line-height:1
}

.project-menu .project-menu-lifecycle {
  border-color:color-mix(in srgb,#b43248 22%,var(--line));
  background:color-mix(in srgb,#b43248 5%,var(--paper))
}

.project-menu .project-menu-lifecycle button {
  padding-left:4px
}

.project-menu .project-menu-lifecycle button::after {
  content:none
}

.project-menu {
  max-height:calc(100dvh - 32px)
}

.project-menu .project-menu-list {
  gap:8px;
  padding:14px 24px 8px
}

.project-menu .project-menu-group {
  gap:4px;
  padding:12px
}

.project-menu .project-menu-group>p {
  padding-bottom:2px
}

.project-menu .project-menu-group button {
  min-height:36px;
  padding:7px 10px
}

.project-menu .project-menu-group:not(:first-child) button {
  padding-left:2px
}

main:has(.project-directory) .page-header {
  margin-bottom:14px
}

.project-directory {
  width:100%
}

.project-directory-toolbar {
  display:flex;
  align-items:center;
  min-height:48px;
  padding:0 14px;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:12px 12px 0 0;
  background:color-mix(in srgb,var(--paper) 92%,var(--canvas))
}

.project-directory-title {
  display:flex;
  align-items:center;
  gap:9px
}

.project-directory-title>span {
  color:#579bfc;
  font-size:15px
}

.project-directory-title>div {
  display:grid;
  gap:2px
}

.project-directory-title b {
  color:var(--ink);
  font-size:12px
}

.project-directory-title small {
  color:var(--muted);
  font-size:9px
}

.project-directory .project-directory-table {
  border-radius:0 0 12px 12px
}

.project-directory .project-directory-head,.project-directory .project-directory-row {
  grid-template-columns:minmax(190px,1.4fr) 76px 96px minmax(135px,.8fr) 64px minmax(110px,.7fr) minmax(110px,.75fr);
  gap:10px
}

.project-directory-context {
  display:flex;
  align-items:center
}

.project-context-badge {
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 8px;
  font-size:10px;
  line-height:1;
  font-weight:700
}

.project-context-badge.profession {
  border-color:color-mix(in srgb,#579bfc 45%,var(--line));
  background:color-mix(in srgb,#579bfc 14%,var(--paper));
  color:color-mix(in srgb,#579bfc 78%,var(--ink))
}

.project-context-badge.personal {
  border-color:color-mix(in srgb,#35a783 45%,var(--line));
  background:color-mix(in srgb,#35a783 14%,var(--paper));
  color:color-mix(in srgb,#35a783 78%,var(--ink))
}

@media(max-width:760px) {
  .project-directory .project-directory-table {
    overflow-x:auto
  }
  .project-directory .project-directory-head,.project-directory .project-directory-row {
    min-width:862px
  }
}

.project-menu .project-menu-edit-reuse {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}

.project-menu .project-menu-action-column {
  display:grid;
  gap:7px;
  min-width:0
}

.project-menu .project-menu-action-column>p {
  margin:0;
  padding:0 0 2px;
  color:var(--ink);
  font-size:13px;
  font-weight:700
}

.project-menu .project-menu-action-column button {
  display:flex;
  align-items:center;
  width:100%;
  min-height:38px!important;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  padding:7px 9px!important
}

.project-menu .project-menu-action-column button:hover {
  border-color:var(--green);
  background:var(--green-soft)
}

@media(max-width:460px) {
  .project-menu .project-menu-edit-reuse {
    grid-template-columns:1fr;
    gap:12px
  }
}

.project-menu .project-menu-lifecycle button {
  display:flex;
  align-items:center;
  width:100%;
  min-height:38px!important;
  border:1px solid color-mix(in srgb,var(--line) 78%,#b43248);
  border-radius:8px;
  background:var(--paper);
  padding:7px 9px!important
}

.project-menu .project-menu-lifecycle .project-menu-archive:hover {
  border-color:#b58a50
}

.project-menu .project-menu-lifecycle .danger {
  border-color:color-mix(in srgb,#b43248 62%,var(--line))
}

.project-menu .project-menu-lifecycle .danger:hover {
  border-color:#b43248
}

.project-menu .project-menu-toggle {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:50px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  padding:9px 11px;
  color:var(--ink);
  cursor:pointer
}

.project-menu .project-menu-toggle:hover {
  border-color:var(--green);
  background:var(--green-soft)
}

.project-menu .project-menu-toggle>span {
  display:grid;
  gap:3px
}

.project-menu .project-menu-toggle b {
  font-size:12px
}

.project-menu .project-menu-toggle small {
  color:var(--muted);
  font-size:10px;
  font-weight:500
}

.project-menu .project-menu-toggle input {
  width:16px;
  height:16px;
  padding:0;
  accent-color:var(--green);
  cursor:pointer
}

.project-detail-form {
  display:grid;
  gap:15px
}

.task-detail-group>label.detail-project-toggle {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:12px;
  row-gap:3px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  cursor:pointer
}

.task-detail-group>label.detail-project-toggle:hover {
  border-color:var(--green);
  background:var(--green-soft)
}

.task-detail-group>label.detail-project-toggle>span {
  grid-column:1;
  justify-self:start;
  color:var(--ink);
  font-size:11px;
  font-weight:700
}

.task-detail-group>label.detail-project-toggle>small {
  grid-column:1;
  justify-self:start;
  color:var(--muted);
  font-size:10px;
  font-weight:500
}

.task-detail-group>label.detail-project-toggle>input {
  grid-column:2;
  grid-row:1 / 3;
  width:16px;
  height:16px;
  margin:0;
  padding:0;
  accent-color:var(--green);
  cursor:pointer
}

.detail-advanced .form-pair>label {
  font-size:11px
}

.project-detail-form .project-detail-setup,.project-detail-form .project-detail-dates {
  display:block
}

.project-detail-form .project-detail-setup .detail-advanced-fields,.project-detail-form .project-detail-dates .detail-advanced-fields {
  display:grid
}

.detail-project-actions {
  display:grid;
  justify-items:start;
  gap:12px;
  margin:2px 0 0;
  padding:14px 0 0;
  border-top:1px solid var(--line)
}

.detail-project-utilities {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}

.detail-project-actions .secondary {
  min-height:34px;
  padding:7px 10px
}

.project-delete-action {
  justify-self:start;
  margin-top:-10px
}

.project-create-modal {
  display:flex;
  flex-direction:column;
  height:min(740px,calc(100dvh - 32px));
  max-height:none;
  overflow:clip
}

.project-create-modal .modal-form {
  display:flex;
  flex:1;
  min-height:0;
  flex-direction:column;
  gap:0;
  padding:0
}

.project-create-body {
  display:grid;
  flex:1;
  min-height:0;
  gap:15px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:22px 24px 0
}

.project-create-modal .modal-actions {
  flex:0 0 auto;
  margin:0;
  padding:17px 24px 22px;
  background:var(--paper)
}

.project-create-title {
  margin-bottom:2px
}

.project-create-section {
  display:grid;
  gap:12px;
  padding:15px;
  border:1px solid color-mix(in srgb,var(--line) 86%,var(--paper));
  border-radius:12px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.project-create-section-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px
}

.project-create-section-heading b {
  color:var(--ink);
  font-size:13px
}

.project-create-section-heading span {
  color:var(--muted);
  font-size:11px
}

.project-create-section .form-pair {
  gap:12px
}

.project-create-section .working-days {
  margin-top:-2px
}

.project-create-section .project-create-colors {
  margin-top:7px
}

@media(min-width:761px) {
  html,body {
    height:100%;
    overflow:hidden
  }
  .layout {
    height:calc(100dvh - 72px);
    min-height:0
  }
  .main {
    height:100%;
    overflow:auto
  }
  .detail-pane {
    top:72px;
    height:calc(100dvh - 72px)
  }
}

/* One app-wide content frame: routes stay within it; components own their scrolling. */
@media(min-width:761px) {
  .main {
    min-width:0;
    max-width:100%;
    overflow-x:hidden;
    overflow-y:auto;
    scrollbar-gutter:stable
  }
  .main>* {
    min-width:0;
    max-width:100%
  }
}

/* Task editor: compact working type, aligned with dense workspace tables. */
.detail-pane {
  font-size:13px
}

.detail-header {
  padding:20px 20px 15px
}

.detail-header .eyebrow {
  font-size:10px
}

.detail-header h2 {
  font-size:19px;
  line-height:1.2;
  margin-top:4px
}

.detail-header button {
  font-size:21px
}

.detail-header .detail-save {
  min-height:36px;
  padding:7px 12px;
  font-size:12px
}

.detail-form {
  padding:18px 20px
}

.detail-form label {
  font-size:11px
}

.detail-form input,.detail-form select,.detail-form textarea,.detail-form .date-time-trigger {
  font-size:13px
}

.task-detail-group-heading b,.task-detail-group>summary,.detail-advanced summary {
  font-size:12px
}

.task-detail-group-heading span {
  font-size:10px
}

.detail-call-details summary {
  font-size:10px
}

.detail-advanced-fields {
  font-size:13px
}

/*
 * Task-editor spacing contract
 *
 * Keep the label, its control, and the following field on a fixed rhythm.
 * Labels must never visually attach to their input, and a two-column row must
 * not gain extra separation merely because it follows another row.
 */
.detail-form {
  --editor-group-gap:16px;
  --editor-card-padding:16px;
  --editor-label-control-gap:8px;
  --editor-field-gap:16px;
  --editor-inline-gap:12px;
  gap:var(--editor-group-gap)
}

.detail-form label {
  line-height:1.35
}

.detail-form>label>input,.detail-form>label>select,.detail-form>label>textarea,.detail-form>.form-pair>label>input,.detail-form>.form-pair>label>select,.detail-form>.form-pair>label>textarea {
  margin-top:var(--editor-label-control-gap)
}

.task-detail-group {
  gap:0;
  padding:var(--editor-card-padding)
}

.task-detail-group.detail-advanced {
  display:block;
  padding:0;
  border-radius:9px;
  background:color-mix(in srgb,var(--paper) 82%,var(--canvas))
}

.task-detail-group.detail-advanced .detail-purpose-field {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  column-gap:8px;
  row-gap:0
}

.task-detail-group.detail-advanced .detail-purpose-field>span:not([data-detail-purpose-inputs]) {
  justify-self:end;
  margin:0;
  white-space:nowrap
}

.task-detail-group.detail-advanced .detail-purpose-field>.detail-purpose-trigger {
  grid-column:1 / -1;
  margin-top:var(--editor-label-control-gap)
}

.task-detail-group.detail-advanced .detail-project-toggle {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:12px;
  row-gap:3px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  cursor:pointer
}

.task-detail-group.detail-advanced .detail-project-toggle:hover {
  border-color:var(--green);
  background:var(--green-soft)
}

.task-detail-group.detail-advanced .detail-project-toggle>span {
  grid-column:1;
  justify-self:start;
  color:var(--ink);
  font-size:11px;
  font-weight:700
}

.task-detail-group.detail-advanced .detail-project-toggle>small {
  grid-column:1;
  justify-self:start;
  color:var(--muted);
  font-size:10px;
  font-weight:500
}

.task-detail-group.detail-advanced .detail-project-toggle>input {
  grid-column:2;
  grid-row:1 / 3;
  width:16px;
  height:16px;
  margin:0;
  padding:0;
  accent-color:var(--green);
  cursor:pointer
}

.task-detail-group>.form-pair,.task-detail-schedule .detail-call-details,.detail-call-details>div {
  gap:var(--editor-inline-gap)
}

.task-detail-group>label>input,.task-detail-group>label>select,.task-detail-group>label>textarea,.task-detail-group>label>.detail-purpose-trigger,.task-detail-schedule .detail-call-details .date-time-trigger {
  margin-top:var(--editor-label-control-gap)
}

.task-detail-group>summary+label,.task-detail-group>summary+.form-pair,.task-detail-group>label+label,.task-detail-group>label+.form-pair,.task-detail-group>.form-pair+label,.task-detail-group>.form-pair+.form-pair {
  margin-top:var(--editor-field-gap);
  padding-top:0
}

.task-detail-schedule .detail-call-details {
  row-gap:0
}

.task-detail-schedule .detail-call-details>*+* {
  margin-top:var(--editor-field-gap)
}

/* Supporting task panels use metadata scale, not page-heading scale. */
.detail-pane .detail-collapsible {
  margin:0 20px 12px
}

.detail-pane .detail-collapsible summary {
  padding:9px 12px;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase
}

.detail-pane .detail-collapsible-icon::after {
  font-size:10px
}

.detail-pane .detail-collapsible>h3,.detail-pane .detail-collapsible>p,.detail-pane .detail-collapsible>.linked-item,.detail-pane .detail-collapsible>.inline-form,.detail-pane .detail-collapsible>.relationship-line,.detail-pane .detail-collapsible>.stack-form,.detail-pane .detail-collapsible>.activity-line {
  margin-left:12px;
  margin-right:12px
}

.detail-pane .detail-collapsible>h3 {
  margin-top:10px;
  margin-bottom:3px;
  font-size:11px
}

.detail-pane .detail-collapsible>p {
  font-size:10px
}

.detail-pane .relationship-line {
  padding:8px 0;
  font-size:11px
}

.detail-pane .activity-line {
  gap:7px;
  padding:8px 0;
  font-size:11px
}

.detail-pane .activity-line i {
  width:7px;
  height:7px;
  margin-top:3px
}

.detail-pane .activity-line div {
  gap:2px
}

.detail-pane .activity-line small {
  font-size:10px
}

.detail-pane .linked-item {
  padding:8px 9px;
  font-size:11px
}

.detail-pane .inline-form {
  gap:5px;
  margin-top:9px
}

.detail-pane .inline-form select,.detail-pane .inline-form button,.detail-pane .stack-form select,.detail-pane .stack-form input,.detail-pane .stack-form button {
  min-height:34px;
  padding:6px 9px;
  font-size:11px
}

.detail-pane .stack-form {
  gap:6px;
  margin-top:9px
}

.detail-pane .task-archive-action {
  margin:0 20px 20px
}

.capacity-week-row.today {
  border-color:transparent;
  background:rgba(87,155,252,.045);
  box-shadow:inset 3px 0 0 rgba(87,155,252,.78)
}

.capacity-week-row.today .agile-capacity-day {
  box-shadow:none
}

.capacity-demand-day.empty {
  min-height:0!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important
}

.capacity-demand-day.empty>header {
  align-self:center
}

.capacity-empty-state b::after {
  content:' · Ready for a task';
  font-weight:500
}

.agile-capacity-balance strong {
  font-size:12px!important;
  white-space:nowrap
}

.agile-capacity-day.open .agile-capacity-balance strong {
  color:#c4ee70!important
}

.planning-grid {
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))
}

.planning-card {
  min-height:0
}

.planning-card .module-meta {
  justify-content:space-between
}

.integration-row {
  grid-template-rows:auto auto
}

.source-context-form {
  grid-column:2;
  grid-row:2;
  margin:0
}

.source-range-fold {
  grid-column:3;
  grid-row:2;
  justify-self:end;
  margin:0
}

.source-range-fold form {
  justify-content:flex-end
}

.integration-row:has(.source-context-form) {
  padding-bottom:14px
}

.admin-section-nav {
  position:sticky;
  top:0;
  z-index:3;
  background:var(--canvas)
}

@media(max-width:720px) {
  .source-context-form,.source-range-fold {
    grid-column:2;
    grid-row:auto;
    justify-self:start
  }
  .source-range-fold form {
    justify-content:flex-start
  }
}

.today-summary {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:-20px 0 14px
}

.today-summary span {
  border:1px solid color-mix(in srgb,var(--line) 82%,transparent);
  border-radius:999px;
  background:color-mix(in srgb,var(--paper) 88%,transparent);
  padding:5px 9px;
  color:var(--muted);
  font-size:10px;
  font-weight:700
}

.today-summary span:nth-child(2) {
  color:#ffbe5c
}

.today-summary span:nth-child(4) {
  color:#c4ee70
}

.today-schedule-summary {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 10px;
  border:1px solid color-mix(in srgb,var(--line) 76%,transparent);
  border-radius:9px;
  background:color-mix(in srgb,var(--paper) 78%,transparent);
  padding:10px 13px;
  color:var(--muted);
  font-size:11px
}

.today-schedule-summary b {
  color:var(--ink);
  font-size:12px
}

.today-schedule-summary a {
  color:var(--green);
  font-weight:700
}

.today-command-grid {
  grid-template-columns:minmax(0,1.45fr) minmax(250px,.55fr)
}

.today-exception-column {
  gap:10px
}

.today-attention-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 2px
}

.today-attention-heading>span:last-child {
  display:grid;
  place-items:center;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:var(--canvas);
  color:var(--muted);
  font-size:10px;
  font-weight:700
}

.today-exception-column .today-section {
  border-radius:9px
}

.today-exception-column .today-heading {
  padding:11px 13px 8px
}

.today-exception-column .today-heading h2 {
  font-size:14px
}

.today-exception-column .agenda-row {
  padding:9px 12px
}

@media(max-width:1050px) {
  .today-command-grid {
    grid-template-columns:1fr
  }
  .today-summary {
    margin-top:-8px
  }
}

/* Today is the quiet landing surface: initiatives, available time, then genuine exceptions. */
.agile-capacity-bar i.personal,.agile-capacity-key .personal,.agile-capacity-legend .personal,.capacity-edit-bar .personal {
  background:#8fb565
}

.agile-capacity-balance .available,.agile-capacity-balance .capacity-balance-label,.agile-capacity-day.open .agile-capacity-balance strong {
  color:#c4ee70!important;
  font-size:10px!important;
  font-weight:500;
  text-shadow:none
}

/* Bright lime is legible on dark cards, but disappears against light surfaces. */
html:not([data-theme="dark"]) .agile-capacity-balance .available,html:not([data-theme="dark"]) .agile-capacity-balance .capacity-balance-label,html:not([data-theme="dark"]) .agile-capacity-day.open .agile-capacity-balance strong {
  color:#166534!important;
  font-weight:700!important
}

html:not([data-theme="dark"]) .capacity-add-task,html:not([data-theme="dark"]) .agile-capacity-today {
  color:#0b4f88!important
}

@media(max-width:760px) {
  .topbar .search-trigger {
    margin:0
  }
  .topbar .search-trigger span {
    min-width:0
  }
}

.agile-capacity-bar i.zero {
  background:#aeb4c0!important
}

html:not([data-theme="dark"]) .today-summary span:nth-child(4) {
  color:#166534
}

.today-landing-grid {
  display:grid;
  grid-template-columns:minmax(155px,.45fr) minmax(420px,1.55fr) minmax(250px,.75fr);
  gap:16px;
  align-items:start
}

.today-initiatives,.today-attention-rail {
  border:1px solid color-mix(in srgb,var(--line) 82%,transparent);
  border-radius:12px;
  background:color-mix(in srgb,var(--paper) 92%,var(--canvas));
  padding:14px
}

.today-landing-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px
}

.today-landing-heading>a {
  color:var(--green);
  font-size:10px;
  font-weight:700
}

.today-landing-heading>span:last-child:not(.eyebrow) {
  display:grid;
  place-items:center;
  min-width:21px;
  height:21px;
  border-radius:999px;
  background:var(--canvas);
  color:var(--muted);
  font-size:9px;
  font-weight:700
}

.today-initiative-list {
  display:grid;
  gap:5px;
  margin-top:12px
}

.today-initiative-link {
  display:grid;
  grid-template-columns:8px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:9px 7px;
  border-radius:7px;
  color:var(--ink)
}

.today-initiative-link:hover {
  background:var(--green-soft)
}

.today-initiative-link i {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--initiative-color)
}

.today-initiative-link span {
  display:grid;
  gap:2px;
  min-width:0
}

.today-initiative-link b {
  overflow:hidden;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap
}

.today-initiative-link small {
  color:var(--muted);
  font-size:9px
}

.today-initiative-link em {
  color:var(--muted);
  font-size:15px;
  font-style:normal
}

.today-capacity-main .agile-capacity-report {
  margin:0
}

.landing-capacity-report {
  min-height:0!important;
  padding:15px!important
}

.landing-capacity-report>header {
  align-items:start!important
}

.landing-capacity-report h3 {
  display:block!important;
  margin-top:4px!important
}

.landing-capacity-report>header p {
  display:block!important;
  max-width:300px
}

.capacity-full-link {
  color:var(--green);
  font-size:10px;
  font-weight:700;
  white-space:nowrap
}

.landing-capacity-report .agile-capacity-key {
  position:static;
  margin:0
}

.landing-capacity-report .agile-capacity-days {
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px;
  overflow:visible
}

.landing-capacity-report .agile-capacity-day {
  min-width:0;
  min-height:104px;
  padding:9px;
  align-content:start
}

.landing-capacity-report .agile-capacity-day header {
  display:grid;
  gap:6px
}

.landing-capacity-report .agile-capacity-day header b {
  font-size:10px;
  line-height:1.2
}

.landing-capacity-report .agile-capacity-balance strong {
  font-size:11px!important;
  white-space:normal
}

.landing-capacity-report .agile-capacity-bar {
  height:9px
}

.today-attention-rail h2 {
  margin:5px 0 4px;
  font-size:15px
}

.today-attention-rail>p {
  margin:0;
  color:var(--muted);
  font-size:10px;
  line-height:1.4
}

.today-attention-list {
  display:grid;
  gap:5px;
  margin-top:12px
}

.today-attention-rail .agenda-row {
  grid-template-columns:17px minmax(0,1fr);
  gap:7px;
  padding:8px 4px;
  border-radius:6px
}

.today-attention-rail .agenda-row:hover {
  background:var(--green-soft)
}

.today-attention-rail .agenda-meta {
  grid-column:2;
  grid-row:2;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  min-width:0
}

.today-attention-rail .agenda-meta strong {
  font-size:9px
}

.today-attention-rail .agenda-meta small {
  font-size:8px
}

.today-attention-rail .agenda-check {
  width:15px;
  height:15px
}

.today-attention-rail .agenda-row b {
  font-size:11px
}

.today-attention-rail .agenda-row small {
  font-size:9px
}

.today-attention-empty {
  margin:0;
  padding:11px 0;
  color:var(--muted);
  font-size:11px
}

.today-waiting-summary {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:9px
}

.today-waiting-summary b {
  color:var(--ink);
  font-size:10px
}

.today-waiting-summary:hover b {
  color:var(--green)
}

@media(max-width:1100px) {
  .today-landing-grid {
    grid-template-columns:minmax(170px,.55fr) minmax(0,1.45fr)
  }
  .today-attention-rail {
    grid-column:1/-1
  }
  .today-attention-list {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .today-waiting-summary {
    max-width:260px
  }
}

@media(max-width:760px) {
  .today-landing-grid {
    grid-template-columns:1fr
  }
  .today-attention-rail {
    grid-column:auto
  }
  .landing-capacity-report .agile-capacity-days {
    grid-template-columns:repeat(7,minmax(76px,1fr));
    overflow-x:auto
  }
  .today-attention-list {
    grid-template-columns:1fr
  }
}

.landing-capacity-report .agile-capacity-balance strong.available {
  font-size:10px!important;
  font-weight:500!important
}

.landing-capacity-report .agile-capacity-day.weekend {
  background:color-mix(in srgb,var(--canvas) 92%,var(--paper))
}

.landing-capacity-report .agile-capacity-day.today {
  border-color:#579bfc;
  box-shadow:0 0 0 1px rgba(87,155,252,.28),0 0 14px rgba(87,155,252,.22)!important
}

.landing-capacity-report .today-day-selector {
  width:100%;
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer
}

.landing-capacity-report .today-day-selector:hover {
  border-color:color-mix(in srgb,#579bfc 72%,var(--line));
  background:color-mix(in srgb,#579bfc 8%,var(--canvas))
}

.landing-capacity-report .today-day-selector:focus-visible {
  outline:2px solid #579bfc;
  outline-offset:2px
}

.landing-capacity-report .today-day-selector.selected {
  border-color:#579bfc;
  box-shadow:0 0 0 1px rgba(87,155,252,.4),0 0 14px rgba(87,155,252,.2)!important;
  background:color-mix(in srgb,#579bfc 10%,var(--canvas))
}

.agile-capacity-bar i.office,.agile-capacity-key .office,.agile-capacity-legend .office,.capacity-edit-bar .office,.capacity-edit-legend .office {
  background:#579bfc
}

.agile-capacity-bar i.project-booked,.agile-capacity-key .project-booked,.capacity-demand-label.project::before,.capacity-demand-task>i.project {
  background:#f2b36a
}

.agile-capacity-bar i.personal-used,.agile-capacity-key .personal-used,.agile-capacity-legend .personal-used {
  background:#b77cdd
}

/* MyCapacity Timeline is intentionally a short-horizon allocation view, not a project Gantt. */
.capacity-view-toolbar {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.capacity-view-switch,.capacity-zoom-switch {
  display:flex;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--canvas)
}

.capacity-view-switch button,.capacity-zoom-switch button {
  min-height:28px;
  padding:5px 12px;
  border:0;
  border-left:1px solid var(--line);
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:10px;
  font-weight:750;
  cursor:pointer
}

.capacity-view-switch button:first-child,.capacity-zoom-switch button:first-child {
  border-left:0
}

.capacity-view-switch button.active,.capacity-zoom-switch button.active {
  background:rgba(87,155,252,.2);
  color:#a9cbff
}

.capacity-zoom-switch button[data-capacity-zoom="day"] {
  order:-1;
  border-left:0
}

.capacity-zoom-switch button[data-capacity-zoom="week"] {
  border-left:1px solid var(--line)
}

.capacity-view-note,.capacity-view-boundary {
  color:var(--muted);
  font-size:9px
}

.capacity-view-boundary {
  margin-left:auto
}

.capacity-pdf-button {
  min-height:28px;
  margin-left:auto;
  padding:5px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--canvas);
  color:var(--ink);
  font-size:10px;
  font-weight:750;
  cursor:pointer
}

.capacity-pdf-button:hover {
  background:rgba(87,155,252,.14);
  border-color:rgba(126,180,255,.58)
}

.capacity-timeline {
  display:grid;
  gap:12px;
  margin-top:12px
}

.capacity-timeline-grid {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.capacity-timeline-grid.week {
  display:grid;
  grid-template-columns:minmax(220px,1.35fr) repeat(7,minmax(112px,1fr));
  align-items:stretch
}

.capacity-timeline-corner {
  position:sticky;
  left:0;
  z-index:4;
  display:grid;
  align-content:center;
  gap:3px;
  min-height:70px;
  padding:11px 13px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--paper)
}

.capacity-timeline-corner b {
  font-size:11px
}

.capacity-timeline-corner small {
  color:var(--muted);
  font-size:9px
}

.capacity-timeline-day-head {
  display:grid;
  align-content:center;
  gap:3px;
  min-height:70px;
  padding:9px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--paper)
}

.capacity-timeline-day-head.today {
  background:rgba(87,155,252,.09);
  box-shadow:inset 0 3px 0 #579bfc
}

.capacity-timeline-day-head.over {
  background:color-mix(in srgb,#e2445c 9%,var(--paper))
}

.capacity-timeline-day-head b {
  font-size:10px
}

.capacity-timeline-day-head span {
  color:var(--muted);
  font-size:8px
}

.capacity-timeline-day-head strong {
  color:#bde76c;
  font-size:9px
}

.capacity-timeline-day-head.over strong {
  color:#ff8798
}

.capacity-timeline-capacity-bar {
  position:relative;
  overflow:hidden;
  height:5px;
  margin-top:2px;
  border-radius:999px;
  background:var(--line)
}

.capacity-timeline-capacity-bar i {
  position:absolute;
  inset-block:0;
  left:0;
  background:#b77cdd
}

.capacity-timeline-capacity-bar i.over {
  left:auto;
  right:0;
  width:18%;
  background:#e2445c
}

.capacity-timeline-group {
  display:contents
}

.capacity-timeline-group-head {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:7px;
  min-height:29px;
  padding:6px 12px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--canvas) 80%,var(--paper))
}

.capacity-timeline-group-head>i {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--project-color,#f2b36a)
}

.capacity-timeline-group-head.single>i {
  background:#b77cdd
}

.capacity-timeline-group-head b {
  font-size:10px
}

.capacity-timeline-group-head span {
  color:var(--muted);
  font-size:8px
}

.capacity-timeline-row {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(220px,1.35fr) repeat(7,minmax(112px,1fr));
  min-height:48px
}

.capacity-timeline-label {
  position:sticky;
  left:0;
  z-index:3;
  display:grid;
  align-content:center;
  gap:2px;
  min-width:0;
  padding:8px 13px;
  border:0;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer
}

.capacity-timeline-label:hover {
  background:var(--green-soft)
}

.capacity-timeline-label b,.capacity-timeline-label small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.capacity-timeline-label b {
  font-size:10px
}

.capacity-timeline-label small {
  color:var(--muted);
  font-size:8px
}

.capacity-timeline-cell {
  display:grid;
  align-items:center;
  min-width:0;
  padding:5px;
  border-right:1px solid color-mix(in srgb,var(--line) 74%,transparent);
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,transparent 49.5%,color-mix(in srgb,var(--line) 28%,transparent) 50%,transparent 50.5%)
}

.capacity-timeline-cell.over {
  background-color:color-mix(in srgb,#e2445c 4%,transparent)
}

.capacity-timeline-cell.drag-over,.capacity-timeline-day-track.drag-over {
  background-color:rgba(87,155,252,.16);
  box-shadow:inset 0 0 0 2px #579bfc
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar {
  display:grid!important;
  grid-template-columns:6px minmax(0,1fr)!important;
  gap:5px!important;
  min-height:28px!important;
  padding:5px 6px!important;
  border-radius:5px!important
}

.capacity-timeline .capacity-timeline-bar b {
  font-size:9px!important
}

.capacity-timeline .capacity-timeline-bar small {
  font-size:8px!important
}

.capacity-timeline-empty {
  grid-column:1/-1;
  margin:0;
  padding:24px;
  color:var(--muted);
  font-size:11px
}

.capacity-unscheduled {
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:12px;
  border:1px dashed var(--line);
  border-radius:9px;
  background:color-mix(in srgb,var(--canvas) 72%,transparent)
}

.capacity-unscheduled header {
  display:grid;
  gap:3px
}

.capacity-unscheduled header div {
  display:grid;
  gap:3px
}

.capacity-unscheduled header b {
  font-size:10px
}

.capacity-unscheduled header small {
  color:var(--muted);
  font-size:9px
}

.capacity-unscheduled>div {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px
}

.capacity-unscheduled .capacity-demand-task {
  flex:0 1 220px;
  min-height:40px!important;
  border-color:color-mix(in srgb,var(--muted) 70%,var(--line))!important;
  background:color-mix(in srgb,var(--muted) 16%,transparent)!important
}

.capacity-unscheduled .capacity-demand-task:hover {
  border-color:var(--muted)!important;
  background:color-mix(in srgb,var(--muted) 26%,transparent)!important
}

.capacity-unscheduled .capacity-demand-task>i,.capacity-unscheduled .capacity-demand-task>i.single,.capacity-unscheduled .capacity-demand-task>i.project {
  background:var(--muted)
}

.capacity-timeline-day-picker {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper)
}

.capacity-timeline-day-picker button {
  display:grid;
  gap:3px;
  padding:8px;
  border:0;
  border-left:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer
}

.capacity-timeline-day-picker button:first-child {
  border-left:0
}

.capacity-timeline-day-picker button small {
  color:var(--muted);
  font-size:8px;
  font-weight:500
}

.capacity-timeline-day-picker button.active {
  background:rgba(87,155,252,.18);
  color:#a9cbff
}

.capacity-timeline-day-picker button.today {
  box-shadow:inset 0 3px 0 #579bfc
}

.capacity-timeline-grid.day {
  display:grid;
  grid-template-columns:minmax(220px,1.35fr) minmax(780px,6.65fr)
}

.capacity-timeline-hour-head {
  display:grid;
  grid-template-columns:repeat(17,1fr);
  align-items:end;
  min-height:70px;
  padding:0 5px 8px;
  border-bottom:1px solid var(--line);
  background:var(--paper)
}

.capacity-timeline-hour-head span {
  color:color-mix(in srgb,var(--ink) 78%,var(--muted));
  font-size:10px;
  font-weight:700
}

.capacity-timeline-grid.day .capacity-timeline-group-head {
  grid-column:1/-1
}

.capacity-timeline-grid.day .capacity-timeline-row {
  grid-template-columns:minmax(220px,1.35fr) minmax(780px,6.65fr)
}

.capacity-timeline-day-track {
  position:relative;
  min-height:52px;
  border-bottom:1px solid var(--line);
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) 6.25%)
}

.capacity-timeline-day-track .capacity-timeline-bar {
  position:absolute;
  top:10px;
  left:calc(var(--capacity-start) / 16 * 100%);
  width:calc(var(--capacity-span) / 16 * 100%);
  max-width:calc(100% - var(--capacity-start) / 16 * 100%)
}

.capacity-timeline-grid.day .capacity-timeline-hour-head {
  background:linear-gradient(90deg,transparent 0 var(--capacity-office-start),rgba(87,155,252,.13) var(--capacity-office-start) var(--capacity-office-end),transparent var(--capacity-office-end) 100%),var(--paper)
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  background-image:linear-gradient(90deg,transparent 0 var(--capacity-office-start),rgba(87,155,252,.1) var(--capacity-office-start) var(--capacity-office-end),transparent var(--capacity-office-end) 100%),repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) 6.25%)
}

.capacity-timeline-grid.day .capacity-timeline-hour-head {
  background:linear-gradient(90deg,rgba(215,155,184,.15) 0 6.25%,rgba(242,179,106,.15) 6.25% 62.5%,rgba(215,155,184,.15) 62.5% 68.75%,rgba(143,181,101,.14) 68.75% 75%,rgba(183,124,221,.15) 75% 100%),var(--paper)
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  background-image:linear-gradient(90deg,rgba(215,155,184,.1) 0 6.25%,rgba(242,179,106,.1) 6.25% 62.5%,rgba(215,155,184,.1) 62.5% 68.75%,rgba(143,181,101,.09) 68.75% 75%,rgba(183,124,221,.1) 75% 100%),repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) 6.25%)
}

@media(max-width:760px) {
  .capacity-view-toolbar {
    align-items:flex-start;
    flex-wrap:wrap
  }
  .capacity-view-boundary {
    width:100%;
    margin-left:0
  }
  .capacity-unscheduled {
    grid-template-columns:1fr
  }
  .capacity-timeline-day-picker {
    grid-template-columns:repeat(7,minmax(78px,1fr));
    overflow:auto
  }
}

/* MyCapacity timeline: prioritise allocation over the mechanics of its time scale. */
.capacity-view-toolbar {
  margin-top:10px;
  padding:5px 8px
}

.capacity-timeline {
  gap:10px;
  margin-top:10px
}

.capacity-timeline-corner {
  min-height:62px;
  padding:10px 13px
}

.capacity-timeline-corner b {
  font-size:12px
}

.capacity-timeline-corner small {
  font-size:10px
}

.capacity-timeline-hour-head {
  align-items:center;
  min-height:62px;
  padding:0 8px
}

.capacity-timeline-hour-head span {
  color:transparent;
  font-size:10px;
  font-weight:700
}

.capacity-timeline-hour-head span.major {
  color:color-mix(in srgb,var(--ink) 84%,var(--muted));
  font-size:11px
}

.capacity-timeline-day-picker button.active {
  box-shadow:inset 0 3px 0 #78adfa;
  background:rgba(87,155,252,.28);
  color:#dbeaff
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar {
  border-color:color-mix(in srgb,#7899c9 76%,var(--line))!important;
  background:rgba(120,153,201,.22)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar:hover {
  border-color:#a9cbff!important;
  background:rgba(120,153,201,.34)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar>i {
  background:#a9cbff!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.project {
  border-color:var(--timeline-project-color,var(--capacity-project))!important;
  background:color-mix(in srgb,var(--timeline-project-color,var(--capacity-project)) 22%,transparent)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.project>i {
  background:var(--timeline-project-color,var(--capacity-project))!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.single {
  border-color:var(--timeline-project-color,var(--capacity-personal-plan))!important;
  background:color-mix(in srgb,var(--timeline-project-color,var(--capacity-personal-plan)) 22%,transparent)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.single>i {
  background:var(--timeline-project-color,var(--capacity-personal-plan))!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.project.capacity-split {
  border-color:var(--capacity-project)!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--capacity-project) 22%,transparent) 0 var(--capacity-book-share),color-mix(in srgb,var(--capacity-transit) 30%,transparent) var(--capacity-book-share) 100%)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.project.capacity-split>i {
  background:var(--capacity-project)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head {
  background:linear-gradient(90deg,rgba(215,155,184,.3) 0 var(--capacity-office-start),rgba(87,155,252,.3) var(--capacity-office-start) var(--capacity-office-end),rgba(215,155,184,.3) var(--capacity-office-end) calc(var(--capacity-office-end) + 6.25%),rgba(143,181,101,.3) calc(var(--capacity-office-end) + 6.25%) 100%),var(--paper)!important
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  background-image:linear-gradient(90deg,rgba(215,155,184,.3) 0 var(--capacity-office-start),rgba(87,155,252,.3) var(--capacity-office-start) var(--capacity-office-end),rgba(215,155,184,.3) var(--capacity-office-end) calc(var(--capacity-office-end) + 6.25%),rgba(143,181,101,.3) calc(var(--capacity-office-end) + 6.25%) 100%),repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) 6.25%)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span {
  color:color-mix(in srgb,var(--ink) 84%,var(--muted))!important
}

.capacity-timeline-day-rail::before {
  content:'';
  display:block;
  flex:0 0 6.25%;
  background:var(--capacity-transit)
}

.capacity-timeline-day-rail .transit {
  flex:0 0 6.25%!important;
  width:6.25%!important
}

.capacity-timeline-grid.day .capacity-timeline-row .capacity-timeline-day-track {
  background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) 6.25%)!important
}

.capacity-timeline-group-head.single>i {
  background:var(--project-color)!important
}

.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(4)) .capacity-timeline-day-rail::before,.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(6)) .capacity-timeline-day-rail::before,.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(7)) .capacity-timeline-day-rail::before {
  display:none
}

.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(4)) .capacity-timeline-day-rail .transit,.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(6)) .capacity-timeline-day-rail .transit,.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(7)) .capacity-timeline-day-rail .transit {
  display:none
}

.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(6)) .capacity-timeline-hour-head,.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(7)) .capacity-timeline-hour-head {
  background:rgba(143,181,101,.3)!important
}

.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(4)) .capacity-timeline-hour-head {
  background:linear-gradient(90deg,transparent 0 var(--capacity-office-start),rgba(87,155,252,.3) var(--capacity-office-start) var(--capacity-office-end),rgba(143,181,101,.3) var(--capacity-office-end) 100%),var(--paper)!important
}

.capacity-timeline:has(.capacity-timeline-day-picker button.active:nth-child(4)) .capacity-timeline-day-rail::before {
  display:block;
  background:transparent
}

.capacity-timeline-day-key {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  padding:0 4px;
  color:var(--muted);
  font-size:10px;
  font-weight:650
}

.capacity-timeline-day-key span {
  display:flex;
  align-items:center;
  gap:5px
}

.capacity-timeline-day-key i {
  width:8px;
  height:8px;
  border-radius:2px
}

.capacity-timeline-day-key b {
  color:var(--ink);
  font-size:10px
}

.capacity-timeline-day-key .book i {
  background:var(--capacity-project)
}

.capacity-timeline-day-key .workday i {
  background:var(--capacity-workday)
}

.capacity-timeline-day-key .transit i {
  background:var(--capacity-transit)
}

.capacity-timeline-day-key .personal-plan i {
  background:var(--capacity-personal-plan)
}

.capacity-timeline-day-key .free i {
  background:var(--capacity-free)
}

@media(max-width:760px) {
  .capacity-timeline-day-key {
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:7px 12px;
    font-size:9px
  }
}

.capacity-timeline-day-capacity {
  display:grid;
  grid-template-columns:minmax(220px,1.35fr) minmax(780px,6.65fr);
  gap:5px
}

.capacity-timeline-day-capacity>* {
  grid-column:2
}

.capacity-timeline-day-rail {
  display:flex;
  overflow:hidden;
  height:7px;
  border-radius:999px;
  background:var(--line)
}

.capacity-timeline-day-rail i {
  display:block;
  min-width:0;
  height:100%
}

.capacity-timeline-day-rail .book {
  background:var(--capacity-project)
}

.capacity-timeline-day-rail .workday {
  background:var(--capacity-workday)
}

.capacity-timeline-day-rail .transit {
  background:var(--capacity-transit)
}

.capacity-timeline-day-rail .personal-plan {
  background:var(--capacity-personal-plan)
}

.capacity-timeline-day-rail .free {
  background:var(--capacity-free)
}

.capacity-timeline-day-structure {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  padding:0 4px;
  color:var(--muted);
  font-size:10px;
  font-weight:650
}

.capacity-timeline-day-structure span {
  display:flex;
  align-items:baseline;
  gap:5px
}

.capacity-timeline-day-structure b {
  color:var(--ink);
  font-size:10px
}

.capacity-timeline-day-structure small {
  color:var(--muted);
  font-size:9px;
  font-weight:500
}

@media(max-width:760px) {
  .capacity-timeline-day-capacity {
    grid-template-columns:1fr
  }
  .capacity-timeline-day-capacity>* {
    grid-column:1
  }
  .capacity-timeline-day-structure {
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:6px 12px
  }
}

.capacity-timeline-grid.day .capacity-timeline-corner small {
  font-size:0
}

.capacity-timeline-grid.day .capacity-timeline-corner small::after {
  content:'06:00–24:00';
  color:var(--muted);
  font-size:9px
}

/* Keep the hour scale readable: the header uses the same 16 hourly divisions as each allocation track. */
.capacity-timeline-hour-head {
  position:relative;
  display:block;
  isolation:isolate
}

.capacity-timeline-hour-head span {
  position:absolute;
  top:50%;
  left:calc(var(--capacity-hour-index) / 16 * 100%);
  transform:translate(-50%,-50%)
}

.capacity-timeline-hour-head span:first-child {
  transform:translate(0,-50%)
}

.capacity-timeline-hour-head span:last-child {
  transform:translate(-100%,-50%)
}

.capacity-timeline-hour-head::before {
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  content:'';
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) 6.25%)
}

.today-initiative-stack {
  display:grid;
  gap:12px
}

.today-clock {
  min-width:102px;
  padding:10px 15px;
  font-size:20px
}

.today-clock small {
  font-size:10px
}

.today-action-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(270px,.285fr);
  grid-template-areas:'main attention';
  gap:16px;
  align-items:start
}

.today-action-main {
  display:grid;
  grid-area:main;
  gap:12px
}

.today-action-layout>.today-attention-rail {
  grid-area:attention
}

.today-action-layout.attention-top {
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:'attention''main'
}

.today-plan-card {
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper)
}

.today-plan-card .today-plan-heading {
  margin-bottom:10px
}

.today-plan-card .today-plan-heading h2 {
  margin:3px 0 0;
  font-size:16px
}

.today-plan-card .today-plan-heading a {
  color:var(--green);
  font-size:10px;
  font-weight:700
}

.today-action-main>.landing-capacity-report {
  margin:0
}

.today-capacity-header-actions {
  display:flex;
  align-items:center;
  gap:8px
}

.today-capacity-controls {
  display:flex;
  align-items:center;
  gap:8px
}

.today-capacity-fold,.today-capacity-drag {
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:15px;
  line-height:1;
  cursor:pointer
}

.today-capacity-fold:hover,.today-capacity-fold:focus-visible,.today-capacity-drag:hover,.today-capacity-drag:focus-visible {
  border-color:var(--green);
  background:var(--green-soft);
  color:var(--ink);
  outline:none
}

.today-capacity-drag {
  cursor:grab;
  font-size:18px;
  letter-spacing:-3px
}

.today-capacity-drag:active {
  cursor:grabbing
}

.today-capacity-panel.is-reordering {
  position:relative;
  z-index:2;
  transform:translateY(var(--today-capacity-drag-offset,0));
  opacity:.88;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
  transition:none
}

.today-capacity-panel.is-folded {
  gap:0
}

.today-capacity-panel.is-folded>header {
  padding-bottom:0
}

.today-capacity-panel.is-folded .agile-capacity-key,.today-capacity-panel.is-folded .agile-capacity-days {
  display:none
}

.today-workspaces {
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper)
}

.today-workspaces summary {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  list-style:none
}

.today-workspaces summary::-webkit-details-marker {
  display:none
}

.today-workspaces summary::after {
  content:'+';
  margin-left:auto;
  color:var(--muted);
  font-size:16px
}

.today-workspaces[open] summary::after {
  content:'−'
}

.today-workspaces summary small {
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  border-radius:99px;
  background:var(--canvas);
  color:var(--muted);
  font-size:9px
}

.today-workspaces>div {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:0 12px 12px
}

.today-workspaces section {
  display:grid;
  gap:4px
}

.today-workspaces .today-initiative-list {
  margin:0
}

.today-workspaces .today-initiative-link {
  padding:6px
}

.today-workspaces .today-initiative-link b {
  font-size:10px
}

@media(max-width:900px) {
  .today-action-layout {
    grid-template-columns:1fr;
    grid-template-areas:'main''attention'
  }
  .today-action-layout.attention-top {
    grid-template-areas:'attention''main'
  }
  .today-action-layout .today-attention-rail {
    grid-column:auto
  }
  .today-action-layout .today-attention-list {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media(max-width:600px) {
  .today-workspaces>div,.today-action-layout .today-attention-list {
    grid-template-columns:1fr
  }
  .today-capacity-header-actions {
    gap:5px
  }
  .today-capacity-controls {
    gap:5px
  }
}

.today-commitments {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  overflow:hidden
}

.today-commitments>header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px 12px;
  border-bottom:1px solid var(--line)
}

.today-commitments h2 {
  margin:4px 0 0;
  font-size:15px
}

.today-commitments>header>a,.today-commitments .today-capacity-header-actions>a {
  color:var(--green);
  font-size:10px;
  font-weight:700;
  white-space:nowrap
}

.today-commitments-panel.is-reordering {
  position:relative;
  z-index:2;
  transform:translateY(var(--today-capacity-drag-offset,0));
  opacity:.88;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
  transition:none
}

.today-commitments-panel.is-folded>header {
  padding-bottom:12px;
  border-bottom:0
}

.today-commitments-panel.is-folded .today-commitment-groups {
  display:none
}

.today-commitment-groups {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0
}

.today-commitment-group {
  min-height:146px;
  padding:11px 12px;
  border-right:1px solid var(--line)
}

.today-commitment-group:last-child {
  border-right:0
}

.today-commitment-group header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:7px
}

.today-commitment-group header>span:last-child {
  display:grid;
  place-items:center;
  min-width:19px;
  height:19px;
  border-radius:99px;
  background:var(--canvas);
  color:var(--muted);
  font-size:9px;
  font-weight:700
}

.today-commitment-group>p {
  margin:15px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.45
}

.today-commitment-group .agenda-row {
  grid-template-columns:16px minmax(0,1fr);
  gap:6px;
  padding:6px 3px
}

.today-commitment-group .agenda-meta {
  grid-column:2;
  grid-row:2;
  display:flex;
  gap:5px
}

.today-commitment-group .agenda-row b {
  font-size:10px
}

.today-commitment-group .agenda-row small,.today-commitment-group .agenda-meta strong {
  font-size:8px
}

.today-commitment-group .agenda-check {
  width:10px;
  height:10px
}

@media(max-width:900px) {
  .today-commitment-groups {
    grid-template-columns:1fr
  }
  .today-commitment-group {
    min-height:0;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .today-commitment-group:last-child {
    border-bottom:0
  }
}

.today-attention-panel.is-reordering {
  position:relative;
  z-index:2;
  transform:translateY(var(--today-capacity-drag-offset,0));
  opacity:.88;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
  transition:none
}

.today-attention-panel.is-folded>h2,.today-attention-panel.is-folded>p,.today-attention-panel.is-folded .today-attention-list,.today-attention-panel.is-folded .today-waiting-summary {
  display:none
}

.today-project-commitment {
  display:grid;
  gap:4px;
  padding:7px 3px
}

.today-project-commitment>a {
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:inherit;
  text-decoration:none
}

.today-project-commitment>a:hover {
  background:var(--canvas);
  border-radius:6px
}

.today-project-commitment i {
  width:8px;
  height:8px;
  margin-top:2px;
  border-radius:50%;
  background:var(--project-color);
  flex:0 0 auto
}

.today-project-commitment a>span {
  display:grid;
  gap:2px;
  min-width:0
}

.today-project-commitment b {
  font-size:10px;
  font-weight:700;
  line-height:normal
}

.today-project-commitment small {
  color:var(--muted);
  font-size:8px
}

.today-project-commitment em {
  margin-left:auto;
  color:var(--muted);
  font-style:normal
}

.today-project-work {
  display:grid;
  gap:3px;
  margin-left:16px;
  padding-left:8px;
  border-left:1px solid var(--line)
}

.today-project-work>span {
  color:var(--muted);
  font-size:8px;
  font-weight:700;
  text-transform:uppercase
}

.today-project-work button {
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:9px;
  font-weight:700;
  text-align:left;
  cursor:pointer
}

.today-project-work button:hover {
  color:var(--green)
}

.today-scope-control {
  display:inline-flex;
  vertical-align:middle;
  margin-left:12px;
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden;
  background:var(--paper)
}

.today-scope-control button {
  padding:6px 9px;
  border:0;
  border-right:1px solid var(--line);
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:10px;
  font-weight:700;
  line-height:1;
  cursor:pointer
}

.today-scope-control button:last-child {
  border-right:0
}

.today-scope-control button:hover,.today-scope-control button.active {
  background:var(--green-soft);
  color:var(--green-dark)
}

.today-show-all {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-left:10px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
  vertical-align:middle
}

.today-show-all input {
  width:13px;
  height:13px;
  margin:0;
  accent-color:var(--green);
  cursor:pointer
}

.today-show-all:has(input:checked) {
  color:var(--green-dark)
}

.today-header-actions {
  display:flex;
  align-items:center;
  gap:12px
}

.today-command-button {
  min-height:28px;
  padding:5px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  color:var(--muted);
  font:inherit;
  font-size:10px;
  font-weight:700;
  line-height:1;
  cursor:pointer
}

.today-command-button:hover {
  border-color:var(--green);
  color:var(--green-dark)
}

.importance-center-modal {
  width:min(920px,calc(100vw - 32px))
}

.importance-center-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding:0 18px 18px;
  max-height:62vh;
  overflow:auto
}

.importance-context {
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden
}

.importance-context header {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:10px;
  border-bottom:1px solid var(--line)
}

.importance-context header div {
  display:grid;
  gap:3px
}

.importance-context header b {
  font-size:11px
}

.importance-context header>span {
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  border-radius:99px;
  background:var(--canvas);
  font-size:9px
}

.importance-context>div {
  display:grid
}

.importance-context>div>p {
  padding:10px;
  margin:0;
  color:var(--muted);
  font-size:10px
}

.importance-task {
  display:grid;
  grid-template-columns:minmax(0,1fr) 105px;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-bottom:1px solid var(--line)
}

.importance-task:last-child {
  border-bottom:0
}

.importance-task>button {
  display:grid;
  gap:2px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer
}

.importance-task small {
  color:var(--muted);
  font-size:9px
}

.importance-task select {
  min-width:0;
  font-size:9px
}

@media(max-width:800px) {
  .importance-center-grid {
    grid-template-columns:1fr
  }
  .today-header-actions {
    width:100%;
    justify-content:space-between
  }
}

.importance-center-modal .modal-header {
  padding:16px 18px 12px
}

.importance-center-modal .modal-header h2 {
  margin:4px 0;
  font-size:20px
}

.importance-center-modal .modal-header p {
  margin:0;
  max-width:680px;
  font-size:11px;
  line-height:1.4
}

.importance-center-grid {
  gap:10px;
  padding:0 18px 14px
}

.importance-context header {
  padding:9px 10px
}

.importance-context header b {
  font-size:9px;
  line-height:1.35
}

.importance-task {
  grid-template-columns:minmax(0,1fr) 104px;
  gap:7px;
  padding:7px 10px
}

.importance-task>button b {
  font-size:11px;
  line-height:1.25
}

.importance-task>button small {
  font-size:8px;
  line-height:1.25
}

.importance-task select {
  height:24px;
  padding:2px 5px;
  font-size:9px
}

.importance-center-modal .modal-actions {
  padding:12px 18px
}

.importance-center-modal .modal-actions .form-hint {
  font-size:10px
}

.landing-capacity-report .agile-capacity-key {
  gap:6px 11px;
  margin-top:2px;
  color:color-mix(in srgb,var(--muted) 76%,white);
  font-size:8px
}

/* Importance triage uses project splitters so task ranking stays scoped and readable. */
.importance-center-modal {
  width:min(760px,calc(100vw - 32px))
}

.importance-center-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.importance-project {
  border-bottom:1px solid var(--line)
}

.importance-project:last-child {
  border-bottom:0
}

.importance-project summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 10px;
  background:color-mix(in srgb,var(--canvas) 68%,var(--paper));
  cursor:pointer;
  list-style:none
}

.importance-project summary::-webkit-details-marker {
  display:none
}

.importance-project summary::after {
  content:'+';
  order:-1;
  color:var(--muted);
  font-size:14px;
  font-weight:700
}

.importance-project[open] summary {
  border-bottom:1px solid var(--line)
}

.importance-project[open] summary::after {
  content:'−'
}

.importance-project summary>div {
  display:grid;
  gap:3px;
  flex:1;
  min-width:0
}

.importance-project summary>span {
  display:grid;
  place-items:center;
  min-width:18px;
  height:18px;
  border-radius:99px;
  background:var(--canvas);
  font-size:9px
}

.importance-project summary b {
  font-size:10px
}

.importance-context:has(.importance-initiative)>header b {
  display:none
}

/* Make the triage groups read as a compact scope > group > task tree. */
.importance-project summary {
  padding:9px 10px
}

.importance-project summary::after {
  display:none
}

.importance-project summary::before {
  content:'+';
  display:grid;
  place-items:center;
  width:14px;
  height:14px;
  flex:0 0 14px;
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  line-height:1
}

.importance-project[open] summary::before {
  content:'-';
  border-color:var(--green);
  background:var(--green-soft);
  color:var(--green-dark)
}

.importance-project>div {
  position:relative
}

.importance-project[open]>div::before {
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  left:20px;
  border-left:1px solid color-mix(in srgb,var(--line) 74%,transparent)
}

.importance-project .importance-task {
  position:relative;
  padding-left:38px
}

.importance-project .importance-task::before {
  content:'';
  position:absolute;
  top:50%;
  left:20px;
  width:10px;
  border-top:1px solid color-mix(in srgb,var(--line) 74%,transparent)
}

.importance-project .importance-task>button b {
  font-size:10px
}

.importance-project .importance-task small {
  font-size:8px
}

.importance-project summary:hover,.importance-project summary:focus-visible {
  background:var(--green-soft);
  outline:none
}

.today-attention-rail .today-urgency-triage {
  min-height:30px;
  padding:6px 10px;
  font-size:10px
}

.today-attention-heading-actions {
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto
}

/* Keep each expandable hierarchy node visually contained when it is open. */
.importance-context>div {
  padding:6px
}

.importance-context>div>p {
  padding:6px;
  margin:0
}

.importance-project {
  margin-bottom:6px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden
}

.importance-project:last-child {
  margin-bottom:0;
  border-bottom:1px solid var(--line)
}

.importance-project .importance-task:last-child {
  border-bottom:0
}

@media(max-width:800px) {
  .importance-center-grid {
    grid-template-columns:1fr
  }
}

/* MyIntake prioritises capture, then importing, then processing. */
main:has(.intake-table) .page-header p {
  font-size:13px
}

.intake-sync-actions {
  align-items:center;
  gap:10px
}

.intake-import-actions {
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 5px 4px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--paper) 82%,var(--canvas))
}

.intake-import-actions>span {
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.08em
}

.intake-import-actions .intake-sync-button {
  min-height:32px;
  padding:5px 9px;
  border-color:transparent;
  background:transparent;
  box-shadow:none;
  font-size:11px
}

.intake-import-actions .intake-sync-button:hover,.intake-import-actions .intake-sync-button:focus-visible {
  border-color:var(--line);
  background:var(--canvas)
}

.intake-filters {
  margin:-3px 0 15px
}

.intake-sources {
  gap:6px
}

.intake-sources button {
  padding:8px 11px;
  font-size:12px
}

.intake-bulk-toolbar {
  min-height:50px;
  padding:8px 14px;
  background:color-mix(in srgb,var(--paper) 88%,var(--canvas));
  transition:background .16s ease,border-color .16s ease
}

.intake-bulk-toolbar>span {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:11px
}

.intake-bulk-toolbar.has-selection {
  border-color:color-mix(in srgb,#579bfc 68%,var(--line));
  background:color-mix(in srgb,#579bfc 10%,var(--paper))
}

.intake-bulk-toolbar.has-selection>span {
  color:var(--ink)
}

.intake-bulk-toolbar.has-selection>span b {
  display:grid;
  place-items:center;
  min-width:21px;
  height:21px;
  border-radius:999px;
  background:#579bfc;
  color:#fff;
  font-size:10px
}

.intake-bulk-toolbar.has-selection button:first-child {
  border-color:#579bfc;
  background:rgba(87,155,252,.15);
  color:var(--ink)
}

.intake-selection-hint {
  margin:0;
  padding:8px 13px;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:12px 12px 0 0;
  background:color-mix(in srgb,var(--paper) 88%,var(--canvas));
  color:var(--muted);
  font-size:10px
}

.intake-table-wrap {
  box-shadow:0 12px 28px rgba(10,16,35,.1)
}

.intake-table th,.intake-table td {
  padding:11px 13px
}

.intake-table th {
  font-size:9px
}

.intake-table td:first-child {
  width:44px
}

.intake-table th:nth-child(2),.intake-table td:nth-child(2) {
  width:132px
}

.intake-table th:nth-child(3),.intake-table td:nth-child(3) {
  width:180px
}

.intake-table td b {
  font-size:13px;
  line-height:1.35
}

.intake-item-title {
  display:grid;
  gap:3px;
  min-width:300px
}

.intake-item-title small {
  display:block!important;
  margin:0!important;
  color:var(--muted);
  font-size:10px!important;
  line-height:1.2
}

.intake-date {
  display:grid;
  gap:2px;
  color:color-mix(in srgb,var(--ink) 82%,var(--muted));
  font-size:11px;
  white-space:nowrap
}

.intake-date b {
  font-size:11px!important;
  font-weight:700
}

.intake-date small {
  margin:0!important;
  color:var(--muted);
  font-size:8px!important;
  line-height:1
}

.intake-source-cell {
  gap:5px
}

.intake-table tbody tr {
  transition:background .14s ease
}

.intake-list-toolbar {
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:12px 12px 0 0
}

.intake-selection-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px
}

.intake-selection-count {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-right:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:700
}

.intake-selection-count b {
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  border-radius:999px;
  background:#579bfc;
  color:#fff;
  font-size:9px
}

.intake-select-control {
  display:grid;
  place-items:center;
  width:var(--worklist-check-size);
  height:var(--worklist-check-size);
  margin:0 0 0 var(--worklist-check-inset);
  padding:0;
  border:1px solid color-mix(in srgb,var(--line) 85%,var(--muted));
  border-radius:4px;
  background:var(--canvas);
  color:#fff;
  font:inherit;
  font-size:8px;
  line-height:1;
  cursor:pointer
}

.intake-select-control[aria-checked="true"] {
  border-color:#579bfc;
  background:#579bfc
}

.intake-table {
  table-layout:fixed
}

.intake-table th:first-child,.intake-table td:first-child {
  width:var(--worklist-check-column)
}

.intake-table th:nth-child(2),.intake-table td:nth-child(2) {
  width:120px
}

.intake-table th:nth-child(3),.intake-table td:nth-child(3) {
  width:170px
}

.intake-item-title {
  min-width:0
}

.intake-item-title b {
  display:block!important;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}

.intake-table tbody tr {
  border-bottom:1px solid var(--line)
}

.intake-table tbody tr:last-child {
  border-bottom:0
}

.intake-table tbody td {
  border-bottom:0!important
}

.intake-table {
  display:block;
  table-layout:auto
}

.intake-table colgroup {
  display:none
}

.intake-table thead,.intake-table tbody {
  display:block
}

.intake-table thead tr,.intake-table tbody tr {
  display:grid;
  grid-template-columns:var(--worklist-check-column) 120px 120px minmax(0,1fr);
  width:100%
}

.intake-table th,.intake-table td {
  box-sizing:border-box;
  min-width:0
}

.intake-table th {
  font-size:10px
}

.intake-table .intake-select-column {
  width:var(--worklist-check-column)
}

.intake-table .intake-date-column,.intake-table th:nth-child(2),.intake-table td:nth-child(2) {
  width:auto
}

.intake-table .intake-source-column,.intake-table th:nth-child(3),.intake-table td:nth-child(3) {
  width:auto
}

.intake-table th:nth-child(4),.intake-table td:nth-child(4) {
  width:auto
}

.intake-table th:nth-child(2),.intake-table td:nth-child(2),.intake-table th:nth-child(3),.intake-table td:nth-child(3) {
  padding-left:7px;
  padding-right:7px
}

.intake-table .intake-date {
  font-size:11px
}

.intake-table .intake-date b {
  font-size:11px!important
}

.intake-table .intake-date small {
  font-size:9px!important
}

.intake-table .intake-source-cell {
  overflow:hidden;
  white-space:nowrap
}

.intake-table .intake-source-cell .intake-tag {
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:3px 6px;
  font-size:10px
}

html[data-theme="dark"] .intake-import-actions {
  border-color:rgba(77,88,128,.75);
  background:rgba(25,30,53,.5)
}

html[data-theme="dark"] .intake-bulk-toolbar.has-selection {
  border-color:rgba(87,155,252,.7);
  background:rgba(47,88,151,.19)
}

html[data-theme="dark"] .nav-link:not(.active) {
  color:#c1c8dd
}

@media(max-width:760px) {
  .intake-import-actions>span {
    display:none
  }
  .intake-sync-actions {
    align-items:stretch;
    flex-direction:column
  }
  .intake-import-actions {
    justify-content:space-between
  }
  .intake-import-actions .intake-sync-button {
    flex:1
  }
  .intake-item-title {
    min-width:240px
  }
}

/* The blue glow is a dark-surface treatment.  Keep light-mode clock text on
   the regular ink scale so both the location and time remain readable. */
html:not([data-theme="dark"]) .today-clock {
  border-color:rgba(34,111,140,.34);
  box-shadow:0 0 0 1px rgba(34,111,140,.08),0 6px 16px rgba(31,45,61,.08);
  color:var(--green-dark)
}

html:not([data-theme="dark"]) .today-clock small {
  color:var(--muted)
}

html[data-theme="dark"] .today-clock {
  border-color:rgba(87,155,252,.82);
  box-shadow:0 0 0 1px rgba(87,155,252,.16),0 0 16px rgba(87,155,252,.18);
  color:#9cc5ff
}

html[data-theme="dark"] .today-clock small {
  color:#a9cbff
}

.agile-capacity-key .project-booked {
  background:var(--capacity-project)
}

/* Intake sources use the same restrained metadata-pill language as MyProject. */
.intake-table .intake-source-cell .intake-tag {
  display:inline-flex;
  align-items:center;
  min-height:24px;
  box-sizing:border-box;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:color-mix(in srgb,var(--paper) 84%,var(--canvas));
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  line-height:1;
  text-transform:none;
}

/* Every timing field shares one input edge and width. */
.capacity-workday-template label:has([data-capacity-template^="transit"]) {
  grid-template-columns:minmax(0,1fr) 60px
}

.capacity-workday-template label:has([data-capacity-template^="transit"]) input {
  width:60px;
  min-width:60px
}

/* Calendar-style time controls prevent the browser's platform picker from breaking the modal. */
.capacity-workday-template .capacity-time-field {
  position:relative
}

.capacity-workday-template .capacity-time-trigger {
  width:60px;
  min-width:60px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--paper);
  color:var(--ink);
  padding:3px 4px;
  font:inherit;
  font-size:10px;
  line-height:1.2;
  text-align:left;
  cursor:pointer
}

.capacity-workday-template .capacity-time-trigger::after {
  content:'▾';
  float:right;
  color:var(--muted);
  font-size:8px
}

.capacity-time-picker {
  position:absolute;
  z-index:110;
  top:calc(100% + 6px);
  right:0;
  width:166px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  box-shadow:0 12px 28px rgba(3,5,18,.32);
  color:var(--ink)
}

.capacity-time-picker[hidden] {
  display:none
}

.capacity-time-picker-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px
}

.capacity-time-picker-fields label {
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:4px;
  color:var(--muted);
  font-size:9px!important
}

.capacity-time-picker-fields select {
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--canvas);
  color:var(--ink);
  padding:5px;
  font:inherit;
  font-size:11px
}

.capacity-time-picker footer {
  display:flex;
  justify-content:flex-end;
  gap:5px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--line)
}

.capacity-time-picker footer button {
  min-height:25px;
  padding:4px 7px;
  font-size:9px
}

/* The dismissed attention rail is restored from a full-width control under the clock. */
.today-header-actions:has(.today-attention-restore) {
  display:grid;
  justify-items:stretch;
  gap:8px
}

.today-attention-restore {
  width:100%;
  min-height:28px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  color:var(--muted);
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer
}

.today-attention-restore:hover,.today-attention-restore:focus-visible {
  border-color:var(--green);
  background:var(--green-soft);
  color:var(--ink);
  outline:none
}

.today-action-layout.attention-dismissed {
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:'main'
}

/* MyToday day summaries follow the same left edge as their date labels. */
.landing-capacity-report .agile-capacity-day header .agile-capacity-balance {
  justify-content:flex-start
}

/* An unestimated task is an informational MyToday note, not an alert. */
.landing-capacity-report .agile-capacity-warning {
  color:var(--muted)!important
}

/* Orange Set time always begins at the left edge of each daily capacity bar. */
.agile-capacity-bar i.project-booked {
  order:-1
}

.agile-capacity-bar i.travel,.agile-capacity-key .travel,.agile-capacity-legend .travel,.capacity-edit-bar .travel,.capacity-edit-legend .travel {
  background:var(--capacity-transit)
}

.today-clock small {
  margin:0 0 2px
}

/* Central view navigation is one shared control: Gantt must not compress it
   relative to Calendar and List. */
.gantt-view-bar {
  margin-bottom:20px
}

/* Workspace list: the hierarchy is the primary signal; metadata stays quiet. */
main:has(.townhall-view-bar) .list-toolbar {
  min-height:54px;
  padding:10px 14px;
  border-color:var(--line);
  background:color-mix(in srgb,var(--paper) 92%,var(--canvas))
}

main:has(.townhall-view-bar) .list-title {
  gap:9px
}

main:has(.townhall-view-bar) .list-title>b {
  font-size:13px
}

main:has(.townhall-view-bar) .list-title small {
  font-size:10px
}

main:has(.townhall-view-bar) .task-table {
  border-radius:10px;
  box-shadow:0 8px 24px rgba(11,18,36,.09)
}

main:has(.townhall-view-bar) .task-head,main:has(.townhall-view-bar) .task-row {
  grid-template-columns:42px minmax(310px,1.6fr) 108px 120px 152px 54px minmax(135px,.65fr) 88px 104px minmax(145px,.72fr)
}

main:has(.townhall-view-bar) .task-head {
  min-height:38px;
  background:color-mix(in srgb,var(--paper) 86%,var(--canvas));
  font-size:8px
}

main:has(.townhall-view-bar) .task-row {
  min-height:48px;
  font-size:11px;
  border-color:color-mix(in srgb,var(--line) 82%,transparent)
}

main:has(.townhall-view-bar) .task-row.group-row {
  min-height:52px;
  background:color-mix(in srgb,#579bfc 6%,var(--paper));
  box-shadow:none
}

main:has(.townhall-view-bar) .task-row::before {
  width:2px;
  opacity:.82
}

main:has(.townhall-view-bar) .task-title {
  font-size:12px
}

main:has(.townhall-view-bar) .task-title small {
  background:color-mix(in srgb,#579bfc 12%,var(--paper));
  font-size:8px
}

main:has(.townhall-view-bar) .sphere-cell {
  display:inline-flex;
  align-items:center;
  justify-self:start;
  border:1px solid color-mix(in srgb,var(--line) 85%,transparent);
  border-radius:999px;
  padding:3px 7px!important;
  color:var(--muted);
  font-size:9px;
  font-weight:700
}

main:has(.townhall-view-bar) .deadline-cell,main:has(.townhall-view-bar) .timeline-cell {
  font-size:9px
}

main:has(.townhall-view-bar) .priority,main:has(.townhall-view-bar) .status {
  width:76px;
  padding:5px 6px!important;
  border-radius:5px;
  font-size:8px
}

main:has(.townhall-view-bar) .priority {
  background:#315a91;
  color:#d7e9ff
}

main:has(.townhall-view-bar) .priority-high {
  background:#65438a;
  color:#f0dcff
}

main:has(.townhall-view-bar) .priority-urgent {
  background:#873c4b;
  color:#ffe0e5
}

main:has(.townhall-view-bar) .priority-low {
  background:#205f4b;
  color:#cef6df
}

main:has(.townhall-view-bar) .progress-cell {
  gap:5px
}

.progress-cell b {
  font-size:8px
}

@media(max-width:1120px) {
  main:has(.townhall-view-bar) .task-table {
    overflow-x:auto
  }
  main:has(.townhall-view-bar) .task-head,main:has(.townhall-view-bar) .task-row {
    min-width:1330px
  }
}

/* Project and MySolo lists share the same reading rhythm as the workspace list. */
main:has(.focused-task-table) .list-toolbar {
  min-height:54px;
  padding:10px 14px;
  border-color:var(--line);
  background:color-mix(in srgb,var(--paper) 92%,var(--canvas))
}

main:has(.focused-task-table) .list-title {
  gap:9px
}

main:has(.focused-task-table) .list-title>b {
  font-size:13px
}

main:has(.focused-task-table) .list-title small {
  font-size:10px
}

main:has(.focused-task-table) .list-toolbar .tool-button {
  min-height:30px;
  padding:5px 8px;
  font-size:10px
}

main:has(.focused-task-table) .focused-task-table {
  border-radius:0 0 10px 10px;
  box-shadow:0 8px 24px rgba(11,18,36,.09)
}

main:has(.focused-task-table) .focused-task-table .task-row::before {
  width:2px;
  opacity:.82
}

main:has(.focused-task-table) .focused-task-table .task-title small {
  background:color-mix(in srgb,#579bfc 12%,var(--paper));
  font-size:8px
}

main:has(.focused-task-table) .focused-task-table .priority {
  background:#315a91;
  color:#d7e9ff
}

main:has(.focused-task-table) .focused-task-table .priority-high {
  background:#65438a;
  color:#f0dcff
}

main:has(.focused-task-table) .focused-task-table .priority-urgent {
  background:#873c4b;
  color:#ffe0e5
}

main:has(.focused-task-table) .focused-task-table .priority-low {
  background:#205f4b;
  color:#cef6df
}

/* Shared worklist density: MySolo, Casual Project, and Complex Project. */
:root {
  --worklist-header-height:40px;
  --worklist-row-height:46px;
  --worklist-heading-size:11px;
  --worklist-title-size:13px;
  --worklist-meta-size:11px;
  --worklist-check-size:16px;
  --worklist-check-inset:0px;
  --worklist-check-column:42px;
  --worklist-chip-height:22px
}

/* Match the MyProject directory header surface so task lists read as one system. */
main:has(.focused-task-table) .focused-task-table .task-head {
  min-height:var(--worklist-header-height);
  border-bottom-color:var(--line);
  font-size:var(--worklist-heading-size);
  background:var(--canvas)
}

html[data-theme="dark"] main:has(.focused-task-table) .focused-task-table .task-head {
  border-bottom:1px solid #444966!important
}

main:has(.focused-task-table) .focused-task-table .task-row {
  min-height:var(--worklist-row-height);
  font-size:var(--worklist-title-size);
  border-color:color-mix(in srgb,var(--line) 82%,transparent)
}

main:has(.focused-task-table) .focused-task-table .task-row.group-row {
  min-height:50px;
  background:color-mix(in srgb,#579bfc 6%,var(--paper));
  box-shadow:none
}

.task-work-group {
  position:relative;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent
}

.task-work-group>header {
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  margin:0;
  padding:0 12px 0 96px;
  border:0;
  border-bottom:1px solid color-mix(in srgb,var(--line) 78%,transparent);
  background:color-mix(in srgb,#579bfc 5%,var(--paper));
  font-size:12px;
  font-weight:800
}

.task-work-group-kicker {
  color:var(--muted);
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase
}

.task-work-group>header small {
  margin-left:1px;
  padding:3px 7px;
  border:1px solid color-mix(in srgb,#579bfc 22%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,#579bfc 10%,var(--paper));
  color:var(--muted);
  font-size:10px;
  font-weight:700
}

.task-work-group-toggle {
  display:grid;
  place-items:center;
  width:17px;
  height:17px;
  position:absolute;
  z-index:3;
  top:50%;
  left:75px;
  margin:0!important;
  padding:0!important;
  transform:translateY(-50%);
  border:1px solid var(--line)!important;
  border-radius:4px!important;
  background:var(--canvas)!important;
  color:var(--muted)!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer
}

.task-work-group-toggle:hover,.task-work-group-toggle:focus-visible {
  border-color:#579bfc!important;
  background:color-mix(in srgb,#579bfc 12%,var(--paper))!important;
  color:var(--ink)!important;
  outline:0
}

.task-work-group-menu {
  position:relative;
  margin-left:auto
}

.task-work-group-menu summary {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border:1px solid transparent;
  border-radius:5px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  line-height:1;
  list-style:none;
  cursor:pointer
}

.task-work-group-menu summary::-webkit-details-marker {
  display:none
}

.task-work-group-menu summary:hover,.task-work-group-menu[open] summary {
  border-color:var(--line);
  background:var(--paper);
  color:var(--ink)
}

.task-work-group-menu summary:focus-visible {
  outline:2px solid #579bfc;
  outline-offset:2px
}

.task-work-group-menu>div {
  position:absolute;
  z-index:8;
  top:calc(100% + 4px);
  right:0;
  display:grid;
  min-width:156px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  box-shadow:0 8px 20px rgba(11,18,36,.16)
}

.task-work-group-menu button {
  border:0;
  border-radius:4px;
  background:transparent;
  padding:7px 8px;
  color:var(--ink);
  font:inherit;
  font-size:10px;
  font-weight:700;
  text-align:left;
  white-space:nowrap;
  cursor:pointer
}

.task-work-group-menu button:hover,.task-work-group-menu button:focus-visible {
  background:color-mix(in srgb,#579bfc 10%,var(--paper));
  outline:0
}

.task-work-group-menu button.danger {
  color:#b43248
}

.task-work-group-menu button.danger:hover {
  background:color-mix(in srgb,#b43248 10%,var(--paper))
}

.task-work-group .task-row {
  background:transparent
}

.task-work-group .task-row .task-title {
  padding-left:46px!important
}

.task-work-group .task-row .task-title::before {
  left:26px;
  width:14px;
  border-color:var(--line)
}

.task-work-group .task-row:last-child .task-title::after {
  left:26px;
  border-left-color:color-mix(in srgb,var(--paper) 97%,#579bfc)
}

main:has(.focused-task-table) .focused-task-table .task-title {
  font-size:var(--worklist-title-size)
}

main:has(.focused-task-table) .focused-task-table .task-title-inline-input {
  width:100%;
  min-width:0;
  border:1px solid #579bfc;
  border-radius:5px;
  background:var(--paper);
  color:var(--ink);
  padding:5px 7px;
  font:inherit;
  font-size:var(--worklist-title-size);
  font-weight:600;
  outline:0
}

main:has(.focused-task-table) .focused-task-table .task-work-group-title {
  cursor:text
}

main:has(.focused-task-table) .focused-task-table .task-work-group-title:hover {
  color:#579bfc
}

main:has(.focused-task-table) .focused-task-table .task-group-title-inline-input {
  width:min(260px,100%);
  padding:4px 6px;
  font-size:12px
}

main:has(.focused-task-table) .focused-task-table .task-date-inline-input {
  width:100%;
  min-width:0;
  border:1px solid #579bfc;
  border-radius:5px;
  background:var(--paper);
  color:var(--ink);
  padding:4px 6px;
  font:inherit;
  font-size:var(--worklist-meta-size);
  outline:0
}

main:has(.focused-task-table) .focused-task-table .is-inline-editable {
  cursor:text;
  border-radius:4px
}

main:has(.focused-task-table) .focused-task-table .is-inline-editable:hover {
  background:color-mix(in srgb,#579bfc 12%,var(--paper));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,#579bfc 50%,transparent)
}

main:has(.focused-task-table) .focused-task-table .deadline-cell,main:has(.focused-task-table) .focused-task-table .timeline-cell,main:has(.focused-task-table) .focused-task-table .purpose-summary {
  font-size:var(--worklist-meta-size)
}

main:has(.focused-task-table) .focused-task-table .check-button,main:has(.focused-task-table) .focused-task-table .selection-button,main:has(.focused-task-table) .focused-task-table .agile-candidate {
  width:var(--worklist-check-size);
  height:var(--worklist-check-size);
  border-radius:4px;
  font-size:9px
}

main:has(.focused-task-table) .focused-task-table .check-button,main:has(.focused-task-table) .focused-task-table .selection-button {
  margin-inline:auto
}

main:has(.focused-task-table) .focused-task-table .priority,main:has(.focused-task-table) .focused-task-table .status {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:var(--worklist-chip-height);
  width:76px;
  padding:4px 6px!important;
  border-radius:5px;
  font-size:10px;
  line-height:1
}

.focused-task-table [data-task-column][hidden] {
  display:none!important
}

main:has(.focused-task-table) .focused-task-table .progress-cell {
  gap:6px
}

main:has(.focused-task-table) .focused-task-table .progress-cell>span {
  height:6px
}

main:has(.focused-task-table) .focused-task-table .progress-cell b {
  font-size:9px
}

main:has(.focused-task-table) .inherited-purpose {
  cursor:default;
  opacity:.78
}

main:has(.focused-task-table) .inherited-purpose::after {
  content:'project';
  margin-left:2px;
  color:var(--muted);
  font-size:8px;
  font-weight:600
}

/* MySolo grouping sits between the list summary and the table tools. */
.task-group-control {
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:16px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  white-space:nowrap
}

.task-group-control select {
  min-height:30px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--paper);
  color:var(--ink);
  padding:4px 26px 4px 8px;
  font:inherit;
  font-size:10px;
  cursor:pointer
}

.task-list-group {
  display:block
}

.task-list-group>header {
  display:flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:0 16px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,#579bfc 7%,var(--paper));
  color:var(--ink)
}

.task-list-group>header b {
  font-size:11px
}

.task-list-group>header small {
  padding:2px 6px;
  border-radius:999px;
  background:color-mix(in srgb,#579bfc 13%,var(--paper));
  color:var(--muted);
  font-size:9px;
  font-weight:700
}

.task-list-group>header:not(:first-child) {
  border-top:1px solid var(--line)
}

.task-group-toggle {
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer
}

.task-group-toggle>span {
  width:0;
  height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:7px solid currentColor;
  transform:rotate(90deg);
  transition:transform .15s ease
}

.task-group-toggle:hover,.task-group-toggle:focus-visible {
  color:var(--ink);
  outline:0
}

.task-group-toggle:focus-visible {
  box-shadow:0 0 0 2px color-mix(in srgb,#579bfc 65%,transparent);
  border-radius:3px
}

.task-list-group.is-collapsed .task-group-toggle>span {
  transform:rotate(0)
}

.task-list-group.is-collapsed .task-list-group-body {
  display:none
}

html .focused-task-table.workspace-task-table:not(.selection-mode) .task-head,html .focused-task-table.workspace-task-table:not(.selection-mode) .task-row {
  min-width:1354px;
  grid-template-columns:42px minmax(210px,1.1fr) 112px 108px 110px 130px 152px 120px minmax(190px,.85fr) minmax(180px,.75fr)
}

@media(max-width:620px) {
  .list-toolbar:has(.task-group-control) {
    flex-wrap:wrap
  }
  .task-group-control {
    order:3;
    width:100%;
    margin:0
  }
  .task-group-control select {
    flex:1
  }
  .task-list-group>header {
    padding-inline:12px
  }
}

/* MySolo and Casual projects use a fixed 360px task track. */
html .focused-task-table:not(.selection-mode) .task-head,html .focused-task-table:not(.selection-mode) .task-row {
  grid-template-columns:42px minmax(210px,360px) 108px 92px 46px 152px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

html .focused-task-table.selection-mode .task-head,html .focused-task-table.selection-mode .task-row {
  grid-template-columns:42px 42px minmax(210px,360px) 108px 92px 46px 152px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

/* Complex projects need 420px for the Section/Item track itself: tree controls live inside it. */
html .focused-task-table.complex-project-task-table:not(.selection-mode) .task-head,html .focused-task-table.complex-project-task-table:not(.selection-mode) .task-row {
  grid-template-columns:42px minmax(210px,420px) 76px 108px 92px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

html .focused-task-table.complex-project-task-table:not(.selection-mode) .task-head {
  grid-template-columns:42px minmax(210px,420px) 76px 108px 92px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

html .focused-task-table.complex-project-task-table.selection-mode .task-head,html .focused-task-table.complex-project-task-table.selection-mode .task-row {
  grid-template-columns:42px 42px minmax(210px,420px) 76px 108px 92px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

html .focused-task-table.complex-project-task-table.selection-mode .task-head {
  grid-template-columns:42px 42px minmax(210px,420px) 76px 108px 92px 120px minmax(190px,.85fr) minmax(180px,.75fr) 74px
}

html .complex-project-task-table>.task-head>span:nth-child(6),html .complex-project-task-table .complex-section-agile {
  display:none
}

.task-involved-control {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  min-height:30px;
  margin:0;
  cursor:pointer
}

.task-involved-control input {
  width:16px;
  height:16px;
  accent-color:#579bfc;
  cursor:pointer
}

.task-involved-control span {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap
}

.involved-header {
  display:grid;
  place-items:center;
  padding:0!important;
  font-size:9px;
  letter-spacing:.05em;
  text-align:center
}

.complex-section-row .complex-section-involved {
  grid-column:3;
  justify-self:center;
  color:var(--muted)
}

.complex-section-row .complex-section-status {
  grid-column:4
}

.complex-section-row .complex-section-summary-label {
  grid-column:5
}

.complex-section-row .deadline-cell {
  grid-column:6
}

.complex-section-row .timeline-cell {
  grid-column:7
}

.complex-section-row .complex-section-completion {
  grid-column:8
}

.complex-section-row .complex-section-add {
  grid-column:9
}

/* Phone Gantt is a focused timeline, not a shrunken desktop workspace. */
@media(max-width:760px) {
  main:has(#gantt-module-root) {
    padding:16px 0 36px
  }
  main:has(#gantt-module-root) .page-header {
    align-items:center;
    gap:12px;
    margin:0 16px 12px
  }
  main:has(#gantt-module-root) .page-header p {
    display:none
  }
  main:has(#gantt-module-root) .page-header h1 {
    font-size:24px
  }
  main:has(#gantt-module-root) .page-header .primary {
    flex:0 0 auto;
    margin-left:auto;
    white-space:nowrap
  }
  main:has(#gantt-module-root) .gantt-view-bar {
    min-height:0;
    margin:0 16px 12px;
    padding:4px;
    border-radius:9px
  }
  main:has(#gantt-module-root) .gantt-view-bar .project-view-label,main:has(#gantt-module-root) .gantt-view-bar .project-knowledge-link {
    display:none
  }
  main:has(#gantt-module-root) .gantt-view-bar .project-tabs {
    display:flex;
    width:100%;
    gap:3px;
    overflow-x:auto;
    scrollbar-width:none
  }
  main:has(#gantt-module-root) .gantt-view-bar .project-tabs::-webkit-scrollbar {
    display:none
  }
  main:has(#gantt-module-root) .gantt-view-bar .project-tabs a {
    flex:1 0 78px;
    min-height:36px;
    padding:0 10px;
    font-size:11px
  }
  main:has(#gantt-module-root) #gantt-module-root {
    min-height:0;
    border:0;
    border-radius:0
  }
}

/* Complex projects use contained Triage-style sections; Casual and MySolo stay flat. */
main:has(.complex-project-task-table) .complex-project-task-table {
  padding-bottom:8px;
  background:color-mix(in srgb,var(--canvas) 62%,var(--paper))
}

main:has(.complex-project-task-table) .complex-project-task-table>.task-head {
  border-bottom:1px solid var(--line)
}

.complex-task-section {
  margin:8px 8px 0;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  background:var(--paper);
  box-shadow:0 2px 8px rgba(11,18,36,.055)
}

.complex-task-section .complex-section-row {
  min-height:52px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,#579bfc 8%,var(--paper));
  box-shadow:none
}

.complex-task-section.collapsed .complex-section-row {
  border-bottom:0
}

.complex-section-toggle {
  display:grid;
  place-items:center;
  width:17px;
  height:17px;
  margin:auto;
  padding:0!important;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--canvas);
  color:var(--muted);
  font:inherit;
  font-size:12px;
  font-weight:800;
  line-height:1;
  cursor:pointer
}

.complex-section-toggle:hover,.complex-section-toggle:focus-visible {
  border-color:#579bfc;
  background:color-mix(in srgb,#579bfc 12%,var(--paper));
  color:var(--ink);
  outline:0
}

.complex-section-title {
  grid-column:2;
  padding-left:24px!important;
  font-weight:800!important
}

.complex-section-row .section-selection-button {
  grid-column:1
}

.complex-section-row .complex-section-toggle {
  position:absolute;
  z-index:3;
  top:50%;
  left:45px;
  margin:0;
  transform:translateY(-50%)
}

.complex-section-row .complex-section-involved {
  grid-column:3;
  justify-self:center;
  color:var(--muted)
}

.complex-section-row .complex-section-status {
  grid-column:4
}

.complex-section-row .complex-section-summary-label {
  grid-column:5
}

.complex-section-row .deadline-cell {
  grid-column:6
}

.complex-section-row .timeline-cell {
  grid-column:7
}

.complex-section-row .complex-section-completion {
  grid-column:8
}

.complex-section-row .complex-section-add {
  grid-column:9
}

.complex-section-title>span:first-child {
  overflow:hidden;
  text-overflow:ellipsis
}

.complex-section-title small {
  margin-left:8px!important;
  padding:3px 7px!important;
  border:1px solid color-mix(in srgb,#579bfc 22%,var(--line));
  border-radius:999px!important;
  background:color-mix(in srgb,#579bfc 13%,var(--paper))!important;
  font-weight:700!important
}

.complex-section-status {
  display:inline-grid;
  place-items:center;
  justify-self:start;
  min-width:64px;
  min-height:22px;
  margin-left:10px;
  padding:3px 8px!important;
  border-radius:5px;
  font-size:10px;
  font-weight:750
}

.complex-section-status.open {
  background:color-mix(in srgb,#579bfc 22%,var(--paper));
  color:color-mix(in srgb,#579bfc 58%,var(--ink))
}

.complex-section-status.done {
  background:color-mix(in srgb,#15976c 22%,var(--paper));
  color:color-mix(in srgb,#15976c 62%,var(--ink))
}

.complex-section-summary-label,.complex-section-agile {
  color:var(--muted);
  font-size:9px;
  font-weight:700
}

.complex-section-agile {
  justify-self:center
}

.complex-section-completion {
  display:flex;
  align-items:baseline;
  gap:4px;
  color:var(--muted)
}

.complex-section-completion b {
  color:var(--ink);
  font-size:11px
}

.complex-section-completion small {
  font-size:8px
}

.complex-section-add {
  justify-self:end;
  min-height:28px;
  margin-right:8px;
  padding:5px 8px!important;
  border:1px solid color-mix(in srgb,#579bfc 44%,var(--line));
  border-radius:6px;
  background:transparent;
  color:#579bfc;
  font:inherit;
  font-size:9px;
  font-weight:750;
  white-space:nowrap;
  cursor:pointer
}

.complex-section-add:hover,.complex-section-add:focus-visible {
  background:color-mix(in srgb,#579bfc 13%,var(--paper));
  outline:0
}

.complex-section-body {
  position:relative;
  background:color-mix(in srgb,var(--paper) 97%,#579bfc)
}

.complex-section-body[hidden] {
  display:none
}

.complex-section-body::before {
  content:'';
  position:absolute;
  z-index:4;
  top:0;
  bottom:23px;
  left:58px;
  width:1px;
  background:var(--line);
  pointer-events:none
}

.complex-section-body .task-row {
  background:transparent
}

.complex-section-body .task-row:last-child {
  border-bottom:0
}

.complex-section-body > .task-row .task-title {
  position:relative;
  padding-left:46px!important
}

.complex-section-body > .task-row .task-title::before {
  content:'';
  position:absolute;
  z-index:2;
  top:50%;
  left:26px;
  width:14px;
  border-top:1px solid var(--line);
  pointer-events:none
}

.complex-section-body > .task-row:last-child .task-title::after {
  content:'';
  position:absolute;
  z-index:3;
  top:50%;
  bottom:-24px;
  left:26px;
  border-left:2px solid color-mix(in srgb,var(--paper) 97%,#579bfc);
  pointer-events:none
}

.complex-section-empty {
  min-height:44px;
  padding:14px 18px 14px 82px;
  color:var(--muted);
  font-size:10px
}

.complex-section-row.drag-over-inside {
  box-shadow:inset 0 0 0 2px #579bfc;
  background:color-mix(in srgb,#579bfc 18%,var(--paper))
}

.complex-task-section:has(.complex-section-row.dragging) {
  opacity:.55
}

.section-detail-summary {
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:color-mix(in srgb,#579bfc 8%,var(--paper))
}

.section-detail-summary b {
  font-size:14px
}

.section-detail-summary small {
  color:var(--muted);
  font-size:10px
}

.agile-delivery-context {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper)
}

.agile-delivery-context>div {
  display:flex;
  align-items:center;
  gap:10px
}

.agile-delivery-context>div>span:last-child {
  display:grid;
  gap:3px
}

.agile-delivery-context b {
  font-size:15px
}

.agile-delivery-context small {
  color:var(--muted);
  font-size:10px
}

.agile-delivery-context nav {
  display:flex;
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden
}

.agile-delivery-context a {
  padding:7px 10px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  text-decoration:none
}

.agile-delivery-context a.active {
  background:var(--green-soft);
  color:var(--green-dark)
}

.agile-gantt-loading .gantt-panel {
  border-color:color-mix(in srgb,var(--green) 45%,var(--line))
}

.agile-gantt-loading .gantt-toolbar {
  background:color-mix(in srgb,var(--paper) 94%,var(--green-soft))
}

@media(max-width:700px) {
  .agile-delivery-context {
    align-items:flex-start;
    flex-direction:column
  }
  .agile-delivery-context nav {
    width:100%
  }
  .agile-delivery-context a {
    flex:1;
    text-align:center
  }
}

.agile-delivery-actions {
  display:flex;
  align-items:center;
  gap:6px
}

.agile-delivery-actions .secondary {
  min-height:32px;
  padding:6px 10px;
  font-size:11px
}


.agile-delivery-context b {
  display:flex;
  align-items:center;
  gap:4px
}

.agile-delivery-context b .candidate-edit {
  width:24px;
  height:24px;
  margin:0
}

@media(max-width:700px) {
  .agile-delivery-actions {
    width:100%;
    flex-wrap:wrap
  }
  .agile-delivery-actions nav {
    flex:1
  }
}

.agile-layout .agile-candidates,.agile-layout>.agile-main {
  grid-row:1
}

@media(max-width:850px) {
  .agile-layout .agile-candidates {
    grid-row:1
  }
  .agile-layout>.agile-main {
    grid-row:2
  }
}

.agile-layout>.agile-sidebar {
  display:grid;
  grid-column:1;
  grid-row:1;
  align-content:start;
  gap:12px
}

.agile-layout .agile-candidates {
  grid-column:auto;
  grid-row:auto
}

.agile-layout>.agile-main {
  grid-row:1
}

.agile-planning-actions {
  display:flex;
  gap:6px
}

.agile-planning-actions .secondary {
  min-height:32px;
  padding:6px 10px;
  font-size:11px
}

@media(max-width:850px) {
  .agile-layout>.agile-sidebar {
    grid-row:1
  }
  .agile-layout>.agile-main {
    grid-row:2
  }
}

.agile-page-actions {
  display:grid;
  justify-items:end;
  gap:6px
}

.agile-page-actions>div {
  display:flex;
  gap:6px
}

.agile-page-actions .secondary {
  min-height:30px;
  padding:5px 9px;
  font-size:10px
}

.candidate-inbox-close {
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  margin-left:auto;
  padding:0;
  border:0;
  border-radius:5px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:18px;
  line-height:1;
  cursor:pointer
}

.candidate-inbox-close:hover {
  background:var(--green-soft);
  color:var(--green-dark)
}

.agile-layout.inbox-hidden {
  grid-template-columns:minmax(0,1fr)
}

.agile-layout.inbox-hidden>.agile-main {
  grid-column:1
}

.agile-delivery-context {
  position:relative
}

.agile-delivery-center-actions {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%)
}

.agile-delivery-center-actions>div {
  display:flex;
  gap:4px
}

.agile-delivery-center-actions .secondary {
  min-height:30px;
  padding:5px 9px;
  font-size:10px;
  white-space:nowrap
}

.agile-delivery-center-actions .agile-inbox-toggle {
  position:absolute;
  right:calc(100% + 4px);
  top:0
}

@media(max-width:700px) {
  .agile-delivery-center-actions {
    position:static;
    transform:none;
    order:3;
    width:100%
  }
  .agile-delivery-center-actions .agile-inbox-toggle {
    position:static
  }
  .agile-delivery-center-actions>div {
    gap:4px
  }
}

/* Keep every page title on the same 20%-smaller responsive scale. */
@media(max-width:760px) {
  .page-header h1 {
    font-size:24px
  }
}

/* Part C states the rule that brought an item into the attention queue. */
.today-attention-rail .agenda-row .today-row-reason {
  margin-top:2px;
  color:var(--green);
  font-size:8px;
  font-weight:700;
  letter-spacing:.01em
}

.mytoday-settings-modal .modal-header p {
  max-width:350px
}

.mytoday-settings-modal .modal-form {
  gap:0
}

.mytoday-settings-section {
  display:grid;
  gap:0;
  padding:12px 0
}

.mytoday-settings-section+.mytoday-settings-section {
  border-top:1px solid var(--line)
}

.mytoday-settings-section>.eyebrow {
  margin-bottom:5px
}

.mytoday-setting-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:40px;
  padding:5px 0;
  color:var(--ink);
  font-size:10px;
  font-weight:700
}

.mytoday-setting-row>span:first-child {
  white-space:nowrap
}

.mytoday-setting-row+ .mytoday-setting-row {
  border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent)
}

.mytoday-setting-row select {
  width:148px;
  min-height:32px;
  padding:5px 28px 5px 9px;
  font-size:11px
}

.mytoday-setting-row>small {
  grid-column:1/-1;
  margin:-1px 0 4px;
  color:var(--muted);
  font-size:9px;
  font-weight:400;
  line-height:1.3
}

.mytoday-settings-modal .toggle-row {
  cursor:pointer
}

.mytoday-toggle {
  position:relative;
  justify-self:end
}

.mytoday-toggle input {
  position:absolute;
  opacity:0;
  pointer-events:none
}

.mytoday-toggle>span {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-width:54px;
  min-height:26px;
  padding:2px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--canvas);
  color:var(--muted);
  font-size:9px;
  font-style:normal;
  text-align:center
}

.mytoday-toggle>span::before {
  content:'';
  position:absolute;
  top:2px;
  bottom:2px;
  left:2px;
  width:25px;
  border-radius:4px;
  background:color-mix(in srgb,var(--green) 30%,var(--paper));
  transition:transform .15s ease
}

.mytoday-toggle input:not(:checked)+span::before {
  transform:translateX(25px)
}

.mytoday-toggle i {
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  font-style:normal
}

.mytoday-toggle input:checked+span i:first-child,.mytoday-toggle input:not(:checked)+span i:last-child {
  color:var(--ink)
}

.mytoday-toggle input:focus-visible+span {
  outline:2px solid var(--blue);
  outline-offset:2px
}

.mytoday-capacity-link .secondary {
  justify-self:end;
  min-width:54px;
  min-height:30px;
  padding:5px 10px;
  font-size:10px
}

.mytoday-settings-modal .modal-actions button {
  width:86px;
  min-height:42px;
  padding-inline:8px
}

.capacity-timeline:has(.capacity-day-tab-panel) {
  gap:0
}

.capacity-timeline:has(.capacity-day-tab-panel) .capacity-timeline-day-picker {
  position:relative;
  z-index:1;
  margin-bottom:-1px;
  border-radius:10px 10px 0 0;
  box-shadow:none
}

.capacity-day-tab-panel {
  display:grid;
  gap:0;
  border:1px solid var(--line);
  border-radius:0 10px 10px 10px;
  overflow:hidden;
  background:color-mix(in srgb,var(--paper) 88%,var(--canvas))
}

.capacity-day-tab-panel>.capacity-timeline-day-capacity {
  padding:10px 12px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent)
}

.capacity-day-tab-panel>.capacity-timeline-grid.day {
  border:0;
  border-radius:0
}

.capacity-day-tab-panel>.capacity-timeline-grid.day .capacity-timeline-corner {
  border-left:0
}

.capacity-day-tab-panel>.capacity-timeline-grid.day .capacity-timeline-row:last-child>* {
  border-bottom:0
}

body .capacity-timeline-grid.day .capacity-timeline-hour-head {
  background:linear-gradient(90deg,transparent 0 var(--capacity-transit-start),rgba(215,155,184,.16) var(--capacity-transit-start) var(--capacity-office-start),rgba(87,155,252,.16) var(--capacity-office-start) var(--capacity-office-end),rgba(215,155,184,.16) var(--capacity-office-end) var(--capacity-transit-end),rgba(143,181,101,.14) var(--capacity-transit-end) 100%),var(--paper)!important
}

body .capacity-timeline-grid.day .capacity-timeline-hour-head::after {
  display:none!important
}

.repeat-count-control label,[data-recurrence-count] {
  position:relative
}

.with-recurrence-max {
  padding-right:52px!important
}

.recurrence-count-max {
  position:absolute;
  right:6px;
  bottom:5px;
  min-height:28px;
  padding:0 9px;
  font-size:11px;
  line-height:1
}

.recurrence-count-max:disabled {
  cursor:not-allowed;
  opacity:.45
}

.today-due-now {
  overflow:hidden;
  border:1px solid color-mix(in srgb,#ffab3d 42%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,#ffab3d 5%,var(--paper))
}

.today-due-now>header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 13px;
  border-bottom:1px solid color-mix(in srgb,#ffab3d 28%,var(--line))
}

.today-due-now h2 {
  margin:3px 0 0;
  font-size:13px
}

.today-due-now>header>p {
  margin:2px 0 0;
  color:var(--muted);
  font-size:10px
}

.today-due-now>div {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr))
}

.today-due-now section {
  min-height:74px;
  padding:9px 11px;
  border-right:1px solid color-mix(in srgb,#ffab3d 24%,var(--line))
}

.today-due-now section:last-child {
  border-right:0
}

.today-due-now section header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:3px
}

.today-due-now section header>span:last-child {
  display:grid;
  place-items:center;
  min-width:18px;
  height:18px;
  border-radius:99px;
  background:var(--canvas);
  color:var(--muted);
  font-size:8px;
  font-weight:700
}

.today-due-now section>p {
  margin:10px 0 0;
  color:var(--muted);
  font-size:9px
}

.today-due-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  padding:5px 0;
  border:0;
  border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent);
  background:transparent;
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer
}

.today-due-row:first-of-type {
  border-top:0
}

.today-due-row>span {
  display:grid;
  gap:2px;
  min-width:0
}

.today-due-row b {
  overflow:hidden;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap
}

.today-due-row small {
  overflow:hidden;
  color:var(--muted);
  font-size:8px;
  text-overflow:ellipsis;
  white-space:nowrap
}

.today-due-row strong {
  flex:0 0 auto;
  color:#ffbe5c;
  font-size:8px;
  white-space:nowrap
}

.today-due-row strong.overdue {
  color:#ff6b7a
}

.today-due-row:hover b {
  color:#ffbe5c
}

.today-due-meta {
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0
}

.today-due-meta small+small::before,.today-due-meta strong::before {
  content:'·';
  margin-right:5px;
  color:var(--muted)
}

.today-due-meta strong {
  overflow:hidden;
  text-overflow:ellipsis
}

@media(max-width:760px) {
  .today-due-now>div {
    grid-template-columns:1fr
  }
  .today-due-now section {
    min-height:0;
    border-right:0;
    border-bottom:1px solid color-mix(in srgb,#ffab3d 24%,var(--line))
  }
  .today-due-now section:last-child {
    border-bottom:0
  }
  .today-due-now>header {
    align-items:flex-start;
    flex-direction:column;
    gap:3px
  }
}

/* Due is an ordinary fact of the work, not an alert surface. */
.today-due-now {
  border-color:var(--line);
  background:var(--paper)
}

.today-due-now>header {
  border-bottom-color:var(--line)
}

.today-due-now section {
  border-right-color:var(--line)
}

.today-due-now .today-capacity-header-actions {
  gap:7px
}

.today-due-now .today-capacity-header-actions>p {
  margin:2px 0 0;
  color:var(--muted);
  font-size:10px;
  white-space:nowrap
}

.today-due-panel.is-reordering {
  position:relative;
  z-index:2;
  transform:translateY(var(--today-capacity-drag-offset,0));
  opacity:.88;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
  transition:none
}

.today-due-panel.is-folded>header {
  border-bottom:0
}

.today-due-panel.is-folded>div {
  display:none
}

.today-due-row strong {
  color:var(--muted)
}

.today-due-row:hover b {
  color:var(--green)
}

.today-due-item {
  display:flex;
  align-items:center;
  gap:7px;
  border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent)
}

.today-due-item:first-of-type {
  border-top:0
}

.today-due-item .today-due-row {
  border-top:0
}

.today-due-complete {
  flex:0 0 auto;
  min-height:20px;
  padding:0 6px;
  border:1px solid var(--line);
  border-radius:5px;
  background:transparent;
  color:var(--muted);
  font-size:8px;
  font-weight:700;
  line-height:1;
  cursor:pointer
}

.today-due-complete:hover {
  border-color:var(--blue);
  color:var(--blue)
}

@media(max-width:760px) {
  .today-due-now section {
    border-bottom-color:var(--line)
  }
  .today-due-now .today-capacity-header-actions>p {
    white-space:normal
  }
}

.recurrence-children-form .date-time-field {
  position:relative
}

.recurrence-children-form .date-time-picker {
  top:calc(100% + 7px);
  bottom:auto;
  right:0;
  width:min(352px,calc(100vw - 48px));
  box-sizing:border-box
}

.recurrence-reset-button {
  min-width:28px!important;
  min-height:28px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:11px!important;
  line-height:1!important
}

.recurrence-reset-button[hidden] {
  display:none!important
}

.recurrence-count-max {
  display:grid;
  place-items:center;
  right:5px;
  bottom:5px;
  min-width:36px!important;
  min-height:26px!important;
  height:26px;
  padding:0 7px!important;
  border:1px solid color-mix(in srgb,var(--green) 45%,var(--line));
  border-radius:6px;
  background:color-mix(in srgb,var(--green-soft) 68%,var(--paper));
  color:var(--green-dark);
  font-size:9px!important;
  font-weight:800;
  letter-spacing:.04em;
  line-height:1!important;
  cursor:pointer
}

.recurrence-count-max:hover:not(:disabled),.recurrence-count-max:focus-visible {
  border-color:var(--green);
  background:var(--green-soft);
  outline:0;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 20%,transparent)
}

.recurrence-count-max:disabled {
  opacity:.4
}

/* MyCapacity: the day is the unit of review. Context leads; tasks are its contents. */
.agile-capacity-report:not(.landing-capacity-report) {
  gap:7px;
  padding:12px 14px
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-key {
  gap:7px 12px;
  font-size:10px
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-key i {
  width:6px;
  height:6px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-week-row {
  grid-template-columns:minmax(360px,44%) minmax(0,1fr);
  gap:14px;
  min-height:48px;
  padding:7px 0;
  border-top:1px solid color-mix(in srgb,var(--line) 68%,transparent)
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-week-row.today {
  margin-inline:0;
  padding-inline:0;
  border-radius:0;
  box-shadow:inset 2px 0 0 #579bfc;
  background:linear-gradient(90deg,rgba(87,155,252,.07),transparent 58%)
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day {
  grid-template-columns:122px minmax(180px,1fr);
  gap:10px;
  min-height:34px;
  padding:0;
  background:transparent
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day header {
  gap:3px;
  padding:1px 0;
  border:0;
  border-radius:0;
  background:transparent
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day header b {
  font-size:11px
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-balance strong {
  font-size:10px!important;
  letter-spacing:0
}

.agile-capacity-report:not(.landing-capacity-report) .agile-capacity-bar {
  min-height:34px;
  height:34px;
  padding:3px;
  border:1px solid color-mix(in srgb,var(--line) 80%,transparent);
  border-radius:5px;
  background:color-mix(in srgb,var(--canvas) 66%,transparent);
  box-shadow:none
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day {
  align-items:flex-start!important;
  gap:10px!important;
  min-height:34px!important;
  padding:0!important;
  border:0!important;
  border-radius:0;
  background:transparent!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 14px!important;
  overflow:visible
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups>section {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  min-width:0
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-label {
  display:flex;
  width:auto;
  height:auto;
  margin:0;
  color:#a9cbff;
  font-size:10px!important;
  font-weight:750;
  letter-spacing:0;
  text-transform:none;
  white-space:nowrap
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-label::before {
  width:6px;
  height:6px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-label.single {
  color:#ffca83
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task {
  max-width:250px;
  min-height:28px!important;
  padding:4px 7px!important;
  border-radius:5px!important;
  background:color-mix(in srgb,var(--canvas) 72%,transparent)!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task.project {
  border-color:color-mix(in srgb,#579bfc 40%,var(--line))!important;
  background:color-mix(in srgb,#579bfc 8%,var(--canvas))!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task.single {
  border-color:color-mix(in srgb,#ffab3d 38%,var(--line))!important;
  background:color-mix(in srgb,#ffab3d 7%,var(--canvas))!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task b {
  max-width:174px;
  font-size:10px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task small {
  display:block;
  font-size:8px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-task strong {
  font-size:8px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day>header {
  align-self:flex-start
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-add-task {
  min-width:48px;
  height:26px;
  min-height:26px;
  padding:4px 7px;
  border-color:rgba(126,180,255,.7);
  border-radius:5px;
  background:transparent;
  box-shadow:none;
  color:#a9cbff;
  font-size:9px
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-week-row:hover .capacity-add-task,.agile-capacity-report:not(.landing-capacity-report) .capacity-add-task:hover {
  background:rgba(87,155,252,.14);
  box-shadow:none;
  transform:none
}

@media(max-width:900px) {
  .agile-capacity-report:not(.landing-capacity-report) .capacity-week-row {
    grid-template-columns:1fr;
    gap:5px
  }
  .agile-capacity-report:not(.landing-capacity-report) .agile-capacity-day {
    grid-template-columns:122px minmax(140px,1fr)
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day {
    padding-left:132px!important
  }
}

@media(max-width:620px) {
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day {
    padding-left:0!important
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups {
    align-items:flex-start;
    flex-direction:column
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups>section {
    max-width:100%
  }
}

/* Used personal time grows in from the right edge; unused capacity sits before it. */
.agile-capacity-bar i.personal {
  order:6
}

.agile-capacity-bar i.personal-used {
  order:7
}

.agile-capacity-bar i.over {
  order:8
}

/* Capacity color contract: Stack, Timeline, and schedule controls share these tokens. */
.agile-capacity-bar i.project-booked,.agile-capacity-key .project-booked,.capacity-demand-label.project::before,.capacity-demand-task>i.project {
  background:var(--capacity-project)!important
}

.agile-capacity-bar i.office,.agile-capacity-key .office,.agile-capacity-legend .office,.capacity-edit-bar .office,.capacity-edit-legend .office {
  background:var(--capacity-workday)!important
}

.agile-capacity-bar i.travel,.agile-capacity-key .travel,.agile-capacity-legend .travel,.capacity-edit-bar .travel,.capacity-edit-legend .travel {
  background:var(--capacity-transit)!important
}

.agile-capacity-bar i.personal,.agile-capacity-key .personal,.agile-capacity-legend .personal,.capacity-edit-bar .personal,.capacity-edit-legend .personal {
  background:var(--capacity-free)!important
}

.agile-capacity-bar i.personal-used,.agile-capacity-key .personal-used,.agile-capacity-legend .personal-used {
  background:var(--capacity-personal-plan)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head {
  background:linear-gradient(90deg,transparent 0 var(--capacity-transit-start),rgba(215,155,184,.3) var(--capacity-transit-start) var(--capacity-office-start),rgba(87,155,252,.3) var(--capacity-office-start) var(--capacity-office-end),rgba(215,155,184,.3) var(--capacity-office-end) var(--capacity-transit-end),rgba(143,181,101,.3) var(--capacity-transit-end) 100%),var(--paper)!important
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  background-image:linear-gradient(90deg,transparent 0 var(--capacity-transit-start),rgba(215,155,184,.3) var(--capacity-transit-start) var(--capacity-office-start),rgba(87,155,252,.3) var(--capacity-office-start) var(--capacity-office-end),rgba(215,155,184,.3) var(--capacity-office-end) var(--capacity-transit-end),rgba(143,181,101,.3) var(--capacity-transit-end) 100%),repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) 6.25%)!important
}

.capacity-timeline-day-rail::before {
  display:none!important
}

.capacity-timeline-grid.day .capacity-timeline-day-rail .transit {
  flex:0 0 auto!important;
  width:var(--capacity-transit-width,0%)!important
}

.capacity-timeline-day-rail {
  background:linear-gradient(90deg,transparent 0 var(--capacity-transit-start),var(--capacity-transit) var(--capacity-transit-start) var(--capacity-office-start),var(--capacity-workday) var(--capacity-office-start) var(--capacity-office-end),var(--capacity-transit) var(--capacity-office-end) var(--capacity-transit-end),var(--capacity-free) var(--capacity-transit-end) 100%)!important
}

.capacity-timeline-day-rail i {
  display:none!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.project.capacity-personal-plan {
  border-color:var(--capacity-personal-plan)!important;
  background:color-mix(in srgb,var(--capacity-personal-plan) 24%,transparent)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.project.capacity-personal-plan>i {
  background:var(--capacity-personal-plan)!important
}

.capacity-timeline-day-picker {
  justify-self:start;
  display:inline-grid;
  grid-template-columns:repeat(7,minmax(88px,1fr));
  width:auto;
  overflow:visible;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--paper) 92%,var(--canvas));
  padding:3px;
  box-shadow:0 4px 12px rgba(3,5,18,.12)
}

.capacity-timeline-day-picker button,.capacity-timeline-day-picker button:first-child {
  min-height:42px;
  padding:5px 10px;
  border:0!important;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:10px
}

.capacity-timeline-day-picker button:hover {
  background:color-mix(in srgb,var(--green-soft) 72%,transparent);
  color:var(--ink)
}

.capacity-timeline-day-picker button.active {
  box-shadow:inset 0 0 0 1px rgba(126,180,255,.55),0 2px 5px rgba(3,5,18,.18);
  background:#314b7e;
  color:#edf4ff
}

.capacity-timeline-day-picker button.today {
  box-shadow:inset 0 -2px 0 #78adfa
}

.capacity-timeline-day-picker button.active.today {
  box-shadow:inset 0 0 0 1px rgba(126,180,255,.65),inset 0 -2px 0 #a9cbff,0 2px 5px rgba(3,5,18,.18)
}

.capacity-timeline-grid.day .capacity-timeline-hour-head {
  position:relative;
  background:var(--paper)!important;
  box-shadow:none
}

.capacity-timeline-grid.day .capacity-timeline-hour-head::after {
  content:'';
  position:absolute;
  top:5px;
  bottom:5px;
  left:var(--capacity-transit-start);
  right:calc(100% - var(--capacity-transit-end));
  border:1px solid color-mix(in srgb,var(--capacity-workday) 82%,white);
  border-radius:6px;
  box-shadow:0 0 12px rgba(87,155,252,.48),inset 0 0 8px rgba(87,155,252,.12);
  pointer-events:none
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 55%,transparent) 6.25%)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head::after {
  top:5px;
  bottom:5px;
  left:0;
  right:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:linear-gradient(var(--capacity-transit),var(--capacity-transit)) var(--capacity-transit-start) 0/calc(var(--capacity-office-start) - var(--capacity-transit-start)) 1px no-repeat,linear-gradient(var(--capacity-transit),var(--capacity-transit)) var(--capacity-transit-start) 100%/calc(var(--capacity-office-start) - var(--capacity-transit-start)) 1px no-repeat,linear-gradient(var(--capacity-transit),var(--capacity-transit)) var(--capacity-transit-start) 0/1px 100% no-repeat,linear-gradient(var(--capacity-workday),var(--capacity-workday)) var(--capacity-office-start) 0/calc(var(--capacity-office-end) - var(--capacity-office-start)) 1px no-repeat,linear-gradient(var(--capacity-workday),var(--capacity-workday)) var(--capacity-office-start) 100%/calc(var(--capacity-office-end) - var(--capacity-office-start)) 1px no-repeat,linear-gradient(var(--capacity-workday),var(--capacity-workday)) var(--capacity-office-start) 0/1px 100% no-repeat,linear-gradient(var(--capacity-workday),var(--capacity-workday)) var(--capacity-office-end) 0/1px 100% no-repeat,linear-gradient(var(--capacity-transit),var(--capacity-transit)) var(--capacity-office-end) 0/calc(var(--capacity-transit-end) - var(--capacity-office-end)) 1px no-repeat,linear-gradient(var(--capacity-transit),var(--capacity-transit)) var(--capacity-office-end) 100%/calc(var(--capacity-transit-end) - var(--capacity-office-end)) 1px no-repeat,linear-gradient(var(--capacity-free),var(--capacity-free)) var(--capacity-transit-end) 0/calc(100% - var(--capacity-transit-end)) 1px no-repeat,linear-gradient(var(--capacity-free),var(--capacity-free)) var(--capacity-transit-end) 100%/calc(100% - var(--capacity-transit-end)) 1px no-repeat,linear-gradient(var(--capacity-free),var(--capacity-free)) var(--capacity-transit-end) 0/1px 100% no-repeat,linear-gradient(var(--capacity-free),var(--capacity-free)) 100% 0/1px 100% no-repeat;
  filter:drop-shadow(0 0 4px rgba(126,180,255,.36));
  pointer-events:none
}

/* MyCapacity timeline: one planning surface with semantic capacity states. */
.capacity-view-toolbar {
  gap:16px;
  padding:8px 10px
}

.capacity-control-group {
  display:flex;
  align-items:center;
  gap:7px
}

.capacity-control-group>span {
  color:var(--muted);
  font-size:9px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.05em
}

.capacity-view-switch button.active,.capacity-zoom-switch button.active {
  background:#31598e;
  color:#eff6ff;
  box-shadow:inset 0 0 0 1px rgba(126,180,255,.48)
}

.capacity-group-control {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:9px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.05em;
  white-space:nowrap
}

.capacity-group-control select {
  min-height:28px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--canvas);
  color:var(--ink);
  padding:4px 24px 4px 8px;
  font:inherit;
  font-size:10px;
  font-weight:700;
  text-transform:none;
  letter-spacing:normal;
  cursor:pointer
}

.capacity-timeline {
  gap:8px
}

.capacity-timeline-day-picker {
  box-shadow:none
}

.capacity-timeline-day-picker button.active {
  box-shadow:inset 0 0 0 1px #78adfa;
  background:#31598e;
  color:#eff6ff
}

.capacity-timeline-day-picker button.active small {
  color:#d7e8ff
}

.capacity-timeline-day-picker button b {
  font-size:10px
}

.capacity-summary-heading {
  display:flex;
  align-items:baseline;
  gap:9px;
  margin-bottom:7px
}

.capacity-summary-heading b {
  font-size:10px
}

.capacity-summary-heading span {
  color:var(--muted);
  font-size:9px
}

.capacity-timeline-day-capacity {
  padding:10px 12px
}

.capacity-timeline-day-key {
  gap:10px
}

.capacity-timeline-day-key span {
  font-size:9px
}

.capacity-timeline-day-key .workday i {
  background:var(--capacity-workday)!important
}

.capacity-timeline-day-key .book i {
  background:var(--capacity-workday)!important
}

.capacity-timeline-day-key .transit i {
  background:var(--capacity-transit)!important
}

.capacity-timeline-day-key .free i {
  background:var(--capacity-free)!important
}

.capacity-timeline-day-key .personal-plan i {
  background:var(--capacity-personal-plan)!important
}

.capacity-timeline-grid,.capacity-timeline-grid.day {
  border-color:color-mix(in srgb,var(--line) 78%,transparent)
}

.capacity-timeline-cell {
  border-right-color:color-mix(in srgb,var(--line) 40%,transparent);
  border-bottom-color:color-mix(in srgb,var(--line) 64%,transparent);
  background-image:none
}

.capacity-timeline-day-track {
  border-bottom-color:color-mix(in srgb,var(--line) 64%,transparent);
  background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),color-mix(in srgb,var(--line) 32%,transparent) calc(6.25% - 1px),color-mix(in srgb,var(--line) 32%,transparent) 6.25%)!important
}

.capacity-timeline-group-head {
  border-bottom-color:var(--line);
  background:color-mix(in srgb,var(--canvas) 88%,var(--paper))
}

.capacity-timeline-group-head>i,.capacity-timeline-group-head.single>i {
  background:var(--capacity-workday)!important
}

.capacity-timeline-label {
  border-right-color:color-mix(in srgb,var(--line) 70%,transparent);
  border-bottom-color:color-mix(in srgb,var(--line) 64%,transparent)
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar,.capacity-timeline .capacity-demand-task.capacity-timeline-bar.project,.capacity-timeline .capacity-demand-task.capacity-timeline-bar.single {
  grid-template-columns:12px minmax(0,1fr)!important;
  border-color:color-mix(in srgb,var(--capacity-workday) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-workday) 22%,transparent)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar>i.capacity-drag-handle {
  display:grid!important;
  place-items:center;
  width:12px!important;
  height:18px!important;
  background:transparent!important;
  color:#b8d4ff;
  font-size:12px;
  font-style:normal;
  line-height:1;
  letter-spacing:-3px
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.capacity-split {
  background:linear-gradient(90deg,color-mix(in srgb,var(--capacity-workday) 25%,transparent) 0 var(--capacity-book-share),color-mix(in srgb,var(--capacity-transit) 30%,transparent) var(--capacity-book-share) 100%)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar>i:not(.capacity-drag-handle),.capacity-unscheduled .capacity-demand-task>i:not(.capacity-drag-handle) {
  display:none!important
}

.capacity-unscheduled {
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-style:solid;
  background:color-mix(in srgb,var(--canvas) 52%,transparent)
}

.capacity-unscheduled header {
  display:flex;
  align-items:baseline;
  gap:7px;
  white-space:nowrap
}

.capacity-unscheduled header b {
  font-size:10px
}

.capacity-unscheduled>div {
  justify-content:flex-start
}

.capacity-unscheduled .capacity-demand-task {
  grid-template-columns:12px minmax(0,1fr)!important;
  min-height:34px!important;
  padding:5px 7px!important;
  background:color-mix(in srgb,var(--paper) 86%,var(--canvas))!important
}

.capacity-unscheduled .capacity-demand-task>i.capacity-drag-handle {
  display:grid!important;
  place-items:center;
  width:12px!important;
  height:18px!important;
  background:transparent!important;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  letter-spacing:-3px
}

.capacity-unscheduled.empty {
  grid-template-columns:1fr
}

.capacity-unscheduled.empty header {
  justify-content:space-between
}

.capacity-unscheduled .capacity-add-unscheduled-task {
  align-self:center;
  min-width:42px;
  height:24px;
  min-height:24px;
  padding:3px 7px;
  border-color:rgba(126,180,255,.72);
  border-radius:5px;
  background:transparent;
  color:#a9cbff;
  font-size:9px;
  line-height:1;
  box-shadow:none
}

.capacity-unscheduled .capacity-add-unscheduled-task:hover,.capacity-unscheduled .capacity-add-unscheduled-task:focus-visible {
  border-color:#c1dcff;
  background:rgba(87,155,252,.14);
  box-shadow:none;
  transform:none
}

@media(max-width:760px) {
  .capacity-view-toolbar {
    gap:9px
  }
  .capacity-control-group {
    width:auto
  }
  .capacity-summary-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:2px
  }
  .capacity-unscheduled {
    grid-template-columns:1fr
  }
  .capacity-unscheduled header {
    justify-content:space-between;
    white-space:normal
  }
}

/* Timeline hierarchy: tabs name the panel, metrics explain capacity, then work follows. */
.capacity-view-toolbar {
  justify-content:flex-start;
  min-height:42px;
  border-radius:8px
}

.capacity-view-boundary {
  font-size:8px
}

.capacity-timeline-day-picker {
  width:100%;
  grid-template-columns:repeat(7,minmax(0,1fr));
  padding:4px;
  border-radius:9px 9px 0 0;
  background:color-mix(in srgb,var(--paper) 96%,var(--canvas))
}

.capacity-timeline-day-picker button {
  min-height:50px;
  align-content:center;
  border-radius:6px
}

.capacity-timeline-day-picker button b {
  font-size:11px
}

.capacity-timeline-day-picker button small {
  font-size:9px
}

.capacity-timeline-day-picker button.active {
  background:#31598e;
  box-shadow:inset 0 0 0 1px #8cb9ff
}

.capacity-timeline-day-picker button.active small {
  display:none
}

.capacity-day-tab-panel {
  border-radius:0 0 10px 10px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.capacity-day-tab-panel>.capacity-timeline-day-capacity {
  padding:14px 16px 12px;
  border-bottom:0
}

.capacity-summary-heading {
  justify-content:space-between;
  margin:0 0 10px
}

.capacity-summary-heading b {
  font-size:11px
}

.capacity-summary-heading span {
  font-size:9px
}

.capacity-timeline-day-key {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin:0
}

.capacity-timeline-day-key span {
  display:grid;
  grid-template-columns:7px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:6px;
  align-items:center;
  min-height:40px;
  padding:6px 7px;
  border:1px solid color-mix(in srgb,var(--line) 74%,transparent);
  border-radius:6px;
  background:color-mix(in srgb,var(--canvas) 68%,transparent);
  font-size:9px
}

.capacity-timeline-day-key span i {
  grid-row:1 / span 2;
  width:7px;
  height:22px;
  border-radius:3px
}

.capacity-timeline-day-key span b {
  grid-column:2;
  font-size:12px;
  line-height:1
}

.capacity-timeline-day-rail {
  height:7px;
  margin-top:9px;
  border-radius:99px
}

.capacity-schedule-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px 8px;
  border-top:1px solid color-mix(in srgb,var(--line) 68%,transparent);
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--canvas) 60%,var(--paper))
}

.capacity-schedule-heading div {
  display:flex;
  align-items:baseline;
  gap:7px
}

.capacity-schedule-heading span {
  color:var(--muted);
  font-size:9px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.06em
}

.capacity-schedule-heading b {
  font-size:11px
}

.capacity-schedule-heading small {
  color:var(--muted);
  font-size:9px
}

.capacity-day-tab-panel>.capacity-timeline-grid.day {
  border-radius:0
}

.capacity-timeline-grid.day .capacity-timeline-corner {
  min-height:54px
}

.capacity-timeline-grid.day .capacity-timeline-hour-head {
  min-height:54px
}

.capacity-timeline-group-head {
  min-height:25px;
  padding:5px 12px
}

.capacity-timeline-group-head b {
  font-size:10px
}

.capacity-timeline-group-head span {
  font-size:8px
}

.capacity-timeline-row {
  min-height:54px
}

.capacity-timeline-label {
  padding:8px 12px
}

.capacity-unscheduled {
  min-height:40px;
  padding:6px 10px
}

.capacity-unscheduled header b {
  font-size:11px
}

.capacity-unscheduled header small {
  font-size:8px
}

.capacity-unscheduled .capacity-demand-task {
  flex:0 0 164px;
  min-height:30px!important;
  padding:3px 7px!important
}

.capacity-unscheduled .capacity-demand-task>span {
  gap:0
}

.capacity-unscheduled .capacity-demand-task small {
  display:none
}

@media(max-width:760px) {
  .capacity-timeline-day-picker {
    overflow-x:auto;
    grid-template-columns:repeat(7,minmax(88px,1fr))
  }
  .capacity-timeline-day-key {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .capacity-schedule-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:3px
  }
}

/* The time axis is only a column header: keep it quiet, compact, and aligned. */
.capacity-timeline-grid.day .capacity-timeline-corner,.capacity-timeline-grid.day .capacity-timeline-hour-head {
  box-sizing:border-box;
  min-height:38px;
  height:38px
}

.capacity-timeline-grid.day .capacity-timeline-corner {
  display:flex;
  align-items:center;
  padding:0 12px
}

.capacity-timeline-grid.day .capacity-timeline-corner small {
  display:none
}

.capacity-timeline-grid.day .capacity-timeline-hour-head {
  align-items:center;
  padding:0 8px
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span {
  align-self:center;
  font-size:9px;
  line-height:1;
  text-align:center
}

/* A real tab panel: one boundary, one tab strip, and an active tab joined to its page. */
.capacity-timeline:has(.capacity-day-tab-panel) {
  display:grid;
  gap:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas));
  overflow:hidden
}

.capacity-timeline:has(.capacity-day-tab-panel) .capacity-timeline-day-picker {
  position:relative;
  z-index:1;
  display:grid;
  width:100%;
  margin:0;
  padding:7px 10px 0;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:color-mix(in srgb,var(--canvas) 72%,var(--paper));
  box-shadow:none
}

.capacity-timeline:has(.capacity-day-tab-panel) .capacity-timeline-day-picker button {
  position:relative;
  min-height:44px;
  margin:0;
  padding:7px 10px 8px;
  border:0!important;
  border-radius:7px 7px 0 0;
  background:transparent;
  color:var(--muted);
  box-shadow:none
}

.capacity-timeline:has(.capacity-day-tab-panel) .capacity-timeline-day-picker button:hover {
  background:color-mix(in srgb,var(--paper) 60%,transparent);
  color:var(--ink)
}

.capacity-timeline:has(.capacity-day-tab-panel) .capacity-timeline-day-picker button.active {
  z-index:2;
  margin-bottom:-1px;
  border-top:2px solid #78adfa!important;
  border-right:1px solid var(--line)!important;
  border-left:1px solid var(--line)!important;
  background:color-mix(in srgb,var(--paper) 96%,var(--canvas));
  color:var(--ink);
  box-shadow:none
}

.capacity-timeline:has(.capacity-day-tab-panel) .capacity-timeline-day-picker button.active::after {
  content:'';
  position:absolute;
  right:0;
  bottom:-1px;
  left:0;
  height:1px;
  background:color-mix(in srgb,var(--paper) 96%,var(--canvas))
}

.capacity-timeline:has(.capacity-day-tab-panel) .capacity-timeline-day-picker button.active small {
  display:none
}

.capacity-day-tab-panel {
  width:100%;
  border:0!important;
  border-radius:0!important;
  background:transparent
}

.capacity-day-tab-panel>.capacity-timeline-day-capacity {
  padding:14px 16px 12px
}

.capacity-day-tab-panel>.capacity-timeline-grid.day {
  border-inline:0;
  border-bottom:0;
  border-radius:0
}

.capacity-timeline:has(.capacity-day-tab-panel) .capacity-schedule-heading {
  border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)
}

/* The ruler uses 16 hour columns. Labels sit on the 17 boundaries, never between them. */
.capacity-timeline-grid.day .capacity-timeline-hour-head {
  position:relative;
  grid-template-columns:repeat(16,minmax(0,1fr));
  overflow:visible
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span {
  justify-self:start;
  transform:translateX(-1px);
  text-align:left
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span:last-child {
  position:absolute;
  right:7px;
  transform:none
}

/* Capacity semantics are global: booked work is orange; blue means remaining work capacity. */
.capacity-timeline-day-key .book i,.capacity-timeline-day-rail i.book {
  background:var(--capacity-project)!important
}

.capacity-timeline-day-key .workday i,.capacity-timeline-day-rail i.workday {
  background:var(--capacity-workday)!important
}

.capacity-timeline-day-rail {
  display:flex!important;
  overflow:hidden;
  background:none!important
}

.capacity-timeline-day-rail i {
  display:block!important;
  flex:0 0 auto
}

.capacity-timeline-day-rail i.transit {
  background:var(--capacity-transit)!important
}

.capacity-timeline-day-rail i.free {
  background:var(--capacity-free)!important
}

.capacity-timeline-day-rail i.personal-plan {
  background:var(--capacity-personal-plan)!important
}

/* Scheduled bars use the same professional/personal category as the summary. */
.capacity-timeline .capacity-demand-task.capacity-timeline-bar.capacity-booked {
  border-color:color-mix(in srgb,var(--capacity-project) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-project) 22%,transparent)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.capacity-personal-plan {
  border-color:color-mix(in srgb,var(--capacity-personal-plan) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-personal-plan) 22%,transparent)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.capacity-personal-plan>i.capacity-drag-handle {
  color:#dfc0f3
}

.capacity-timeline-capacity-bars {
  display:grid;
  gap:3px;
  margin-top:2px
}

.capacity-timeline-capacity-metric {
  display:grid;
  grid-template-columns:minmax(0,1fr) 38px;
  align-items:center;
  gap:5px
}

.capacity-timeline-capacity-metric>span {
  font-size:7px;
  line-height:1;
  text-align:right;
  white-space:nowrap
}

.capacity-timeline-capacity-metric.booked>span {
  color:var(--capacity-project)
}

.capacity-timeline-capacity-metric.personal>span {
  color:var(--capacity-personal-plan)
}

.capacity-timeline-capacity-metric.booked>span em {
  color:color-mix(in srgb,var(--capacity-workday) 85%,transparent);
  font-style:normal
}

.capacity-timeline-capacity-metric.personal>span em {
  color:color-mix(in srgb,var(--capacity-free) 85%,transparent);
  font-style:normal
}

.capacity-timeline-capacity-bar {
  margin:0
}

.capacity-timeline-capacity-metric.booked .capacity-timeline-capacity-bar {
  background:color-mix(in srgb,var(--capacity-workday) 85%,transparent)
}

.capacity-timeline-capacity-metric.booked .capacity-timeline-capacity-bar i {
  background:var(--capacity-project)
}

.capacity-timeline-capacity-metric.personal .capacity-timeline-capacity-bar {
  background:color-mix(in srgb,var(--capacity-free) 85%,transparent)
}

.capacity-timeline-capacity-metric.personal .capacity-timeline-capacity-bar i {
  background:var(--capacity-personal-plan)
}

/* The summary owns the row-label column instead of leaving it blank. */
.capacity-day-tab-panel>.capacity-timeline-day-capacity {
  display:grid;
  grid-template-columns:minmax(220px,1.35fr) minmax(0,6.65fr);
  gap:7px 12px;
  padding:10px 12px
}

.capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-summary-heading {
  grid-column:1;
  grid-row:1 / span 2;
  align-content:center;
  align-items:start;
  justify-content:center;
  margin:0;
  padding:0 4px;
  border-right:1px solid color-mix(in srgb,var(--line) 68%,transparent);
  text-align:left
}

.capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-summary-heading b {
  font-size:10px
}

.capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-summary-heading span {
  max-width:170px;
  font-size:8px;
  line-height:1.35
}

.capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-timeline-day-key {
  grid-column:2;
  grid-row:1
}

.capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-timeline-day-rail {
  grid-column:2;
  grid-row:2;
  margin-top:0
}

@media(max-width:760px) {
  .capacity-day-tab-panel>.capacity-timeline-day-capacity {
    grid-template-columns:1fr
  }
  .capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-summary-heading,.capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-timeline-day-key,.capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-timeline-day-rail {
    grid-column:1;
    grid-row:auto
  }
  .capacity-day-tab-panel>.capacity-timeline-day-capacity>.capacity-summary-heading {
    border-right:0
  }
}

/* Popularity is deliberately quick to scan in lists and quick to set at creation. */
.popular-rating {
  display:inline-flex;
  align-items:center;
  gap:1px;
  color:color-mix(in srgb,var(--muted) 50%,transparent);
  font-size:14px;
  letter-spacing:-1px;
  white-space:nowrap
}

.popular-rating .is-filled {
  color:#ffbe5c;
  text-shadow:0 0 8px rgba(255,190,92,.2)
}

.create-popular-picker {
  display:grid;
  gap:3px;
  margin:0 10px 0 auto;
  padding:0;
  border:0;
  color:var(--muted);
  text-align:right
}

.create-popular-picker legend {
  width:100%;
  padding:0;
  color:var(--ink);
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.07em
}

.create-popular-picker>div {
  display:flex;
  justify-content:flex-end;
  gap:1px
}

.create-popular-picker label {
  position:relative;
  display:grid;
  place-items:center;
  width:19px;
  height:20px;
  cursor:pointer
}

.create-popular-picker input {
  position:absolute;
  inline-size:1px;
  block-size:1px;
  opacity:0
}

.create-popular-picker label>span:not(.sr-only) {
  color:color-mix(in srgb,var(--muted) 55%,transparent);
  font-size:18px;
  line-height:1;
  transition:color .12s,transform .12s
}

.create-popular-picker label.is-selected>span:not(.sr-only) {
  color:#ffbe5c
}

.create-popular-picker label:hover>span:not(.sr-only) {
  color:#ffd480;
  transform:scale(1.08)
}

.create-popular-picker input:focus-visible+span {
  outline:2px solid #579bfc;
  outline-offset:2px;
  border-radius:2px
}

.create-popular-picker small {
  font-size:8px
}

.sr-only {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important
}

@media(max-width:520px) {
  .task-create-modal .modal-header {
    flex-wrap:wrap
  }
  .create-popular-picker {
    order:3;
    width:100%;
    margin:2px 0 0;
    text-align:left
  }
  .create-popular-picker>div {
    justify-content:flex-start
  }
}

.task-recurrence-row .recurrence-options {
  display:grid;
  grid-template-columns:minmax(0,58fr) minmax(0,42fr);
  align-items:end;
  gap:8px
}

.task-recurrence-row .skip-weekends {
  display:flex;
  align-items:center;
  gap:4px;
  min-height:36px;
  color:#7f879c;
  font-size:10px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer
}

.task-recurrence-row .skip-weekends input {
  width:13px;
  height:13px;
  flex:0 0 auto;
  margin:0;
  padding:0;
  accent-color:#579bfc
}

.task-recurrence-row .recurrence-options-toggles {
  position:relative;
  top:-6px;
  display:grid;
  align-content:start;
  gap:6px;
  min-height:0;
  margin-top:-4px
}

.task-recurrence-row .recurrence-options-toggles label {
  display:flex;
  align-items:center;
  gap:4px;
  min-height:13px;
  color:#7f879c;
  font-size:10px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer
}

.task-recurrence-row .recurrence-options-toggles input {
  width:13px;
  height:13px;
  flex:0 0 auto;
  margin:0;
  padding:0;
  accent-color:#579bfc
}

.task-recurrence-row .recurrence-options-toggles .disabled {
  opacity:.48;
  cursor:not-allowed
}

/* MyCapacity now leads with a resource-leveling recommendation and makes a
   destination's post-move capacity visible while a task is being dragged. */
.capacity-leveling-summary {
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:9px 11px;
  border:1px solid color-mix(in srgb,#00c875 36%,var(--line));
  border-radius:8px;
  background:color-mix(in srgb,#00c875 7%,var(--canvas))
}

.capacity-leveling-summary.needs-attention {
  border-color:color-mix(in srgb,#e2445c 58%,var(--line));
  background:color-mix(in srgb,#e2445c 8%,var(--canvas))
}

.capacity-leveling-status {
  padding:3px 6px;
  border-radius:999px;
  background:rgba(0,200,117,.16);
  color:#9be0ba;
  font-size:8px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase
}

.needs-attention .capacity-leveling-status {
  background:rgba(226,68,92,.16);
  color:#ffb0bd
}

.capacity-leveling-summary b {
  font-size:11px
}

.capacity-leveling-summary p {
  display:block!important;
  margin:0!important;
  color:var(--muted)!important;
  font-size:10px!important;
  line-height:1.3
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day {
  grid-template-areas:"tasks action""hint action";
  align-items:center!important;
  min-height:48px!important
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-groups {
  grid-area:tasks
}

.agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day>header {
  grid-area:action
}

.capacity-drop-hint {
  grid-area:hint;
  margin:2px 0 0;
  color:var(--muted);
  font-size:8px;
  font-weight:650;
  line-height:1.2
}

.capacity-demand-day.drag-over {
  border-color:#78adfa!important;
  background:rgba(87,155,252,.12)!important;
  box-shadow:inset 0 0 0 1px rgba(120,173,250,.36)!important
}

.capacity-demand-day.drag-over .capacity-drop-hint {
  color:#b9d7ff
}

.capacity-demand-day.drag-over .capacity-demand-groups {
  opacity:.72
}

@media(max-width:620px) {
  .capacity-leveling-summary {
    grid-template-columns:auto 1fr
  }
  .capacity-leveling-summary p {
    grid-column:1 / -1
  }
  .agile-capacity-report:not(.landing-capacity-report) .capacity-demand-day {
    grid-template-areas:"tasks action""hint hint"
  }
}

/* V-Stack turns the week sideways: each day is a self-contained, move-ready column. */
.capacity-v-stack {
  display:grid;
  gap:11px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--paper) 94%,var(--canvas))
}

.capacity-v-stack>header>div {
  display:grid;
  gap:3px
}

.capacity-v-stack>header b {
  font-size:13px
}

.capacity-v-stack>header p {
  margin:0;
  color:var(--muted);
  font-size:10px;
  line-height:1.35
}

.capacity-v-stack-grid {
  position:relative;
  display:grid;
  grid-template-columns:repeat(7,minmax(178px,1fr));
  gap:8px;
  overflow-x:auto;
  padding-bottom:2px
}

/* One shared rule preserves a clear boundary across the entire week. */
.capacity-v-stack-grid::after {
  position:absolute;
  z-index:3;
  top:var(--capacity-sphere-boundary);
  right:0;
  left:0;
  height:1px;
  background:#cdd0da;
  box-shadow:0 1px rgba(255,255,255,.16);
  content:"";
  display:none;
  pointer-events:none
}

.capacity-v-stack-day {
  position:relative;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:310px;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--line) 76%,transparent);
  border-radius:8px;
  background:color-mix(in srgb,var(--canvas) 72%,var(--paper));
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease
}

.capacity-v-stack-day.today {
  border-color:rgba(87,155,252,.7);
  box-shadow:inset 0 2px 0 #78adfa
}

.capacity-v-stack-day.over {
  border-color:rgba(226,68,92,.68);
  background:color-mix(in srgb,#e2445c 6%,var(--canvas))
}

.capacity-v-stack-day>header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px
}

.capacity-v-stack-day>header>div {
  display:grid;
  gap:2px
}

.capacity-v-stack-day>header span {
  color:var(--muted);
  font-size:9px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.06em
}

.capacity-v-stack-day>header b {
  font-size:13px
}

.capacity-v-stack-day>header>strong {
  padding:3px 5px;
  border-radius:4px;
  background:rgba(169,212,91,.1);
  color:#c4ee70;
  font-size:9px;
  white-space:nowrap
}

.capacity-v-stack-day.over>header>strong {
  background:rgba(226,68,92,.14);
  color:#ffb0bd
}

.capacity-v-stack-rail {
  overflow:hidden;
  height:8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--line) 74%,transparent)
}

.capacity-v-stack-rail i {
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--capacity-personal-plan)
}

.capacity-v-stack-day.over .capacity-v-stack-rail i {
  background:#e2445c
}

.capacity-v-stack-breakdown {
  display:flex;
  justify-content:space-between;
  gap:6px;
  margin:0;
  color:var(--muted);
  font-size:8px
}

.capacity-v-stack-tasks {
  display:grid;
  align-content:start;
  min-height:138px
}

/* Every day shares the same two lanes, making the silver rule meaningful. */
.capacity-sphere-lane {
  display:grid;
  align-content:start;
  gap:6px
}

.capacity-professional-lane {
  height:var(--capacity-professional-lane-height,auto);
  overflow-y:auto;
  padding-right:2px
}

.capacity-personal-lane {
  padding-top:6px
}

.capacity-v-stack-day .capacity-demand-task {
  min-height:42px!important;
  max-width:none!important
}

.capacity-v-stack-day .capacity-demand-task b {
  max-width:112px
}

.capacity-v-stack-empty {
  margin:0;
  padding:12px 8px;
  border:1px dashed color-mix(in srgb,var(--line) 82%,transparent);
  border-radius:6px;
  color:var(--muted);
  font-size:9px;
  text-align:center
}

.capacity-v-stack-day>.capacity-drop-hint {
  margin-top:auto
}

.capacity-v-stack-day>.capacity-add-task {
  align-self:flex-start
}

.capacity-v-stack-day.drag-over {
  border-color:#8cb9ff!important;
  background:rgba(87,155,252,.16)!important;
  box-shadow:inset 0 0 0 2px rgba(120,173,250,.35)!important
}

.capacity-v-stack-day.drag-over .capacity-drop-hint {
  color:#c8e0ff
}

@media(max-width:760px) {
  .capacity-v-stack-grid {
    grid-template-columns:repeat(7,minmax(220px,1fr))
  }
  .capacity-v-stack-day {
    min-height:280px
  }
}

/* MyCapacity highlights the top Popular ratings; 5★ plus Top-high earns 6★. */
.capacity-timeline-label-heading,.capacity-unscheduled-label,.today-row-title {
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0
}

.capacity-timeline-label-heading b,.capacity-unscheduled-label b,.today-row-title b {
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.popular-star-badge {
  display:inline-flex;
  align-items:center;
  flex:none;
  gap:3px;
  padding:2px 5px;
  border:1px solid currentColor;
  border-radius:999px;
  font-size:7px;
  font-weight:750;
  line-height:1;
  letter-spacing:.01em;
  white-space:nowrap
}

.popular-star-badge.stars-4 {
  color:#79b9ff;
  background:rgba(87,155,252,.1)
}

.popular-star-badge.stars-5 {
  color:#35a7c8;
  background:rgba(53,167,200,.12)
}

.popular-star-badge.stars-6 {
  color:#ff82b6;
  background:rgba(255,96,159,.16)
}

/* Six-star work is the 5-star, urgent state: its scheduled bar matches the badge. */
.capacity-timeline .capacity-demand-task.capacity-timeline-bar.six-star-task {
  border-color:#ff82b6!important;
  background:rgba(255,96,159,.24)!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.six-star-task>i:not(.capacity-drag-handle) {
  background:#ff82b6!important
}

.capacity-timeline .capacity-demand-task.capacity-timeline-bar.six-star-task>i.capacity-drag-handle {
  background:transparent!important;
  color:#ffb3d1
}

.today-commitment-group .popular-star-badge {
  font-size:8px;
  background:transparent
}

.today-project-work button {
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0
}

.today-project-work button>span:not(.popular-star-badge) {
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.today-project-work .today-project-work-meta {
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0
}

.today-project-work .popular-star-badge {
  font-size:7px
}

/* Keep the capacity key in the open space above the weekend without shifting either day down. */
.landing-capacity-report .today-capacity-calendar {
  position:relative
}

.landing-capacity-report .today-capacity-weekend-key {
  position:absolute;
  top:-22px;
  right:0;
  z-index:1;
  justify-content:flex-end;
  margin:0
}

.today-capacity-panel.is-folded .today-capacity-calendar {
  display:none
}

.task-head [data-task-column="popular"] {
  justify-self:start;
  text-align:left
}

.popular-rating-control button {
  border:0;
  background:transparent;
  padding:0;
  color:color-mix(in srgb,var(--muted) 50%,transparent);
  font:inherit;
  font-size:14px;
  letter-spacing:-1px;
  line-height:1;
  cursor:pointer
}

.popular-rating-control button.is-filled {
  color:color-mix(in srgb,#ffbe5c 68%,var(--muted));
  text-shadow:none
}

.popular-rating-control button:hover,.popular-rating-control button:focus-visible {
  color:#e6ad62;
  outline:none;
  transform:scale(1.05)
}

.detail-popular-picker {
  display:grid;
  gap:3px;
  margin-right:3px;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
  letter-spacing:.06em;
  text-align:left;
  text-transform:uppercase
}

.detail-popular-picker>span {
  white-space:nowrap
}

.detail-popular-picker small {
  font-size:7px;
  font-weight:600;
  letter-spacing:.03em;
  text-transform:none
}

.detail-popular-picker>div {
  display:flex;
  gap:1px
}

.detail-header .detail-popular-picker button {
  width:17px;
  height:18px;
  padding:0;
  border:0;
  background:transparent;
  color:color-mix(in srgb,var(--muted) 55%,transparent);
  font-size:16px;
  line-height:1;
  cursor:pointer
}

.detail-header .detail-popular-picker button.is-selected {
  color:#ffbe5c
}

.detail-header .detail-popular-picker button:hover,.detail-header .detail-popular-picker button:focus-visible {
  color:#ffd480;
  outline:none;
  transform:scale(1.1)
}

.detail-footer-actions {
  display:flex;
  align-items:center;
  gap:8px
}

.detail-footer-actions .secondary,.detail-footer-actions .primary {
  min-height:34px;
  padding:7px 11px;
  font-size:12px
}

.task-archive-action {
  justify-content:space-between
}

.detail-form .task-archive-action {
  margin:0
}

@media(max-width:420px) {
  .detail-header-actions {
    gap:5px
  }
  .detail-popular-picker {
    margin-right:0
  }
  .detail-footer-actions {
    gap:5px
  }
  .detail-footer-actions .secondary,.detail-footer-actions .primary {
    padding:7px 9px
  }
}

/* Complex projects: a Group is a genuine work-package tier beneath a Section. */
.complex-section-body::before {
  left:53px
}

.complex-section-body > .task-row .task-title::before {
  left:12px;
  width:30px
}

.complex-section-body > .task-row:last-child .task-title::after {
  left:12px
}

.task-work-group::before {
  content:'';
  position:absolute;
  z-index:2;
  top:22px;
  bottom:23px;
  left:83px;
  border-left:1px solid var(--line);
  pointer-events:none
}

.task-work-group::after {
  content:'';
  position:absolute;
  z-index:2;
  top:22px;
  left:53px;
  width:30px;
  border-top:1px solid var(--line);
  pointer-events:none
}

.task-work-group.collapsed::before {
  display:none
}

.task-work-group>header {
  min-height:44px;
  padding-left:96px;
  background:color-mix(in srgb,#579bfc 8%,var(--paper))
}

.task-work-group-kicker {
  color:color-mix(in srgb,#579bfc 72%,var(--muted));
  font-size:8px
}

.task-work-group .task-row .task-title {
  position:relative;
  padding-left:66px!important
}

.task-work-group .task-row .task-title::before {
  content:'';
  position:absolute;
  z-index:2;
  top:50%;
  left:41px;
  width:21px;
  border-top:1px solid var(--line);
  pointer-events:none
}

.task-work-group .task-row:last-child .task-title::after {
  content:'';
  position:absolute;
  z-index:3;
  top:50%;
  bottom:-24px;
  left:41px;
  border-left:2px solid color-mix(in srgb,var(--paper) 97%,#579bfc);
  pointer-events:none
}

/* Build the section-to-group spine in real segments, so it ends at the final group. */
.complex-section-body:has(> .task-work-group:last-child)::before {
  display:none
}

.complex-task-section.has-items:not(.collapsed) .complex-section-row::after {
  content:'';
  position:absolute;
  z-index:4;
  top:50%;
  bottom:-1px;
  left:53px;
  border-left:2px solid #7183b2;
  pointer-events:none
}

.task-work-group::after {
  content:none
}

.task-work-group>header::before {
  content:'';
  position:absolute;
  z-index:2;
  top:50%;
  left:53px;
  width:30px;
  border-top:1px solid var(--line);
  pointer-events:none
}

.task-work-group>header::after {
  content:'';
  position:absolute;
  z-index:4;
  top:0;
  height:50%;
  left:53px;
  border-left:2px solid #7183b2;
  pointer-events:none
}

.task-work-group:not(.last-in-section)::after {
  content:'';
  position:absolute;
  z-index:4;
  top:22px;
  bottom:0;
  left:53px;
  border-top:0;
  border-left:2px solid #7183b2;
  pointer-events:none
}

/* MyAgile board: one equal-width, left-to-right delivery flow. */
.agile-layout {
  grid-template-columns:220px minmax(0,1fr);
  align-items:start
}

.agile-sidebar {
  display:grid;
  align-content:start;
  gap:12px;
  min-width:0
}

.agile-sidebar .agile-initiatives {
  min-width:0
}

.agile-sidebar .agile-candidates {
  padding:11px
}

.agile-sidebar .agile-candidates>header {
  align-items:flex-start;
  gap:7px
}

.agile-sidebar .agile-candidates header>span {
  display:none
}

.agile-sidebar .agile-candidate-filters {
  margin-top:7px
}

.agile-sidebar .agile-candidate-list {
  gap:5px;
  margin-top:7px
}

.agile-sidebar .agile-candidate-card {
  grid-template-columns:14px minmax(0,1fr);
  gap:5px;
  padding:7px
}

.agile-sidebar .candidate-drag-grip {
  font-size:12px
}

.agile-sidebar .agile-candidate-card small {
  display:none
}

.agile-sidebar .agile-candidate-purposes {
  margin-top:3px
}

.agile-sidebar .agile-candidate-actions {
  grid-column:2
}

.agile-sidebar .candidate-edit {
  width:24px;
  height:24px
}

.agile-sidebar .agile-candidate-actions .secondary {
  min-height:24px;
  padding:3px 6px;
  font-size:9px
}

.agile-cycle-label {
  justify-content:flex-start;
  gap:8px
}

.agile-cycle-label>span:last-child {
  margin-left:auto;
  color:var(--muted);
  font-size:10px;
  font-weight:600
}

.agile-lanes {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  align-items:stretch
}

.agile-lanes section,.agile-lanes .agile-cycle-lanes section {
  display:flex;
  flex-direction:column;
  min-height:430px;
  padding:11px;
  border-radius:9px;
  background:color-mix(in srgb,var(--canvas) 90%,var(--paper))
}

.agile-lanes section>header {
  align-items:center;
  padding-bottom:9px;
  border-bottom:1px solid var(--line)
}

.agile-lanes section>header .eyebrow {
  color:#8fb8ef
}

.agile-lanes section[data-agile-lane="current"]>header .eyebrow {
  color:#ffca83
}

.agile-lanes section[data-agile-lane="on_hold"]>header .eyebrow {
  color:#d6a7ff
}

.agile-lanes .agile-done>header .eyebrow {
  color:#8fd9b4
}

.agile-lanes .agile-on-hold {
  min-height:430px;
  border-style:solid;
  background:color-mix(in srgb,#a25ddc 5%,var(--canvas))
}

.agile-lanes .agile-done {
  border-color:color-mix(in srgb,#00c875 42%,var(--line));
  background:color-mix(in srgb,#00c875 5%,var(--canvas))
}

.agile-lanes .muted.small {
  margin-top:14px;
  line-height:1.5
}

.agile-item {
  grid-template-columns:18px minmax(0,1fr);
  gap:7px;
  align-content:start;
  min-height:105px;
  margin:9px 0 0;
  padding:10px;
  border-radius:8px;
  background:var(--paper);
  box-shadow:0 3px 9px rgba(0,0,0,.11)
}

.agile-item:first-of-type {
  margin-top:10px
}

.agile-item>div:nth-child(2) {
  align-content:start;
  gap:6px
}

.agile-item>div:nth-child(2) b {
  font-size:13px;
  line-height:1.3
}

.agile-item>div:nth-child(2) span {
  font-size:8px;
  line-height:1.3
}

.agile-item-actions {
  grid-column:2;
  justify-content:flex-start;
  margin-top:3px
}

.agile-item-actions .secondary,.agile-item-actions .promote-button {
  min-height:26px;
  padding:4px 7px
}

.agile-done .agile-item {
  border-color:color-mix(in srgb,#00c875 35%,var(--line));
  opacity:.82
}

.agile-done .agile-item>div:nth-child(2) b {
  text-decoration:line-through
}

.agile-done .agile-item-actions {
  display:none
}

.agile-lanes section.agile-drop-target {
  border-color:#8cb9ff;
  background:rgba(87,155,252,.14);
  box-shadow:inset 0 0 0 2px rgba(87,155,252,.25)
}

@media(max-width:1100px) {
  .agile-lanes {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .agile-lanes section,.agile-lanes .agile-cycle-lanes section,.agile-lanes .agile-on-hold {
    min-height:290px
  }
}

@media(max-width:850px) {
  .agile-layout {
    grid-template-columns:1fr
  }
  .agile-sidebar {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)
  }
  .agile-sidebar .agile-candidates {
    margin:0
  }
}

@media(max-width:620px) {
  .agile-sidebar,.agile-lanes {
    grid-template-columns:1fr
  }
  .agile-cycle-label>span:last-child {
    display:none
  }
}

/* Keep initiative selection across the board; reserve the side rail for candidate triage. */
.agile-layout {
  grid-template-columns:220px minmax(0,1fr)
}

.agile-layout>.agile-sidebar {
  display:contents
}

.agile-layout .agile-initiatives {
  grid-column:1/-1;
  grid-row:1;
  display:flex;
  align-items:stretch;
  gap:8px;
  overflow-x:auto;
  padding:10px 12px
}

.agile-layout .agile-initiatives>div:first-child {
  display:flex;
  flex:0 0 142px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin:0;
  padding:2px 4px
}

.agile-layout .agile-initiatives .agile-initiative-row {
  flex:1 0 210px;
  min-width:210px;
  border:1px solid color-mix(in srgb,var(--line) 82%,transparent);
  background:var(--canvas)
}

.agile-layout .agile-initiatives .agile-initiative-row.active {
  border-color:color-mix(in srgb,var(--green) 45%,var(--line));
  background:var(--green-soft)
}

.agile-layout .agile-initiatives .agile-initiative-link {
  min-height:52px;
  padding:9px
}

.agile-layout .agile-candidates {
  grid-column:1;
  grid-row:2
}

.agile-layout>.agile-main {
  grid-column:2;
  grid-row:2
}

@media(max-width:850px) {
  .agile-layout .agile-initiatives,.agile-layout .agile-candidates,.agile-layout>.agile-main {
    grid-column:1
  }
  .agile-layout .agile-initiatives {
    grid-row:1
  }
  .agile-layout .agile-candidates {
    grid-row:2
  }
  .agile-layout>.agile-main {
    grid-row:3
  }
}

/* MyAgile refinement: make triage and active work faster to scan. */
.agile-sidebar .agile-candidate-card {
  grid-template-columns:12px minmax(0,1fr);
  grid-template-areas:'grip content''. actions';
  gap:4px 6px;
  padding:8px
}

.agile-sidebar .candidate-drag-grip {
  grid-area:grip;
  align-self:start;
  padding-top:2px
}

.agile-sidebar .agile-candidate-card>div:nth-child(2) {
  grid-area:content;
  gap:4px
}

.agile-sidebar .agile-candidate-card b {
  font-size:11px;
  line-height:1.25;
  white-space:normal
}

.agile-sidebar .agile-candidate-purposes {
  gap:3px;
  margin-top:0
}

.agile-sidebar .agile-candidate-actions {
  grid-area:actions;
  grid-column:auto;
  justify-self:start;
  margin-top:1px
}

.agile-sidebar .candidate-edit {
  width:22px;
  height:22px
}

.agile-sidebar .agile-candidate-actions .secondary {
  min-height:22px;
  padding:3px 7px;
  font-size:8px
}

.agile-lanes section[data-agile-lane="current"] {
  border-color:color-mix(in srgb,#ffca83 38%,var(--line));
  background:linear-gradient(180deg,color-mix(in srgb,#ffca83 6%,var(--canvas)),color-mix(in srgb,var(--canvas) 90%,var(--paper)) 24%)
}

.agile-lanes section[data-agile-lane="current"] .agile-item {
  min-height:0;
  margin-top:7px;
  padding:9px;
  box-shadow:0 2px 7px rgba(0,0,0,.1)
}

.agile-lanes section[data-agile-lane="current"] .agile-item>div:nth-child(2) {
  gap:4px
}

.agile-lanes section[data-agile-lane="current"] .agile-item-actions {
  margin-top:1px
}

.agile-lanes section[data-agile-lane="current"] .agile-item-actions .secondary {
  min-height:24px;
  padding:3px 7px;
  font-size:8px
}

/* The page-level action creates initiatives; the strip only switches them. */
.agile-layout .agile-initiatives>div:first-child .secondary,.agile-sidebar .agile-candidates>header b {
  display:none
}

.agile-sidebar .agile-candidate-card {
  position:relative
}

.agile-sidebar .agile-candidate-card>div:nth-child(2) {
  padding-right:26px
}

.agile-sidebar .candidate-edit {
  position:absolute;
  top:8px;
  right:8px
}

.agile-sidebar .agile-candidate-actions {
  padding-right:0
}

.agile-sidebar .agile-candidate-actions .candidate-edit+ .secondary {
  margin-left:0
}

.agile-candidate-actions [data-action="triage-agile-candidate"] {
  display:none
}

.agile-item-actions .return-to-pool {
  color:var(--text-muted);
  position:absolute;
  top:10px;
  right:50px;
}

.agile-sidebar .agile-candidates.agile-drop-target {
  border-color:#8cb9ff;
  background:rgba(87,155,252,.14);
  box-shadow:inset 0 0 0 2px rgba(87,155,252,.25);
}

.agile-item {
  position:relative
}

.agile-item>div:nth-child(2) {
  padding-right:44px
}

.agile-item-actions [data-action="open-task"] {
  position:absolute;
  top:10px;
  right:10px
}

.agile-candidate-active-purpose span {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:26px;
  padding:4px 8px;
  border:1px solid color-mix(in srgb,var(--green) 42%,var(--line));
  border-radius:999px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:10px;
  font-weight:700
}

.agile-sidebar .agile-candidate-purposes {
  display:none
}

.agile-item.virtual {
  min-height:76px;
  padding:8px 42px 34px 9px
}

.agile-item.virtual>div:nth-child(2) {
  gap:3px
}

.agile-item.virtual>div:nth-child(2) span {
  font-size:7px
}

.agile-item.virtual>div:nth-child(2) b {
  font-size:12px;
  line-height:1.2
}

.agile-item.virtual .agile-item-menu {
  position:absolute;
  top:8px;
  right:8px
}

.agile-item.virtual .agile-item-menu summary {
  width:25px;
  height:25px;
  font-size:14px
}

.agile-item.virtual .promote-button {
  position:absolute;
  right:8px;
  bottom:8px;
  min-height:23px;
  padding:3px 7px;
  font-size:8px
}

/* MyAgile sizing standard: card dimensions include their padding and controls. */
.agile-workspace {
  --agile-lane-min-height:clamp(340px,48vh,420px);
  --agile-card-min-height:88px;
  --agile-card-padding:9px;
  --agile-title-size:12px;
  --agile-meta-size:7px;
  --agile-action-height:24px
}

.agile-lanes section,.agile-lanes .agile-cycle-lanes section,.agile-lanes .agile-on-hold {
  min-height:var(--agile-lane-min-height)
}

.agile-lanes section .agile-item {
  box-sizing:border-box;
  min-height:var(--agile-card-min-height);
  padding:var(--agile-card-padding)
}

.agile-lanes section .agile-item>div:nth-child(2) b {
  font-size:var(--agile-title-size);
  line-height:1.25
}

.agile-lanes section .agile-item>div:nth-child(2) span {
  font-size:var(--agile-meta-size)
}

.agile-lanes section .agile-item-actions .secondary,.agile-lanes section .agile-item-actions .promote-button {
  min-height:var(--agile-action-height);
  font-size:8px
}

.agile-lanes section .agile-item.virtual {
  min-height:var(--agile-card-min-height);
  padding:9px 42px 34px 9px
}

.agile-layout {
  --agile-initiative-height:44px;
  --agile-initiative-title-size:12px;
  --agile-initiative-meta-size:8px
}

.agile-layout .agile-initiatives .agile-initiative-row {
  box-sizing:border-box;
  grid-template-columns:minmax(0,1fr) 25px!important;
  min-height:var(--agile-initiative-height);
  height:var(--agile-initiative-height)
}

.agile-layout .agile-initiative-drag-grip {
  display:none
}

.agile-layout .agile-initiatives .agile-initiative-link {
  min-height:0;
  padding:9px;
  font-size:var(--agile-initiative-title-size)
}

.agile-layout .agile-initiatives .agile-initiative-link small {
  font-size:var(--agile-initiative-meta-size);
  line-height:1.25
}

.agile-layout .agile-initiatives .agile-initiative-edit {
  width:24px;
  height:24px
}

.agile-layout .agile-initiatives>div:first-child {
  flex-basis:220px
}

/* The delivery timeline shares the board's initiative strip without the board grid. */
.agile-initiative-control {
  display:flex;
  align-items:stretch;
  gap:8px;
  overflow-x:auto;
  padding:10px 12px
}

.agile-initiative-control>div:first-child {
  display:flex;
  flex:0 0 220px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:8px;
  margin:0;
  padding:2px 4px
}

.agile-initiative-control>div:first-child .secondary {
  display:none
}

.agile-initiative-control .agile-initiative-row {
  box-sizing:border-box;
  display:grid;
  flex:1 0 210px;
  min-width:210px;
  grid-template-columns:minmax(0,1fr) 25px!important;
  align-items:center;
  min-height:44px;
  height:44px;
  border:1px solid color-mix(in srgb,var(--line) 82%,transparent);
  border-radius:7px;
  background:var(--canvas)
}

.agile-initiative-control .agile-initiative-row.active {
  border-color:color-mix(in srgb,var(--green) 45%,var(--line));
  background:var(--green-soft)
}

.agile-initiative-control .agile-initiative-drag-grip {
  display:none
}

.agile-initiative-control .agile-initiative-link {
  min-height:0;
  padding:9px;
  font-size:12px
}

.agile-initiative-control .agile-initiative-link small {
  font-size:8px;
  line-height:1.25
}

.agile-initiative-control .agile-initiative-edit {
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  font-size:0
}

.agile-initiative-control .agile-initiative-edit::after {
  content:'\270e';
  font-size:13px
}

/* Initiative switching is a compact tab strip; the page action creates new
   initiatives, so the strip does not need a leading label or duplicate meta. */
.agile-initiative-control {
  align-items:center;
  padding:8px 12px
}

.agile-initiative-control>div:first-child {
  display:none
}

.agile-initiative-control .agile-initiative-row {
  flex:1 1 160px;
  min-width:160px;
  min-height:48px;
  height:48px
}

.agile-initiative-control .agile-initiative-link {
  grid-template-columns:10px minmax(0,1fr) auto;
  gap:8px;
  padding:10px 12px
}

.agile-initiative-control .agile-initiative-link>span {
  width:10px;
  height:10px
}

.agile-initiative-control .agile-initiative-link b {
  overflow:hidden;
  font-size:14px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap
}

.agile-initiative-control .agile-initiative-link small {
  grid-column:3;
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 3px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  font-variant-numeric:tabular-nums
}

.agile-initiative-control .agile-initiative-row:has(.agile-initiative-edit) {
  grid-template-columns:minmax(0,1fr) 32px!important
}

.agile-initiative-control .agile-initiative-row.active .agile-initiative-edit {
  justify-self:center;
  width:26px;
  height:26px;
  margin-right:3px;
  border:1px solid color-mix(in srgb,#579bfc 42%,var(--line));
  border-radius:6px;
  background:color-mix(in srgb,#579bfc 12%,var(--canvas));
  color:#8cb9ff
}

.agile-initiative-control .agile-initiative-row.active .agile-initiative-edit:hover,
.agile-initiative-control .agile-initiative-row.active .agile-initiative-edit:focus-visible {
  border-color:#579bfc;
  background:color-mix(in srgb,#579bfc 24%,var(--canvas));
  color:#d9e8ff;
  outline:none
}

.agile-initiative-control .agile-initiative-row.active .agile-initiative-edit::after {
  font-size:12px
}

/* Let the active initiative read as the tab for the workspace immediately
   below it, rather than as another card in a separate strip. */
.agile-initiative-control {
  position:relative;
  z-index:2;
  margin-bottom:-1px;
  overflow:visible;
  align-items:flex-end;
  padding:8px 12px 0;
  border-bottom:1px solid var(--line);
  border-radius:11px 11px 0 0
}

.agile-initiative-control .agile-initiative-row.active {
  position:relative;
  z-index:1;
  align-self:end;
  margin-bottom:-1px;
  border-color:var(--line);
  border-bottom-color:var(--paper);
  border-radius:7px 7px 0 0;
  background:var(--paper);
  color:inherit
}

.agile-delivery-context {
  position:relative;
  z-index:1;
  border-radius:0 11px 11px 11px
}

/* One selected-initiative workspace: toolbar first, then the board. */
.agile-delivery-context {
  margin-bottom:0;
  border-bottom:0;
  border-radius:0
}

.agile-delivery-context + .agile-layout {
  box-sizing:border-box;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-top:0;
  border-radius:0 0 11px 11px;
  background:var(--paper)
}

.agile-delivery-context + .agile-layout .agile-workspace {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent
}

.agile-delivery-center-actions {
  left:auto;
  right:15px;
  transform:translateY(-50%)
}

/* The row below the initiative tabs is the workspace toolbar: view mode at
   left, an optional Pool return in the middle, and work creation at right. */
main:has(.agile-initiative-control) .page-header {
  margin-bottom:22px
}

.agile-delivery-context {
  display:grid;
  grid-template-columns:auto auto auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:8px 15px
}

.agile-delivery-context>nav {
  grid-column:1;
  grid-row:1
}

.agile-delivery-context>.agile-inbox-toggle {
  grid-column:3;
  grid-row:1;
  justify-self:start;
  align-self:center;
  min-height:30px;
  height:30px;
  padding:5px 9px;
  font-size:10px;
  white-space:nowrap
}

.agile-delivery-center-actions {
  position:static;
  grid-column:2;
  grid-row:1;
  justify-self:start;
  transform:none
}

.agile-watch-countdown,.today-watch-countdown {
  display:inline-flex;
  align-items:center;
  min-height:12px;
  margin:0 3px 0 0;
  padding:1px 3px;
  border:1px solid color-mix(in srgb,#d4af37 62%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,#d4af37 16%,var(--canvas));
  color:#d4af37!important;
  font-size:7px;
  font-style:normal;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1;
  vertical-align:middle;
  white-space:nowrap
}

.agile-delivery-context a {
  padding:8px 12px;
  font-size:11px
}

/* Keep the selected initiative, view switch, and work actions in one clear
   toolbar rather than distributing them across an oversized header. */
.agile-delivery-context>div>span:last-child {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px
}

.agile-delivery-context nav {
  flex:0 0 auto
}

.agile-initiative-control .agile-initiative-row.active {
  box-shadow:inset 0 2px 0 #579bfc
}

@media(max-width:700px) {
  .agile-delivery-context {
    display:flex;
    align-items:flex-start;
    min-height:0
  }

  .agile-delivery-center-actions {
    position:static;
    transform:none
  }

  .agile-delivery-context + .agile-layout {
    border-top:1px solid var(--line);
    border-radius:0 0 11px 11px
  }

  .agile-delivery-context>div>span:last-child {
    align-items:flex-start;
    flex-direction:column
  }
}

.complex-section-row:has(+ .complex-section-body .task-work-group)::after {
  top:calc(50% + 11px)
}

/* The parent spine stops at the final level-2 group; it must not continue
   beside that group's children. */
.complex-section-body:has(> .task-work-group:last-child)::before {
  display:none
}

.complex-task-section.has-items:not(.collapsed) .complex-section-row::after {
  left:53px;
  border-left:1px solid var(--line)
}

.task-work-group>header::after,.task-work-group:not(.last-in-section)::after {
  border-left:1px solid var(--line)
}

.agile-context h2 {
  display:flex;
  align-items:center;
  gap:6px
}

.agile-context-title .candidate-edit {
  width:24px;
  height:24px;
  font-size:12px
}

.agile-lanes section[data-agile-lane] .agile-item {
  height:42px;
  min-height:42px;
  padding:5px 9px
}

.agile-lanes section[data-agile-lane] .agile-item>div:nth-child(2) {
  gap:0
}

.agile-lanes section[data-agile-lane] .agile-item>div:nth-child(2) b {
  overflow:hidden;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap
}

.agile-lanes section[data-agile-lane] .agile-item.virtual {
  padding:5px 102px 5px 9px
}

.agile-item.virtual .promote-button {
  top:8px;
  right:8px;
  bottom:auto
}

.agile-item.virtual .agile-item-menu {
  top:8px;
  right:65px
}

.agile-item.virtual .agile-item-menu summary {
  font-size:0
}

.agile-item.virtual .agile-item-menu summary::after {
  content:'✎';
  color:var(--muted);
  font-size:12px;
  line-height:1;
  transform:translateY(-1px)
}

.agile-item.virtual .agile-item-menu summary:hover::after {
  color:var(--green-dark)
}

.agile-initiative-modal .agile-edit-delete {
  min-height:32px;
  padding:6px 10px;
  color:#d9485f;
  font:inherit;
  font-size:11px
}

.agile-initiative-modal form[data-form="edit-agile-virtual-item"] .modal-actions>button,.agile-initiative-modal form[data-form="edit-agile-initiative"] .modal-actions>button {
  flex:1;
  min-width:0
}

/* Keep Planning board actions directly above its candidate inbox. */
.agile-layout>.agile-sidebar {
  display:grid;
  grid-column:1;
  grid-row:1;
  align-content:start;
  gap:12px
}

.agile-layout .agile-candidates {
  grid-column:auto;
  grid-row:auto
}

.agile-layout>.agile-main {
  grid-row:1
}

.agile-planning-actions {
  display:flex;
  gap:6px
}

.agile-planning-actions .secondary {
  min-height:32px;
  padding:6px 10px;
  font-size:11px
}

@media(max-width:850px) {
  .agile-layout>.agile-sidebar {
    grid-row:1
  }
  .agile-layout>.agile-main {
    grid-row:2
  }
}

@media(min-width:1101px) {
  .agile-lanes {
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr))
  }
  .agile-lanes section[data-agile-lane="backlog"],.agile-lanes section[data-agile-lane="current"] {
    grid-row:1 / span 2
  }
  .agile-lanes .agile-on-hold,.agile-lanes .agile-done {
    min-height:0
  }
}

/* A tick names its boundary, rather than the hour cell to its right. */
body .capacity-timeline-grid.day .capacity-timeline-hour-head .capacity-timeline-hour-tick {
  transform:translateX(-50%)!important
}

body .capacity-timeline-grid.day .capacity-timeline-hour-head .capacity-timeline-hour-tick:first-child {
  transform:translateX(0)!important
}

body .capacity-timeline-grid.day .capacity-timeline-hour-head .capacity-timeline-hour-tick.end {
  transform:translate(0,-50%)!important
}

/* Day view is one table: a fixed work-item column followed by the eighteen
   06:00–24:00 hour columns.  Header and rows therefore have one shared edge. */
body .capacity-timeline-grid.day {
  --capacity-day-label-column:246px;
  display:grid!important;
  grid-template-columns:var(--capacity-day-label-column) repeat(18,minmax(0,1fr))!important
}

body .capacity-timeline-grid.day .capacity-timeline-corner {
  grid-column:1!important;
  min-width:0!important
}

body .capacity-timeline-grid.day .capacity-timeline-hour-head {
  grid-column:2 / -1!important;
  display:grid!important;
  grid-template-columns:repeat(18,minmax(0,1fr))!important
}

body .capacity-timeline-grid.day .capacity-timeline-row {
  display:contents!important
}

body .capacity-timeline-grid.day .capacity-timeline-label {
  grid-column:1!important;
  min-width:0!important
}

body .capacity-timeline-grid.day .capacity-timeline-day-track {
  grid-column:2 / -1!important;
  display:grid!important;
  grid-template-columns:repeat(18,minmax(0,1fr))!important;
  min-width:0!important
}

body .capacity-timeline-grid.day .capacity-timeline-group-head {
  grid-column:1 / -1!important
}

/* Capacity totals use the timeline's blue information color; red still signals overload. */
.capacity-timeline-day-head strong {
  color:#c5cbd6
}

.capacity-timeline-summary-line strong {
  font-size:8px;
  font-weight:500
}

.capacity-timeline-capacity-metric>span {
  font-size:9px
}

.capacity-timeline-summary-line {
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0
}

.capacity-timeline-summary-line strong {
  min-width:0;
  white-space:nowrap
}

.capacity-percentage {
  display:grid;
  place-items:center;
  min-width:32px;
  min-height:21px;
  padding:2px 5px;
  border:1px solid;
  border-radius:5px;
  background:transparent!important;
  font-size:9px;
  font-weight:750;
  line-height:1
}

.capacity-percentage.booked {
  border-color:color-mix(in srgb,var(--capacity-project) 75%,var(--line));
  color:#ffd18d
}

.capacity-percentage.personal {
  border-color:color-mix(in srgb,var(--capacity-personal-plan) 75%,var(--line));
  color:#dfc0f3
}

.capacity-timeline-day-head {
  position:relative
}

.capacity-timeline-day-head .capacity-percentage {
  position:absolute;
  top:6px
}

.capacity-timeline-day-head .capacity-percentage.personal {
  right:7px
}

.capacity-timeline-day-head .capacity-percentage.booked {
  right:45px
}

/* Compact, colour-coded counts keep every delivery lane scannable. */
.agile-lanes section[data-agile-lane]>header>b {
  display:grid;
  place-items:center;
  flex:0 0 auto;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border:1px solid color-mix(in srgb,#579bfc 58%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,#579bfc 16%,var(--paper));
  color:#a9cbff;
  font-size:10px;
  font-variant-numeric:tabular-nums;
  line-height:1
}

.agile-lanes section[data-agile-lane="current"]>header>b {
  border-color:color-mix(in srgb,#ffb44d 60%,var(--line));
  background:color-mix(in srgb,#ffb44d 15%,var(--paper));
  color:#ffd18d
}

.agile-lanes section[data-agile-lane="on_hold"]>header>b {
  border-color:color-mix(in srgb,#b778e7 60%,var(--line));
  background:color-mix(in srgb,#b778e7 15%,var(--paper));
  color:#ddbcfa
}

.agile-lanes section[data-agile-lane="done"]>header>b {
  border-color:color-mix(in srgb,#00c875 55%,var(--line));
  background:color-mix(in srgb,#00c875 13%,var(--paper));
  color:#9be0ba
}

/* V-Stack refinement: communicate the move affordance without repeating every label. */
.capacity-v-stack-day .capacity-demand-task {
  grid-template-columns:7px minmax(0,1fr) auto 12px
}

.capacity-v-stack-day .capacity-demand-task::after {
  content:'⠿';
  align-self:center;
  color:color-mix(in srgb,var(--muted) 74%,transparent);
  font-size:12px;
  letter-spacing:-3px;
  line-height:1
}

.capacity-v-stack-day .capacity-demand-task:hover::after {
  color:#a9cbff
}

.capacity-v-stack-day .capacity-demand-task.single small {
  display:none
}

.capacity-v-stack-day.over {
  border-top:3px solid #e2445c
}

.capacity-v-stack-day.over>header>strong {
  font-weight:800
}

/* Full capacity composition: Book subtracts from Work; Used subtracts from Free. */
.capacity-v-stack>header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px
}

.capacity-v-stack-key {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px 10px;
  color:var(--muted);
  font-size:8px
}

.capacity-v-stack-key span {
  display:flex;
  align-items:center;
  gap:4px
}

.capacity-v-stack-key i {
  width:7px;
  height:7px;
  border-radius:2px
}

.capacity-v-stack-rail {
  display:flex;
  height:10px
}

.capacity-v-stack-rail i {
  display:block;
  flex:0 0 auto;
  height:100%;
  border-radius:0
}

.capacity-v-stack-rail i:first-child {
  border-radius:999px 0 0 999px
}

.capacity-v-stack-rail i:last-child {
  border-radius:0 999px 999px 0
}

.capacity-v-stack-rail .book,.capacity-v-stack-key .book i {
  background:var(--capacity-project)
}

.capacity-v-stack-rail .work,.capacity-v-stack-key .work i {
  background:var(--capacity-workday)
}

.capacity-v-stack-rail .transit,.capacity-v-stack-key .transit i {
  background:var(--capacity-transit)
}

.capacity-v-stack-rail .free,.capacity-v-stack-key .free i {
  background:var(--capacity-free)
}

.capacity-v-stack-rail .used,.capacity-v-stack-key .used i {
  background:var(--capacity-personal-plan)
}

.capacity-v-stack-rail .over {
  background:#e2445c
}

@media(max-width:760px) {
  .capacity-v-stack>header {
    align-items:flex-start;
    flex-direction:column
  }
  .capacity-v-stack-key {
    justify-content:flex-start
  }
}

/* Keep the key scannable in one line and make creation an anchored column action. */
.capacity-v-stack>header>.capacity-v-stack-key {
  display:flex;
  flex:none;
  flex-wrap:nowrap;
  white-space:nowrap
}

.capacity-v-stack-day>.capacity-add-task {
  align-self:flex-end;
  margin-top:auto
}

.capacity-v-stack-day>.capacity-drop-hint {
  margin-bottom:0
}

@media(max-width:760px) {
  .capacity-v-stack>header>.capacity-v-stack-key {
    max-width:100%;
    overflow-x:auto
  }
  .capacity-v-stack-day>.capacity-add-task {
    align-self:flex-end
  }
}

/* Match Timeline semantics: booked project work is orange; MySolo personal work is purple. */
.capacity-v-stack-day .capacity-demand-task.project {
  border-color:color-mix(in srgb,var(--capacity-project) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-project) 16%,var(--canvas))!important
}

.capacity-v-stack-day .capacity-demand-task.single {
  border-color:color-mix(in srgb,var(--capacity-personal-plan) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-personal-plan) 16%,var(--canvas))!important
}

.capacity-v-stack-day .capacity-demand-task>i.project {
  background:var(--capacity-project)!important
}

.capacity-v-stack-day .capacity-demand-task>i.single {
  background:var(--capacity-personal-plan)!important
}

/* Context, not project membership, decides capacity semantics. */
.capacity-v-stack-day .capacity-demand-task.capacity-booked {
  border-color:color-mix(in srgb,var(--capacity-project) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-project) 16%,var(--canvas))!important
}

.capacity-v-stack-day .capacity-demand-task.capacity-personal-plan {
  border-color:color-mix(in srgb,var(--capacity-personal-plan) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-personal-plan) 16%,var(--canvas))!important
}

.capacity-v-stack-day .capacity-demand-task.capacity-booked>i {
  background:var(--capacity-project)!important
}

.capacity-v-stack-day .capacity-demand-task.capacity-personal-plan>i {
  background:var(--capacity-personal-plan)!important
}

.capacity-v-stack-day .capacity-demand-task b {
  font-size:9px!important
}

.capacity-unscheduled .capacity-demand-task.capacity-booked {
  border-color:color-mix(in srgb,var(--capacity-project) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-project) 22%,transparent)!important
}

.capacity-unscheduled .capacity-demand-task.capacity-personal-plan {
  border-color:color-mix(in srgb,var(--capacity-personal-plan) 76%,var(--line))!important;
  background:color-mix(in srgb,var(--capacity-personal-plan) 22%,transparent)!important
}

.capacity-unscheduled .capacity-demand-task.capacity-booked>i {
  background:var(--capacity-project)!important
}

.capacity-unscheduled .capacity-demand-task.capacity-personal-plan>i {
  background:var(--capacity-personal-plan)!important
}

/* The grip leads the card, so dragging reads as the first available action. */
.capacity-v-stack-day .capacity-demand-task {
  grid-template-columns:12px 7px minmax(0,1fr) auto
}

.capacity-v-stack-day .capacity-demand-task::after {
  grid-column:1;
  grid-row:1
}

.capacity-v-stack-day .capacity-demand-task>i {
  grid-column:2;
  grid-row:1
}

.capacity-v-stack-day .capacity-demand-task>span {
  grid-column:3;
  grid-row:1
}

.capacity-v-stack-day .capacity-demand-task>strong {
  grid-column:4;
  grid-row:1
}

/* V-Stack card hierarchy: time first, then context, below each task title. */
.capacity-v-stack-day .capacity-demand-task.single small {
  display:block
}

.capacity-v-stack-day .capacity-demand-task small {
  font-variant-numeric:tabular-nums
}

/* Recurrence is neutral metadata on a pullable capacity card. */
.capacity-v-stack-day .recurrence-marker {
  color:#fff
}

.capacity-v-stack-day .capacity-demand-task {
  grid-template-columns:10px minmax(0,1fr)!important;
  align-items:center
}

.capacity-v-stack-day .capacity-demand-task::after {
  display:none
}

.capacity-v-stack-check {
  grid-column:1;
  grid-row:1;
  align-self:start;
  width:10px!important;
  height:10px!important;
  margin:3px 0 0!important;
  accent-color:#579bfc;
  cursor:pointer
}

.capacity-v-stack-day .capacity-demand-open {
  grid-column:2;
  grid-row:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  align-items:center;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer
}

.capacity-v-stack-day .capacity-demand-open>span {
  display:grid;
  gap:2px;
  min-width:0
}

.capacity-v-stack-title {
  display:flex;
  align-items:center;
  min-width:0
}

.capacity-v-stack-title>b {
  flex:1;
  min-width:0
}

.capacity-v-stack-day .capacity-demand-open strong {
  padding:3px 5px;
  border-radius:4px;
  background:rgba(255,255,255,.055);
  font-size:9px;
  white-space:nowrap
}

.capacity-v-stack-day .capacity-demand-task.complete .capacity-demand-open {
  opacity:.72
}

/* Six-star (urgent, five-star) work keeps its priority signal in the V-Stack. */
.capacity-v-stack-day .capacity-demand-task.six-star-task {
  border-color:#ff82b6!important;
  background:rgba(255,96,159,.16)!important
}

.capacity-v-stack-day .capacity-demand-task.six-star-task .popular-star-badge {
  flex:0 0 auto;
  margin-left:4px;
  padding:1px 3px;
  font-size:7px;
  vertical-align:1px
}

/* V-Stack keeps its workspace focused; show destination feedback only while moving work. */
.capacity-view-toolbar.vstack .capacity-view-boundary {
  display:none
}

.capacity-v-stack-day>.capacity-drop-hint {
  display:none
}

.capacity-v-stack-day.drag-over>.capacity-drop-hint {
  display:block
}

/* The two availability measures need to stay legible at the top of a narrow day column. */
.capacity-v-stack-day>header>strong.availability {
  display:grid;
  gap:3px;
  min-width:84px;
  padding:4px 6px!important;
  border:0;
  border-radius:0;
  background:#1d2742!important;
  color:#79b9ff!important;
  font-size:9px;
  font-style:normal!important;
  font-weight:400!important;
  line-height:1.2;
  text-align:right;
  text-shadow:none;
  text-transform:lowercase!important
}

.capacity-v-stack-day>header>strong.availability span {
  display:block;
  padding:0!important;
  background:transparent!important;
  color:inherit!important;
  font-weight:400!important;
  text-transform:lowercase!important
}

.capacity-v-stack-day>header>strong.availability span:last-child {
  color:var(--capacity-free)!important;
  font-weight:400!important
}

.landing-capacity-report .capacity-balance-booked {
  color:var(--capacity-project)
}

.landing-capacity-report .capacity-balance-work {
  color:var(--capacity-workday)
}

.landing-capacity-report .agile-capacity-day header {
  position:relative;
  padding-right:36px
}

.landing-capacity-report .today-capacity-booked-percentage {
  position:absolute;
  top:0;
  right:0;
  display:grid;
  place-items:center;
  min-width:29px;
  height:21px;
  padding:2px 5px;
  border:1px solid color-mix(in srgb,var(--capacity-project) 75%,var(--line));
  border-radius:5px;
  color:#ffd18d;
  font-size:9px;
  font-weight:750;
  line-height:1
}

.landing-capacity-report .today-capacity-booked-percentage.is-zero {
  border-color:#596176;
  color:#8c95a8
}

/* MyCapacity treats unused work and free time as quiet, neutral capacity. */
.my-capacity.timeline-view:has(.capacity-timeline-grid.week) {
  --capacity-workday:#aeb6c3;
  --capacity-free:#aeb6c3
}

.my-capacity.timeline-view .capacity-timeline-grid.week .capacity-timeline-capacity-metric>span em {
  color:#7b8494!important
}

/* Final day-ruler contract: every position is measured from the same 06:00–24:00 track. */
.capacity-timeline-grid.day .capacity-timeline-day-track .capacity-timeline-bar {
  left:var(--capacity-left)!important;
  width:var(--capacity-width)!important;
  max-width:calc(100% - var(--capacity-left))!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head {
  position:relative!important;
  display:block!important;
  background:repeating-linear-gradient(90deg,var(--paper) 0,var(--paper) calc(var(--capacity-hour-share) - 1px),var(--line) calc(var(--capacity-hour-share) - 1px),var(--line) var(--capacity-hour-share))!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span {
  position:absolute!important;
  top:50%!important;
  left:var(--capacity-hour-position)!important;
  transform:translate(-50%,-50%)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span:first-child {
  transform:translate(0,-50%)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head span:last-child {
  right:auto!important;
  transform:translate(-100%,-50%)!important
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--capacity-hour-share) - 1px),color-mix(in srgb,var(--line) 72%,transparent) calc(var(--capacity-hour-share) - 1px),color-mix(in srgb,var(--line) 72%,transparent) var(--capacity-hour-share))!important
}

/* One structural 18-column ruler for both the header and every day row. */
.capacity-timeline-grid.day .capacity-timeline-hour-head {
  display:grid!important;
  grid-template-columns:repeat(18,minmax(0,1fr));
  position:relative!important;
  min-height:38px;
  padding:0!important;
  overflow:visible;
  background:var(--paper)!important
}

.capacity-timeline-grid.day .capacity-timeline-hour-head::before {
  position:absolute;
  inset:0;
  z-index:0;
  content:'';
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / 18 - 1px),var(--line) calc(100% / 18 - 1px),var(--line) calc(100% / 18))
}

.capacity-timeline-grid.day .capacity-timeline-hour-head .capacity-timeline-hour-tick {
  position:relative!important;
  z-index:1;
  top:auto!important;
  left:auto!important;
  align-self:center;
  justify-self:start;
  margin:0;
  transform:translateX(-1px)!important;
  color:color-mix(in srgb,var(--ink) 84%,var(--muted))!important;
  font-size:9px;
  line-height:1;
  white-space:nowrap
}

.capacity-timeline-grid.day .capacity-timeline-hour-head .capacity-timeline-hour-tick.end {
  position:absolute!important;
  top:50%!important;
  right:0!important;
  left:auto!important;
  transform:translate(0,-50%)!important
}

.capacity-timeline-grid.day .capacity-timeline-day-track {
  display:grid!important;
  grid-template-columns:repeat(18,minmax(0,1fr));
  position:relative;
  background:none!important
}

.capacity-timeline-grid.day .capacity-timeline-gridlines {
  display:grid;
  grid-column:1 / -1;
  grid-row:1;
  grid-template-columns:subgrid;
  z-index:0;
  pointer-events:none
}

.capacity-timeline-grid.day .capacity-timeline-gridlines>i {
  border-left:1px solid color-mix(in srgb,var(--line) 72%,transparent)
}

.capacity-timeline-grid.day .capacity-timeline-gridlines>i:last-child {
  border-right:1px solid color-mix(in srgb,var(--line) 72%,transparent)
}

.capacity-timeline-grid.day .capacity-timeline-day-track .capacity-timeline-bar {
  position:relative!important;
  z-index:1;
  top:auto!important;
  left:auto!important;
  width:auto!important;
  max-width:none!important;
  align-self:start;
  margin-top:10px
}

/* Day timeline rebuild: one quiet day strip, one concise capacity summary,
   and one shared 06:00–24:00 task ruler. */
.capacity-timeline:has(.capacity-timeline-grid.day) {
  gap:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  overflow:hidden
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-picker {
  display:grid;
  width:100%;
  grid-template-columns:repeat(7,minmax(0,1fr));
  padding:7px 10px 0;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:color-mix(in srgb,var(--canvas) 72%,var(--paper));
  overflow:visible
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-picker button {
  min-height:42px;
  padding:7px 8px;
  border:0!important;
  border-radius:7px 7px 0 0;
  background:transparent;
  color:var(--muted);
  font-size:10px
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-picker button.active {
  border:1px solid var(--line)!important;
  border-bottom-color:var(--paper)!important;
  border-top:2px solid #78adfa!important;
  background:var(--paper);
  color:var(--ink)
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-picker button.active small {
  display:block;
  color:#a9cbff
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-capacity {
  padding:12px 16px;
  border:0;
  border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);
  background:color-mix(in srgb,var(--paper) 92%,var(--canvas))
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-summary-heading {
  margin-bottom:9px
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-key {
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px;
  margin:0
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-key span {
  min-height:34px;
  padding:5px 7px;
  background:transparent
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-key span i {
  height:18px
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-key span b {
  font-size:11px
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-rail {
  display:none
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-schedule-heading {
  padding:9px 14px 8px;
  background:color-mix(in srgb,var(--canvas) 56%,var(--paper))
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-grid.day {
  border:0;
  border-radius:0;
  background:transparent
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-corner {
  min-height:38px;
  height:38px;
  padding:0 12px;
  background:var(--paper)
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-track {
  min-height:52px;
  background:transparent!important
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-track .capacity-timeline-bar {
  align-self:start;
  margin-top:10px
}

/* Day slots use the same explicit divider strength as the week columns. */
.capacity-timeline-grid.day .capacity-timeline-gridlines>i {
  border-left:1px solid color-mix(in srgb,var(--line) 74%,transparent)!important
}

.capacity-timeline-grid.day .capacity-timeline-gridlines>i:last-child {
  border-right:1px solid color-mix(in srgb,var(--line) 74%,transparent)!important
}

/* Unlike week cells, day slots share one row track. Draw those cell edges on
   the track itself so they remain visible through the complete row height. */
.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-grid.day .capacity-timeline-day-track {
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / 18 - 1px),color-mix(in srgb,var(--line) 74%,transparent) calc(100% / 18 - 1px),color-mix(in srgb,var(--line) 74%,transparent) calc(100% / 18))!important
}

/* MyCapacity mirrors MyGantt: drag the bar body to move it, its end to resize. */
.capacity-timeline-grid.day .capacity-timeline-bar[data-capacity-resizable] {
  grid-template-columns:12px minmax(0,1fr) 12px!important
}

.capacity-timeline-grid.day .capacity-demand-task.capacity-timeline-bar>i.capacity-resize-handle {
  display:grid!important;
  place-items:center;
  align-self:stretch;
  justify-self:stretch;
  width:12px!important;
  height:auto!important;
  margin:0 -6px 0 0;
  border-left:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.08)!important;
  color:rgba(255,255,255,.8);
  cursor:ew-resize;
  touch-action:none
}

.capacity-timeline-grid.day .capacity-resize-handle::after {
  content:'⋮';
  font-size:12px;
  font-style:normal;
  line-height:1
}

.capacity-timeline-grid.day .capacity-resize-handle:hover,.capacity-timeline-grid.day .capacity-resize-handle:focus-visible {
  background:rgba(255,255,255,.22)!important;
  outline:none
}

/* Capacity uses the same quiet move/stretch vocabulary as the date timelines. */
.capacity-timeline-grid.day .capacity-timeline-bar[data-capacity-resizable] {
  position:relative;
  overflow:visible;
  border:1px solid transparent!important;
  transition:border-color .12s ease,filter .12s ease,box-shadow .12s ease
}

.capacity-timeline-grid.day .capacity-timeline-bar[data-capacity-resizable]:hover,.capacity-timeline-grid.day .capacity-timeline-bar[data-capacity-resizable]:focus-visible,.capacity-timeline-grid.day .capacity-timeline-bar.capacity-stretching {
  border-color:rgba(205,232,255,.86)!important;
  filter:brightness(1.08);
  box-shadow:0 0 0 1px rgba(104,180,255,.68),0 4px 12px rgba(0,0,0,.24);
  outline:none
}

.capacity-timeline-grid.day .capacity-timeline-bar[data-capacity-resizable] .capacity-resize-handle {
  opacity:0;
  transition:opacity .12s ease,background .12s ease
}

.capacity-timeline-grid.day .capacity-timeline-bar[data-capacity-resizable]:hover .capacity-resize-handle,.capacity-timeline-grid.day .capacity-timeline-bar[data-capacity-resizable]:focus-visible .capacity-resize-handle,.capacity-timeline-grid.day .capacity-timeline-bar.capacity-stretching .capacity-resize-handle {
  opacity:1
}

/* MyCapacity day view is an allocation board, not a spreadsheet. Keep the
   one-hour placement model, but show a quieter two-hour reading rhythm. */
.my-capacity.timeline-view .page-title-with-control {
  column-gap:18px;
  row-gap:8px;
  line-height:1.1
}

.my-capacity.timeline-view .capacity-week-navigation {
  flex:0 0 auto
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-summary-heading span {
  display:none
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-summary-heading {
  margin-bottom:7px
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-schedule-heading {
  min-height:32px;
  padding-block:7px;
  border-top:0
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-schedule-heading small {
  color:color-mix(in srgb,var(--muted) 72%,transparent)
}

.capacity-timeline-grid.day .capacity-timeline-hour-head .capacity-timeline-hour-tick:nth-child(even) {
  visibility:hidden
}

.capacity-timeline-grid.day .capacity-timeline-gridlines>i:nth-child(even) {
  border-left-color:transparent!important
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-grid.day .capacity-timeline-day-track {
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / 9 - 1px),color-mix(in srgb,var(--line) 68%,transparent) calc(100% / 9 - 1px),color-mix(in srgb,var(--line) 68%,transparent) calc(100% / 9))!important
}

/* The day view is an hourly schedule: every hour gets both a label and a
   guide line, from 06:00 through the 24:00 boundary. */
.capacity-timeline-grid.day .capacity-timeline-hour-head .capacity-timeline-hour-tick:nth-child(even) {
  visibility:visible
}

.capacity-timeline-grid.day .capacity-timeline-gridlines>i:nth-child(even) {
  border-left-color:color-mix(in srgb,var(--line) 74%,transparent)!important
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-grid.day .capacity-timeline-day-track {
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / 18 - 1px),color-mix(in srgb,var(--line) 74%,transparent) calc(100% / 18 - 1px),color-mix(in srgb,var(--line) 74%,transparent) calc(100% / 18))!important
}

/* The track background supplies the continuous hourly rules. Hide the
   redundant grid overlay, which can leave short tick artefacts at row edges. */
.capacity-timeline-grid.day .capacity-timeline-gridlines {
  display:none!important
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-day-track {
  min-height:50px
}

/* Keep the time guides in the task lanes; the quieter two-hour rhythm above
   still prevents the board from reading like a dense spreadsheet. */
.capacity-timeline-grid.day .capacity-timeline-gridlines {
  display:grid!important
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-grid.day .capacity-timeline-day-track {
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / 9 - 1px),color-mix(in srgb,var(--line) 68%,transparent) calc(100% / 9 - 1px),color-mix(in srgb,var(--line) 68%,transparent) calc(100% / 9))!important
}

/* This must follow the legacy grid overlay rule above. */
.capacity-timeline-grid.day .capacity-timeline-gridlines {
  display:none!important
}

.capacity-timeline:has(.capacity-timeline-grid.day) .capacity-timeline-grid.day .capacity-timeline-day-track {
  background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / 18 - 1px),color-mix(in srgb,var(--line) 74%,transparent) calc(100% / 18 - 1px),color-mix(in srgb,var(--line) 74%,transparent) calc(100% / 18))!important
}

.capacity-stretch-preview {
  position:absolute;
  z-index:7;
  top:-28px;
  right:-4px;
  min-width:max-content;
  padding:4px 6px;
  border:1px dashed #76b8ff;
  border-radius:4px;
  background:#1f3656;
  color:#edf7ff;
  font-size:9px;
  font-weight:750;
  line-height:1;
  white-space:nowrap;
  pointer-events:none;
  box-shadow:0 4px 12px rgba(0,0,0,.25)
}

/* Commitments are informational links, so their rows do not carry a task checkbox. */
.today-commitment-group .agenda-row--markerless {
  grid-template-columns:minmax(0,1fr)
}

.today-commitment-group .agenda-row--markerless .today-action-open {
  text-align:left
}

.today-commitment-group .agenda-row--markerless .agenda-meta {
  grid-column:1
}

/* Keep project and initiative context legible above their nested commitments. */
.today-project-commitment b {
  font-size:12px
}

.today-project-commitment small {
  font-size:9px
}

.today-project-work button,.today-project-work-link {
  font-size:10px
}

.today-project-work {
  gap:4px
}

/* A project child carries the same importance and status context as MySolo work. */
.today-project-work button>.today-project-work-copy {
  display:grid;
  gap:2px;
  min-width:0;
  flex:1
}

.today-project-work-copy>span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.today-project-work-copy small {
  color:var(--muted);
  font-size:8px;
  font-weight:700
}

/* Preserve a small visual separation between task metadata and its title. */
.agile-item>div:nth-child(2) {
  gap:7px
}

.agile-item>div:nth-child(2)>b {
  order:1
}

.agile-item>div:nth-child(2)>span {
  order:2
}

.agile-workspace .agile-lanes section[data-agile-lane] .agile-item>div:nth-child(2) {
  gap:7px
}

/* Part B occurrence completion control. */
.today-commitment-group .today-commitment-row {
  grid-template-columns:9px minmax(0,1fr);
  gap:3px;
  align-items:start;
  cursor:default
}

.today-commitment-row .today-commitment-check {
  grid-column:1;
  grid-row:1;
}

.today-commitment-row .today-commitment-check:disabled {
  cursor:default;
  opacity:1
}

.today-commitment-row .today-commitment-open {
  grid-column:2;
  grid-row:1;
  display:grid;
  width:100%;
  gap:2px;
  min-width:0;
  border:0;
  background:transparent;
  color:var(--ink);
  padding:0;
  margin-left:-7px;
  text-align:left;
  cursor:pointer
}

.today-commitment-row .today-commitment-meta {
  grid-column:2;
  grid-row:2;
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  margin-left:-7px;
  white-space:nowrap
}

.today-commitment-row .today-commitment-meta .today-project-work-call {
  color:#579bfc;
  font-size:8px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap
}

.today-commitment-row .today-commitment-meta .today-project-work-call:hover {
  text-decoration:underline
}

.today-project-work-entry-meta {
  grid-column:1;
  grid-row:2;
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  white-space:nowrap
}

.today-project-work-entry-meta .today-project-work-call {
  color:#579bfc
}

.today-commitment-group .today-commitment-metadata {
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap
}

.today-commitment-meta-open {
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer
}

.today-commitment-group .today-commitment-metadata .today-call-link {
  margin-left:5px;
  color:#579bfc;
  font-size:8px;
  font-weight:700
}

.today-commitment-row.complete .today-commitment-open {
  opacity:.72
}

.today-attention-rail .agenda-row {
  align-items:start
}

.today-due-item {
  align-items:start;
  gap:7px
}

.today-due-check {
  flex:0 0 auto
}

.today-project-work-row {
  display:grid;
  grid-template-columns:9px minmax(0,1fr);
  gap:3px;
  align-items:start
}

.today-project-work-row>button {
  margin-left:-7px
}

/* Keep every MyToday completion control on the same title-line baseline. */
.today-commitment-check,.today-attention-check,.today-due-check,.today-initiative-work-check,.today-project-check {
  appearance:auto!important;
  width:9px!important;
  height:9px!important;
  accent-color:var(--green);
  margin:3px 0 0!important;
  cursor:pointer
}

.today-due-check {
  margin-top:8px!important
}

.today-attention-rail .agenda-row--markerless {
  grid-template-columns:minmax(0,1fr)
}

.today-attention-rail .agenda-row--markerless .agenda-meta {
  grid-column:1;
  justify-items:start
}

/* Task completion controls are siblings of their task button, so browsers retain the intended grid. */
.today-action-row>.today-action-open {
  display:contents
}

.today-action-row>.today-action-open>span:first-child {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0
}

.today-attention-rail .today-action-row {
  grid-template-columns:17px minmax(0,1fr) auto
}

.today-attention-rail .today-action-row>.today-action-open>span:first-child {
  grid-column:2;
  grid-row:1
}

.today-attention-rail .today-action-row .agenda-meta {
  grid-column:3;
  grid-row:1;
  display:grid;
  align-content:start;
  justify-items:end;
  gap:3px;
  min-width:62px
}

/* Week and month add an inclusion reason; keep its due/status metadata beside it. */
.today-action-layout:is(.today-scope-week,.today-scope-month) .today-attention-rail .agenda-row:not(.agenda-row--markerless) {
  grid-template-columns:17px minmax(0,1fr) auto
}

.today-action-layout:is(.today-scope-week,.today-scope-month) .today-attention-rail .today-action-open>span:first-child {
  grid-column:2;
  grid-row:1
}

.today-action-layout:is(.today-scope-week,.today-scope-month) .today-attention-rail .agenda-row:not(.agenda-row--markerless) .agenda-meta {
  grid-column:3;
  grid-row:1;
  display:grid;
  align-content:start;
  justify-items:end;
  gap:3px;
  min-width:62px
}

.today-action-layout:is(.today-scope-week,.today-scope-month) .today-attention-rail .agenda-row--markerless {
  grid-template-columns:minmax(0,1fr) auto
}

.today-action-layout:is(.today-scope-week,.today-scope-month) .today-attention-rail .agenda-row--markerless .agenda-meta {
  grid-column:2;
  grid-row:1;
  display:grid;
  align-content:start;
  justify-items:end;
  gap:3px;
  min-width:62px
}

/* Attention is its own decision item, not a variant of the shared agenda row. */
.today-attention-item {
  display:grid;
  grid-template-columns:15px minmax(0,1fr);
  align-items:start;
  gap:7px;
  padding:8px 4px;
  border-top:1px solid var(--line)
}

.today-attention-item.is-read-only {
  grid-template-columns:minmax(0,1fr)
}

.today-attention-item:first-child {
  border-top:0
}

.today-attention-item:hover {
  border-radius:6px;
  background:var(--green-soft)
}

.today-attention-open {
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer
}

.today-attention-copy {
  display:grid;
  gap:2px;
  min-width:0
}

.today-attention-copy b {
  overflow:hidden;
  font-size:11px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap
}

.today-attention-copy small {
  color:var(--muted);
  font-size:8px;
  font-weight:700;
  line-height:1.3
}

/* Empty MySolo Gantt slots offer creation without permanently crowding the timeline. */
.gantt-track.gantt-create-hover::after {
  position:absolute;
  z-index:3;
  top:5px;
  bottom:5px;
  left:var(--gantt-create-left);
  width:var(--gantt-create-width);
  display:grid;
  place-items:center;
  box-sizing:border-box;
  border:1px solid color-mix(in srgb,#78adfa 78%,transparent);
  border-radius:4px;
  background:color-mix(in srgb,#78adfa 20%,transparent);
  color:#dbeaff;
  content:'+ Create';
  cursor:pointer;
  font-size:8px;
  font-weight:400;
  white-space:nowrap;
  pointer-events:none;
}

/* Calendar retains one real per-day control, but speaks the same quiet
   creation language as the date timelines. Keyboard focus reveals it too. */
.calendar-day .calendar-create-slot {
  min-height:20px;
  padding:2px 5px;
  border:1px solid color-mix(in srgb,#78adfa 72%,transparent);
  border-radius:4px;
  background:color-mix(in srgb,#78adfa 13%,transparent);
  color:#dbeaff;
  cursor:pointer;
  font:inherit;
  font-size:8px;
  font-weight:400;
  opacity:0;
  transition:opacity .12s ease,background .12s ease;
}

.calendar-day:hover .calendar-create-slot,
.calendar-day:focus-within .calendar-create-slot,
.calendar-day .calendar-create-slot:focus-visible {
  opacity:1;
}

.calendar-day .calendar-create-slot:hover,
.calendar-day .calendar-create-slot:focus-visible {
  background:color-mix(in srgb,#78adfa 24%,transparent);
  outline:none;
}

/* Capacity ToDos are local soft-demand reservations. Keep their silver hatch
   above the ordinary personal/project colour rules; promoted records no
   longer carry this id or class and therefore render as normal Tasks. */
.my-capacity .capacity-timeline .capacity-demand-task.capacity-timeline-bar.capacity-todo,
.my-capacity .capacity-timeline .capacity-demand-task.capacity-timeline-bar[data-task-id^="capacity-todo:"] {
  border-color:rgba(201,208,220,.58)!important;
  background:repeating-linear-gradient(-45deg,rgba(221,226,235,.46) 0 1px,rgba(132,142,158,.18) 1px 4px)!important;
}

.my-capacity .capacity-timeline .capacity-demand-task.capacity-timeline-bar.capacity-todo>i,
.my-capacity .capacity-timeline .capacity-demand-task.capacity-timeline-bar[data-task-id^="capacity-todo:"]>i {
  background:#d7dce5!important;
}

/* The colour mode (light/dark) and visual style are independent preferences. */
.style-theme-picker {
  min-height:34px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 5px 0 9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-tint,var(--paper));
  color:var(--muted);
  font-size:11px;
  white-space:nowrap
}

.style-theme-picker select {
  min-height:28px;
  padding:0 22px 0 5px;
  border:0;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  font-size:11px;
  font-weight:700
}

html[data-theme="dark"] .style-theme-picker {
  border-color:#444966;
  background:#202641
}

html[data-theme="dark"] .style-theme-picker select {
  color-scheme:dark
}

/* Notion: content-first, monochrome, quiet borders, and almost no elevation. */
html[data-style-theme="notion"] {
  --ink:#37352f;
  --muted:#787774;
  --line:#e3e2df;
  --paper:#fff;
  --canvas:#fff;
  --green:#37352f;
  --green-dark:#191919;
  --green-soft:#f1f1ef;
  --shadow:none;
  --shadow-soft:none;
  --focus-ring:0 0 0 2px rgba(35,131,226,.28);
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

html[data-style-theme="notion"] body,
html[data-style-theme="notion"] .topbar,
html[data-style-theme="notion"] .sidebar {
  background:#fff;
  backdrop-filter:none
}

html[data-style-theme="notion"] .topbar {
  box-shadow:none
}

html[data-style-theme="notion"] .brand-mark {
  border-radius:4px;
  background:#37352f;
  box-shadow:none
}

html[data-style-theme="notion"] .nav-link,
html[data-style-theme="notion"] .nav-tree-header,
html[data-style-theme="notion"] .sidebar-item-row,
html[data-style-theme="notion"] .primary,
html[data-style-theme="notion"] .secondary,
html[data-style-theme="notion"] .search-trigger,
html[data-style-theme="notion"] .theme-toggle,
html[data-style-theme="notion"] .style-theme-picker {
  border-radius:5px;
  box-shadow:none
}

html[data-style-theme="notion"] .nav-link:hover,
html[data-style-theme="notion"] .workspace-switch:hover {
  background:#f1f1ef;
  transform:none
}

html[data-style-theme="notion"] .nav-link.active {
  background:#e9e9e7;
  color:#37352f;
  box-shadow:none
}

html[data-style-theme="notion"] .primary {
  border:1px solid #37352f;
  background:#37352f;
  color:#fff;
  box-shadow:none
}

html[data-style-theme="notion"] .primary:hover {
  background:#191919;
  transform:none;
  box-shadow:none
}

html[data-style-theme="notion"] :is(.feature-panel,.stat-panel,.project-card,.task-table,.knowledge-layout,.inbox-item,.today-section,.module-card,.data-actions,.list-toolbar,.project-view-bar,.modal-card,.detail-pane,.calendar-main,.calendar-unscheduled,.gantt-panel) {
  border-color:#e3e2df;
  border-radius:6px;
  box-shadow:none
}

html[data-style-theme="notion"][data-theme="dark"] {
  --ink:#f1f1ef;
  --muted:#9b9a97;
  --line:#373737;
  --paper:#202020;
  --canvas:#191919;
  --green:#f1f1ef;
  --green-dark:#fff;
  --green-soft:#2f2f2f
}

html[data-style-theme="notion"][data-theme="dark"] body,
html[data-style-theme="notion"][data-theme="dark"] .topbar,
html[data-style-theme="notion"][data-theme="dark"] .sidebar {
  background:#191919;
  border-color:#373737
}

html[data-style-theme="notion"][data-theme="dark"] .brand-mark,
html[data-style-theme="notion"][data-theme="dark"] .primary {
  border-color:#f1f1ef;
  background:#f1f1ef;
  color:#191919
}

html[data-style-theme="notion"][data-theme="dark"] .search-trigger,
html[data-style-theme="notion"][data-theme="dark"] .theme-toggle,
html[data-style-theme="notion"][data-theme="dark"] .style-theme-picker {
  border-color:#373737;
  background:#202020
}

html[data-style-theme="notion"][data-theme="dark"] .nav-link.active {
  background:#2f2f2f;
  color:#f1f1ef
}

/* Neo: neo-brutalist paper, hard outlines, offset shadows, and bold accents. */
html[data-style-theme="neo"] {
  --ink:#171411;
  --muted:#655c52;
  --line:#171411;
  --paper:#fff8ee;
  --canvas:#f4ecdf;
  --green:#c88635;
  --green-dark:#171411;
  --green-soft:#edd8c2;
  --warm:#c88635;
  --red:#c95768;
  --shadow:4px 4px 0 #171411;
  --shadow-soft:4px 4px 0 #171411;
  --focus-ring:0 0 0 3px #d9a7b0;
  font-family:"Arial Narrow","Segoe UI",sans-serif
}

html[data-style-theme="neo"] body {
  background-color:#f4ecdf;
  background-image:linear-gradient(rgba(23,20,17,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(23,20,17,.055) 1px,transparent 1px);
  background-size:32px 32px
}

html[data-style-theme="neo"] .topbar,
html[data-style-theme="neo"] .sidebar {
  border-color:#171411;
  background:#fff8ee;
  backdrop-filter:none
}

html[data-style-theme="neo"] .topbar {
  border-bottom-width:3px;
  box-shadow:none
}

html[data-style-theme="neo"] .sidebar {
  border-right-width:3px
}

html[data-style-theme="neo"] .brand-mark {
  border:2px solid #171411;
  border-radius:0;
  background:#a45fcf;
  color:#171411;
  box-shadow:3px 3px 0 #171411;
  font-weight:900
}

html[data-style-theme="neo"] :is(button,select,input,textarea,.search-trigger,.theme-toggle,.style-theme-picker,.nav-link,.nav-tree-header,.sidebar-item-row,.project-tabs a) {
  border-radius:0
}

html[data-style-theme="neo"] :is(.search-trigger,.theme-toggle,.style-theme-picker,.secondary,.primary,.new-workspace,.tool-button) {
  border:2px solid #171411;
  box-shadow:3px 3px 0 #171411
}

html[data-style-theme="neo"] :is(.search-trigger,.theme-toggle,.style-theme-picker,.secondary) {
  background:#fff8ee;
  color:#171411
}

html[data-style-theme="neo"] .primary {
  background:#c88635;
  color:#171411;
  font-weight:800
}

html[data-style-theme="neo"] :is(.primary,.secondary,.search-trigger,.theme-toggle,.new-workspace,.tool-button):hover {
  transform:translate(2px,2px);
  box-shadow:1px 1px 0 #171411
}

html[data-style-theme="neo"] .nav-link:hover {
  background:#edd8c2;
  transform:none
}

html[data-style-theme="neo"] .nav-link.active {
  border:2px solid #171411;
  background:#c88635;
  color:#171411;
  box-shadow:3px 3px 0 #171411;
  font-weight:900
}

html[data-style-theme="neo"] .page-header h1 {
  color:#171411;
  font-weight:900;
  letter-spacing:-.055em
}

html[data-style-theme="neo"] :is(.feature-panel,.stat-panel,.project-card,.task-table,.knowledge-layout,.inbox-item,.today-section,.module-card,.data-actions,.list-toolbar,.project-view-bar,.modal-card,.detail-pane,.calendar-main,.calendar-unscheduled,.gantt-panel) {
  border:2px solid #171411;
  border-radius:0;
  background:#fff8ee;
  box-shadow:4px 4px 0 #171411
}

html[data-style-theme="neo"] :is(.task-head,.knowledge-list-head,.calendar-weekdays,.gantt-toolbar,.gantt-name-head) {
  border-color:#171411;
  background:#edd8c2
}

html[data-style-theme="neo"] .project-card:hover {
  border-color:#171411;
  box-shadow:6px 6px 0 #171411;
  transform:translate(-2px,-2px)
}

html[data-style-theme="neo"][data-theme="dark"] {
  --ink:#fff8ee;
  --muted:#c8bbad;
  --line:#fff8ee;
  --paper:#2a2622;
  --canvas:#201d1a;
  --green:#e0a250;
  --green-dark:#fff8ee;
  --green-soft:#4a3b2c;
  --shadow:4px 4px 0 #fff8ee;
  --shadow-soft:4px 4px 0 #fff8ee
}

html[data-style-theme="neo"][data-theme="dark"] body {
  background-color:#201d1a;
  background-image:linear-gradient(rgba(255,248,238,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,248,238,.07) 1px,transparent 1px)
}

html[data-style-theme="neo"][data-theme="dark"] .topbar,
html[data-style-theme="neo"][data-theme="dark"] .sidebar,
html[data-style-theme="neo"][data-theme="dark"] :is(.feature-panel,.stat-panel,.project-card,.task-table,.knowledge-layout,.inbox-item,.today-section,.module-card,.data-actions,.list-toolbar,.project-view-bar,.modal-card,.detail-pane,.calendar-main,.calendar-unscheduled,.gantt-panel) {
  border-color:#fff8ee;
  background:#2a2622;
  box-shadow:4px 4px 0 #fff8ee
}

html[data-style-theme="neo"][data-theme="dark"] :is(.search-trigger,.theme-toggle,.style-theme-picker,.secondary,.new-workspace,.tool-button) {
  border-color:#fff8ee;
  background:#2a2622;
  color:#fff8ee;
  box-shadow:3px 3px 0 #fff8ee
}

html[data-style-theme="neo"][data-theme="dark"] .primary,
html[data-style-theme="neo"][data-theme="dark"] .nav-link.active {
  border-color:#fff8ee;
  background:#e0a250;
  color:#171411;
  box-shadow:3px 3px 0 #fff8ee
}

html[data-style-theme="neo"][data-theme="dark"] .page-header h1 {
  color:#fff8ee
}

@media(max-width:1120px) {
  .style-theme-picker>span,
  .saved-indicator {
    display:none
  }
}

@media(max-width:760px) {
  .style-theme-picker {
    margin-left:auto
  }
}
