/* Static presentation adapter for ThingItem / ThingsGroupSection / ViewFilterChip.
   Product properties remain distinct from website brand tokens. */
.organization-section .organization-showcase.org-artwork {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  --org-content-height: 720px;
  margin-top: 64px;
  padding: 60px 24px;
  border: 0;
  border-radius: var(--site-radius-panel);
  background: #dce4d8;
  box-shadow: none;
  overflow: visible;
  --ap-panel: #fff;
  --ap-soft: #f5f5f5;
  --ap-line: #e5e5e5;
  --ap-line-soft: #f0f0f0;
  --ap-muted: #737373;
  --ap-ink: #262626;
  --org-warning-bg: #fffbeb;
  --org-warning-ink: #92400e;
  --org-overdue-bg: #fef2f2;
  --org-overdue-ink: #b91c1c;
}
.org-painting {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--artwork-position, 50%);
  border-radius: inherit;
}
.org-artwork::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgb(255 255 255 / var(--artwork-overlay-opacity, 0.16));
  pointer-events: none;
}
.organization-section .org-artwork .org-panel {
  display: block;
  min-height: 0;
  height: var(--org-content-height);
}
.organization-section .org-artwork .panel-caption {
  position: absolute;
  top: -46px;
  left: 0;
  width: 100%;
  min-height: 32px;
  padding: 0;
  margin: 0;
}
.organization-section .org-artwork .panel-caption p {
  font-size: 14px;
  color: var(--site-text-secondary);
}
.organization-section .org-window {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior-y: auto;
  padding: 28px 32px 32px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: var(--site-radius-panel);
  box-shadow: var(--site-shadow-panel);
}
.org-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.org-window-top > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
}
.org-window-top > span:first-child svg {
  width: 24px;
  height: 24px;
}
.org-window-view {
  font-size: 12px;
  color: var(--ap-muted);
}
.organization-section .org-time-contexts {
  padding: 0;
  margin: 0 0 24px;
  border: 0;
  gap: 8px;
}
.organization-section .org-time-contexts button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 18px;
}
.organization-section .org-time-contexts button small {
  margin: 0 0 0 2px;
  font-size: 11px;
}
.organization-section .org-time-contexts button[aria-pressed="true"] {
  background: var(--ap-ink);
  border-color: var(--ap-ink);
  color: #fff;
}
.organization-section
  .org-time-contexts
  button:not([aria-pressed="true"]):hover {
  background: var(--ap-soft);
}
.organization-section .org-list-body {
  padding: 0;
}
.organization-section .org-list-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  margin: 22px 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.organization-section .org-list-group h4 svg {
  color: var(--ap-muted);
}
.org-list-group h4 small,
.org-board-column h4 small,
.org-quadrant h4 small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ap-muted);
  background: var(--ap-soft);
  border-radius: 4px;
  padding: 2px 6px;
}
.organization-section .org-group-card {
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  overflow: hidden;
}
.org-task {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 12px 25px;
  min-height: 51px;
  color: var(--ap-ink);
  background: var(--ap-panel);
}
.org-task:hover {
  background: #fafafa;
}
.org-task + .org-task {
  border-top: 1px solid var(--ap-line-soft);
}
.org-task-check {
  appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid color-mix(in srgb, var(--ap-ink) 50%, transparent);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.org-task-check:checked {
  background: color-mix(in srgb, var(--ap-ink) 40%, transparent)
    url("assets/org-checkbox-check.svg") center / 12px 12px no-repeat;
  border-color: transparent;
  box-shadow: none;
}
.org-task-check:checked ~ .org-task-title {
  text-decoration: line-through;
  color: var(--ap-muted);
}
.org-task-marker {
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: color-mix(in srgb, var(--ap-ink) 50%, transparent);
}
.org-task-title {
  flex: 1;
  min-width: 120px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}
.org-task-properties {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ap-muted);
}
.org-task-properties > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.org-task-properties svg {
  width: 12px;
  height: 12px;
}
.org-task-tag {
  color: #6b7280;
}
.org-task-due {
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--org-warning-bg);
  color: var(--org-warning-ink);
}
.org-task-due.overdue {
  background: var(--org-overdue-bg);
  color: var(--org-overdue-ink);
}
.org-task-time.overdue {
  color: var(--org-overdue-ink);
}
.org-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.org-board-column {
  min-width: 0;
  padding: 12px;
  background: var(--ap-soft);
  border-radius: 10px;
}
.org-board-column h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin: 0 0 16px;
  font-weight: 600;
}
.org-board-cards {
  display: grid;
  gap: 8px;
}
.org-board-cards .org-task {
  align-items: flex-start;
  row-gap: 4px;
  padding: 12px;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
}
.org-board-cards .org-task-check {
  margin-top: 3px;
}
.org-board-cards .org-task-title {
  min-width: 0;
}
.org-board-cards .org-task-properties {
  flex-basis: 100%;
  margin: 0 0 0 24px;
  gap: 8px;
}
/* Hang the badge background into the gutter so its flag aligns with the title. */
.org-board-cards .org-task-due:first-child {
  margin-inline-start: -7px;
}
.org-quadrants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.org-quadrant {
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.org-quadrant h4 {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--quadrant-bg);
  color: var(--quadrant-ink);
}
.org-quadrant h4 > span {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
}
.org-quadrant-0 {
  --quadrant-bg: #fef2f2;
  --quadrant-ink: #991b1b;
}
.org-quadrant-1 {
  --quadrant-bg: #eff6ff;
  --quadrant-ink: #1e40af;
}
.org-quadrant-2 {
  --quadrant-bg: #fffbeb;
  --quadrant-ink: #92400e;
}
.org-quadrant-3 {
  --quadrant-bg: #f5f5f5;
  --quadrant-ink: #525252;
}
.org-quadrant .org-task {
  padding: 14px 16px;
}
.org-quadrant .org-task-properties {
  flex-basis: 100%;
  margin-left: 25px;
}
@media (max-width: 1080px) {
  .organization-section .organization-showcase.org-artwork {
    padding: 60px 24px;
  }
  .organization-section .org-window {
    padding: 24px;
  }
  .org-board-grid {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-color: auto;
  }
  .org-task-properties {
    flex-basis: 100%;
    margin-left: 25px;
  }
}
@media (max-width: 767px) {
  .organization-section .organization-showcase.org-artwork {
    margin-top: 80px;
    min-height: 0;
  }
  .organization-section .org-artwork .org-panel {
    min-height: 0;
  }
  .organization-section .org-artwork .panel-caption {
    top: -64px;
    min-height: 48px;
  }
  .organization-section .org-artwork .panel-caption p {
    font-size: 13px;
  }
  .organization-section .org-window {
    padding: 18px 12px;
    min-height: 0;
  }
  .org-window-top {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .org-window-top > span:first-child {
    font-size: 18px;
    white-space: nowrap;
  }
  .org-window-view {
    max-width: 110px;
    text-align: right;
    font-size: 11px;
  }
  .organization-section .org-time-contexts {
    gap: 6px;
  }
  .organization-section .org-time-contexts button {
    padding: 5px 8px;
    font-size: 12px;
  }
  .organization-section .org-time-contexts button svg {
    display: none;
  }
  .organization-section .org-group-card {
    border: 0;
    border-radius: 0;
  }
  .org-task {
    padding: 12px 4px;
  }
  .org-task-title {
    font-size: 13px;
  }
  .org-board-grid {
    gap: 12px;
  }
  .org-quadrants {
    gap: 8px;
  }
  .org-board-cards .org-task {
    min-height: 0;
  }
  .org-quadrant .org-task {
    padding: 12px;
  }
}

/* Match the hero artwork frame at its exact mobile breakpoint. */
@media (max-width: 760px) {
  .organization-section .organization-showcase.org-artwork {
    padding: 32px 12px;
  }
}

/* Share the actual hero frame width, not only its outer padding. */
.coach-scene .app-preview,
.organization-section .org-window {
  width: var(--product-scale, 100%);
  max-width: 1100px;
  margin-inline: auto;
}
.org-painting-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  overflow: hidden;
}
.org-painting {
  inset: calc(-3 * var(--artwork-blur, 0px));
  width: calc(100% + 6 * var(--artwork-blur, 0px));
  height: calc(100% + 6 * var(--artwork-blur, 0px));
  filter: blur(var(--artwork-blur, 0px));
}
#org-quadrant .org-window {
  display: flex;
  flex-direction: column;
}
.org-quadrants {
  flex: 1;
  min-height: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.org-quadrant {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.org-quadrant h4 {
  flex: none;
}
.org-quadrant > div {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.org-quadrant .org-task {
  flex-wrap: nowrap;
  padding: 12px;
  min-height: 48px;
}
.org-quadrant .org-task-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.org-quadrant .org-task-properties {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin-left: auto;
  font-size: 10px;
  gap: 6px;
}
.org-quadrant .org-task-tag {
  max-width: 70px;
  overflow: hidden;
}
.org-quadrant .org-task-properties svg {
  flex: none;
}
@media (max-width: 767px) {
  .org-quadrants {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .org-quadrant h4 {
    padding: 8px;
    font-size: 12px;
  }
  .org-quadrant h4 > span {
    display: none;
  }
  .org-quadrant .org-task {
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 8px;
  }
  .org-quadrants .org-quadrant .org-task-title {
    flex: 1 1 0;
    font-size: 12px;
  }
  .org-quadrant .org-task-properties > span {
    max-width: 100%;
    overflow: hidden;
  }
  .org-quadrant .org-task > .org-task-tag {
    display: none;
  }
  .org-quadrant .org-task-properties {
    flex-basis: calc(100% - 22px);
    min-width: 0;
    margin-left: 22px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .org-quadrant .org-task-properties:empty {
    display: none;
  }
  .org-quadrant > div {
    overflow-x: hidden;
  }
  .org-quadrant h4 {
    gap: 4px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .org-quadrant h4 small {
    font-size: 10px;
    padding: 1px 3px;
  }
}

/* Labels follow the title; only time, deadline and progress occupy the right edge. */
.org-task-title {
  flex: 0 1 auto;
}
.org-task > .org-task-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font-size: 11px;
  color: var(--ap-muted);
}
.org-task > .org-task-tag svg {
  width: 12px;
  height: 12px;
}
.org-quadrant h4 {
  background: var(--ap-soft);
  color: var(--ap-ink);
}
.org-quadrant .org-task-title {
  flex: 0 1 auto;
}
.org-board-cards .org-task-title {
  flex: 1;
}
.org-board-cards .org-task > .org-task-tag {
  margin-left: 25px;
}

.org-task-marker > svg {
  width: 17px;
  height: 17px;
  flex: none;
  transform: scale(0.95);
  transform-origin: center;
}
.org-task-check:focus-visible {
  outline: 2px solid var(--site-brand);
  outline-offset: 3px;
}

/* ViewFilterChips presentation: reduce density, then collect overflow in “…”. */
.organization-section .org-time-contexts {
  position: relative;
  flex-wrap: nowrap;
  overflow: visible;
}
.organization-section .org-time-contexts > button {
  flex: none;
  white-space: nowrap;
}
.org-time-contexts.is-compact > button small {
  display: none;
}
.org-time-more {
  flex: none;
  margin-left: auto;
}
.org-time-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--ap-muted);
}
.org-time-more summary::-webkit-details-marker {
  display: none;
}
.org-time-more summary:hover,
.org-time-more.is-active summary {
  background: var(--ap-soft);
  color: var(--ap-ink);
}
.org-time-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  background: var(--ap-panel);
  box-shadow: var(--site-shadow-overlay);
}
.organization-section .org-time-menu button {
  justify-content: space-between;
  border: 0;
  background: transparent;
}

.org-board-grid::-webkit-scrollbar {
  height: 6px;
}
.org-board-grid::-webkit-scrollbar-track {
  background: var(--ap-soft);
  border-radius: 3px;
}
.org-board-grid::-webkit-scrollbar-thumb {
  background: var(--ap-line);
  border-radius: 3px;
}

/* The board viewport fills the window so its horizontal bar stays at the bottom. */
#org-board .org-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#org-board .org-window-top {
  flex: none;
}
.org-board-grid {
  flex: 1;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  overflow-x: auto;
  overflow-y: hidden;
}
.org-board-column {
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.org-board-column h4 {
  flex: none;
  margin-bottom: 10px;
}
.org-board-cards {
  min-height: 0;
  overflow-y: auto;
  gap: 6px;
}
.org-board-cards .org-task {
  padding: 9px 10px;
  min-height: 0;
  row-gap: 3px;
}
.org-board-cards .org-task-title {
  line-height: 1.45;
}
.org-board-cards .org-task-check {
  margin-top: 2px;
}
.org-board-cards .org-task-properties {
  flex-basis: calc(100% - 24px);
  margin-left: 24px;
  gap: 6px;
}
/* Explicit columns keep the marker and title together at every width. */
.org-quadrant .org-task {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 4px 8px;
  padding: 10px;
}
.org-quadrant .org-task-check {
  margin-top: 2px;
}
.org-quadrant .org-task-title {
  grid-column: 2;
}
.org-quadrant .org-task-properties {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  flex-wrap: wrap;
}
.org-quadrant .org-task-properties:empty {
  display: none;
}
/* Keep the scrollbar gutter stable; reveal the thumb only during scrolling. */
.organization-section .org-window,
.org-quadrant > div,
.org-board-cards {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.organization-section .org-window.is-scrolling,
.org-quadrant > div.is-scrolling,
.org-board-cards.is-scrolling {
  scrollbar-color: var(--ap-line) transparent;
}
.organization-section .org-window::-webkit-scrollbar,
.org-quadrant > div::-webkit-scrollbar,
.org-board-cards::-webkit-scrollbar {
  width: 5px;
}
.organization-section .org-window::-webkit-scrollbar-thumb,
.org-quadrant > div::-webkit-scrollbar-thumb,
.org-board-cards::-webkit-scrollbar-thumb {
  background: transparent;
}
.organization-section .org-window.is-scrolling::-webkit-scrollbar-thumb,
.org-quadrant > div.is-scrolling::-webkit-scrollbar-thumb,
.org-board-cards.is-scrolling::-webkit-scrollbar-thumb {
  background: var(--ap-line);
  border-radius: 3px;
}
@media (max-width: 767px) {
  .org-quadrant .org-task {
    padding: 9px 8px;
    column-gap: 6px;
  }
}

@media (max-width: 1080px) {
  /* Wrapped list metadata uses the same short second line as board cards. */
  .org-grouped-list .org-task {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 3px 8px;
    min-height: 0;
    padding: 9px 4px;
  }
  .org-grouped-list .org-task-check {
    margin-top: 2px;
  }
  .org-grouped-list .org-task-title {
    grid-column: 2;
    min-width: 0;
    line-height: 1.45;
  }
  .org-grouped-list .org-task > .org-task-tag {
    display: none;
  }
  .org-grouped-list .org-task-properties {
    grid-column: 2;
    margin: 0;
    gap: 6px;
  }
  .org-grouped-list .org-task-properties:empty {
    display: none;
  }
}
