/* TCMO Board Hub — board-only full-width card board */

/* --- App shell (no site chrome) --- */
body.tcmo-ph-app,
body.page-template-page-project-hub,
body.page-template-page-project-hub-php {
  background: #f4f6f8;
  margin: 0;
  /* Self-contained when Materialize / custom-style are dequeued. */
  --ph-bg: #f4f6f8;
  --ph-surface: #fff;
  --ph-ink: #1b2126;
  --ph-muted: #5c6770;
  --ph-faint: #8a929b;
  --ph-hairline: #e4e8ec;
  --ph-accent: #2d6a4f;
  --font-serif: Georgia, "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ph-ink);
  -webkit-font-smoothing: antialiased;
}

body.tcmo-ph-app *,
body.tcmo-ph-app *::before,
body.tcmo-ph-app *::after {
  box-sizing: border-box;
}

body.tcmo-ph-app #container.tcmo-ph-app-shell,
body.page-template-page-project-hub #container.tcmo-ph-app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.tcmo-ph-app .tcmo-ph-app-main,
body.page-template-page-project-hub .tcmo-ph-app-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}

body.tcmo-ph-app .header,
body.tcmo-ph-app .footer,
body.tcmo-ph-app nav.nav-extended,
body.tcmo-ph-app .utility-nav {
  display: none !important;
}

.tcmo-ph {
  --ph-bg: #f4f6f8;
  --ph-surface: #fff;
  --ph-ink: #1b2126;
  --ph-muted: #5c6770;
  --ph-faint: #8a929b;
  --ph-hairline: #e4e8ec;
  --ph-accent: var(--green, #2d6a4f);
  --ph-accent-warm: #a93b30;
  --ph-done: #2c7a57;
  --ph-progress: #2f6e8f;
  --ph-review: #6a53a6;
  --ph-planning: #3b7a8c;
  --ph-ready: #2e856e;
  --ph-promoting: #b85d19;
  --ph-wrapup: #7a5c91;
  --ph-atrisk: #c2791c;
  --ph-blocked: #bf3b33;
  --ph-notstarted: #8a929b;
  --ph-deferred: #5a7a8c;
  --ph-wontcomplete: #8b5a6b;
  --ph-prio-high: #bf3b33;
  --ph-prio-medium: #c2791c;
  --ph-prio-low: #5c6770;
  --ph-mine-bg: #fff4cc;
  --ph-mine-border: #ecd27a;
  --ph-mine-ink: #7a5600;
  --ph-radius: 14px;
  --ph-shadow: 0 1px 2px rgba(20, 30, 40, 0.04), 0 6px 16px rgba(20, 30, 40, 0.05);
  color: var(--ph-ink);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  padding: 0 20px 48px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  background: var(--ph-bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1280px) {
  .tcmo-ph {
    padding-left: 28px;
    padding-right: 28px;
  }
}

body.page-template-page-project-hub .container.tcmo-ph-full,
body.page-template-page-project-hub-php .container.tcmo-ph-full {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.page-template-page-project-hub #main.tcmo-ph-main,
body.page-template-page-project-hub-php #main.tcmo-ph-main {
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
}

body.page-template-page-project-hub article.page h1.page-title,
body.page-template-page-project-hub-php article.page h1.page-title {
  display: none;
}

.tcmo-ph-staging-notice {
  margin: 0 -20px 12px;
  padding: 10px 20px;
  background: #7c2d12;
  color: #fff7ed;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  border-bottom: 3px solid #fde047;
}

.tcmo-ph-staging-notice strong {
  color: #fde047;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tcmo-ph-staging-notice a {
  color: #fde047;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tcmo-ph-staging-notice a:hover,
.tcmo-ph-staging-notice a:focus {
  color: #fff;
}

.tcmo-ph-build-footer {
  margin: 0;
  padding: 0;
  border: 0;
}

.tcmo-ph-build-revision {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tcmo-ph-topbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ph-hairline);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ph-bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
  flex-shrink: 0;
}

.tcmo-ph-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.tcmo-ph-mark {
  font-family: var(--font-serif, Georgia, serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--ph-accent-warm);
  padding-left: 10px;
  line-height: 1;
}

.tcmo-ph-sub {
  font-size: 13px;
  color: var(--ph-muted);
  white-space: nowrap;
}

.tcmo-ph-version-pill {
  appearance: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid var(--ph-hairline);
  background: var(--ph-surface);
  color: var(--ph-muted);
  cursor: pointer;
  line-height: 1.3;
  vertical-align: baseline;
}

.tcmo-ph-version-pill:hover,
.tcmo-ph-version-pill.is-active {
  border-color: var(--ph-accent-warm, var(--ph-accent));
  color: var(--ph-ink);
}

.tcmo-ph-version-pill.is-active {
  background: rgba(26, 95, 58, 0.08);
}

.tcmo-ph-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tcmo-ph-hard-refresh .tcmo-ph-hard-refresh-icon {
  flex-shrink: 0;
}

.tcmo-ph-hard-refresh.is-loading .tcmo-ph-hard-refresh-icon {
  animation: tcmo-ph-btn-spin 0.65s linear infinite;
}

@media (max-width: 900px) {
  .tcmo-ph-hard-refresh-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tcmo-ph-hard-refresh {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

.tcmo-ph-actions .tcmo-ph-icon-btn,
.tcmo-ph-actions .tcmo-ph-activity-bell {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  border-radius: 999px;
}

.tcmo-ph-actions .tcmo-ph-topbar-more {
  display: inline-flex;
  align-items: center;
}

.tcmo-ph-actions .tcmo-ph-topbar-more-btn {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.tcmo-ph-updated {
  font-size: 12px;
  color: var(--ph-faint);
}

.tcmo-ph-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid var(--ph-hairline) !important;
  background: var(--ph-surface) !important;
  color: var(--ph-ink) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 32px !important;
  width: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.tcmo-ph-btn:hover,
.tcmo-ph-btn:focus {
  border-color: #cfd5da !important;
  background: var(--ph-surface) !important;
  color: var(--ph-ink) !important;
  outline: none !important;
}

.tcmo-ph-btn--primary,
.tcmo-ph-btn.tcmo-ph-btn--primary {
  background: #3a9d26 !important;
  border-color: #3a9d26 !important;
  color: #fff !important;
}

.tcmo-ph-btn--primary:hover,
.tcmo-ph-btn--primary:focus {
  background: #266517 !important;
  border-color: #266517 !important;
  color: #fff !important;
  filter: none !important;
}

.tcmo-ph-btn--ghost {
  background: var(--ph-surface) !important;
  color: var(--ph-muted) !important;
}

.tcmo-ph-btn--danger {
  color: var(--ph-blocked) !important;
  border-color: color-mix(in srgb, var(--ph-blocked) 35%, white) !important;
  background: #fff !important;
}

.tcmo-ph-btn:disabled {
  opacity: 0.5 !important;
  cursor: default !important;
}

.tcmo-ph-btn.is-loading {
  position: relative;
  padding-right: 2.25rem !important;
  cursor: wait !important;
  opacity: 0.88 !important;
}

.tcmo-ph-btn.is-loading::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tcmo-ph-btn-spin 0.65s linear infinite;
}

@keyframes tcmo-ph-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.tcmo-ph-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 0 2px;
  scrollbar-width: none;
}

.tcmo-ph-stat-chip {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ph-hairline);
  background: var(--ph-surface);
  border-radius: 999px;
  padding: 3px 10px;
  min-height: 26px;
  font: inherit;
  font-size: 12px;
  color: var(--ph-ink);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}

.tcmo-ph-stat-chip:disabled {
  cursor: default;
  opacity: 0.85;
}

.tcmo-ph-stat-chip .n {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tcmo-ph-stat-chip .l {
  color: var(--ph-muted);
  font-size: 12px;
}

.tcmo-ph-stat-chip .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tcmo-ph-stat-chip.is-solo {
  border-color: color-mix(in srgb, var(--ph-accent) 45%, var(--ph-hairline));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ph-accent) 14%, transparent);
}

.tcmo-ph-stat-chip.is-muted {
  opacity: 0.45;
}

.tcmo-ph-stat-chip--toggle {
  color: var(--ph-muted);
  margin-left: auto;
}

.tcmo-ph-stat-chip--toggle.is-active {
  color: var(--ph-ink);
  border-color: color-mix(in srgb, var(--ph-accent) 35%, var(--ph-hairline));
}

.tcmo-ph-stat-chip--total {
  font-weight: 600;
}

.tcmo-ph-stat-chip--total .l {
  color: var(--ph-muted);
  font-weight: 500;
}

.tcmo-ph-stat-chip:hover:not(:disabled),
.tcmo-ph-stat-chip:focus-visible {
  background: #f4f6f8;
  outline: none;
}

.tcmo-ph-stats::-webkit-scrollbar {
  display: none;
}

.tcmo-ph-stat {
  flex: 0 0 auto;
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
  border-radius: 12px;
  padding: 22px 14px 10px;
  min-width: 104px;
  position: relative;
  transition: opacity 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tcmo-ph-stat--total {
  padding-top: 10px;
}

.tcmo-ph-stat.is-disabled {
  opacity: 0.48;
  filter: grayscale(0.55);
  background: #f3f4f6;
}

.tcmo-ph-stat.is-solo {
  border-color: color-mix(in srgb, var(--ph-accent) 45%, var(--ph-hairline));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ph-accent) 16%, transparent);
}

.tcmo-ph-stat-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
}

.tcmo-ph-stat-ico {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  background: transparent !important;
  color: var(--ph-faint) !important;
  width: 24px !important;
  height: 24px !important;
  min-height: 0 !important;
  padding: 3px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  box-shadow: none !important;
  line-height: 0 !important;
}

.tcmo-ph-stat-ico:hover,
.tcmo-ph-stat-ico:focus {
  background: #eef1f3 !important;
  color: var(--ph-ink) !important;
  outline: none !important;
}

.tcmo-ph-stat-ico.is-active {
  color: var(--ph-accent, #3a9d26) !important;
  background: color-mix(in srgb, var(--ph-accent, #3a9d26) 12%, white) !important;
}

.tcmo-ph-stat-ico.is-crossed {
  color: var(--ph-muted) !important;
  opacity: 0.85;
}

.tcmo-ph-stat-ico:disabled {
  opacity: 0.35 !important;
  cursor: default !important;
}

.tcmo-ph-ico {
  width: 15px;
  height: 15px;
  display: block;
}

.tcmo-ph-stat .n {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tcmo-ph-stat .l {
  font-size: 11.5px;
  color: var(--ph-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tcmo-ph-stat .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.tcmo-ph-controls {
  position: static;
  z-index: auto;
  background: transparent;
  padding: 0;
  margin: 0;
}

.tcmo-ph-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 0;
}

.tcmo-ph-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 1 220px;
  min-width: 140px;
}

.tcmo-ph-search-wrap:focus-within {
  flex-basis: 320px;
}

.tcmo-ph-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ph-faint);
  pointer-events: none;
  display: flex;
}

.tcmo-ph-search--compact {
  width: 100%;
  padding: 8px 12px 8px 32px !important;
  min-height: 36px;
  font-size: 13px;
  border-radius: 999px !important;
}

.tcmo-ph-topbar-more {
  position: relative;
}

.tcmo-ph-topbar-more-menu {
  min-width: 200px;
}

.tcmo-ph-drawer-more-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tcmo-ph-topbar-more-updated {
  margin: 6px 0 0;
  padding: 6px 10px 2px;
  font-size: 11px;
  color: var(--ph-faint);
  border-top: 1px solid var(--ph-hairline);
}

.tcmo-ph-seg {
  display: inline-flex;
  border: 1px solid var(--ph-hairline);
  border-radius: 999px;
  overflow: hidden;
  background: var(--ph-surface);
}

.tcmo-ph-seg-btn {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--ph-muted);
}

.tcmo-ph-seg-btn + .tcmo-ph-seg-btn {
  border-left: 1px solid var(--ph-hairline);
}

.tcmo-ph-seg-btn.is-active {
  background: var(--ph-ink);
  color: #fff;
}

.tcmo-ph-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ph-muted);
}

.tcmo-ph-inline-label select,
.tcmo-ph-who {
  margin: 0;
  min-width: 160px;
  width: auto;
  padding: 8px 12px;
  font-weight: 500;
}

.tcmo-ph-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ph-muted);
  cursor: pointer;
  user-select: none;
}

.tcmo-ph-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ph-accent);
}

.tcmo-ph-search {
  width: 100%;
  border: 1px solid var(--ph-hairline);
  background: var(--ph-surface);
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ph-ink);
  box-sizing: border-box;
}

.tcmo-ph-form input[type="text"],
.tcmo-ph-form input[type="number"],
.tcmo-ph-form input[type="date"],
.tcmo-ph-form input[type="search"],
.tcmo-ph-form input[type="url"],
.tcmo-ph-form select,
.tcmo-ph-form textarea:not(.tcmo-ph-comms-in-body),
.tcmo-ph-controls select,
.tcmo-ph-inline-label select {
  display: block !important;
  width: 100%;
  border: 1px solid var(--ph-hairline);
  background: var(--ph-surface);
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--ph-ink);
  box-sizing: border-box;
  height: auto !important;
  min-height: 42px;
  line-height: 1.35;
  box-shadow: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tcmo-ph-form textarea:not(.tcmo-ph-comms-in-body) {
  min-height: 96px;
  resize: vertical;
}

.tcmo-ph-form input:focus,
.tcmo-ph-form select:focus,
.tcmo-ph-form textarea:not(.tcmo-ph-comms-in-body):focus,
.tcmo-ph-controls select:focus,
.tcmo-ph-inline-label select:focus {
  border-color: color-mix(in srgb, var(--ph-accent) 55%, #c5ccd3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-accent) 18%, transparent);
}

.tcmo-ph-inline-label select,
.tcmo-ph-who {
  margin: 0;
  min-width: 160px;
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  font-weight: 500;
}

.tcmo-ph-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0 2px;
  scrollbar-width: none;
}

.tcmo-ph-chips::-webkit-scrollbar {
  display: none;
}

.tcmo-ph-chip {
  flex: 0 0 auto;
  border: 1px solid var(--ph-hairline);
  background: var(--ph-surface);
  color: var(--ph-muted);
  font: inherit;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tcmo-ph-chip[aria-pressed="true"] {
  background: var(--ph-ink);
  border-color: var(--ph-ink);
  color: #fff;
}

.tcmo-ph-chip.area[aria-pressed="true"] {
  background: var(--ph-accent);
  border-color: var(--ph-accent);
  color: #fff;
}

.tcmo-ph-chip .cdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.tcmo-ph-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.tcmo-ph-section {
  background: #f3f5f7;
  border: 1px solid var(--ph-hairline);
  border-radius: 14px;
  overflow: visible;
}

.tcmo-ph-section--dragging {
  opacity: 0.72;
}

.tcmo-ph-section--drop-before .tcmo-ph-section-head {
  box-shadow: inset 0 6px 0 color-mix(in srgb, var(--ph-accent) 58%, transparent), 0 0 0 1px color-mix(in srgb, var(--ph-accent) 25%, transparent);
  background: color-mix(in srgb, var(--ph-accent) 6%, #fafbfc);
}

.tcmo-ph-section--card-drop .tcmo-ph-section-head {
  outline: 2px dashed color-mix(in srgb, var(--ph-accent) 52%, #c8d0d7);
  outline-offset: -4px;
  background: color-mix(in srgb, var(--ph-accent) 8%, #fafbfc);
}

.tcmo-ph-section-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  background: #fafbfc;
  border-bottom: 1px solid transparent;
  border-radius: 14px 14px 0 0;
}

.tcmo-ph-section[draggable="true"] .tcmo-ph-section-title::after {
  content: " ⋮⋮";
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ph-faint);
}

.tcmo-ph-section[open] > .tcmo-ph-section-head {
  border-bottom-color: var(--ph-hairline);
  border-radius: 14px 14px 0 0;
}

.tcmo-ph-section-head::-webkit-details-marker {
  display: none;
}

.tcmo-ph-section-title {
  font-family: var(--font-serif, Georgia, serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tcmo-ph-section-title::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid var(--ph-muted);
  border-bottom: 2px solid var(--ph-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}

.tcmo-ph-section[open] .tcmo-ph-section-title::before {
  transform: rotate(45deg);
}

.tcmo-ph-section-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ph-muted);
  background: #eef1f3;
  border-radius: 999px;
  padding: 3px 10px;
}

.tcmo-ph-section .tcmo-ph-grid {
  padding: 16px;
  margin-top: 0;
}

.tcmo-ph-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

@media (min-width: 620px) {
  .tcmo-ph-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

@media (min-width: 1100px) {
  .tcmo-ph-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
}

.tcmo-ph-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow);
  padding: 15px 16px 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  min-width: 0;
  margin: 0;
  height: auto;
  box-sizing: border-box;
  float: none !important;
  display: flex;
  flex-direction: column;
}

.tcmo-ph-card--dragging {
  opacity: 0.55;
}

.tcmo-ph-card--saving {
  opacity: 0.55;
  pointer-events: none;
  cursor: wait;
  filter: grayscale(0.15);
}

.tcmo-ph-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c, var(--ph-faint));
}

.tcmo-ph-card:hover {
  border-color: #d0d5da;
}

.tcmo-ph-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ph-accent) 45%, transparent);
  outline-offset: 2px;
}

