/* Minimal global styles so text is visible and cards render sensibly */

.site-nav {
  background: #f8fafc;
  padding: 10px 16px;
  border-bottom: 1px solid #e6edf3;
}

.site-nav a { text-decoration: none; color: #0f172a; }

/* Make those task rows readable immediately */
.card, .task-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.task-row { display: block; padding: 8px 0; }
.task-row-left { display: inline-block; vertical-align: middle; }
.row-edit { margin-left: 8px; }


/* webapp/static/app.css - minimal central styles */
:root { --fg:#0f172a; --muted:#64748b; --card:#fff; --border:#e5e7eb; }
html,body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial; color:var(--fg); background:#fff; margin:0; padding:0; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: 1.2;
  background: #f8fafc;
  padding: 10px 16px;
  border-bottom: 1px solid #e6edf3;
}

.site-brand {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: inherit;
}

.site-brand__logo {
  height: 32px;
  margin-bottom: 4px;
  transform: translateX(-1.5px);
}

.site-brand__name {
  font-size: 15px;
  letter-spacing: 0.2px;
  text-align: center;
}

.site-nav__links {
  display: flex;
  gap: 20px;
  margin-left: 24px;
}

.site-nav__auth {
  margin-left: auto;
  font-size: 14px;
  opacity: 0.75;
  white-space: nowrap;
}

.site-nav__notifications {
  margin-right: 12px;
}
main { padding:18px; max-width:1100px; margin:0 auto; }

/* task / draft cards */
.card, .task-card { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:12px; margin-bottom:12px; }
.task-row { display:block; padding:8px 0; border-top: none; }
.task-row + .task-row { border-top:1px solid #f1f5f9; }
.task-row-left { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.row-edit { margin-left:8px; }

/* buttons */
button, .button-link, .btn-primary, .btn-secondary, .btn-danger { font-size:14px; padding:8px 12px; border-radius:8px; cursor:pointer; }
.button-link { display:inline-block; border:1px solid #94a3b8; background:#f8fafc; color:var(--fg); text-decoration:none; }
.btn-primary { background:#0f172a; color:#fff; border:1px solid #0f172a; }
.btn-secondary { background:#fff; color:var(--fg); border:1px solid var(--border); }
.btn-danger { background:#ef4444; color:#fff; border:1px solid #ef4444; }

.edit-btn {
  font-size: 12px;
  padding: 2px 6px;
  opacity: 0.6;
  cursor: pointer;
}

.edit-btn:hover {
  opacity: 1;
}

/* Modals: hidden by default, shown when .is-open is added */
/* Modal system */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(15, 23, 42, 0.35);
  padding: 18px;
  z-index: 1000;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
}
/* utility */
.pre-debug { background:#fff; padding:8px; border:1px solid #ddd; margin-bottom:12px; font-family:monospace; font-size:13px; }

.notification-inbox {
  max-width: 760px;
  margin: 32px auto;
}

.notification-inbox__header,
.notification-card__content,
.notification-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-inbox__header,
.notification-card__content {
  justify-content: space-between;
}

.notification-inbox__header h1 {
  margin-bottom: 6px;
}

.notification-inbox__header p {
  margin-top: 0;
  color: var(--muted);
}

.notification-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.notification-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.notification-card--unread {
  background: #fffbe8;
}

.notification-card__new {
  font-size: 12px;
  text-transform: uppercase;
}

.notification-card p {
  margin: 6px 0;
}

.notification-card small {
  color: var(--muted);
}

.notification-card__actions {
  gap: 8px;
}

.notification-card__actions form {
  margin: 0;
}

.notification-inbox__empty {
  margin-top: 28px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .site-nav__links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
    padding: 5px 0 2px;
  }

  .site-nav__links a {
    flex: none;
  }

  .notification-inbox {
    margin-top: 12px;
  }

  .notification-inbox__header,
  .notification-card__content {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-card__actions {
    flex-wrap: wrap;
  }
}

/* Shared Zillow-style task photo roll. */
.photo-roll {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #e9edf1;
  outline: none;
}

.photo-roll:focus-visible {
  box-shadow: 0 0 0 3px rgba(180, 96, 36, 0.3);
}

.photo-roll__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Use one compact photo shape everywhere a canonical task appears as a card. */
.photo-roll--card .photo-roll__viewport,
.photo-roll--dashboard .photo-roll__viewport {
  aspect-ratio: 2.1 / 1;
}

.photo-roll__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-roll__image[hidden] {
  display: none;
}

.photo-roll__arrow {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
}

.photo-roll__arrow--previous { left: 12px; }
.photo-roll__arrow--next { right: 12px; }

.photo-roll__dots {
  position: absolute;
  left: 50%;
  bottom: 11px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.photo-roll__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.photo-roll__dot.is-active {
  background: #fff;
  transform: scale(1.18);
}

.photo-roll__count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.photo-roll__full-size {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
}

.task-cockpit {
  width: min(900px, 100%);
  margin: 0 auto;
}

.task-cockpit__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.task-cockpit__header h1,
.task-cockpit__canonical h2,
.task-cockpit__reference-grid h3 {
  margin-top: 0;
}

.task-cockpit__header h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.task-cockpit__eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-cockpit__status {
  flex: none;
  padding: 7px 11px;
  border: 1px solid #d7dee7;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.task-cockpit > .photo-roll {
  margin-bottom: 16px;
}

.photo-roll--cockpit .photo-roll__viewport {
  aspect-ratio: 16 / 9;
}

.task-cockpit__overview {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.task-cockpit__contract-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.task-cockpit__term {
  min-width: 0;
  padding: 16px;
}

.task-cockpit__term + .task-cockpit__term {
  border-left: 1px solid var(--border);
}

.task-cockpit__term span,
.task-cockpit__term strong,
.task-cockpit__term small {
  display: block;
}

.task-cockpit__term span,
.task-cockpit__term small {
  color: var(--muted);
}

.task-cockpit__term span {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.task-cockpit__term strong {
  margin-bottom: 4px;
}

.task-cockpit__term small + small {
  margin-top: 3px;
}

.task-cockpit__canonical,
.task-cockpit__reference-grid {
  padding: 18px;
}

.task-cockpit__canonical {
  border-bottom: 1px solid var(--border);
}

.task-cockpit__canonical .task-card {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}

.task-cockpit__reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.task-cockpit__reference-grid section {
  min-width: 0;
}

.task-cockpit__reference-grid h3 {
  margin-bottom: 7px;
  font-size: 14px;
}

.task-cockpit__reference-grid p,
.task-cockpit__reference-grid ul {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.task-location__instructions,
.task-location__fallback {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 13px;
}

.task-location-map {
  position: relative;
  min-height: 220px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #eef2f4;
}

.task-location-map > p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.task-location-map .maplibregl-map {
  position: absolute;
  inset: 0;
}

.task-location-map .maplibregl-marker {
  color: #d0590f;
}

.task-navigation {
  width: min(760px, 100%);
  margin: 0 auto;
}

.task-navigation__header {
  margin-bottom: 16px;
}

.task-navigation__header h1,
.task-navigation__section h2 {
  margin-top: 0;
}

.task-navigation__header p,
.task-navigation__section p {
  margin-bottom: 0;
}

.task-navigation__section {
  margin-top: 16px;
  padding: 20px;
}

.task-navigation__map {
  min-height: 300px;
}

.task-navigation__instructions {
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
}

.task-navigation__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.task-navigation__actions .button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  text-align: center;
}

.task-navigation__actions form {
  margin: 0;
}

.task-navigation__actions form .button-link {
  width: 100%;
}

.task-navigation__actions .button-link:disabled {
  cursor: default;
  opacity: 0.55;
}

.task-navigation__return {
  display: inline-block;
  margin-top: 18px;
}

.task-action-panel {
  margin-top: 20px;
  padding: 20px;
  border-top: 4px solid #d0590f;
  border-radius: 16px;
}

.task-action-panel__header {
  margin-bottom: 16px;
}

.task-action-panel__header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}

.task-action-panel__eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-action-panel form {
  margin-top: 14px;
}

.task-action-panel textarea,
.task-action-panel select,
.task-action-panel input {
  display: block;
  width: 100%;
  margin-top: 6px;
}

.task-action-panel textarea,
.task-action-panel select {
  margin-bottom: 14px;
}

.task-action-panel__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.task-action-panel__buttons form {
  margin: 0;
}

.execution-panel {
  margin-top: 18px;
}

.execution-timer {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  background: #f8fafc;
  text-align: center;
}

.execution-timer span,
.execution-timer small {
  color: var(--muted);
}

.execution-timer span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.execution-timer strong {
  font-family: "Point Mono", monospace;
  font-size: clamp(30px, 6vw, 46px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.execution-timer small {
  font-size: 13px;
  font-weight: 700;
}

.client-execution-progress {
  margin-top: 4px;
}

.completion-evidence {
  max-width: 680px;
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  background: #fff;
}

.completion-evidence header,
.completion-evidence__description {
  padding: 16px;
}

.completion-evidence header h3,
.completion-evidence__description p {
  margin: 0;
}

.completion-evidence__photo {
  display: block;
  aspect-ratio: 2.1 / 1;
  overflow: hidden;
  background: #eef2f6;
}

.completion-evidence__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.completion-evidence__description {
  border-top: 1px solid #d7dee7;
}

.completion-evidence__description p {
  margin-top: 6px;
  line-height: 1.55;
}

.completion-evidence__unavailable {
  margin: 0;
  padding: 18px 16px;
  border-top: 1px solid #d7dee7;
  color: var(--muted);
  background: #f8fafc;
}

.task-work-record {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}

.task-work-record__header,
.task-work-record__review {
  padding: 18px;
}

.task-work-record__header h2,
.task-work-record__side h3,
.task-work-record__review h3,
.task-work-record__review p {
  margin: 0;
}

.task-work-record__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #d7dee7;
}

.task-work-record__side {
  min-width: 0;
  padding: 16px;
}

.task-work-record__side + .task-work-record__side {
  border-left: 1px solid #d7dee7;
}

.task-work-record__side h3 {
  margin-bottom: 10px;
}

.task-work-record__side .photo-roll,
.task-work-record__side .completion-evidence__photo {
  border-radius: 12px;
}

.task-work-record__side .completion-evidence__description {
  padding: 14px 0 0;
  border-top: 0;
}

.task-work-record__empty {
  min-height: 180px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.task-work-record__review {
  border-top: 1px solid #d7dee7;
}

.task-work-record__review strong {
  display: block;
  margin-top: 8px;
}

.task-work-record__review p {
  margin-top: 5px;
}

@media (max-width: 680px) {
  .task-work-record__grid {
    grid-template-columns: 1fr;
  }

  .task-work-record__side + .task-work-record__side {
    border-top: 1px solid #d7dee7;
    border-left: 0;
  }
}

.execution-controls {
  display: grid;
  gap: 9px;
  max-width: 520px;
  margin: 0 auto;
}

.execution-controls form {
  margin: 0;
}

.execution-controls button {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

.execution-controls__navigation {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
}

.execution-controls button:disabled {
  border-color: #d7dee7;
  background: #eef2f6;
  color: #8a96a3;
  cursor: not-allowed;
  opacity: 1;
}

.execution-controls__primary {
  border-color: #b54809;
  background: #d0590f;
  color: #fff;
}

.execution-form-shell {
  max-width: 520px;
  margin: 16px auto 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffaf5;
}

.execution-form-shell h3 {
  margin-top: 0;
}

.execution-form-shell label + label {
  display: block;
  margin-top: 14px;
}

.execution-form-shell__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.task-action-panel__secondary {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.task-action-panel__secondary summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 700;
}

.task-action-panel__schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.task-action-panel__schedule legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  font-weight: 700;
}

.task-action-panel__timezone {
  display: block;
  margin-bottom: 12px;
}

.task-action-panel__note {
  color: var(--muted);
  font-size: 13px;
}

.task-action-panel__bids > div,
.task-action-panel__review {
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.task-action-panel__bids p,
.task-action-panel__review p {
  margin-bottom: 0;
}

.admin-issue-reports {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-issue-reports h3 {
  margin-top: 0;
}

.admin-issue-reports article {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  background: #fffaf5;
}

.admin-issue-reports article p {
  margin: 6px 0;
}

.admin-issue-reports article small {
  color: var(--muted);
}

.task-history {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
}

.task-history__header {
  margin-bottom: 8px;
}

.task-history__header p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-history__header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}

.task-history__events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-history__event {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.task-history__marker {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.task-history__event--contract .task-history__marker {
  background: #d0590f;
}

.task-history__event--work .task-history__marker {
  background: #2f7b48;
}

.task-history__event--courtesy .task-history__marker {
  background: #64748b;
}

.task-history__event strong,
.task-history__event time {
  display: block;
}

.task-history__event time,
.task-history__empty {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.task-history__older,
.task-history__reference {
  margin-top: 16px;
}

.task-history__older > summary,
.task-history__reference > summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 700;
}

.task-history__reference {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.task-history__reference-content {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.task-history__reference-content section + section {
  margin-top: 18px;
}

.task-history__reference-content h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.task-history__reference-content p,
.task-history__reference-content ul {
  margin: 0;
  line-height: 1.55;
}

.task-history__reference-content .task-card {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
}

.task-history__reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 720px) {
  .task-cockpit__header {
    align-items: flex-start;
  }

  .task-cockpit__contract-grid,
  .task-cockpit__reference-grid {
    grid-template-columns: 1fr;
  }

  .task-cockpit__term + .task-cockpit__term {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .task-action-panel__schedule {
    grid-template-columns: 1fr;
  }

  .task-history__reference-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) {
  .photo-roll__arrow { opacity: 0; transition: opacity 120ms ease; }
  .photo-roll:hover .photo-roll__arrow,
  .photo-roll:focus-within .photo-roll__arrow { opacity: 1; }
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.marketplace-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.marketplace-card .photo-roll {
  border-radius: 0;
}

.marketplace-card__body {
  padding: 15px;
}

.marketplace-card__summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.marketplace-card__action {
  flex: none;
}

.marketplace-card--text {
  padding-top: 4px;
}

@media (max-width: 760px) {
  .marketplace-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-card__summary {
    flex-direction: column;
  }

  .marketplace-card__action,
  .marketplace-card__action button {
    width: 100%;
  }
}

/* Compact Instagram-like rows of completed canonical tasks. */
.profile-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-task-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.profile-task-card__cover,
.profile-task-card__fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.profile-task-card__cover {
  display: block;
  object-fit: cover;
}

.profile-task-card__fallback {
  display: grid;
  place-items: center;
  padding: 14px;
  box-sizing: border-box;
  background: #f1ece7;
  color: #73543e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.profile-task-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.profile-task-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.58;
  text-transform: uppercase;
}

.profile-task-card .task-card {
  border: 0;
  padding: 0;
  margin: 8px 0;
  font-size: 14px;
}

.profile-task-card .x-line,
.profile-task-card .y-line,
.profile-task-card .z-line {
  font-size: 14px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.profile-task-card .task-row-left {
  white-space: normal;
  overflow: visible;
}

.profile-task-card__private,
.profile-task-card__vendor {
  font-size: 12px;
  opacity: 0.65;
}

.profile-task-card__vendor {
  margin-top: 8px;
}

.profile-task-card__review {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #eee;
  font-size: 13px;
}

.profile-task-card__review span {
  opacity: 0.65;
}

.profile-task-card__review-comment {
  margin-top: 5px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .profile-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .profile-task-grid { grid-template-columns: 1fr; }
}

/* --- Canonical task typography (PATCHED) --- */

/* Slightly larger, preview-like cards */
.task-card {
  font-size: 16px;        /* preview-friendly */
  line-height: 1.5;
}

/* Remove per-row borders inside a single card so X / Y / Z are visually grouped.
   Preserve outer card border (handled by .task-card already). */
.task-card .task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  border-top: 0;          /* kill intra-card separators */
}

/* If you still want subtle separation between *different* tasks, keep margin/padding
   on .task-card elements — we already have margin-bottom on .task-card earlier. */

/* Left column (X / Y / Z text) */
.task-card .task-row-left {
  flex: 1;
  font-weight: 400;       /* make the row text normal weight — we'll bold the verb only */
  color: #222;
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;           /* avoid overflow in narrow layouts */
}

/* X / Y / Z lines inherit readable type; make weight normal so strong <strong> stands out */
.x-line, .y-line, .z-line {
  font-size: 16px;
  font-weight: 400;
  margin: 0;              /* avoid margins from resets */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Strong (verb) should really pop — assign heavier weight and keep the thin pipe */
.x-line strong, .x-line b {
  font-weight: 700;
}

/* The pipe character should be subtle */
.x-line .pipe,
.x-line span.pipe {
  opacity: 0.6;
  margin: 0 6px;
  font-weight: 400;
}

/* Edit pencil button styling */
.row-edit {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  opacity: 0.6;
  margin-left: 8px;
  padding: 2px 6px;
}
.row-edit:hover { opacity: 1; }

/* Notes */
.task-notes {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
  border-top: 0;          /* ensure notes area doesn't add a divider */
  padding-top: 0;
}
/* Keep the protected logout POST visually consistent with the old nav link. */
.site-nav__logout {
  display: inline;
  margin: 0;
}

.site-nav__logout button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