.tcmo-ph-card--deep-linked {
  border-color: color-mix(in srgb, var(--ph-accent) 56%, #cdd6de) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-accent) 16%, transparent), var(--ph-shadow);
}

.tcmo-ph-grid.tcmo-ph-drop-target {
  outline: 2px dashed color-mix(in srgb, var(--ph-accent) 52%, #c8d0d7);
  outline-offset: -4px;
  border-radius: 12px;
}

.tcmo-ph-add-project {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 18px 16px;
  box-sizing: border-box;
  border: 1px dashed #c8ced4;
  border-radius: var(--ph-radius);
  background: #f3f5f7;
  color: #8a929b;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
}

.tcmo-ph-add-project:hover,
.tcmo-ph-add-project:focus-visible {
  outline: none;
  color: var(--ph-muted);
  background: #eef1f3;
  border-color: #b4bbc3;
}

.tcmo-ph-add-project--empty {
  max-width: 280px;
  margin: 16px auto 0;
  min-height: 52px;
}

.tcmo-ph-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tcmo-ph-card-top > div:first-child {
  width: 100%;
  min-width: 0;
}

.tcmo-ph-card-heading {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.tcmo-ph-card-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ph-muted);
}

.tcmo-ph-card-meta-sep {
  margin: 0 7px;
  color: var(--ph-faint);
  user-select: none;
  font-weight: 400;
}

.tcmo-ph-card-meta-item.is-prio-high {
  color: var(--ph-prio-high);
  font-weight: 600;
}

.tcmo-ph-card-meta-item.is-prio-med {
  color: var(--ph-atrisk);
  font-weight: 600;
}

.tcmo-ph-card-meta-item.is-overdue {
  color: var(--ph-blocked);
  font-weight: 500;
}

.tcmo-ph-card-meta-item.is-pillar {
  color: var(--ph-faint);
}

.tcmo-ph-card-meta-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 2px 4px;
  margin: 0;
  border-radius: 6px;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--ph-accent);
  cursor: pointer;
  line-height: inherit;
}

.tcmo-ph-card-meta-link:hover,
.tcmo-ph-card-meta-link:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--ph-accent) 8%, white);
}

.tcmo-ph-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 12px;
}

.tcmo-ph-card-summaries {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tcmo-ph-card-summary-row {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--ph-hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ph-surface, #fafafa) 88%, #eef1f3);
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.tcmo-ph-card-summary-row:hover,
.tcmo-ph-card-summary-row:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--ph-accent) 36%, var(--ph-hairline));
  background: color-mix(in srgb, var(--ph-accent) 5%, white);
}

.tcmo-ph-card-summary-title {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ph-faint);
}

.tcmo-ph-card-summary-stats {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 10px;
  min-width: 0;
}

.tcmo-ph-card-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.tcmo-ph-card-stat-num {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ph-ink);
  line-height: 1.2;
}

.tcmo-ph-card-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ph-muted);
  line-height: 1.2;
}

.tcmo-ph-card-footer {
  display: flex;
  align-items: stretch;
  margin: 0 -16px;
  border-top: 1px solid var(--ph-hairline);
  margin-top: auto;
}

.tcmo-ph-card-footer-btn {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 0;
  background: color-mix(in srgb, var(--ph-surface, #fafafa) 94%, #eef1f3);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ph-ink);
  cursor: pointer;
  line-height: 1.25;
  transition: background 0.12s ease, color 0.12s ease;
}

.tcmo-ph-card-footer-btn + .tcmo-ph-card-footer-btn {
  border-left: 1px solid var(--ph-hairline);
}

.tcmo-ph-card-footer-btn--slack::before {
  content: '💬';
  font-size: 14px;
  line-height: 1;
}

.tcmo-ph-card-footer-btn--brief::before {
  content: '📝';
  font-size: 14px;
  line-height: 1;
}

.tcmo-ph-card-footer-btn--slack:hover,
.tcmo-ph-card-footer-btn--slack:focus-visible {
  outline: none;
  background: color-mix(in srgb, #611f69 10%, white);
  color: #611f69;
}

.tcmo-ph-card-footer-btn--brief:hover,
.tcmo-ph-card-footer-btn--brief:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--ph-accent-warm, #c45c26) 10%, white);
  color: var(--ph-accent-warm, #b45309);
}

.tcmo-ph-card-footer-btn.is-muted {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.tcmo-ph-card-footer-btn.is-busy {
  opacity: 0.65;
  cursor: wait;
}

.tcmo-ph-card-footer-btn--create {
  font-size: 12.5px;
}

.tcmo-ph-card-footer-btn--setup {
  font-size: 12.5px;
  color: var(--ph-muted);
}

.tcmo-ph-card--priority-high {
  border-width: 2px;
  border-color: color-mix(in srgb, var(--ph-prio-high) 48%, #c8ced4);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ph-prio-high) 22%, transparent),
    var(--ph-shadow);
}

.tcmo-ph-card--priority-high::before {
  width: 6px;
  background: var(--ph-prio-high);
}

.tcmo-ph-card--priority-high:hover {
  border-color: color-mix(in srgb, var(--ph-prio-high) 62%, #b8bec6);
}

.tcmo-ph-docs--card {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ph-hairline);
}

.tcmo-ph-eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-faint);
  margin-bottom: 3px;
}

.tcmo-ph-card-title,
.tcmo-ph-card-title-btn {
  font-weight: 600;
  font-size: 18px;
  font-family: var(--font-serif, Georgia, serif);
  letter-spacing: -0.01em;
  line-height: 1.28;
  text-align: left;
}

.tcmo-ph-card-title-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--ph-ink);
  cursor: pointer;
}

.tcmo-ph-card-title-btn:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tcmo-ph-card-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.tcmo-ph-card-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ph-muted, #5c6770);
  letter-spacing: 0;
}

.tcmo-ph-badge {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--c, var(--ph-faint));
  background: color-mix(in srgb, var(--c, var(--ph-faint)) 12%, white);
  white-space: nowrap;
}

.tcmo-ph-inline-status {
  flex: 0 0 auto;
  max-width: 100%;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  height: auto !important;
  min-height: 0 !important;
  color: var(--c, var(--ph-faint)) !important;
  background: color-mix(in srgb, var(--c, var(--ph-faint)) 14%, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--c, var(--ph-faint)) 30%, #d0d5da) !important;
  cursor: pointer;
}

/* Must beat .tcmo-ph-inline-ctl (same element; that rule forces transparent/ink). */
.tcmo-ph-inline-ctl.tcmo-ph-inline-status {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: auto !important;
  max-width: 100%;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--c, var(--ph-faint)) !important;
  background: color-mix(in srgb, var(--c, var(--ph-faint)) 14%, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--c, var(--ph-faint)) 30%, #d0d5da) !important;
  border-radius: 999px !important;
}

.tcmo-ph-inline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ph-muted);
  background: #f2f4f6;
  border-radius: 7px;
  padding: 2px 6px 2px 8px;
  cursor: pointer;
}

.tcmo-ph-inline-ico {
  flex: 0 0 auto;
  opacity: 0.85;
  line-height: 1;
}

.tcmo-ph-inline-ctl {
  appearance: none;
  display: block !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 3px 2px !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  max-width: 140px;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--ph-ink) !important;
  cursor: pointer;
  line-height: 1.3 !important;
}

.tcmo-ph-inline-ctl:disabled {
  opacity: 0.55;
}

.tcmo-ph-inline-wrap input[type="date"].tcmo-ph-inline-ctl {
  max-width: 128px;
  color-scheme: light;
}

.tcmo-ph-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.tcmo-ph-pill {
  font-size: 12px;
  color: var(--ph-muted);
  background: #f2f4f6;
  border-radius: 7px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tcmo-ph-pill.over {
  color: var(--ph-blocked);
  background: color-mix(in srgb, var(--ph-blocked) 10%, white);
  font-weight: 500;
}

.tcmo-ph-pill.prio-high {
  color: var(--ph-blocked);
  background: color-mix(in srgb, var(--ph-blocked) 11%, white);
  font-weight: 600;
}

.tcmo-ph-pill.prio-med {
  color: var(--ph-atrisk);
  background: color-mix(in srgb, var(--ph-atrisk) 13%, white);
  font-weight: 600;
}

.tcmo-ph-bar {
  height: 4px;
  border-radius: 999px;
  background: #edf0f2;
  margin-top: 11px;
  overflow: hidden;
}

/* --- Project cards: calm meta (chrome on hover only) --- */
.tcmo-ph-card .tcmo-ph-badge.tcmo-ph-card-meta-status {
  font-size: 12.5px;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}

.tcmo-ph-card .tcmo-ph-badge.tcmo-ph-card-meta-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--ph-faint));
  margin-right: 6px;
  vertical-align: 0.12em;
}

.tcmo-ph-card .tcmo-ph-inline-status,
.tcmo-ph-card .tcmo-ph-inline-ctl.tcmo-ph-inline-status {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  color: var(--c, var(--ph-muted)) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.tcmo-ph-card .tcmo-ph-inline-status:hover,
.tcmo-ph-card .tcmo-ph-inline-status:focus,
.tcmo-ph-card .tcmo-ph-inline-ctl.tcmo-ph-inline-status:hover,
.tcmo-ph-card .tcmo-ph-inline-ctl.tcmo-ph-inline-status:focus {
  background: #f2f4f6 !important;
  border-color: var(--ph-hairline) !important;
}

.tcmo-ph-card .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 4px;
  margin: 0;
  font-size: 12.5px;
  color: var(--ph-muted);
}

.tcmo-ph-card .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl .tcmo-ph-inline-ico {
  display: none;
}

.tcmo-ph-card .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl:hover,
.tcmo-ph-card .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl:focus-within {
  background: #f2f4f6;
  border-color: var(--ph-hairline);
}

.tcmo-ph-card .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl .tcmo-ph-inline-ctl {
  font-size: 12.5px !important;
  color: var(--ph-muted) !important;
  max-width: 160px;
}

.tcmo-ph-card .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl input[type="date"].tcmo-ph-inline-ctl {
  max-width: 118px;
  color-scheme: light;
}

.tcmo-ph-card .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl.is-empty-val {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  margin: 0;
  border: none;
  pointer-events: none;
}

.tcmo-ph-card:hover .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl.is-empty-val,
.tcmo-ph-card:focus-within .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl.is-empty-val {
  max-width: 160px;
  opacity: 1;
  padding: 2px 4px;
  pointer-events: auto;
}

@media (hover: none) {
  .tcmo-ph-card .tcmo-ph-inline-wrap.tcmo-ph-card-meta-ctl.is-empty-val {
    max-width: 160px;
    opacity: 1;
    padding: 2px 4px;
    pointer-events: auto;
  }
}

.tcmo-ph-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--c, var(--ph-faint));
}

.tcmo-ph-docs-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tcmo-ph-docs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ph-muted);
}

.tcmo-ph-docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ph-hairline);
  border-radius: 11px;
  background: #fafbfc;
  max-height: 160px;
  overflow: auto;
}

.tcmo-ph-docs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ph-hairline);
  font-size: 13px;
}

.tcmo-ph-doc-role {
  max-width: 7rem;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--ph-muted);
  font-size: 12px;
}

.tcmo-ph-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--tcmo-ph-muted, #5c6570);
}

.tcmo-ph-workback-row .tcmo-ph-field-hint {
  grid-column: 1 / -1;
}

.tcmo-ph-collab-send {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--tcmo-ph-muted, #5c6570);
}

.tcmo-ph-pill-comms {
  cursor: pointer;
  border: none;
  background: rgba(45, 106, 79, 0.12);
  color: var(--ph-accent);
  font: inherit;
  font-size: inherit;
}

.tcmo-ph-pill-pillar {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.tcmo-ph-docs-list li:last-child {
  border-bottom: none;
}

.tcmo-ph-docs-empty {
  color: var(--ph-faint);
  font-size: 13px;
}

.tcmo-ph-docs-item a {
  color: var(--ph-accent-warm);
  text-decoration: none;
}

.tcmo-ph-docs-item a:hover {
  text-decoration: underline;
}

.tcmo-ph-doc-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ph-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.tcmo-ph-docs-collab {
  margin-bottom: 12px;
}

.tcmo-ph-docs-collab-pinned {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--ph-hairline);
  border-radius: 11px;
  background: #fff;
}

.tcmo-ph-docs-collab-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-muted);
}

.tcmo-ph-docs-collab-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ph-accent-warm);
  text-decoration: none;
}

.tcmo-ph-docs-collab-link:hover {
  text-decoration: underline;
}

.tcmo-ph-docs-files {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ph-hairline);
  border-radius: 11px;
  background: #fafbfc;
  max-height: 280px;
  overflow: auto;
}

.tcmo-ph-docs-file-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ph-hairline);
  font-size: 13px;
}

.tcmo-ph-docs-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

.tcmo-ph-docs-file-mark-brief {
  white-space: nowrap;
}

.tcmo-ph-docs-file-brief {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ph-accent);
  background: color-mix(in srgb, var(--ph-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--ph-accent) 22%, #d0d5da);
  vertical-align: middle;
}

.tcmo-ph-collab-doc-display-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tcmo-ph-docs-file-row:last-child {
  border-bottom: none;
}

.tcmo-ph-docs-file-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.tcmo-ph-docs-file-icon--fallback {
  font-size: 16px;
  line-height: 1;
}

.tcmo-ph-docs-file-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tcmo-ph-docs-file-name {
  color: var(--ph-accent-warm);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.tcmo-ph-docs-file-name:hover {
  text-decoration: underline;
}

.tcmo-ph-docs-file-meta {
  font-size: 12px;
  color: var(--ph-faint);
}

.tcmo-ph-docs-status {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ph-faint);
}

.tcmo-ph-docs-legacy-wrap {
  margin-top: 16px;
}

.tcmo-ph-docs-legacy-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ph-muted);
}

.tcmo-ph-docs-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--ph-faint);
  font-weight: 400;
  line-height: 1.4;
}

.tcmo-ph-doc {
  font-size: 12.5px;
  color: var(--ph-accent-warm);
  text-decoration: none;
}

.tcmo-ph-docs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ph-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tcmo-ph-doc:hover {
  text-decoration: underline;
}

.tcmo-ph-doc-flat {
  color: var(--ph-muted);
}

.tcmo-ph-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ph-muted);
  grid-column: 1 / -1;
}

.tcmo-ph-empty h3 {
  color: var(--ph-ink);
  font-family: var(--font-serif, Georgia, serif);
  font-weight: 600;
  margin: 0 0 6px;
  font-size: 19px;
}

/*
 * Materialize/pickadate and Google Drive Picker both use `.picker`.
 * Undo Materialize typography/color only — do not force position/z-index
 * (that pinned the Drive dialog bottom-left with a white wash).
 * https://github.com/Dogfalo/materialize/issues/1727
 */
.picker {
  font-size: initial !important;
  text-align: initial !important;
  line-height: initial !important;
  color: initial !important;
  -webkit-user-select: initial !important;
  -moz-user-select: initial !important;
  -ms-user-select: initial !important;
  user-select: initial !important;
}

.picker.picker-dialog-bg,
.picker-dialog-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.45) !important;
  opacity: 1 !important;
}

.picker.picker-dialog,
.picker-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 100001 !important;
  width: min(980px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 48px) !important;
  max-height: calc(100vh - 48px) !important;
  margin: 0 !important;
}

.picker-dialog-content {
  position: relative !important;
}

.tcmo-ph-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: min(640px, calc(100vw - 24px));
  width: 100%;
  max-height: min(92vh, 900px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 30, 40, 0.18);
}

.tcmo-ph-dialog[open] {
  display: flex;
  flex-direction: column;
}

.tcmo-ph-dialog--wide {
  max-width: min(760px, calc(100vw - 24px));
}

.tcmo-ph-dialog::backdrop {
  background: rgba(20, 30, 40, 0.45);
}

/* --- Project drawer (replaces edit dialog) --- */
.tcmo-ph-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(20, 30, 40, 0.38);
  border: none;
  padding: 0;
  cursor: pointer;
}

.tcmo-ph-drawer-scrim[hidden] {
  display: none !important;
}

.tcmo-ph-project-drawer {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1210;
  width: min(920px, calc(100vw - 32px));
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--ph-surface);
  border-radius: 0;
  box-shadow: 0 12px 56px rgba(20, 30, 40, 0.2);
  transform: translate(-50%, 100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 640px) {
  .tcmo-ph-project-drawer {
    width: 100%;
  }
}

body.tcmo-ph-drawer-open .tcmo-ph-project-drawer {
  transform: translate(-50%, 0);
}

body.tcmo-ph-drawer-picker-hidden .tcmo-ph-project-drawer {
  visibility: hidden;
  pointer-events: none;
}

.tcmo-ph-project-drawer[aria-hidden='false'] {
  /* paired with body class */
}

.tcmo-ph-drawer-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100dvh;
  height: 100%;
}

.tcmo-ph-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--ph-hairline);
  flex-shrink: 0;
}

.tcmo-ph-drawer-head-main {
  flex: 1 1 auto;
  min-width: 0;
}

.tcmo-ph-drawer-head-actions {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.tcmo-ph-drawer-create-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-muted);
}

.tcmo-ph-drawer-title-wrap {
  display: block;
  margin: 0;
}

.tcmo-ph-drawer-title-input,
.tcmo-ph-drawer-title-input:focus {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: clamp(1.75rem, 4vw, 2.125rem) !important;
  font-family: var(--font-serif, Georgia, 'Times New Roman', serif) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ph-ink);
  resize: none;
  overflow: hidden;
  min-height: 1.5em;
  max-height: 4.5em;
  box-shadow: none;
  box-sizing: border-box;
}

.tcmo-ph-drawer-title-input:hover {
  border-color: color-mix(in srgb, var(--ph-hairline) 80%, transparent);
}

.tcmo-ph-drawer-title-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--ph-accent) 35%, #cfd5da);
  background: color-mix(in srgb, var(--ph-accent) 4%, transparent);
}

.tcmo-ph-drawer-more {
  position: relative;
}

.tcmo-ph-drawer-more-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 168px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--ph-hairline);
  background: var(--ph-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.tcmo-ph-drawer-more-menu[hidden] {
  display: none !important;
}

.tcmo-ph-drawer-more-item {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ph-ink);
}

.tcmo-ph-drawer-more-item:hover,
.tcmo-ph-drawer-more-item:focus {
  background: color-mix(in srgb, var(--ph-hairline) 40%, transparent);
  outline: none;
}

.tcmo-ph-drawer-more-item--danger {
  color: var(--ph-blocked, #bf3b33);
}

.tcmo-ph-drawer-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--font-serif, Georgia, serif);
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding-right: 8px;
}

.tcmo-ph-drawer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--ph-hairline);
  flex-shrink: 0;
}

.tcmo-ph-drawer-tab {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ph-muted);
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tcmo-ph-drawer-tab.is-active {
  color: var(--ph-accent);
  border-bottom-color: var(--ph-accent);
  background: rgba(45, 106, 79, 0.06);
}

.tcmo-ph-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 16px;
}

.tcmo-ph-drawer-panel[hidden] {
  display: none !important;
}

.tcmo-ph-project-drawer--create .tcmo-ph-drawer-panel {
  display: block !important;
}

.tcmo-ph-project-drawer--create .tcmo-ph-drawer-panel + .tcmo-ph-drawer-panel {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--ph-hairline);
}

.tcmo-ph-project-drawer--create [data-drawer-panel='activity'] {
  display: none !important;
}

.tcmo-ph-project-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tcmo-ph-project-activity-day {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-muted);
}

.tcmo-ph-project-activity-day:first-child {
  margin-top: 0;
}

.tcmo-ph-project-activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
}

.tcmo-ph-project-activity-row:hover {
  background: #eef2f5;
}

.tcmo-ph-project-activity-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tcmo-ph-project-activity-summary {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ph-ink);
}

.tcmo-ph-project-activity-actor {
  font-size: 12px;
  color: var(--ph-muted);
  font-weight: 600;
}

.tcmo-ph-project-activity-when {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ph-muted);
  white-space: nowrap;
}

.tcmo-ph-project-activity-empty {
  margin: 0;
  padding: 12px 4px;
  font-size: 14px;
  color: var(--ph-muted);
}

.tcmo-ph-drawer-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--ph-hairline);
  flex-shrink: 0;
  background: var(--ph-surface);
}

.tcmo-ph-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.tcmo-ph-field--checkbox input {
  margin-top: 3px;
}

.tcmo-ph-comms-subhead {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.tcmo-ph-comms-campaigns-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tcmo-ph-comms-campaigns-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tcmo-ph-comms-brief-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tcmo-ph-comms-brief-row input[type='url'] {
  flex: 1 1 220px;
  min-width: 0;
}

.tcmo-ph-comms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.tcmo-ph-comms-table th,
.tcmo-ph-comms-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ph-hairline);
  vertical-align: top;
}

.tcmo-ph-comms-table th {
  font-weight: 600;
  color: var(--ph-muted);
  font-size: 0.75rem;
}

.tcmo-ph-comms-status-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
}

.tcmo-ph-comms-status-chip.is-copy {
  border-color: var(--ph-review);
  color: var(--ph-review);
}

.tcmo-ph-comms-status-chip.is-ready {
  border-color: var(--ph-progress);
  color: var(--ph-progress);
}

.tcmo-ph-comms-status-chip.is-done {
  border-color: var(--ph-accent);
  background: rgba(45, 106, 79, 0.08);
  color: var(--ph-accent);
}

.tcmo-ph-comms-asset-ref {
  font-size: 0.75rem;
  color: var(--ph-muted);
}

.tcmo-ph-comms-table--edit {
  margin-top: 8px;
}

.tcmo-ph-comms-table--edit .tcmo-ph-comms-campaign-row-meta td {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ph-hairline);
}

.tcmo-ph-comms-campaign-row-meta .tcmo-ph-comms-campaign-meta-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tcmo-ph-comms-table--edit select,
.tcmo-ph-comms-table--edit input[type='text'],
.tcmo-ph-comms-table--edit input[type='url'],
.tcmo-ph-comms-table--edit input[type='date'],
.tcmo-ph-comms-table--edit input[type='time'] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.8125rem;
}

.tcmo-ph-comms-table--edit .tcmo-ph-comms-col-action {
  min-width: 10rem;
}

.tcmo-ph-comms-table--edit .tcmo-ph-comms-col-remove {
  width: 2.5rem;
  text-align: center;
}

@media (max-width: 720px) {
  .tcmo-ph-comms-campaign-meta-cell {
    grid-template-columns: 1fr;
  }

  .tcmo-ph-comms-table thead {
    display: none;
  }

  .tcmo-ph-comms-table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--ph-hairline);
    border-radius: 8px;
    padding: 8px;
  }

  .tcmo-ph-comms-table td {
    display: block;
    border: none;
    padding: 4px 0;
  }

  .tcmo-ph-comms-table td::before {
    content: attr(data-label) ': ';
    font-weight: 600;
    color: var(--ph-muted);
  }
}

.tcmo-ph-comms-campaign-list {
  margin-top: 12px;
}

.tcmo-ph-comms-assets-wrap {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ph-hairline);
}

.tcmo-ph-comms-assets-drop {
  border: 2px dashed var(--ph-hairline);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  color: var(--ph-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tcmo-ph-comms-assets-drop.is-dragover,
.tcmo-ph-comms-assets-drop:hover {
  border-color: var(--ph-accent);
  background: rgba(45, 106, 79, 0.06);
}

.tcmo-ph-comms-assets-drop p {
  margin: 0;
  font-size: 0.875rem;
}

.tcmo-ph-comms-upload-status {
  min-height: 1.25rem;
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--ph-muted);
}

.tcmo-ph-comms-upload-status.is-error {
  color: var(--ph-blocked);
}

.tcmo-ph-comms-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tcmo-ph-comms-asset {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ph-hairline);
  background: #fff;
}

.tcmo-ph-comms-asset img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.tcmo-ph-comms-asset figcaption {
  padding: 6px 8px;
  font-size: 0.75rem;
  color: var(--ph-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tcmo-ph-comms-timeline {
  margin-top: 12px;
  padding: 12px 0 4px;
}

.tcmo-ph-timeline-node--email::before {
  border-color: var(--ph-progress);
}

.tcmo-ph-timeline-node--social::before {
  border-color: var(--ph-review);
}

.tcmo-ph-timeline-node--event::before {
  border-color: var(--ph-accent);
  background: var(--ph-accent);
}

.tcmo-ph-timeline-node--milestone::before {
  border-color: var(--ph-blocked);
  background: var(--ph-surface);
}

.tcmo-ph-timeline-track {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--ph-hairline);
  margin-left: 8px;
}

.tcmo-ph-timeline-node {
  position: relative;
  padding: 0 0 18px 12px;
}

.tcmo-ph-timeline-node::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ph-surface);
  border: 2px solid var(--ph-hairline);
  box-sizing: border-box;
}

.tcmo-ph-timeline-node.is-today::before {
  border-color: var(--ph-accent);
  background: var(--ph-accent);
}

.tcmo-ph-timeline-node.is-past::before {
  background: var(--ph-muted);
  border-color: var(--ph-muted);
}

.tcmo-ph-timeline-node.is-overdue::before {
  border-color: var(--ph-blocked);
  background: var(--ph-blocked);
}

.tcmo-ph-timeline-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.tcmo-ph-timeline-date {
  font-size: 0.8125rem;
  color: var(--ph-muted);
}

.tcmo-ph-timeline-meta {
  font-size: 0.75rem;
  color: var(--ph-faint);
  margin-top: 2px;
}

body.tcmo-ph-drawer-open {
  overflow: hidden;
}

.tcmo-ph-form {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(92vh, 900px);
  overflow: hidden;
  box-sizing: border-box;
}

.tcmo-ph-project-drawer .tcmo-ph-form,
.tcmo-ph-drawer-form.tcmo-ph-form {
  max-height: none;
  height: 100%;
}

.tcmo-ph-form-scroll {
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
}

.tcmo-ph-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--ph-hairline);
}

.tcmo-ph-dialog-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-serif, Georgia, serif);
  letter-spacing: -0.01em;
}

.tcmo-ph-icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ph-muted);
  padding: 0 4px;
}

.tcmo-ph-form-cells {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  margin-top: 8px;
  flex: 0 0 auto;
  gap: 4px;
}

.tcmo-ph-overview-props {
  gap: 0;
  margin-top: 4px;
}

.tcmo-ph-overview-row {
  display: grid;
  grid-template-columns: minmax(88px, 32%) 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--ph-hairline) 65%, transparent);
}

.tcmo-ph-overview-row:last-child {
  border-bottom: none;
}

.tcmo-ph-overview-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ph-muted);
  padding-top: 3px;
}

.tcmo-ph-project-drawer--create .tcmo-ph-overview-label[data-required]::after {
  content: ' *';
  color: var(--ph-blocked, #bf3b33);
}

.tcmo-ph-overview-row.is-missing .tcmo-ph-overview-label {
  color: var(--ph-blocked, #bf3b33);
}

.tcmo-ph-overview-row.is-missing select,
.tcmo-ph-overview-row.is-missing input[type='date'] {
  border-color: var(--ph-blocked, #bf3b33);
  box-shadow: 0 0 0 1px var(--ph-blocked, #bf3b33);
}

.tcmo-ph-overview-value {
  min-width: 0;
}

.tcmo-ph-overview-value select,
.tcmo-ph-overview-value input[type='date'],
.tcmo-ph-overview-value .tcmo-ph-link-input-wrap input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tcmo-ph-overview-value--due {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.tcmo-ph-due-relative {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ph-muted);
}

.tcmo-ph-due-relative.is-overdue {
  color: var(--ph-blocked, #bf3b33);
}

.tcmo-ph-due-relative.is-soon {
  color: var(--ph-atrisk, #c2791c);
}

.tcmo-ph-overview-divider {
  height: 8px;
  border-bottom: 1px solid var(--ph-hairline);
  margin: 4px 0 8px;
}

.tcmo-ph-overview-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tcmo-ph-link-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tcmo-ph-link-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tcmo-ph-link-display[hidden],
.tcmo-ph-link-add-btn[hidden],
.tcmo-ph-link-input-wrap[hidden] {
  display: none !important;
}

.tcmo-ph-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ph-accent);
  background: color-mix(in srgb, var(--ph-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--ph-accent) 22%, #d0d5da);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcmo-ph-link-chip:hover {
  background: color-mix(in srgb, var(--ph-accent) 16%, #fff);
}

.tcmo-ph-link-add-btn,
.tcmo-ph-link-edit-btn {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ph-accent);
  cursor: pointer;
  padding: 4px 0;
}

.tcmo-ph-link-add-btn:hover,
.tcmo-ph-link-edit-btn:hover {
  text-decoration: underline;
}

.tcmo-ph-overview-extra-links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  border: 1px solid var(--ph-hairline);
  border-radius: 11px;
  background: #fafbfc;
  max-height: 200px;
  overflow: auto;
}

.tcmo-ph-overview-extra-links:empty {
  display: none;
  margin: 0;
  border: none;
}

.tcmo-ph-overview-extra-link-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ph-hairline);
  font-size: 13px;
}

.tcmo-ph-overview-extra-link-row:last-child {
  border-bottom: none;
}

.tcmo-ph-overview-extra-link-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.tcmo-ph-overview-extra-link-href {
  color: var(--ph-accent-warm);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.tcmo-ph-overview-extra-link-href:hover {
  text-decoration: underline;
}

.tcmo-ph-overview-extra-link-meta {
  font-size: 12px;
  color: var(--ph-faint);
}

.tcmo-ph-overview-extra-link-row .tcmo-ph-overview-extra-link-remove {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

.tcmo-ph-extra-link-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  padding: 10px 0 4px;
}

.tcmo-ph-extra-link-form[hidden] {
  display: none !important;
}

.tcmo-ph-extra-link-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
}

.tcmo-ph-extra-link-field-label {
  font-weight: 600;
  color: var(--ph-muted, #5c6670);
}

.tcmo-ph-extra-link-optional {
  font-weight: 400;
  font-size: 12px;
}

.tcmo-ph-extra-link-field input {
  width: 100%;
  box-sizing: border-box;
}

.tcmo-ph-extra-link-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tcmo-ph-btn--sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.tcmo-ph-link-hint {
  font-size: 12px;
  color: var(--ph-muted);
}

.tcmo-ph-link-slot--drive-files {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.tcmo-ph-overview-drive-files-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.tcmo-ph-docs-files--overview {
  width: 100%;
  max-height: 200px;
  margin-top: 4px;
}

.tcmo-ph-docs-files--overview:empty {
  display: none;
  margin: 0;
  border: none;
}

.tcmo-ph-link-slot--add {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.tcmo-ph-overview-add-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.tcmo-ph-docs-upload-drop--overview {
  margin-top: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 12.5px;
  text-align: left;
}

.tcmo-ph-docs-upload-drop--overview p {
  margin: 0;
}

.tcmo-ph-collab-doc-create.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.tcmo-ph-brief-template-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ph-muted);
  line-height: 1.45;
}

.tcmo-ph-brief-template-headings {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 13px;
  line-height: 1.5;
}

.tcmo-ph-brief-templates-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 720px) {
  .tcmo-ph-brief-templates-layout {
    grid-template-columns: 1fr;
  }
}

.tcmo-ph-brief-templates-sidebar .tcmo-ph-brief-templates-new {
  width: 100%;
  margin-top: 8px;
}

.tcmo-ph-brief-cats {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--ph-border, #ddd);
  border-radius: 8px;
}

.tcmo-ph-brief-cats legend {
  font-size: 12px;
  font-weight: 600;
  padding: 0 4px;
}

.tcmo-ph-brief-cat-check {
  display: inline-block;
  margin: 0 12px 6px 0;
  font-size: 13px;
}

.tcmo-ph-brief-section-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ph-border, #eee);
}

.tcmo-ph-brief-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.tcmo-ph-brief-section-head input[type='text'] {
  flex: 1 1 200px;
}

.tcmo-ph-brief-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tcmo-ph-brief-section-row textarea {
  width: 100%;
  min-height: 72px;
  font-family: inherit;
  font-size: 13px;
}

.tcmo-ph-form-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tcmo-ph-link-input-wrap {
  flex: 1 1 100%;
  margin: 0;
}

.tcmo-ph-pillar-hint {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ph-muted);
  line-height: 1.4;
}

.tcmo-ph-pillar-hint a {
  color: var(--ph-accent);
}

.tcmo-ph-tint-select {
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.tcmo-ph-tint-select--status.tcmo-ph-status-blocked,
.tcmo-ph-tint-select--priority.tcmo-ph-prio-high {
  --pill: #bf3b33;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-atrisk,
.tcmo-ph-tint-select--priority.tcmo-ph-prio-medium {
  --pill: #c2791c;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-review {
  --pill: #6a53a6;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-planning {
  --pill: #3b7a8c;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-ready {
  --pill: #2e856e;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-promoting {
  --pill: #b85d19;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-wrapup {
  --pill: #7a5c91;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-progress,
.tcmo-ph-tint-select--priority.tcmo-ph-prio-low {
  --pill: #2f6e8f;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-notstarted,
.tcmo-ph-tint-select--priority.tcmo-ph-prio-none {
  --pill: #8a929b;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-deferred {
  --pill: #5a7a8c;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-done {
  --pill: #2c7a57;
}
.tcmo-ph-tint-select--status.tcmo-ph-status-wontcomplete {
  --pill: #8b5a6b;
}

.tcmo-ph-tint-select[class*='tcmo-ph-status-'],
.tcmo-ph-tint-select[class*='tcmo-ph-prio-'] {
  border-color: color-mix(in srgb, var(--pill, #8a929b) 32%, #d0d5da) !important;
  background: color-mix(in srgb, var(--pill, #8a929b) 12%, #ffffff) !important;
  color: color-mix(in srgb, var(--pill, #8a929b) 88%, #1a1a1a) !important;
}

.tcmo-ph-drawer-tab .tcmo-ph-tab-count {
  font-weight: 600;
  opacity: 0.72;
  margin-left: 2px;
}

.tcmo-ph-mine-chip {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  color: var(--ph-mine-ink);
  background: var(--ph-mine-bg);
  border: 1px solid var(--ph-mine-border);
}

.tcmo-ph-drawer-tab.is-active .tcmo-ph-mine-chip {
  color: var(--ph-mine-ink);
  background: var(--ph-mine-bg);
  border-color: var(--ph-mine-border);
}

.tcmo-ph-card-tasks-link .tcmo-ph-mine-chip {
  margin-left: 6px;
  vertical-align: baseline;
}

.tcmo-ph-project-drawer .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 520px) {
  .tcmo-ph-overview-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 2px;
  }
}

.tcmo-ph-form-scroll > .tcmo-ph-dialog-head {
  margin-bottom: 0;
}

.tcmo-ph-form label,
.tcmo-ph-form .tcmo-ph-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ph-muted);
  margin: 0;
  padding: 10px 2px;
  border-bottom: none;
  background: transparent;
  box-sizing: border-box;
}

.tcmo-ph-form-cells > .tcmo-ph-field,
.tcmo-ph-form-cells > .tcmo-ph-form-row,
.tcmo-ph-form-cells > .tcmo-ph-docs-field {
  border-bottom: none;
}

.tcmo-ph-form-cells > :last-child {
  border-bottom: none;
}

.tcmo-ph-form-cells .tcmo-ph-field {
  border-bottom: none;
}

.tcmo-ph-form-cells > .tcmo-ph-form-row {
  border-bottom: none;
}

.tcmo-ph-form .tcmo-ph-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.tcmo-ph-form .tcmo-ph-form-row > .tcmo-ph-field {
  border-bottom: none;
  border-right: none;
  padding-left: 2px;
  padding-right: 2px;
}

.tcmo-ph-form .tcmo-ph-form-row > .tcmo-ph-field:last-child {
  border-right: none;
}

@media (max-width: 520px) {
  .tcmo-ph-form .tcmo-ph-form-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .tcmo-ph-form .tcmo-ph-form-row > .tcmo-ph-field {
    border-right: none;
    border-bottom: none;
  }
  .tcmo-ph-form .tcmo-ph-form-row > .tcmo-ph-field:last-child {
    border-bottom: none;
  }
}

#tcmo-ph-project-drawer:not(.tcmo-ph-project-drawer--create) .tcmo-ph-dialog-create-only {
  display: none;
}

#tcmo-ph-project-drawer.tcmo-ph-project-drawer--create .tcmo-ph-drawer-panel {
  display: block !important;
}

#tcmo-ph-edit-dialog.tcmo-ph-dialog--details .tcmo-ph-dialog-create-only {
  display: none !important;
}

#tcmo-ph-edit-dialog.tcmo-ph-dialog--details .tcmo-ph-form-row--owner-progress {
  grid-template-columns: 1fr;
}

#tcmo-ph-edit-dialog.tcmo-ph-dialog--details .tcmo-ph-form-row--owner-progress > .tcmo-ph-field--progress {
  border-right: none;
}

.tcmo-ph-field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ph-muted);
}

.tcmo-ph-form .tcmo-ph-docs-field {
  margin: 0;
  padding: 10px 2px;
  border-bottom: none;
}

.tcmo-ph-form .tcmo-ph-form-section .tcmo-ph-docs-field {
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: none;
}

.tcmo-ph-tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tcmo-ph-tasks-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tcmo-ph-tasks-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.tcmo-ph-task-add-below {
  margin-top: 0;
  width: auto;
  max-width: 100%;
}

[data-drawer-panel='tasks'] .tcmo-ph-form-section-head {
  position: sticky;
  top: -12px;
  z-index: 5;
  background: var(--ph-surface);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.tcmo-ph-task-edit {
  border: 1px solid var(--ph-hairline);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fafbfc;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.tcmo-ph-task-edit--board {
  background: #eef5f8;
  border-color: color-mix(in srgb, var(--ph-progress, #2f6e8f) 28%, #cfd5da);
}

.tcmo-ph-task-edit-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tcmo-ph-task-edit-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(7.5rem, 0.7fr);
  gap: 6px;
  align-items: center;
}

.tcmo-ph-asg-picker {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

.tcmo-ph-asg-picker.is-open {
  z-index: 40;
}

.tcmo-ph-asg-board-btn {
  appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  min-height: 34px;
  border: 1px solid var(--ph-hairline);
  border-radius: 8px;
  background: #fff;
  color: var(--ph-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tcmo-ph-asg-board-btn:hover,
.tcmo-ph-asg-board-btn:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--ph-progress, #2f6e8f) 40%, #cfd5da);
  color: var(--ph-progress, #2f6e8f);
}

.tcmo-ph-asg-board-btn[aria-pressed="true"],
.tcmo-ph-asg-picker.is-board .tcmo-ph-asg-board-btn {
  background: #eef5f8;
  border-color: color-mix(in srgb, var(--ph-progress, #2f6e8f) 35%, #cfd5da);
  color: var(--ph-progress, #2f6e8f);
}

.tcmo-ph-asg-picker-sep {
  flex: 0 0 auto;
  height: 1px;
  margin: 4px 2px 6px;
  background: var(--ph-hairline);
}

.tcmo-ph-asg-picker-toggle {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 9px;
  min-height: 34px;
  border: 1px solid var(--ph-hairline);
  border-radius: 8px;
  background: #fff;
  color: var(--ph-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.tcmo-ph-asg-picker-toggle:hover,
.tcmo-ph-asg-picker-toggle:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--ph-accent) 50%, #cfd5da);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ph-accent) 16%, transparent);
}

.tcmo-ph-asg-picker-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcmo-ph-asg-picker-label.is-placeholder {
  color: var(--ph-muted);
  font-weight: 500;
}

.tcmo-ph-asg-picker-caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ph-muted);
  opacity: 0.85;
}

.tcmo-ph-asg-picker.is-open .tcmo-ph-asg-picker-caret {
  transform: rotate(180deg);
}

.tcmo-ph-asg-picker-menu {
  position: fixed;
  min-width: 11rem;
  max-height: min(14rem, calc(100vh - 24px));
  overflow: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--ph-hairline);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 30, 40, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10050;
}

.tcmo-ph-asg-picker-menu[hidden] {
  display: none !important;
}

.tcmo-ph-asg-picker-empty {
  margin: 0;
  padding: 8px;
  font-size: 12.5px;
  color: var(--ph-muted);
}

.tcmo-ph-asg-picker-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 7px 8px !important;
  border-radius: 7px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: var(--ph-ink) !important;
  cursor: pointer;
  user-select: none;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  text-align: left !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tcmo-ph-asg-picker-option:hover {
  background: #f3f6f8 !important;
}

.tcmo-ph-asg-picker-option input[type="checkbox"] {
  /* Override Materialize's site-wide checkbox hide (absolute + left:-9999). */
  position: static !important;
  left: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  margin: 0 !important;
  width: 15px !important;
  height: 15px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  accent-color: var(--ph-accent);
  flex: 0 0 auto !important;
  display: inline-block !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
}

.tcmo-ph-asg-picker-option span,
.tcmo-ph-asg-picker-option > span {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  min-width: 0;
  max-width: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  height: auto !important;
  width: auto !important;
}

/* Kill Materialize's custom checkbox chrome inside our picker. */
.tcmo-ph-asg-picker-option [type="checkbox"] + span::before,
.tcmo-ph-asg-picker-option [type="checkbox"] + span::after,
.tcmo-ph-asg-picker-option [type="checkbox"]:not(.filled-in) + span::before,
.tcmo-ph-asg-picker-option [type="checkbox"]:not(.filled-in) + span::after,
.tcmo-ph-asg-picker-option [type="checkbox"].filled-in + span::before,
.tcmo-ph-asg-picker-option [type="checkbox"].filled-in + span::after {
  content: none !important;
  display: none !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  width: 0 !important;
  height: 0 !important;
}

.tcmo-ph-asg-picker.is-board .tcmo-ph-asg-picker-toggle {
  background: #eef5f8;
  border-color: color-mix(in srgb, var(--ph-progress, #2f6e8f) 28%, #cfd5da);
}

@media (max-width: 520px) {
  .tcmo-ph-task-edit-fields {
    grid-template-columns: 1fr;
  }
}

.tcmo-ph-task-edit-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
}

.tcmo-ph-icon-action {
  appearance: none;
  border: 1px solid var(--ph-hairline);
  background: #fff;
  color: var(--ph-ink);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.tcmo-ph-icon-action:hover,
.tcmo-ph-icon-action:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--ph-accent) 45%, #cfd5da);
  background: #f3f7f4;
  color: var(--ph-accent);
}

.tcmo-ph-icon-action--danger:hover,
.tcmo-ph-icon-action--danger:focus {
  border-color: color-mix(in srgb, var(--ph-blocked, #bf3b33) 40%, #cfd5da);
  background: #fdf4f3;
  color: var(--ph-blocked, #bf3b33);
}

.tcmo-ph-icon-action:disabled {
  opacity: 0.55;
  cursor: default;
}

.tcmo-ph-task-edit-kind {
  display: none;
}

.tcmo-ph-task-edit input[type="text"],
.tcmo-ph-task-edit input[type="date"],
.tcmo-ph-task-edit select {
  width: 100%;
  box-sizing: border-box;
}

.tcmo-ph-task-board-list,
.tcmo-ph-task-board-progress {
  display: none;
}

.tcmo-ph-tasks-empty {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ph-muted);
  margin: 0 0 2px;
}

.tcmo-ph-drawer-tasks {
  margin: 0;
  padding: 0;
  border-top: none;
}

.tcmo-ph-drawer-tasks .tcmo-ph-card-tasks {
  gap: 4px;
}

.tcmo-ph-drawer-tasks .tcmo-ph-card-task {
  padding: 8px 10px;
  border: 1px solid transparent;
}

.tcmo-ph-drawer-tasks .tcmo-ph-card-task:not(.is-editing):not(.tcmo-ph-card-task--mine):hover {
  background: #f4f6f8;
  border-color: var(--ph-hairline);
}

.tcmo-ph-card-task--mine {
  background: var(--ph-mine-bg);
  border: 1px solid var(--ph-mine-border);
  box-shadow: inset 3px 0 0 var(--ph-mine-border);
}

.tcmo-ph-card-task--mine.tcmo-ph-card-task--board {
  background: var(--ph-mine-bg);
  border-color: var(--ph-mine-border);
}

.tcmo-ph-card-task--mine.is-done {
  background: color-mix(in srgb, var(--ph-mine-bg) 55%, #fff);
  border-color: color-mix(in srgb, var(--ph-mine-border) 70%, #fff);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--ph-mine-border) 75%, #fff);
}

.tcmo-ph-drawer-tasks .tcmo-ph-card-task--mine:not(.is-editing):hover {
  background: color-mix(in srgb, var(--ph-mine-bg) 82%, #f0e8c8);
  border-color: var(--ph-mine-border);
}

.tcmo-ph-card-task--mine.is-editing {
  background: color-mix(in srgb, var(--ph-mine-bg) 45%, #fff);
  border-color: var(--ph-mine-border);
  box-shadow: inset 3px 0 0 var(--ph-mine-border);
}

.tcmo-ph-drawer-tasks-completed-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 10px 0 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ph-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.tcmo-ph-drawer-tasks-completed-caret {
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.tcmo-ph-drawer-tasks-completed-caret::before {
  content: '▸';
}

.tcmo-ph-drawer-tasks-completed-toggle[aria-expanded='true'] .tcmo-ph-drawer-tasks-completed-caret {
  transform: rotate(90deg);
}

.tcmo-ph-tasks-section-count .tcmo-ph-tab-count {
  font-size: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.tcmo-ph-drawer-tasks-completed-toggle:hover,
.tcmo-ph-drawer-tasks-completed-toggle:focus {
  outline: none;
  background: #f0f3f5;
  color: var(--ph-ink);
}

.tcmo-ph-drawer-tasks-completed {
  opacity: 0.92;
}

.tcmo-ph-card-task-meta--overdue {
  color: var(--ph-blocked, #bf3b33);
}

.tcmo-ph-card-tasks-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ph-hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tcmo-ph-card-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tcmo-ph-card-tasks[hidden],
.tcmo-ph-drawer-tasks-completed[hidden] {
  display: none !important;
}

.tcmo-ph-card-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ph-ink);
  padding: 6px 8px;
  border-radius: 8px;
}

.tcmo-ph-card-task-body {
  min-width: 0;
}

.tcmo-ph-card-task--board {
  background: #eef5f8;
  border: 1px solid color-mix(in srgb, var(--ph-progress, #2f6e8f) 22%, #d7dee4);
}

.tcmo-ph-card-task-mark {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.tcmo-ph-card-task.is-done .tcmo-ph-card-task-name {
  text-decoration: line-through;
  color: var(--ph-muted);
}

.tcmo-ph-card-task-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tcmo-ph-card-task-meta {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ph-muted);
  margin-top: 1px;
}

.tcmo-ph-card-task-count {
  position: relative;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ph-progress, #2f6e8f);
  white-space: nowrap;
  padding-top: 1px;
  justify-self: end;
  cursor: help;
  outline: none;
}

.tcmo-ph-card-task-count:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ph-progress, #2f6e8f) 45%, transparent);
}

.tcmo-ph-card-task--board.is-done .tcmo-ph-card-task-count {
  color: var(--ph-done, #2c7a57);
}

.tcmo-ph-task-count-tip {
  position: fixed;
  z-index: 10050;
  min-width: 11rem;
  max-width: 16rem;
  max-height: min(18rem, calc(100vh - 16px));
  overflow: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ph-surface, #fff);
  color: var(--ph-ink, #1b2126);
  border: 1px solid var(--ph-hairline, #e4e8ec);
  box-shadow: 0 4px 18px rgba(20, 30, 40, 0.14);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.tcmo-ph-task-count-tip[hidden] {
  display: none !important;
}

.tcmo-ph-task-count-tip-section + .tcmo-ph-task-count-tip-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ph-hairline, #e4e8ec);
}

.tcmo-ph-task-count-tip-heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-muted, #5c6770);
  margin-bottom: 4px;
}

.tcmo-ph-task-count-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tcmo-ph-task-count-tip-list li {
  margin: 0;
  padding: 0;
  color: var(--ph-ink, #1b2126);
  font-weight: 500;
}

.tcmo-ph-task-count-tip-empty {
  margin: 0;
  color: var(--ph-faint, #8a929b);
  font-style: italic;
  font-weight: 500;
}

.tcmo-ph-card-task input[type="checkbox"] {
  margin: 2px 0 0;
  accent-color: var(--ph-accent);
  cursor: pointer;
}

.tcmo-ph-card-task.is-saving,
.tcmo-ph-tasks-item.is-saving {
  opacity: 0.78;
  pointer-events: none;
}

.tcmo-ph-card-task-saving {
  justify-self: end;
  align-self: start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ph-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.tcmo-ph-card-task--editable .tcmo-ph-card-task-body--editable {
  cursor: pointer;
  border-radius: 6px;
  margin: -2px -4px;
  padding: 2px 4px;
}

.tcmo-ph-card-task--editable .tcmo-ph-card-task-body--editable:hover {
  background: color-mix(in srgb, var(--ph-accent, #2f6e8f) 6%, transparent);
}

.tcmo-ph-card-task.is-editing {
  align-items: start;
  background: color-mix(in srgb, var(--ph-accent, #2f6e8f) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--ph-accent, #2f6e8f) 18%, #d7dee4);
  padding: 8px;
}

.tcmo-ph-card-task.is-editing.tcmo-ph-card-task--board,
.tcmo-ph-card-task.is-editing.is-draft.tcmo-ph-card-task--board {
  background: #eef5f8;
}

.tcmo-ph-card-task.is-editing .tcmo-ph-card-task-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tcmo-ph-card-task-edit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tcmo-ph-card-task-field {
  min-width: 0;
}

.tcmo-ph-card-task-field--name {
  width: 100%;
}

.tcmo-ph-card-task-field-summary {
  appearance: none;
  border: none;
  background: #f2f4f6;
  color: var(--ph-ink);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}

.tcmo-ph-card-task-field-summary.is-placeholder {
  color: var(--ph-muted);
}

.tcmo-ph-card-task-field.is-invalid .tcmo-ph-card-task-field-summary,
.tcmo-ph-card-task-field.is-invalid .tcmo-ph-asg-picker-toggle {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ph-blocked, #bf3b33) 35%, transparent);
  border-color: color-mix(in srgb, var(--ph-blocked, #bf3b33) 45%, #cfd5da);
}

.tcmo-ph-card-task-field-summary:hover,
.tcmo-ph-card-task-field-summary:focus {
  outline: none;
  background: #e8ecf0;
}

.tcmo-ph-card-task-name-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: var(--ph-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0;
  margin: 0;
  min-height: 0;
}

.tcmo-ph-card-task-name-input:focus {
  outline: none;
}

.tcmo-ph-card-task-name-input::placeholder {
  color: var(--ph-muted);
  font-weight: 500;
}

.tcmo-ph-card-task.is-editing .tcmo-ph-card-task-save {
  justify-self: end;
  align-self: start;
}

.tcmo-ph-card-task-edit-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tcmo-ph-card-task.is-editing .tcmo-ph-card-task-edit-actions {
  justify-self: end;
  align-self: start;
}

.tcmo-ph-card-task.is-editing .tcmo-ph-icon-action {
  width: 28px;
  height: 28px;
}

.tcmo-ph-card-task.is-editing .tcmo-ph-asg-picker-toggle {
  min-height: 28px;
  font-size: 11.5px;
  padding: 3px 8px;
}

.tcmo-ph-card-task.is-editing .tcmo-ph-inline-wrap {
  font-size: 11.5px;
}

.tcmo-ph-card-task-add-trigger {
  appearance: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px dashed color-mix(in srgb, var(--ph-hairline, #e4e8ec) 70%, #b8c0c8);
  background: transparent;
  color: var(--ph-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.35;
}

.tcmo-ph-card-task-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tcmo-ph-card-drive-add-trigger {
  appearance: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px dashed color-mix(in srgb, var(--ph-hairline, #e4e8ec) 70%, #b8c0c8);
  background: transparent;
  color: var(--ph-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.35;
}

.tcmo-ph-card-task-add-trigger:hover,
.tcmo-ph-card-task-add-trigger:focus,
.tcmo-ph-card-drive-add-trigger:hover,
.tcmo-ph-card-drive-add-trigger:focus {
  outline: none;
  color: var(--ph-ink);
  border-color: color-mix(in srgb, var(--ph-accent, #2f6e8f) 35%, #cfd5da);
  background: color-mix(in srgb, var(--ph-accent, #2f6e8f) 5%, transparent);
}

.tcmo-ph-card-task-add-trigger[hidden] {
  display: none !important;
}

.tcmo-ph-field--title textarea,
.tcmo-ph-field--title #tcmo-ph-field-title {
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  min-height: 52px !important;
  max-height: 7.5em !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  font-family: var(--font-serif, Georgia, serif) !important;
  line-height: 1.3 !important;
  resize: vertical !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tcmo-ph-save-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ph-done, #2c7a57);
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.tcmo-ph-save-status.is-visible {
  opacity: 1;
}

.tcmo-ph-save-status.is-error {
  color: var(--ph-blocked, #bf3b33);
}

.tcmo-ph-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tcmo-ph-choice-pill {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid color-mix(in srgb, var(--pill, #8a929b) 30%, #d0d5da) !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  font: inherit !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  background: color-mix(in srgb, var(--pill, #8a929b) 14%, #ffffff) !important;
  color: var(--pill, #8a929b) !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  text-transform: none !important;
}

.tcmo-ph-choice-pill:hover,
.tcmo-ph-choice-pill:focus {
  outline: none !important;
  background: color-mix(in srgb, var(--pill, #8a929b) 22%, #ffffff) !important;
  color: var(--pill, #8a929b) !important;
  filter: none !important;
}

.tcmo-ph-choice-pill.is-selected,
.tcmo-ph-choice-pill.is-selected:hover,
.tcmo-ph-choice-pill.is-selected:focus {
  background: var(--pill, #8a929b) !important;
  color: #fff !important;
  border-color: var(--pill, #8a929b) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pill, #8a929b) 24%, transparent) !important;
}

/* Status palette (matches card board) */
.tcmo-ph-choice-pill.tcmo-ph-status-done { --pill: #2c7a57; }
.tcmo-ph-choice-pill.tcmo-ph-status-progress { --pill: #2f6e8f; }
.tcmo-ph-choice-pill.tcmo-ph-status-review { --pill: #6a53a6; }
.tcmo-ph-choice-pill.tcmo-ph-status-planning { --pill: #3b7a8c; }
.tcmo-ph-choice-pill.tcmo-ph-status-ready { --pill: #2e856e; }
.tcmo-ph-choice-pill.tcmo-ph-status-promoting { --pill: #b85d19; }
.tcmo-ph-choice-pill.tcmo-ph-status-wrapup { --pill: #7a5c91; }
.tcmo-ph-choice-pill.tcmo-ph-status-atrisk { --pill: #c2791c; }
.tcmo-ph-choice-pill.tcmo-ph-status-blocked { --pill: #bf3b33; }
.tcmo-ph-choice-pill.tcmo-ph-status-notstarted { --pill: #8a929b; }
.tcmo-ph-choice-pill.tcmo-ph-status-deferred { --pill: #5a7a8c; }
.tcmo-ph-choice-pill.tcmo-ph-status-wontcomplete { --pill: #8b5a6b; }

/* Priority palette */
.tcmo-ph-choice-pill.tcmo-ph-prio-high { --pill: #bf3b33; }
.tcmo-ph-choice-pill.tcmo-ph-prio-medium { --pill: #c2791c; }
.tcmo-ph-choice-pill.tcmo-ph-prio-low { --pill: #2f6e8f; }
.tcmo-ph-choice-pill.tcmo-ph-prio-none { --pill: #8a929b; }

.tcmo-ph-progress-ctl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tcmo-ph-progress-ctl input[type="range"] {
  flex: 1;
  width: 100%;
  min-height: 0 !important;
  height: 28px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: var(--ph-accent);
  cursor: pointer;
}

.tcmo-ph-progress-ctl input[type="range"]:focus {
  box-shadow: none !important;
  border: none !important;
}

.tcmo-ph-progress-val {
  flex: 0 0 auto;
  min-width: 3.2em;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--ph-ink);
  font-variant-numeric: tabular-nums;
}

.tcmo-ph-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .tcmo-ph-form-row {
    grid-template-columns: 1fr;
  }
}

.tcmo-ph-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--ph-hairline);
  background: #fff;
  position: relative;
  z-index: 5;
  box-shadow: 0 -10px 18px rgba(20, 30, 40, 0.05);
}

.tcmo-ph-icon-btn {
  background: transparent !important;
  color: var(--ph-muted) !important;
}

.tcmo-ph-icon-btn:hover,
.tcmo-ph-icon-btn:focus {
  background: #eef1f3 !important;
  color: var(--ph-ink) !important;
}

.tcmo-ph-dialog-spacer {
  flex: 1;
}

.tcmo-ph-lede {
  margin: 0 0 8px;
  color: var(--ph-muted);
  font-size: 14px;
}

.tcmo-ph-step {
  display: none;
}

.tcmo-ph-step.is-active {
  display: block;
}

.tcmo-ph-review-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tcmo-ph-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(50vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.tcmo-ph-review-item {
  border: 1px solid var(--ph-hairline);
  border-radius: 12px;
  padding: 12px;
  background: #fafbfc;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.tcmo-ph-review-item .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tcmo-ph-review-item .fields .full {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .tcmo-ph-review-item .fields {
    grid-template-columns: 1fr;
  }
}

.tcmo-ph-status-done { --c: var(--ph-done); }
.tcmo-ph-status-progress { --c: var(--ph-progress); }
.tcmo-ph-status-review { --c: var(--ph-review); }
.tcmo-ph-status-planning { --c: var(--ph-planning); }
.tcmo-ph-status-ready { --c: var(--ph-ready); }
.tcmo-ph-status-promoting { --c: var(--ph-promoting); }
.tcmo-ph-status-wrapup { --c: var(--ph-wrapup); }
.tcmo-ph-status-atrisk { --c: var(--ph-atrisk); }
.tcmo-ph-status-blocked { --c: var(--ph-blocked); }
.tcmo-ph-status-notstarted { --c: var(--ph-notstarted); }
.tcmo-ph-status-deferred { --c: var(--ph-deferred); }
.tcmo-ph-status-wontcomplete { --c: var(--ph-wontcomplete); }

/* --- Section nav (Projects | Meetings | Comms | Reports) + per-section sub-tabs --- */
.tcmo-ph-brand-block {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 20px;
  flex: 1 1 auto;
  min-width: 0;
}

.tcmo-ph-brand-block .tcmo-ph-view-nav {
  flex: 0 1 auto;
  min-width: 0;
}

@media (max-width: 720px) {
  .tcmo-ph-topbar {
    flex-wrap: wrap;
  }

  .tcmo-ph-brand-block {
    flex-wrap: wrap;
    flex: 1 1 100%;
  }

  .tcmo-ph-brand-block .tcmo-ph-view-nav {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.tcmo-ph-view-nav {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #e8ecef;
  border-radius: 999px;
}

.tcmo-ph-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ph-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.tcmo-ph-view-btn.is-active {
  background: var(--ph-surface);
  color: var(--ph-ink);
  box-shadow: 0 1px 2px rgba(20, 30, 40, 0.08);
}

.tcmo-ph-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  height: 1.25em;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #bf3b33;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.tcmo-ph-nav-badge[hidden] {
  display: none !important;
}

.tcmo-ph-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ph-hairline);
  flex-shrink: 0;
}

.tcmo-ph-subnav[hidden],
.tcmo-ph-subnav-group[hidden] {
  display: none !important;
}

.tcmo-ph-subnav-group {
  display: inline-flex;
  gap: 18px;
  border-bottom: 0;
  flex: 0 0 auto;
}

.tcmo-ph-subnav .tcmo-ph-projects-timeline-controls {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.tcmo-ph-subnav .tcmo-ph-projects-timeline-controls .tcmo-ph-control-row {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.tcmo-ph-subnav .tcmo-ph-toolbar-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  max-width: 100%;
}

.tcmo-ph-subnav .tcmo-ph-inline-label {
  font-size: 12px;
  gap: 6px;
}

.tcmo-ph-subnav .tcmo-ph-inline-label select,
.tcmo-ph-subnav .tcmo-ph-who {
  min-width: 115px;
  min-height: 30px;
  padding: 4px 10px !important;
  font-size: 12.5px !important;
}

.tcmo-ph-subnav .tcmo-ph-search-wrap--collapsible {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 0;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  overflow: hidden;
  transition: max-width 0.2s ease, width 0.2s ease;
}

.tcmo-ph-subnav .tcmo-ph-search-wrap--collapsible.is-open,
.tcmo-ph-subnav .tcmo-ph-search-wrap--collapsible:focus-within {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  padding-left: 30px;
}

.tcmo-ph-subnav .tcmo-ph-search-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  flex-shrink: 0;
  color: var(--ph-muted) !important;
}

.tcmo-ph-subnav .tcmo-ph-search-toggle:hover,
.tcmo-ph-subnav .tcmo-ph-search-toggle:focus-visible {
  color: var(--ph-ink) !important;
  background: #eef1f3 !important;
}

.tcmo-ph-subnav .tcmo-ph-search-wrap--collapsible .tcmo-ph-search--compact {
  position: relative;
  width: 100%;
  min-height: 30px;
  padding: 4px 10px 4px 8px !important;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.tcmo-ph-subnav .tcmo-ph-search-wrap--collapsible.is-open .tcmo-ph-search--compact,
.tcmo-ph-subnav .tcmo-ph-search-wrap--collapsible:focus-within .tcmo-ph-search--compact {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .tcmo-ph-subnav .tcmo-ph-projects-timeline-controls .tcmo-ph-control-row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tcmo-ph-subnav .tcmo-ph-toolbar-cluster {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
  }
}

.tcmo-ph-sort-wrap.is-hidden {
  display: none !important;
}

.tcmo-ph-subnav-btn {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--ph-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 2px 8px;
  cursor: pointer;
}

.tcmo-ph-subnav-btn:hover {
  color: var(--ph-ink);
}

.tcmo-ph-subnav-btn.is-active {
  color: var(--ph-ink);
  border-bottom-color: var(--ph-accent-warm);
}

.tcmo-ph-activity-bell {
  position: relative;
}

.tcmo-ph-activity-bell.is-active {
  background: #e8ecef !important;
  color: var(--ph-ink) !important;
}

.tcmo-ph-activity-bell .tcmo-ph-nav-badge {
  position: absolute;
  top: 0;
  right: -2px;
  margin-left: 0;
  font-size: 10px;
}

.tcmo-ph-activity-panel {
  max-width: 720px;
}

.tcmo-ph-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tcmo-ph-activity-empty {
  margin: 0;
  padding: 18px 4px;
  color: var(--ph-muted);
  font-size: 14px;
}

.tcmo-ph-activity-row {
  appearance: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.tcmo-ph-activity-row:hover,
.tcmo-ph-activity-row:focus-visible {
  background: #eef2f5;
  outline: none;
}

.tcmo-ph-activity-row.is-unread {
  background: #f4f8fb;
}

.tcmo-ph-activity-row.is-unread .tcmo-ph-activity-title::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #2f6e8f;
  vertical-align: middle;
}

.tcmo-ph-activity-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tcmo-ph-activity-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ph-ink);
}

.tcmo-ph-activity-summary {
  font-size: 13px;
  color: var(--ph-muted);
  line-height: 1.35;
}

.tcmo-ph-activity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ph-muted);
}

.tcmo-ph-activity-actor {
  font-weight: 600;
  color: var(--ph-ink);
}

.tcmo-ph-view[hidden] {
  display: none !important;
}

.tcmo-ph-faint,
.tcmo-ph-empty {
  color: var(--ph-faint);
  margin: 0;
}

/* --- Collaboration --- */
.tcmo-ph-collab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}

.tcmo-ph-collab-panel[hidden] {
  display: none !important;
}

.tcmo-ph-collab-panel {
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
  border-radius: var(--ph-radius);
  box-shadow: var(--ph-shadow);
  padding: 18px 18px 14px;
  margin-top: 20px;
}

.tcmo-ph-collab-grid .tcmo-ph-collab-panel {
  margin-top: 0;
}

.tcmo-ph-collab-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.tcmo-ph-collab-panel-titles {
  min-width: 0;
}

.tcmo-ph-collab-panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tcmo-ph-collab-lede {
  margin: 4px 0 0;
  color: var(--ph-muted);
  font-size: 0.92rem;
}

.tcmo-ph-collab-panel-head .tcmo-ph-btn {
  flex-shrink: 0;
  margin-top: 2px;
}

.tcmo-ph-view--board .tcmo-ph-roster-panel {
  margin-top: 8px;
}

.tcmo-ph-collab-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.tcmo-ph-collab-row {
  border: 1px solid var(--ph-hairline);
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
}

.tcmo-ph-collab-row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}

.tcmo-ph-collab-row-link:hover {
  background: #f1f4f6;
}

.tcmo-ph-collab-row-link.is-disabled {
  cursor: default;
}

.tcmo-ph-collab-row-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.tcmo-ph-collab-open {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ph-accent);
}

.tcmo-ph-collab-notes {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--ph-muted);
}

.tcmo-ph-status-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef1f3;
  color: var(--ph-ink);
}

/* --- Roster --- */
.tcmo-ph-roster {
  overflow-x: auto;
}

.tcmo-ph-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tcmo-ph-roster-table th,
.tcmo-ph-roster-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ph-hairline);
  vertical-align: middle;
}

.tcmo-ph-roster-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ph-muted);
  font-weight: 650;
}

.tcmo-ph-roster-phone {
  width: 100%;
  max-width: 14rem;
  font: inherit;
  padding: 7px 10px;
  border: 1px solid var(--ph-hairline);
  border-radius: 8px;
  background: #fff;
}

.tcmo-ph-roster-phone.is-saving {
  opacity: 0.65;
}

.tcmo-ph-roster-phone.is-saved {
  border-color: var(--ph-done);
}

/* --- Calendar feed (Projects board) --- */
.tcmo-ph-calendar-feed {
  margin-top: 14px;
}

.tcmo-ph-calendar-feed-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tcmo-ph-calendar-feed .tcmo-ph-section-head .tcmo-ph-btn {
  flex-shrink: 0;
}

.tcmo-ph-calendar-feed-body {
  padding: 16px;
}

.tcmo-ph-upcoming {
  margin-bottom: 0;
}

.tcmo-ph-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.tcmo-ph-event-card {
  border: 1px solid var(--ph-hairline);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafbfc;
}

.tcmo-ph-event-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 650;
}

.tcmo-ph-event-when,
.tcmo-ph-event-loc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ph-muted);
}

.tcmo-ph-event-loc {
  margin-top: 4px;
}

.tcmo-ph-calendar-more-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.tcmo-ph-cal-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f1ea;
  color: var(--ph-muted);
  font-size: 0.9rem;
}

.tcmo-ph-cal-steps {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  color: var(--ph-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36rem;
}

.tcmo-ph-cal-steps a {
  color: var(--ph-accent);
}

.tcmo-ph-cal-status {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--ph-ink);
  font-weight: 600;
}

#tcmo-ph-calendar-secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
}

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


/* --- Events oversight --- */
.tcmo-ph-events-root {
  padding: 0 0 2rem;
}
.tcmo-ph-events-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
}
.tcmo-ph-events-picker label {
  font-weight: 600;
  font-size: 0.9rem;
}
.tcmo-ph-events-select {
  min-width: min(100%, 28rem);
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  font: inherit;
  border: 1px solid var(--tcmo-ph-border, #d8d8d8);
  border-radius: 6px;
  background: #fff;
}
.tcmo-ph-events-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.tcmo-ph-events-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.tcmo-ph-events-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.tcmo-ph-events-grid {
  display: grid;
  gap: 1rem;
}
.tcmo-ph-events-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.tcmo-ph-events-card h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.tcmo-ph-events-card--wide {
  grid-column: 1 / -1;
}
.tcmo-ph-events-kpi {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.tcmo-ph-events-table-wrap {
  overflow-x: auto;
}
.tcmo-ph-events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tcmo-ph-events-table th,
.tcmo-ph-events-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--ph-hairline);
  vertical-align: top;
}
.tcmo-ph-events-table code {
  font-size: 0.85rem;
}
.tcmo-ph-events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0.75rem 0;
}
.tcmo-ph-events-filters .tcmo-ph-search {
  flex: 1;
  min-width: 12rem;
}
.tcmo-ph-events-sources {
  margin: 0;
  padding-left: 1.1rem;
}
.tcmo-ph-events-status {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}
@media (min-width: 900px) {
  .tcmo-ph-events-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tcmo-ph-events-kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--ph-hairline);
}
.tcmo-ph-feedback-q + .tcmo-ph-feedback-q {
  margin-top: 1.1rem;
}
.tcmo-ph-feedback-q h5 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
}
.tcmo-ph-feedback-row {
  display: grid;
  grid-template-columns: minmax(7rem, 16rem) minmax(4rem, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin: 0.3rem 0;
  font-size: 0.88rem;
}
.tcmo-ph-feedback-track {
  height: 0.5rem;
  background: color-mix(in srgb, var(--ph-accent) 12%, var(--ph-hairline));
  border-radius: 999px;
  overflow: hidden;
}
.tcmo-ph-feedback-fill {
  display: block;
  height: 100%;
  background: var(--ph-accent);
  border-radius: 999px;
}
.tcmo-ph-feedback-count {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tcmo-ph-feedback-comments {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.tcmo-ph-feedback-comments li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ph-hairline);
}
.tcmo-ph-feedback-comments time {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}
@media (max-width: 640px) {
  .tcmo-ph-feedback-row {
    grid-template-columns: 1fr auto;
  }
  .tcmo-ph-feedback-track {
    grid-column: 1 / -1;
  }
}

/* --- Reports → Polls --- */
.tcmo-ph-polls-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.tcmo-ph-polls-card-head h4 {
  margin: 0 0 0.25rem;
}
.tcmo-ph-polls-intro {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}
.tcmo-ph-polls-meta {
  margin: 0;
  font-size: 0.85rem;
}
.tcmo-ph-polls-status.is-open {
  color: var(--ph-done);
  background: color-mix(in srgb, var(--ph-done) 12%, white);
}
.tcmo-ph-polls-status.is-scheduled {
  color: var(--ph-accent);
  background: color-mix(in srgb, var(--ph-accent) 12%, white);
}
.tcmo-ph-polls-status.is-draft {
  color: var(--ph-muted);
}
.tcmo-ph-polls-card.is-highlighted {
  border-color: var(--ph-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ph-accent) 25%, transparent);
}
.tcmo-ph-polls-other {
  margin-top: 0.75rem;
}
.tcmo-ph-polls-other summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
.tcmo-ph-events-kind--school {
  color: #1a5f3a;
  background: rgba(26, 95, 58, 0.08);
  border-color: rgba(26, 95, 58, 0.25);
}
.tcmo-ph-metrics-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tcmo-ph-metrics-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.tcmo-ph-metrics-goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.tcmo-ph-metrics-goal-card {
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.tcmo-ph-metrics-goal-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ph-muted, #666);
}
.tcmo-ph-metrics-big {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}
.tcmo-ph-metrics-progress {
  height: 6px;
  background: var(--ph-hairline);
  border-radius: 3px;
  margin: 0.75rem 0 0.35rem;
  overflow: hidden;
}
.tcmo-ph-metrics-progress-fill {
  height: 100%;
  background: #1a5f3a;
  border-radius: 3px;
}
.tcmo-ph-metrics-track {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.tcmo-ph-metrics-track--ahead {
  color: #1a5f3a;
}
.tcmo-ph-metrics-track--on_track {
  color: #1e3a5f;
}
.tcmo-ph-metrics-track--behind {
  color: #9a3412;
}
.tcmo-ph-metrics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}
.tcmo-ph-metrics-kpi {
  text-align: left;
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  cursor: default;
  font: inherit;
  color: inherit;
}
.tcmo-ph-metrics-kpi--click:not(:disabled) {
  cursor: pointer;
}
.tcmo-ph-metrics-kpi--click:not(:disabled):hover {
  border-color: #1e3a5f;
}
.tcmo-ph-metrics-kpi-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
}
.tcmo-ph-metrics-kpi-label {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
.tcmo-ph-metrics-kpi-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--ph-muted, #666);
  margin-top: 0.25rem;
}
.tcmo-ph-metrics-section h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.tcmo-ph-metrics-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.tcmo-ph-metrics-legend-item i {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.tcmo-ph-metrics-chart-bars {
  display: flex;
  gap: 0.35rem;
  align-items: flex-end;
  min-height: 8rem;
  padding: 0.5rem 0;
}
.tcmo-ph-metrics-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.tcmo-ph-metrics-chart-stack {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 7rem;
  width: 100%;
}
.tcmo-ph-metrics-chart-bar {
  width: 28%;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  transition: height 0.2s ease;
}
.tcmo-ph-metrics-chart-month {
  font-size: 0.65rem;
  color: var(--ph-muted, #666);
}
.tcmo-ph-metrics-members-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.tcmo-ph-metrics-members-toolbar .tcmo-ph-search {
  flex: 1;
  min-width: 12rem;
}
.tcmo-ph-metrics-members-wrap {
  max-height: 60vh;
  overflow: auto;
}
.tcmo-ph-metrics-dialog {
  max-width: 52rem;
  width: calc(100% - 2rem);
}
.tcmo-ph-metrics-revenue .tcmo-ph-metrics-kpis {
  margin-top: 0.5rem;
}
.tcmo-ph-metrics-funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.tcmo-ph-metrics-bridge {
  margin: 0.75rem 0 0;
}
.tcmo-ph-metrics-line-wrap {
  width: 100%;
}
.tcmo-ph-metrics-line-svg {
  width: 100%;
  height: 12rem;
  display: block;
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
  border-radius: 8px;
}
.tcmo-ph-metrics-today-line {
  stroke: rgba(154, 52, 18, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.tcmo-ph-metrics-line-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.15rem;
  font-size: 0.65rem;
  color: var(--ph-muted, #666);
  margin-top: 0.35rem;
  overflow-x: auto;
}
.tcmo-ph-metrics-line-labels span {
  flex: 1;
  text-align: center;
  min-width: 1.5rem;
}
.tcmo-ph-metrics-flow-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 0.5rem 0;
}
.tcmo-ph-metrics-flow-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.tcmo-ph-metrics-flow-bar {
  width: 100%;
  max-width: 2.5rem;
  min-height: 2px;
  background: #1a5f3a;
  border-radius: 2px 2px 0 0;
}
.tcmo-ph-metrics-flow-label {
  font-size: 0.65rem;
  color: var(--ph-muted, #666);
  margin-top: 0.25rem;
  text-align: center;
}
.tcmo-ph-metrics-flow-n {
  font-size: 0.75rem;
  font-weight: 600;
}

.tcmo-ph-events-kind--association {
  color: #1e3a5f;
  background: rgba(30, 58, 95, 0.08);
  border-color: rgba(30, 58, 95, 0.25);
}
.tcmo-ph-events-kind-filter {
  min-width: 9rem;
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--ph-hairline);
  border-radius: 6px;
  background: var(--ph-surface);
  color: inherit;
}

.tcmo-ph-assistant {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100020;
  width: min(420px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ph-surface, #fff);
  border-left: 1px solid var(--ph-hairline, #ddd);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}
.tcmo-ph-assistant[hidden] {
  display: none !important;
}
.tcmo-ph-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ph-hairline, #ddd);
}
.tcmo-ph-assistant-head h2 {
  margin: 0;
  font-size: 1rem;
}
.tcmo-ph-assistant-log {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tcmo-ph-assistant-msg {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.tcmo-ph-assistant-msg--user {
  align-self: flex-end;
  background: rgba(26, 95, 58, 0.12);
  max-width: 92%;
}
.tcmo-ph-assistant-msg--assistant {
  align-self: flex-start;
  background: var(--ph-bg, #f5f5f5);
  max-width: 92%;
}
.tcmo-ph-assistant-proposal {
  margin: 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--ph-hairline, #ddd);
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fffbeb;
}
.tcmo-ph-assistant-proposal pre {
  white-space: pre-wrap;
  margin: 0.5rem 0;
  font-family: inherit;
}
.tcmo-ph-assistant-form {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--ph-hairline, #ddd);
}
.tcmo-ph-assistant-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--ph-hairline, #ddd);
  border-radius: 6px;
  resize: vertical;
}
.tcmo-ph-assistant-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.tcmo-ph-assistant-status {
  flex: 1;
  font-size: 0.8rem;
  color: var(--ph-muted, #666);
}

/* COMMS v2 — emails timeline, social kit, hub view */
.tcmo-ph-comms-section {
  margin-bottom: 28px;
}
.tcmo-ph-comms-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tcmo-ph-comms-section-head h4 {
  margin: 0;
  font-size: 0.95rem;
}
.tcmo-ph-comms-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tcmo-ph-comms-build-wrap {
  position: relative;
}
.tcmo-ph-comms-build-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ph-hairline);
  background: var(--ph-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.tcmo-ph-comms-build-menu[hidden] {
  display: none !important;
}
.tcmo-ph-comms-build-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ph-muted);
}
.tcmo-ph-comms-build-select {
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ph-ink);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--ph-hairline);
  background: #fff;
}
.tcmo-ph-comms-build-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.tcmo-ph-comms-timeline-v2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tcmo-ph-comms-tl-node {
  border: 1px solid var(--ph-hairline);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.tcmo-ph-comms-tl-node.is-today {
  border-color: var(--ph-accent, #2e7d32);
}
.tcmo-ph-comms-tl-node.is-overdue {
  border-color: #c62828;
}
.tcmo-ph-comms-tl-head-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tcmo-ph-comms-tl-head-row .tcmo-ph-comms-tl-head {
  flex: 1;
  min-width: 0;
}
.tcmo-ph-comms-tl-delete {
  flex-shrink: 0;
  margin-right: 8px;
}
.tcmo-ph-comms-tl-head {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.tcmo-ph-comms-tl-date {
  font-size: 0.78rem;
  color: var(--ph-muted);
}
.tcmo-ph-comms-tl-subj {
  font-weight: 600;
  font-size: 0.88rem;
}
.tcmo-ph-comms-tl-anchor {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f2f4f6;
  font-size: 0.85rem;
}
.tcmo-ph-comms-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--ph-muted);
  text-transform: capitalize;
}
.tcmo-ph-comms-status-pill--approved,
.tcmo-ph-comms-status-pill--ready {
  background: #e8f5e9;
  color: #2e7d32;
}
.tcmo-ph-comms-status-pill--scheduled {
  background: #e3f2fd;
  color: #1565c0;
}
.tcmo-ph-comms-status-pill--sent {
  background: #eceff1;
  color: #455a64;
}
.tcmo-ph-comms-email-editor {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--ph-hairline);
  background: #fafbfc;
}
.tcmo-ph-comms-body-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
  align-items: center;
}
.tcmo-ph-comms-email-editor .wp-editor-wrap,
.tcmo-ph-comms-hub-editor .wp-editor-wrap {
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}
.tcmo-ph-comms-email-editor .wp-editor-wrap.html-active .wp-editor-area,
.tcmo-ph-comms-hub-editor .wp-editor-wrap.html-active .wp-editor-area {
  min-height: 12rem;
}
.tcmo-ph-comms-email-editor .wp-editor-wrap.tmce-active .wp-editor-container,
.tcmo-ph-comms-hub-editor .wp-editor-wrap.tmce-active .wp-editor-container {
  min-height: 12rem;
}

.tcmo-ph-comms-drawer-root .tcmo-ph-comms-email-editor .wp-editor-wrap.tmce-active .wp-editor-container,
.tcmo-ph-comms-drawer-root .tcmo-ph-comms-email-editor .wp-editor-wrap.html-active .wp-editor-area,
.tcmo-ph-comms-drawer-root .tcmo-ph-comms-in-body--plain {
  min-height: 12rem;
  box-sizing: border-box;
}
.tcmo-ph-comms-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.tcmo-ph-comms-in-body--plain {
  white-space: pre-wrap;
  min-height: 12rem;
  width: 100%;
  box-sizing: border-box;
}
/* Visual mode: drawer form CSS uses display:block !important on textareas — hide duplicate body field. */
.tcmo-ph-drawer-form .tcmo-ph-comms-email-editor .wp-editor-wrap.tmce-active textarea.wp-editor-area,
.tcmo-ph-comms-hub-editor .wp-editor-wrap.tmce-active textarea.wp-editor-area,
.tcmo-ph-drawer-form .tcmo-ph-field--comms-body:has(.mce-tinymce) textarea.tcmo-ph-comms-in-body {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  resize: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}
.tcmo-ph-comms-email-editor .wp-editor-wrap.tmce-active .quicktags-toolbar,
.tcmo-ph-comms-hub-editor .wp-editor-wrap.tmce-active .quicktags-toolbar {
  display: none !important;
}
.tcmo-ph-comms-cta-hint {
  margin: -4px 0 12px;
}
.tcmo-ph-comms-email-danger {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ph-hairline);
}
.tcmo-ph-comms-hub-editor {
  margin-top: 12px;
  border: 1px solid var(--ph-hairline);
  border-radius: 10px;
  overflow: hidden;
}
.tcmo-ph-comms-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow: auto;
}
.tcmo-ph-comms-preview-modal[hidden] {
  display: none !important;
}
.tcmo-ph-comms-preview-dialog {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.tcmo-ph-comms-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ph-hairline);
}
.tcmo-ph-comms-preview-head h4 {
  margin: 0;
  font-size: 1rem;
}
.tcmo-ph-comms-preview-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.tcmo-ph-comms-preview-frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #f4f4f4;
}
.tcmo-ph-comms-meta-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(7rem, 0.75fr) minmax(8rem, 0.85fr);
  gap: 12px 14px;
  margin: 16px 0;
  align-items: start;
}
.tcmo-ph-comms-meta-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.tcmo-ph-comms-meta-field--audience {
  grid-column: 1 / -1;
}
.tcmo-ph-comms-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ph-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tcmo-ph-comms-meta-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
  padding: 8px 10px;
  border: 1px solid #d0d5da;
  border-radius: 8px;
  background: #fff;
  color: var(--ph-ink);
  color-scheme: light;
  min-height: 38px;
}
.tcmo-ph-comms-meta-control:focus {
  outline: 2px solid color-mix(in srgb, var(--ph-accent, #2e7d32) 35%, transparent);
  border-color: var(--ph-accent, #2e7d32);
}
.tcmo-ph-comms-meta-hint {
  font-size: 0.75rem;
  color: var(--ph-muted);
  line-height: 1.35;
}
@media (max-width: 640px) {
  .tcmo-ph-comms-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tcmo-ph-comms-meta-field:nth-child(3) {
    grid-column: 1 / -1;
  }
}
.tcmo-ph-comms-send-panel {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--ph-hairline);
}
.tcmo-ph-comms-send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tcmo-ph-comms-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}
.tcmo-ph-comms-social-card {
  border: 1px solid var(--ph-hairline);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.tcmo-ph-comms-social-body {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  border: 1px solid var(--ph-hairline);
  border-radius: 6px;
  padding: 8px;
  resize: vertical;
}
.tcmo-ph-comms-plats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.tcmo-ph-comms-plat-chip {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--ph-hairline);
  background: #fff;
  cursor: pointer;
}
.tcmo-ph-comms-plat-chip.is-on {
  background: #e8f5e9;
  border-color: #a5d6a7;
}
.tcmo-ph-comms-social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tcmo-ph-comms-social-drop {
  border: 2px dashed var(--ph-hairline);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  color: var(--ph-muted);
  font-size: 0.8rem;
  cursor: pointer;
  margin: 8px 0;
  transition: border-color 0.15s, background 0.15s;
}
.tcmo-ph-comms-social-drop.is-dragover,
.tcmo-ph-comms-social-drop:hover {
  border-color: var(--ph-accent, #2e7d32);
  background: color-mix(in srgb, var(--ph-accent, #2e7d32) 6%, #fff);
}
.tcmo-ph-comms-social-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tcmo-ph-comms-social-thumb-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}
.tcmo-ph-comms-social-thumb-wrap img,
.tcmo-ph-comms-social-thumb-wrap video {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #111;
}
.tcmo-ph-comms-social-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.tcmo-ph-comms-hub-toolbar {
  margin-bottom: 16px;
}
.tcmo-ph-comms-hub-tabs,
.tcmo-ph-comms-hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.tcmo-ph-comms-hub-tab,
.tcmo-ph-comms-filter-chip {
  font: inherit;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ph-hairline);
  background: #fff;
  cursor: pointer;
}
.tcmo-ph-comms-hub-tab.is-active,
.tcmo-ph-comms-filter-chip.is-active {
  background: var(--ph-accent, #2e7d32);
  color: #fff;
  border-color: transparent;
}
/* Comms hub schedule: one lane per project; a card's left edge marks its send day. */
.tcmo-ph-comms-hub-zoom {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lanes {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ph-hairline);
  border-radius: var(--ph-radius);
  background: var(--ph-surface);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lanes-inner {
  width: max-content;
  min-width: 100%;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--ph-hairline);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lanes-head {
  border-top: 0;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-label {
  flex: 0 0 180px;
  width: 180px;
  box-sizing: border-box;
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--ph-surface);
  border-right: 1px solid var(--ph-hairline);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-tbd {
  flex: 0 0 200px;
  width: 200px;
  box-sizing: border-box;
  position: sticky;
  left: 180px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px;
  background: #fafbfc;
  border-right: 1px dashed var(--ph-hairline);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lanes-head .tcmo-ph-comms-lane-label,
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lanes-head .tcmo-ph-comms-lane-tbd {
  justify-content: flex-end;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-faint);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lanes-axis {
  position: relative;
  flex: none;
  height: 40px;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-axis-month {
  position: absolute;
  top: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 5px 6px;
  border-left: 1px solid var(--ph-hairline);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-axis-week {
  position: absolute;
  bottom: 4px;
  height: 14px;
  padding-left: 3px;
  border-left: 1px solid var(--ph-hairline);
  font-size: 0.66rem;
  line-height: 14px;
  color: var(--ph-faint);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-axis-day.is-weekend {
  color: color-mix(in srgb, var(--ph-faint) 60%, transparent);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-axis-today {
  position: absolute;
  top: 5px;
  z-index: 1;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ph-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 14px;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-track {
  position: relative;
  flex: none;
  background-color: var(--ph-bg);
  background-image: linear-gradient(to right, var(--ph-hairline) 1px, transparent 1px);
  background-repeat: repeat-x;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: color-mix(in srgb, var(--ph-accent) 55%, transparent);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: var(--ph-ink);
}
.tcmo-ph-comms-hub-root button.tcmo-ph-comms-lane-title {
  cursor: pointer;
}
.tcmo-ph-comms-hub-root button.tcmo-ph-comms-lane-title:hover,
.tcmo-ph-comms-hub-root button.tcmo-ph-comms-lane-title:focus-visible {
  color: var(--ph-accent);
  text-decoration: underline;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-count {
  font-size: 0.72rem;
  color: var(--ph-faint);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane--orphan .tcmo-ph-comms-lane-label {
  background: #fff8e1;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane--orphan .tcmo-ph-comms-lane-title,
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-hint {
  color: #8a5a00;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-hint {
  font-size: 0.72rem;
}

.tcmo-ph-comms-hub-root .tcmo-ph-comms-card {
  --cc: var(--ph-faint);
  position: absolute;
  z-index: 1;
  width: 184px;
  height: 88px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 7px 10px;
  overflow: hidden;
  background: var(--ph-surface);
  border: 1px solid var(--ph-hairline);
  border-left: 5px solid var(--cc);
  border-radius: 2px 8px 8px 2px;
  box-shadow: var(--ph-shadow);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-tbd .tcmo-ph-comms-card {
  position: relative;
  flex: none;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card--in_review {
  --cc: #c2791c;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card--approved {
  --cc: #2e7d32;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card--scheduled {
  --cc: #1565c0;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card--sent {
  --cc: #90a4ae;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card:hover {
  z-index: 2;
  border-top-color: #d0d5da;
  border-right-color: #d0d5da;
  border-bottom-color: #d0d5da;
  box-shadow: 0 4px 12px rgba(27, 33, 38, 0.12);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card:focus-visible {
  z-index: 2;
  outline: 2px solid color-mix(in srgb, var(--ph-accent) 45%, transparent);
  outline-offset: 2px;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card.is-past {
  opacity: 0.6;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card.is-past:hover,
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card.is-past:focus-visible {
  opacity: 1;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card.needs-attention::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 2px var(--ph-surface);
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card-date {
  padding-right: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ph-muted);
  white-space: nowrap;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card-subj {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: auto;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card-meta .tcmo-ph-comms-status-pill {
  flex: none;
  padding: 1px 6px;
  font-size: 0.64rem;
}
.tcmo-ph-comms-hub-root .tcmo-ph-comms-card-owner {
  overflow: hidden;
  font-size: 0.7rem;
  color: var(--ph-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcmo-ph-comms-assign {
  position: fixed;
  z-index: 100000;
  width: 280px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ph-hairline, #e4e8ec);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(27, 33, 38, 0.18);
}
.tcmo-ph-comms-assign-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ph-ink, #1b2126);
}
.tcmo-ph-comms-assign select {
  width: 100%;
  height: auto;
  padding: 6px 8px;
  border: 1px solid var(--ph-hairline, #e4e8ec);
  border-radius: 6px;
  font: inherit;
  font-size: 0.85rem;
}
.tcmo-ph-comms-assign-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 719px) {
  .tcmo-ph-comms-hub-root .tcmo-ph-comms-lane {
    flex-wrap: wrap;
  }
  .tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-label {
    flex-basis: 100%;
    width: auto;
    display: block;
    position: static;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--ph-hairline);
  }
  .tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-label > * {
    position: sticky;
    left: 12px;
    max-width: calc(100vw - 72px);
  }
  .tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-count,
  .tcmo-ph-comms-hub-root .tcmo-ph-comms-lanes-head .tcmo-ph-comms-lane-label {
    display: none;
  }
  .tcmo-ph-comms-hub-root .tcmo-ph-comms-lane-tbd {
    position: static;
  }
}

.tcmo-ph-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.tcmo-ph-card-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ph-surface-2, #f0f0f0);
  color: var(--ph-muted, #666);
}
.tcmo-ph-card-chip--blocker {
  background: #fdecea;
  color: #b71c1c;
}
.tcmo-ph-card-chip--stale {
  background: #eceff1;
  color: #546e7a;
}
.tcmo-ph-blocker-input {
  width: 100%;
  min-height: 3rem;
  resize: vertical;
}
.tcmo-ph-view--tasks .tcmo-ph-section-head,
.tcmo-ph-view--team-tasks .tcmo-ph-section-head {
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.75rem;
}

.tcmo-ph-view--tasks .tcmo-ph-section-head h2,
.tcmo-ph-view--team-tasks .tcmo-ph-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.tcmo-ph-tasks-body .tcmo-ph-tasks-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.tcmo-ph-standup-blockers-top {
  margin-top: 14px;
  padding: 12px 14px 14px;
  border-radius: var(--ph-radius, 10px);
  border: 1px solid color-mix(in srgb, var(--ph-blocked) 32%, var(--ph-hairline));
  border-left: 4px solid var(--ph-blocked);
  background: color-mix(in srgb, var(--ph-blocked) 6%, var(--ph-surface));
}

.tcmo-ph-standup-blockers-top-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-blocked);
}

.tcmo-ph-standup-blocker-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  width: 100%;
}

.tcmo-ph-standup-blocker-owner {
  font-size: 12px;
  font-weight: 600;
  color: var(--ph-muted);
}

.tcmo-ph-standup-grid {
  margin-top: 14px;
}

.tcmo-ph-standup-blockers-top + .tcmo-ph-standup-grid {
  margin-top: 16px;
}

.tcmo-ph-standup-card {
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 12px;
}

.tcmo-ph-standup-card.is-empty {
  opacity: 0.88;
  border-color: color-mix(in srgb, var(--ph-hairline) 92%, var(--ph-faint));
}

.tcmo-ph-standup-card.is-empty .tcmo-ph-card-title {
  color: var(--ph-muted);
}

.tcmo-ph-standup-card .tcmo-ph-card-top {
  margin-bottom: 4px;
}

.tcmo-ph-standup-card .tcmo-ph-card-title {
  margin: 0;
}

.tcmo-ph-standup-sections {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.tcmo-ph-standup-section {
  padding: 10px 0 0;
  border-top: 1px solid var(--ph-hairline);
}

.tcmo-ph-standup-section:first-child {
  border-top: none;
  padding-top: 6px;
}

.tcmo-ph-standup-section-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-faint);
}

.tcmo-ph-standup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tcmo-ph-standup-empty {
  margin: 0;
  font-size: 13px;
}

.tcmo-ph-standup-filter-empty {
  margin: 14px 0 0;
}

.tcmo-ph-standup-blocker-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.4;
}

.tcmo-ph-standup-blocker-text {
  color: var(--ph-muted);
  font-size: 13px;
}

.tcmo-ph-standup-done-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  font-size: 13.5px;
  line-height: 1.4;
}

.tcmo-ph-standup-done-summary {
  flex: 1 1 12rem;
  min-width: 0;
}

.tcmo-ph-standup-card .tcmo-ph-tasks-list {
  margin: 0;
}

.tcmo-ph-standup-card .tcmo-ph-tasks-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px 10px;
  font-size: 13.5px;
  line-height: 1.4;
}

.tcmo-ph-standup-task-label {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.tcmo-ph-standup-project-pill {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--ph-hairline);
  background: color-mix(in srgb, var(--ph-surface) 88%, white);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tcmo-ph-standup-project-pill:hover,
.tcmo-ph-standup-project-pill:focus-visible {
  border-color: color-mix(in srgb, var(--ph-accent) 38%, var(--ph-hairline));
  background: color-mix(in srgb, var(--ph-accent) 7%, white);
}

.tcmo-ph-standup-due--overdue {
  color: var(--ph-blocked) !important;
  font-weight: 600;
}

.tcmo-ph-linkish {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ph-accent);
  cursor: pointer;
  line-height: inherit;
}
.tcmo-ph-linkish:hover,
.tcmo-ph-linkish:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tcmo-ph-meeting-panel .tcmo-ph-meeting-head,
.tcmo-ph-meeting-panel .tcmo-ph-meeting-body {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.tcmo-ph-meeting-head {
  margin-bottom: 1rem;
}

.tcmo-ph-meeting-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.tcmo-ph-meeting-head-title {
  flex: 1 1 12rem;
  min-width: 0;
}

.tcmo-ph-meeting-head-title h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tcmo-ph-meeting-step-nav {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #e8ecef;
  border-radius: 999px;
  flex: 0 0 auto;
}

.tcmo-ph-meeting-step-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ph-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.tcmo-ph-meeting-step-btn.is-active {
  background: var(--ph-surface);
  color: var(--ph-ink);
  box-shadow: 0 1px 2px rgba(20, 30, 40, 0.08);
}

.tcmo-ph-meeting-month-wrap {
  flex: 0 0 auto;
  margin-left: auto;
}

.tcmo-ph-meeting-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-top: 4px;
  border-top: 1px solid var(--ph-hairline, #e0e0e0);
}

.tcmo-ph-meeting-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tcmo-ph-meeting-toolbar-group[hidden] {
  display: none !important;
}

.tcmo-ph-meeting-toolbar-primary {
  margin-left: auto;
}

.tcmo-ph-meeting-run-position {
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 3.5rem;
  text-align: center;
}

.tcmo-ph-meeting-status {
  margin-left: auto;
  font-size: 0.88rem;
  min-width: 8rem;
  text-align: right;
}
.tcmo-ph-meeting--busy .tcmo-ph-meeting-body {
  opacity: 0.72;
  pointer-events: none;
}
.tcmo-ph-btn.is-busy {
  cursor: wait;
  opacity: 0.85;
}
.tcmo-ph-meeting-prepare-lede,
.tcmo-ph-meeting-package-lede {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}
.tcmo-ph-meeting-prepare-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.75rem;
}
.tcmo-ph-meeting-prepare-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tcmo-ph-meeting-prepare-hint {
  font-size: 0.85rem;
  margin-left: auto;
}
.tcmo-ph-meeting-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 14px 16px;
  background: #fafbfc;
  border: 1px solid var(--ph-hairline, #e0e0e0);
  border-radius: 14px 14px 0 0;
  margin-top: 6px;
  border-bottom: 1px solid var(--ph-hairline, #e0e0e0);
}
.tcmo-ph-meeting-section-head .tcmo-ph-section-title {
  font-family: var(--font-serif, Georgia, serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.tcmo-ph-meeting-section-actions {
  font-size: 0.82rem;
}
.tcmo-ph-meeting-topic {
  position: relative;
  padding: 12px 14px;
  margin: 0;
  cursor: default;
}
.tcmo-ph-meeting-topic.is-excluded {
  opacity: 0.58;
}
.tcmo-ph-meeting-topic--drop-before {
  box-shadow: inset 0 4px 0 color-mix(in srgb, var(--ph-accent, #1a5f3a) 55%, transparent);
  background: color-mix(in srgb, var(--ph-accent, #1a5f3a) 5%, #fff);
}
.tcmo-ph-meeting-topic-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tcmo-ph-meeting-drag-handle {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--ph-muted, #789);
  font-size: 14px;
  line-height: 1;
  padding: 4px 2px;
  cursor: grab;
  user-select: none;
}
.tcmo-ph-meeting-drag-handle:active {
  cursor: grabbing;
}
.tcmo-ph-meeting-include-wrap {
  flex: 0 0 auto;
  padding-top: 6px;
}
.tcmo-ph-meeting-topic-body {
  flex: 1 1 auto;
  min-width: 0;
}
.tcmo-ph-meeting-topic-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}
.tcmo-ph-meeting-icon-btn {
  appearance: none;
  border: 1px solid var(--ph-hairline, #e0e0e0);
  background: #fff;
  color: var(--ph-muted);
  font-size: 14px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}
.tcmo-ph-meeting-icon-btn:hover,
.tcmo-ph-meeting-icon-btn:focus-visible {
  outline: none;
  border-color: #b4bbc3;
  color: var(--ph-ink);
}
.tcmo-ph-meeting-toggle-notes {
  position: relative;
  white-space: nowrap;
}
.tcmo-ph-meeting-notes-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--ph-accent, #1a5f3a);
  vertical-align: middle;
}
.tcmo-ph-meeting-topic-extra {
  margin: 4px 0 0;
  font-size: 12.5px;
}
.tcmo-ph-meeting-note-excerpt {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ph-muted);
}
.tcmo-ph-meeting-topic-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.tcmo-ph-meeting-topic--package .tcmo-ph-meeting-topic-body {
  width: 100%;
}
.tcmo-ph-meeting-topic-notes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ph-hairline, #e0e0e0);
}
.tcmo-ph-meeting-topic-notes--package {
  margin-top: 12px;
  padding-top: 12px;
  width: 100%;
  box-sizing: border-box;
}
.tcmo-ph-meeting-notes-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ph-muted);
  margin-bottom: 0.35rem;
}
.tcmo-ph-meeting-topic-notes[hidden] {
  display: none !important;
}
.tcmo-ph-meeting-package-edit .wp-editor-wrap,
.tcmo-ph-meeting-topic-notes--package .wp-editor-wrap {
  max-width: 100%;
  box-sizing: border-box;
}
.tcmo-ph-meeting-intro-label {
  display: block;
  margin-bottom: 0.35rem;
}
.tcmo-ph-meeting-intro {
  width: 100%;
  min-height: 6rem;
  margin: 0 0 1rem;
  box-sizing: border-box;
}
.tcmo-ph-meeting-item-notes {
  width: 100%;
  min-height: 5rem;
  box-sizing: border-box;
  margin-top: 0.35rem;
}
.tcmo-ph-meeting-prepare .wp-editor-wrap {
  max-width: 100%;
}
.tcmo-ph-meeting-package h3,
.tcmo-ph-meeting-package .tcmo-ph-meeting-pkg-item {
  margin-top: 1.25rem;
}
.tcmo-ph-meeting-run-brief {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--ph-surface-2, #fafafa);
  border-radius: 8px;
}
.tcmo-ph-meeting-run-meta {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
}
.tcmo-ph-meeting-run-facilitator-notes {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--ph-accent, #1a5f3a);
  background: #fff;
}
.tcmo-ph-meeting-run-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tcmo-ph-help-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(26, 95, 58, 0.08);
  border-bottom: 1px solid var(--ph-hairline, #ddd);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.tcmo-ph-help-banner[hidden] {
  display: none !important;
}
.tcmo-ph-help-banner-text {
  margin: 0;
  flex: 1 1 16rem;
}
.tcmo-ph-help-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tcmo-ph-help-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100021;
  width: min(420px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ph-surface, #fff);
  border-left: 1px solid var(--ph-hairline, #ddd);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}
.tcmo-ph-help-panel[hidden] {
  display: none !important;
}
.tcmo-ph-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ph-hairline, #ddd);
}
.tcmo-ph-help-head h2 {
  margin: 0;
  font-size: 1rem;
}
.tcmo-ph-help-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}
.tcmo-ph-help-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tcmo-ph-help-topic {
  text-align: left;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ph-hairline, #ddd);
  border-radius: 8px;
  background: var(--ph-bg, #f9f9f9);
  cursor: pointer;
}
.tcmo-ph-help-topic:hover {
  border-color: var(--ph-accent, #1a5f3a);
}
.tcmo-ph-help-back {
  font: inherit;
  background: none;
  border: none;
  padding: 0 0 0.75rem;
  color: var(--ph-accent, #1a5f3a);
  cursor: pointer;
}
.tcmo-ph-help-article-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.tcmo-ph-help-article-body {
  font-size: 0.92rem;
  line-height: 1.55;
}
.tcmo-ph-help-article-body ul {
  padding-left: 1.25rem;
}
.tcmo-ph-help-article-body p {
  margin: 0 0 0.75rem;
}

.tcmo-ph-help-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.25rem;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid var(--ph-hairline, #ccc);
  border-radius: 50%;
  background: var(--ph-surface, #fff);
  color: var(--ph-muted, #666);
  cursor: help;
  vertical-align: middle;
}
.tcmo-ph-help-tip {
  position: absolute;
  z-index: 100030;
  max-width: min(320px, 90vw);
  padding: 0.65rem 0.75rem;
  margin-top: -4px;
  padding-top: calc(0.65rem + 4px);
  font-size: 0.85rem;
  line-height: 1.45;
  background: var(--ph-surface, #fff);
  border: 1px solid var(--ph-hairline, #ddd);
  border-radius: 8px;
  box-shadow: var(--ph-shadow, 0 4px 16px rgba(0, 0, 0, 0.12));
}
.tcmo-ph-help-tip-text {
  margin: 0 0 0.5rem;
}
.tcmo-ph-help-tip-more {
  font: inherit;
  font-size: 0.82rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--ph-accent, #1a5f3a);
  cursor: pointer;
  text-decoration: underline;
}

.tcmo-ph-link-chip--btn {
  font: inherit;
  cursor: pointer;
}

.tcmo-ph-docs-drive-link {
  font-size: 0.85rem;
  color: var(--ph-muted, #666);
  text-decoration: underline;
}
.tcmo-ph-docs-upload-drop {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 2px dashed var(--ph-hairline, #ccc);
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ph-muted, #666);
  cursor: pointer;
}
.tcmo-ph-docs-upload-drop.is-dragover {
  border-color: var(--ph-accent, #1a5f3a);
  background: rgba(26, 95, 58, 0.05);
}
.tcmo-ph-docs-upload-drop[hidden],
.tcmo-ph-docs-upload-status[hidden] {
  display: none !important;
}
.tcmo-ph-docs-upload-status {
  font-size: 0.85rem;
  color: var(--ph-muted, #666);
  margin: 0 0 0.75rem;
}

/* Timeline (Projects) */
.tcmo-ph-view--timeline:not([hidden]) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tcmo-ph:has(#tcmo-ph-view-timeline:not([hidden])) {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding-bottom: 12px;
  overflow: hidden;
}

body.tcmo-ph-app:has(#tcmo-ph-view-timeline:not([hidden])),
body.tcmo-ph-app:has(#tcmo-ph-view-timeline:not([hidden])) #container.tcmo-ph-app-shell,
body.tcmo-ph-app:has(#tcmo-ph-view-timeline:not([hidden])) .tcmo-ph-app-main {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.tcmo-ph-app:has(#tcmo-ph-view-timeline:not([hidden])) #container.tcmo-ph-app-shell,
body.tcmo-ph-app:has(#tcmo-ph-view-timeline:not([hidden])) .tcmo-ph-app-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tcmo-ph-timeline-panel {
  padding: 0;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.tcmo-ph-timeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--ph-hairline, #e0e0e0);
  flex-shrink: 0;
}

.tcmo-ph-timeline-toolbar .tcmo-ph-timeline-legend {
  flex: 1 1 100%;
  margin: 0;
  padding: 0 0 2px;
  order: 3;
}

.tcmo-ph-timeline-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.tcmo-ph-timeline-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.tcmo-ph-timeline-year-label {
  min-width: 3rem;
  text-align: center;
  font-weight: 600;
}

.tcmo-ph-timeline-filters {
  flex: 1 1 100%;
  order: 2;
  padding: 0.35rem 0.75rem 0.5rem;
  border-bottom: 1px solid var(--ph-hairline, #eee);
}

.tcmo-ph-timeline-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.tcmo-ph-timeline-filter-row.is-bypassed {
  opacity: 0.45;
  pointer-events: none;
}

.tcmo-ph-timeline-filter-row--layers {
  margin-bottom: 0;
}

.tcmo-ph-timeline-filter-label {
  flex: 0 0 auto;
  min-width: 3.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ph-muted, #666);
}

.tcmo-ph-timeline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--ph-hairline, #d0d0d0);
  border-radius: 999px;
  background: var(--ph-surface, #fff);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.3;
  cursor: pointer;
  color: var(--ph-text, #222);
}

.tcmo-ph-timeline-pill.is-on {
  background: rgba(26, 95, 58, 0.12);
  border-color: var(--ph-accent, #1a5f3a);
  color: var(--ph-accent, #1a5f3a);
  font-weight: 600;
}

.tcmo-ph-timeline-pill--chip {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcmo-ph-timeline-pill-n {
  font-size: 0.68rem;
  opacity: 0.75;
}

.tcmo-ph-timeline-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tcmo-ph-timeline-pinned-row {
  align-items: center;
}

.tcmo-ph-timeline-add-project {
  margin-left: auto;
}

.tcmo-ph-timeline-add-project-input {
  width: min(100%, 11rem);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid var(--ph-hairline, #ccc);
  border-radius: 4px;
}

.tcmo-ph-timeline-scroller {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: 0 0 8px 8px;
}

.tcmo-ph-timeline-body {
  min-width: min-content;
}

.tcmo-ph-timeline-head,
.tcmo-ph-timeline-row {
  display: flex;
  align-items: stretch;
}

.tcmo-ph-timeline-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--ph-surface, #fff);
  border-bottom: 1px solid var(--ph-hairline, #e0e0e0);
}

.tcmo-ph-timeline-corner,
.tcmo-ph-timeline-label {
  flex: 0 0 240px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--ph-surface, #fff);
  border-right: 1px solid var(--ph-hairline, #e0e0e0);
}

.tcmo-ph-timeline-label {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.tcmo-ph-timeline-status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.tcmo-ph-timeline-pin {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ph-muted, #888);
}

.tcmo-ph-timeline-pin.is-pinned {
  color: var(--ph-accent, #1a5f3a);
}

.tcmo-ph-timeline-proj-expand,
.tcmo-ph-timeline-proj-expand-spacer {
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.tcmo-ph-timeline-proj-expand {
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--ph-muted, #666);
}

.tcmo-ph-timeline-label-btn {
  flex: 1;
  min-width: 0;
}

.tcmo-ph-timeline-label-summary {
  font-size: 0.68rem;
  color: var(--ph-muted, #777);
}

.tcmo-ph-timeline-corner {
  display: flex;
  align-items: flex-end;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ph-muted, #666);
}

.tcmo-ph-timeline-head-days {
  position: relative;
  flex: 0 0 auto;
}

.tcmo-ph-timeline-months,
.tcmo-ph-timeline-days {
  display: grid;
}

.tcmo-ph-timeline-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ph-muted, #666);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--ph-hairline, #e8e8e8);
  text-align: center;
}

.tcmo-ph-timeline-day {
  height: 26px;
  border-right: 1px solid var(--ph-hairline, #f0f0f0);
  font-size: 0.65rem;
  color: var(--ph-muted, #888);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcmo-ph-timeline-day.is-weekend {
  background: rgba(0, 0, 0, 0.03);
}

.tcmo-ph-timeline-day.is-today {
  background: rgba(26, 95, 58, 0.08);
  font-weight: 700;
  color: var(--ph-accent, #1a5f3a);
}

.tcmo-ph-timeline-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--ph-accent, #1a5f3a);
  opacity: 0.65;
  pointer-events: none;
  z-index: 2;
}

.tcmo-ph-timeline-group-head-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--ph-hairline, #eee);
  background: var(--ph-surface-2, #f7f7f7);
}

.tcmo-ph-timeline-group-head-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 34px;
  padding: 0.4rem 0.75rem;
  border: none;
  background: var(--ph-surface-2, #f7f7f7);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  z-index: 5;
}

.tcmo-ph-timeline-group-head-btn:hover {
  background: #eef0f2;
}

.tcmo-ph-timeline-group-head-spacer {
  height: 34px;
  pointer-events: none;
}

.tcmo-ph-timeline-group-chevron {
  color: var(--ph-muted, #666);
  width: 1rem;
}

.tcmo-ph-timeline-group-count {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ph-muted, #666);
}

.tcmo-ph-timeline-row {
  border-bottom: 1px solid var(--ph-hairline, #f0f0f0);
}

.tcmo-ph-timeline-label-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  height: 100%;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tcmo-ph-timeline-label-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.tcmo-ph-timeline-label-title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tcmo-ph-timeline-label-owner {
  font-size: 0.72rem;
  color: var(--ph-muted, #666);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tcmo-ph-timeline-track-wrap {
  flex: 0 0 auto;
  overflow: visible;
}

.tcmo-ph-timeline-track {
  position: relative;
}

.tcmo-ph-timeline-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.85;
  padding: 0;
}

.tcmo-ph-timeline-bar:hover {
  opacity: 1;
  filter: brightness(1.05);
}

.tcmo-ph-timeline-bar.is-open-ended {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.tcmo-ph-timeline-bar.is-clipped-start {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.tcmo-ph-timeline-bar-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: none;
}

.tcmo-ph-timeline-bar-hit .tcmo-ph-timeline-seg,
.tcmo-ph-timeline-bar-hit .tcmo-ph-timeline-marker {
  pointer-events: auto;
}

.tcmo-ph-timeline-bar-hit.is-open-ended .tcmo-ph-timeline-seg--active.is-clipped-end,
.tcmo-ph-timeline-bar-hit.is-open-ended .tcmo-ph-timeline-seg--active:last-of-type {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  mask-image: linear-gradient(to right, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 75%, transparent 100%);
}

.tcmo-ph-timeline-seg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
}

.tcmo-ph-timeline-seg--lead {
  height: 2px;
  background: var(--ph-notstarted);
  opacity: 0.45;
  border-radius: 1px;
}

.tcmo-ph-timeline-seg--active {
  height: 10px;
  border-radius: 5px;
  opacity: 0.88;
}

.tcmo-ph-timeline-seg--active.is-clipped-start {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.tcmo-ph-timeline-seg--active.is-clipped-end {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.tcmo-ph-timeline-seg--planned {
  height: 10px;
  border-radius: 5px;
  opacity: 0.32;
}

.tcmo-ph-timeline-seg--overdue {
  height: 10px;
  border-radius: 5px;
  opacity: 0.75;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.35) 3px,
    rgba(255, 255, 255, 0.35) 6px
  );
  background-blend-mode: soft-light;
}

.tcmo-ph-timeline-seg--ghost {
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border-top: 2px dotted var(--ph-notstarted);
  opacity: 0.55;
}

.tcmo-ph-timeline-seg--paused {
  height: 2px;
  background: transparent;
  border-top: 2px dashed var(--ph-deferred);
  opacity: 0.75;
}

.tcmo-ph-timeline-seg:hover {
  filter: brightness(1.06);
  opacity: 1;
}

.tcmo-ph-timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.tcmo-ph-timeline-marker--start {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--ph-notstarted);
  background: var(--ph-surface, #fff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tcmo-ph-timeline-marker--due {
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: rgba(20, 30, 40, 0.28);
  transform: translate(-50%, -50%);
}

.tcmo-ph-timeline-marker--done {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ph-done);
  color: #fff;
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  font-weight: 700;
}

.tcmo-ph-timeline-marker--done::after {
  content: '✓';
}

.tcmo-ph-timeline-marker--closed {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ph-wontcomplete);
  color: #fff;
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  font-weight: 700;
}

.tcmo-ph-timeline-marker--closed::after {
  content: '×';
}

.tcmo-ph-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  padding: 0 0 0.75rem;
  font-size: 12px;
  color: var(--ph-muted, #666);
}

.tcmo-ph-timeline-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tcmo-ph-timeline-legend-swatch {
  display: inline-block;
  flex-shrink: 0;
}

.tcmo-ph-timeline-legend-swatch--start {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--ph-notstarted);
  background: #fff;
}

.tcmo-ph-timeline-legend-swatch--lead {
  width: 18px;
  height: 2px;
  background: var(--ph-notstarted);
  opacity: 0.45;
}

.tcmo-ph-timeline-legend-swatch--bar {
  width: 18px;
  height: 8px;
  border-radius: 4px;
  background: var(--ph-progress);
  opacity: 0.88;
}

.tcmo-ph-timeline-legend-swatch--overdue {
  width: 18px;
  height: 8px;
  border-radius: 4px;
  background: var(--ph-atrisk);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.4) 2px,
    rgba(255, 255, 255, 0.4) 4px
  );
}

.tcmo-ph-timeline-legend-swatch--task {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ph-progress);
  border-radius: 2px;
  background: #fff;
}

.tcmo-ph-timeline-legend-swatch--email {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #42a5f5;
  box-shadow: 0 0 0 1px #1565c0;
}

.tcmo-ph-timeline-email-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ph-surface, #fff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  padding: 0;
  background: #eef1f4;
}

.tcmo-ph-timeline-email-dot--draft {
  background: #b0bec5;
  box-shadow: 0 0 0 1px #78909c;
}

.tcmo-ph-timeline-email-dot--in_review {
  background: #ffb74d;
  box-shadow: 0 0 0 1px #f57c00;
}

.tcmo-ph-timeline-email-dot--approved,
.tcmo-ph-timeline-email-dot--ready {
  background: #66bb6a;
  box-shadow: 0 0 0 1px #2e7d32;
}

.tcmo-ph-timeline-email-dot--scheduled {
  background: #42a5f5;
  box-shadow: 0 0 0 1px #1565c0;
}

.tcmo-ph-timeline-email-dot--sent {
  background: #90a4ae;
  box-shadow: 0 0 0 1px #455a64;
  cursor: default;
}

.tcmo-ph-timeline-marker-drag {
  cursor: grab;
}

.tcmo-ph-timeline-marker-drag.is-dragging {
  cursor: grabbing;
  z-index: 6;
  transform: translate(-50%, -50%) scale(1.25);
}

.tcmo-ph-timeline-task-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--ph-progress, #1976d2);
  border-radius: 2px;
  background: var(--ph-surface, #fff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.tcmo-ph-timeline-task-marker.is-overdue {
  border-color: var(--ph-atrisk, #c62828);
}

.tcmo-ph-timeline-task-marker.is-done {
  background: var(--ph-done, #2e7d32);
  border-color: var(--ph-done, #2e7d32);
  color: #fff;
  font-size: 8px;
  line-height: 10px;
  text-align: center;
  font-weight: 700;
}

.tcmo-ph-timeline-task-marker.is-done::after {
  content: '✓';
}

.tcmo-ph-timeline-subrow--task.is-done .tcmo-ph-timeline-subrow-title {
  color: var(--ph-muted, #666);
  text-decoration: line-through;
}

.tcmo-ph-timeline-task-marker.tcmo-ph-timeline-marker-drag {
  cursor: grab;
}

.tcmo-ph-timeline-subrow {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--ph-hairline, #f5f5f5);
  background: rgba(0, 0, 0, 0.015);
}

.tcmo-ph-timeline-subrow-label {
  padding-left: 1.35rem;
}

.tcmo-ph-timeline-subrow-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  min-height: 26px;
  padding: 0.2rem 0.5rem 0.2rem 0;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tcmo-ph-timeline-subrow-title {
  font-size: 0.78rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tcmo-ph-timeline-subrow-meta {
  font-size: 0.65rem;
  color: var(--ph-muted, #666);
}

.tcmo-ph-timeline-track--sub {
  min-height: 26px;
}

.tcmo-ph-timeline-email-dot.is-saving {
  opacity: 0.55;
}

.tcmo-ph-timeline-milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--ph-accent, #1a5f3a);
  border: 1px solid var(--ph-surface, #fff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.tcmo-ph-timeline-empty {
  padding: 2rem 1rem;
}

/* --- Version notes (changelog) --- */
.tcmo-ph-changelog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 1rem;
}

.tcmo-ph-changelog-toolbar .tcmo-ph-search {
  flex: 1 1 12rem;
  max-width: 320px;
}

.tcmo-ph-changelog-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  color: var(--ph-muted);
  cursor: pointer;
  user-select: none;
}

.tcmo-ph-changelog-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tcmo-ph-changelog-release {
  border: 1px solid var(--ph-hairline);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: var(--ph-surface);
}

.tcmo-ph-changelog-release-head {
  margin-bottom: 0.75rem;
}

.tcmo-ph-changelog-version {
  display: inline;
  margin: 0 0.5rem 0 0;
  font-size: 1.05rem;
}

.tcmo-ph-changelog-date {
  font-size: 12px;
  color: var(--ph-faint);
}

.tcmo-ph-changelog-release-title {
  margin: 0.35rem 0 0;
  font-size: 14px;
  color: var(--ph-muted);
}

.tcmo-ph-changelog-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tcmo-ph-changelog-item {
  padding-top: 0.85rem;
  border-top: 1px solid var(--ph-hairline);
}

.tcmo-ph-changelog-item:first-child {
  padding-top: 0;
  border-top: none;
}

.tcmo-ph-changelog-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  background: var(--ph-bg);
  color: var(--ph-muted);
}

.tcmo-ph-changelog-item--feature .tcmo-ph-changelog-type {
  background: rgba(26, 95, 58, 0.12);
  color: var(--ph-accent, #1a5f3a);
}

.tcmo-ph-changelog-text {
  margin: 0 0 0.5rem;
  font-size: 14px;
  line-height: 1.45;
}

.tcmo-ph-changelog-view-link {
  font: inherit;
  font-size: 12px;
  padding: 0;
  margin: 0 0 0.5rem;
  border: none;
  background: none;
  color: var(--ph-accent, #1a5f3a);
  cursor: pointer;
  text-decoration: underline;
}

.tcmo-ph-changelog-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tcmo-ph-changelog-project {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ph-hairline);
  background: var(--ph-bg);
  cursor: pointer;
  max-width: 100%;
}

.tcmo-ph-changelog-project:hover {
  border-color: var(--ph-accent, #1a5f3a);
}

.tcmo-ph-changelog-proj-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--c, var(--ph-muted));
}

.tcmo-ph-changelog-proj-status--done { --c: var(--ph-done); }
.tcmo-ph-changelog-proj-status--progress { --c: var(--ph-progress); }
.tcmo-ph-changelog-proj-status--review { --c: var(--ph-review); }
.tcmo-ph-changelog-proj-status--planning { --c: var(--ph-planning); }
.tcmo-ph-changelog-proj-status--ready { --c: var(--ph-ready); }
.tcmo-ph-changelog-proj-status--promoting { --c: var(--ph-promoting); }
.tcmo-ph-changelog-proj-status--wrapup { --c: var(--ph-wrapup); }
.tcmo-ph-changelog-proj-status--atrisk { --c: var(--ph-atrisk); }
.tcmo-ph-changelog-proj-status--blocked { --c: var(--ph-blocked); }
.tcmo-ph-changelog-proj-status--notstarted { --c: var(--ph-notstarted); }
.tcmo-ph-changelog-proj-status--deferred { --c: var(--ph-deferred); }
.tcmo-ph-changelog-proj-status--wontcomplete { --c: var(--ph-wontcomplete); }

.tcmo-ph-changelog-proj-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcmo-ph-changelog-empty {
  color: var(--ph-muted);
  font-size: 14px;
}
