.operation-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(87, 125, 96, 0.1), transparent 26rem),
    #f7f8f6;
}

.operation-page-body [hidden], .task-editor-dialog [hidden] { display: none !important; }

.task-policy-fields {
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  margin: 20px 0;
  padding: 18px;
}

.task-policy-fields legend { color: #526159; font-weight: 800; padding: 0 8px; }
.task-policy-fields #task-editor-dependencies { min-height: 150px; padding: 10px; }
.task-evidence-requirements { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0; color: #526159; font-weight: 700; }
.task-evidence-requirements label { display: inline-flex; align-items: center; gap: 6px; }
.task-evidence-requirements input[type="checkbox"], .task-policy-fields input[type="checkbox"] { width: auto; min-height: auto; flex: 0 0 auto; }
#task-editor-approval-actions input { flex: 1 1 280px; min-height: 48px; border: 1px solid #d9e2dc; border-radius: 12px; padding: 10px 14px; }

.operation-shell {
  width: min(1500px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.operation-sidebar {
  position: sticky;
  top: 1rem;
  min-height: calc(100vh - 2rem);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(87, 125, 96, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(32, 33, 36, 0.07);
}

.operation-brand {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #fff8f0;
  text-decoration: none;
  text-align: center;
  font: 500 clamp(1.7rem, 3vw, 2.15rem)/1.05 "Playfair Display", Georgia, serif;
  letter-spacing: -0.04em;
  background: #577d60;
  border-radius: 22px;
  box-shadow: 0 18px 32px rgba(87, 125, 96, 0.2);
}

.operation-sidebar-copy {
  padding: 0 0.45rem;
  display: grid;
  gap: 0.32rem;
}

.operation-sidebar-copy strong {
  font: 600 1.18rem/1.3 "Google Sans", sans-serif;
}

.gmail-policy-nav {
  display: grid;
  gap: 0.55rem;
}

.gmail-policy-nav a {
  min-height: 70px;
  padding: 0.82rem 0.9rem;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  color: #3f4541;
  background: #fff;
  border: 1px solid rgba(87, 125, 96, 0.14);
  border-radius: 16px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gmail-policy-nav a > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #3a5340;
  background: rgba(87, 125, 96, 0.1);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 750;
}

.gmail-policy-nav a strong {
  font: 650 0.86rem/1.35 "Google Sans", sans-serif;
}

.gmail-policy-nav a:hover {
  color: #3a5340;
  background: #f7faf7;
  border-color: rgba(87, 125, 96, 0.26);
  transform: translateY(-1px);
}

.gmail-policy-nav a.is-active {
  color: #3a5340;
  background: rgba(87, 125, 96, 0.11);
  border-color: rgba(87, 125, 96, 0.22);
}

.gmail-policy-nav a.is-active > span {
  color: #fff;
  background: #577d60;
}

.operation-kicker {
  font: 600 0.7rem/1.2 "Google Sans", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a817f;
}

.internal-label,
.data-structure-badge,
.phase-pill,
.operation-status {
  width: fit-content;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font: 600 0.7rem/1 "Google Sans", sans-serif;
  letter-spacing: 0.03em;
}

.internal-label,
.data-structure-badge {
  color: #3a5340;
  background: rgba(87, 125, 96, 0.12);
}

.operation-nav {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(32, 33, 36, 0.08);
}

.operation-nav a,
.back-to-panel {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.72rem 0.82rem;
  border-radius: 14px;
  color: #5f6368;
  text-decoration: none;
  font-weight: 500;
  transition: 160ms ease;
}

.operation-nav a:hover,
.operation-nav a.is-active {
  color: #3a5340;
  background: rgba(87, 125, 96, 0.1);
}

.back-to-panel {
  margin-top: auto;
  gap: 0.55rem;
  color: #3a5340;
  border: 1px solid rgba(87, 125, 96, 0.16);
}

.operation-main {
  min-width: 0;
  display: grid;
  gap: 1.25rem;
}

.operation-hero,
.operation-card,
.metric-card,
.operation-section {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(32, 33, 36, 0.055);
}

.operation-hero {
  min-height: 280px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.operation-hero::after {
  content: attr(data-property-code);
  position: absolute;
  right: -1rem;
  bottom: -3.7rem;
  color: rgba(87, 125, 96, 0.045);
  font: 600 10rem/1 "Playfair Display", Georgia, serif;
  pointer-events: none;
}

.operation-breadcrumb {
  margin-bottom: 1.4rem;
  color: #8a8f8c;
  font-size: 0.78rem;
}

.operation-title-line {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.operation-title-line h1 {
  margin-top: 0.2rem;
  font: 600 clamp(2.35rem, 6vw, 4.8rem)/0.98 "Playfair Display", Georgia, serif;
  letter-spacing: -0.055em;
  color: #202124;
}

.operation-title-line h1 span { color: #577d60; }

.operation-title-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.operation-status {
  margin-bottom: 0.35rem;
  color: #3a5340;
  background: #e9f1eb;
}

.operation-hero-copy > p {
  max-width: 690px;
  margin-top: 1.15rem;
  color: #626864;
  font-size: 1rem;
  line-height: 1.72;
}

.progress-card {
  width: min(330px, 34vw);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  background: #f7faf7;
  border: 1px solid rgba(87, 125, 96, 0.13);
  border-radius: 22px;
}

.progress-card > div:last-child { display: grid; gap: 0.32rem; }
.progress-card > div:last-child strong { font-size: 1.05rem; }
.progress-card small { color: #7a817f; }

.progress-ring {
  --progress: 0;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  padding: 7px;
  border-radius: 50%;
  background: conic-gradient(#577d60 calc(var(--progress) * 1%), #dfe6e0 0);
}

.progress-ring > div {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  background: #fff;
  border-radius: 50%;
}

.progress-ring strong { font: 600 1.55rem/1 "Google Sans", sans-serif; color: #3a5340; }
.progress-ring span { margin-top: 0.3rem; color: #7a817f; font-size: 0.68rem; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  min-height: 112px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.metric-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font: 600 1.15rem/1 "Google Sans", sans-serif;
}

.metric-icon-green { color: #3a5340; background: rgba(87, 125, 96, 0.13); }
.metric-icon-blue { color: #42667c; background: rgba(82, 134, 166, 0.12); }
.metric-icon-amber { color: #9b6819; background: rgba(196, 140, 58, 0.13); }
.metric-icon-gray { color: #626864; background: rgba(98, 104, 100, 0.1); }
.metric-card > div { display: grid; gap: 0.25rem; }
.metric-card span { color: #7a817f; font-size: 0.76rem; }
.metric-card strong { font: 600 1.35rem/1.2 "Google Sans", sans-serif; }

.operation-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.tasks-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pending-actions-card {
  width: 100%;
}

.pending-task-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.pending-task-list .task-item {
  height: 100%;
}

.operation-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.operation-card,
.operation-section { padding: clamp(1.25rem, 3vw, 1.75rem); }

.card-heading,
.section-heading {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-heading h2,
.section-heading h2 {
  margin-top: 0.25rem;
  font: 600 1.35rem/1.25 "Playfair Display", Georgia, serif;
  color: #202124;
}

.phase-pill { color: #8b6b38; background: #fbf3e6; }

.timeline { display: grid; }

.timeline-item {
  display: grid;
  grid-template-columns: 112px 20px minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 124px;
}

.timeline-date { padding-top: 0.15rem; color: #7a817f; font-size: 0.75rem; line-height: 1.45; }
.timeline-date strong { display: block; color: #3c4043; font-size: 0.82rem; }

.timeline-marker { position: relative; display: flex; justify-content: center; }
.timeline-marker::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: #122c5c;
  box-shadow: 0 0 0 5px rgba(18, 44, 92, 0.12);
  z-index: 1;
}
.timeline-marker::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: -0.1rem;
  width: 1px;
  background: rgba(18, 44, 92, 0.2);
}
.timeline-item:last-child .timeline-marker::after { display: none; }

.timeline-preview-footer {
  margin-top: 0.35rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid rgba(18, 44, 92, 0.12);
}
.timeline-preview-footer[hidden] { display: none; }
.timeline-preview-footer > span {
  color: #7a817f;
  font-size: 0.72rem;
}
.timeline-expand-button {
  min-height: 40px;
  padding: 0.7rem 0.85rem;
  color: #173b73;
  background: rgba(23, 59, 115, 0.08);
  border: 1px solid rgba(23, 59, 115, 0.14);
  border-radius: 11px;
  font: 600 0.74rem/1 "Google Sans", sans-serif;
  cursor: pointer;
  transition: 160ms ease;
}
.timeline-expand-button:hover,
.timeline-expand-button:focus-visible {
  color: #fff;
  background: #173b73;
  outline: none;
}

.timeline-content {
  padding: 0 0 1.35rem;
  display: grid;
  gap: 0.45rem;
}
.timeline-content strong { font-size: 0.96rem; }
.timeline-task-title {
  width: fit-content;
  padding: 0;
  color: #202124;
  background: transparent;
  border: 0;
  font: 650 0.96rem/1.35 "Google Sans", sans-serif;
  text-align: left;
  cursor: pointer;
}
.timeline-task-title:hover,
.timeline-task-title:focus-visible {
  color: #3a5340;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}
.timeline-content p { color: #626864; line-height: 1.58; font-size: 0.86rem; }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.timeline-meta span {
  padding: 0.3rem 0.52rem;
  border-radius: 8px;
  color: #59605c;
  background: #f1f4f1;
  font-size: 0.7rem;
}
.timeline-delete-button {
  padding: 0.3rem 0.52rem;
  color: #985044;
  background: transparent;
  border: 1px solid rgba(152, 80, 68, 0.2);
  border-radius: 8px;
  font: 600 0.7rem/1 "Google Sans", sans-serif;
  cursor: pointer;
  transition: 160ms ease;
}
.timeline-delete-button:hover,
.timeline-delete-button:focus-visible {
  color: #fff;
  background: #985044;
  outline: none;
}
.timeline-task-open {
  padding: 0.3rem 0.52rem;
  color: #3a5340;
  background: rgba(87, 125, 96, 0.08);
  border: 1px solid rgba(87, 125, 96, 0.18);
  border-radius: 8px;
  font: 600 0.7rem/1 "Google Sans", sans-serif;
  cursor: pointer;
}
.timeline-task-open:hover,
.timeline-task-open:focus-visible {
  color: #fff;
  background: #577d60;
  outline: none;
}

.simple-list { display: grid; gap: 0.7rem; }
.card-subtitle {
  margin: 1.15rem 0 0.7rem;
  color: #313632;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}
.simple-item {
  padding: 0.95rem 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #f8faf8;
  border: 1px solid rgba(87, 125, 96, 0.08);
  border-radius: 16px;
}
.simple-item-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: #3a5340;
  background: rgba(87, 125, 96, 0.12);
  border-radius: 10px;
  font-size: 0.78rem;
}
.simple-item-copy { min-width: 0; display: grid; gap: 0.28rem; }
.simple-item-copy strong { font-size: 0.88rem; }
.simple-item-copy span { color: #747a76; font-size: 0.76rem; line-height: 1.5; }
.simple-item-copy .task-message {
  margin: 0.35rem 0 0;
  color: #4f5651;
  font-size: 0.8rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.task-whatsapp-message {
  margin-top: 0.2rem;
  padding: 0.72rem 0.8rem;
  color: #365846;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 13px;
}
.task-whatsapp-message summary {
  color: #087a5b;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.task-whatsapp-message p {
  margin: 0.65rem 0;
  color: #4f5f55;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.task-whatsapp-copy {
  padding: 0.48rem 0.66rem;
  color: #fff;
  background: #128c7e;
  border: 0;
  border-radius: 9px;
  font: 600 0.7rem/1 "Google Sans", sans-serif;
  cursor: pointer;
}
.task-whatsapp-copy:hover { background: #0d7469; }

.task-item {
  align-items: center;
}
.task-item[hidden] { display: none; }

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.new-task-button {
  min-height: 36px;
  padding: 0.58rem 0.75rem;
  color: #fff;
  background: #577d60;
  border: 1px solid #577d60;
  border-radius: 11px;
  font: 600 0.72rem/1 "Google Sans", sans-serif;
  cursor: pointer;
  transition: 160ms ease;
}

.new-task-button:hover { background: #47694f; }

.task-item-copy {
  flex: 1 1 auto;
}

.task-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
}
.task-title-row > strong { flex: 1 1 auto; }
.task-sequence-number {
  min-width: 1.85rem;
  padding: 0.24rem 0.34rem;
  flex: 0 0 auto;
  color: #173b73 !important;
  background: rgba(23, 59, 115, 0.09);
  border: 1px solid rgba(23, 59, 115, 0.13);
  border-radius: 8px;
  font: 700 0.66rem/1 "Google Sans", sans-serif;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.task-item.task-status-done {
  background: rgba(87, 125, 96, 0.06);
}
.task-item.task-is-blocked { border-color:rgba(164,122,52,.22);background:#fffdf8; }
.task-item.task-is-blocked > .simple-item-icon { color:#8a672f;background:#f7efe2; }

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.task-meta .task-pill {
  padding: 0.28rem 0.48rem;
  color: #59605c;
  background: #eef2ee;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.2;
}

.task-meta .task-template-pill {
  color: #203d7b;
  background: #e9eef8;
}
.task-meta .task-dependency-blocked { color:#7b5a2f;background:#f7efe2; }
.task-meta .task-dependency-ready { color:#3f704a;background:#e8f3eb; }
.task-dependency-notice { padding:.68rem .74rem;display:grid;gap:.42rem;border:1px solid rgba(164,122,52,.18);border-radius:12px;color:#70562c;background:#fbf4e8;font-size:.72rem; }
.task-dependency-list { display:flex;flex-wrap:wrap;gap:.32rem; }
.task-dependency-list span { padding:.28rem .44rem;border-radius:999px;background:rgba(255,255,255,.74);font-weight:650; }

.task-meta .task-assignee-pill { color: #3a5340; background: rgba(87, 125, 96, 0.13); }
.task-meta .task-state-in_progress { color: #42667c; background: rgba(82, 134, 166, 0.13); }
.task-meta .task-state-done { color: #3a6a45; background: rgba(87, 125, 96, 0.16); }
.task-meta .task-priority-high { color: #8b5d18; background: rgba(196, 140, 58, 0.15); }
.task-meta .task-priority-urgent { color: #9a3c34; background: rgba(180, 70, 60, 0.12); }
.task-meta .task-due-pill { color: #695f53; background: #f3efe9; }

.task-manage-button {
  min-height: 36px;
  padding: 0.58rem 0.72rem;
  flex: 0 0 auto;
  color: #3a5340;
  background: #fff;
  border: 1px solid rgba(87, 125, 96, 0.22);
  border-radius: 11px;
  font: 600 0.72rem/1 "Google Sans", sans-serif;
  cursor: pointer;
  transition: 160ms ease;
}

.task-manage-button:hover {
  color: #fff;
  background: #577d60;
}

.task-group-heading {
  margin: 0.7rem 0 0.05rem;
  padding-top: 0.85rem;
  color: #59605c;
  border-top: 1px solid rgba(87, 125, 96, 0.12);
  font-size: 0.78rem;
}

.task-preview-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid rgba(87, 125, 96, 0.12);
}

.task-preview-footer[hidden] { display: none; }
.task-preview-footer > span {
  color: #7a817f;
  font-size: 0.72rem;
}
.task-preview-footer a {
  min-height: 40px;
  padding: 0.7rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  background: #577d60;
  border-radius: 11px;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  transition: 160ms ease;
}
.task-preview-footer a:hover,
.task-preview-footer a:focus-visible {
  background: #47694f;
  outline: none;
}

.task-editor-dialog {
  width: min(640px, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: #202124;
  background: #fff;
  border: 1px solid rgba(87, 125, 96, 0.14);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(32, 33, 36, 0.24);
}

.task-editor-dialog::backdrop {
  background: rgba(27, 31, 28, 0.48);
  backdrop-filter: blur(3px);
}

.log-delete-target {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  background: #f7f9f7;
  border: 1px solid rgba(87, 125, 96, 0.13);
  border-radius: 16px;
}
.log-delete-target strong { font-size: 0.92rem; }
.log-delete-target span { color: #747b76; font-size: 0.75rem; }
.log-password-setup,
.log-delete-fields { display: grid; gap: 1rem; }
.log-password-setup[hidden],
.log-delete-fields[hidden] { display: none; }
.log-password-setup > p,
.log-delete-warning {
  margin: 0;
  color: #626864;
  font-size: 0.78rem;
  line-height: 1.55;
}
.log-delete-warning {
  padding: 0.85rem 1rem;
  color: #75483f;
  background: #fff7f4;
  border: 1px solid rgba(152, 80, 68, 0.14);
  border-radius: 14px;
}
.log-delete-confirm.is-danger { background: #985044; }
.log-delete-confirm.is-danger:hover { background: #7f4036; }

.task-editor-form {
  padding: clamp(1.25rem, 4vw, 2rem);
  display: grid;
  gap: 1.25rem;
}

.task-create-fields[hidden] { display: none; }

.task-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.task-editor-heading h2 {
  max-width: 500px;
  margin-top: 0.28rem;
  font: 600 1.55rem/1.25 "Playfair Display", Georgia, serif;
}

.task-editor-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #626864;
  background: #f3f5f3;
  border: 0;
  border-radius: 12px;
  font-size: 1.35rem;
  cursor: pointer;
}

.task-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.task-editor-field {
  display: grid;
  gap: 0.42rem;
}

.task-editor-field-wide { grid-column: 1 / -1; }
.task-editor-field > span { color: #59605c; font-size: 0.74rem; font-weight: 600; }
.task-editor-field > small { color: #7b827e; font-size: 0.7rem; line-height: 1.45; }

.task-editor-field select,
.task-editor-field input,
.task-editor-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.82rem;
  color: #202124;
  background: #f8faf8;
  border: 1px solid rgba(87, 125, 96, 0.17);
  border-radius: 12px;
  font: 400 0.84rem/1.4 "Google Sans", sans-serif;
}

.task-editor-field textarea { min-height: 92px; resize: vertical; }
.task-editor-field select:focus,
.task-editor-field input:focus,
.task-editor-field textarea:focus {
  outline: 2px solid rgba(87, 125, 96, 0.22);
  border-color: #577d60;
}

.task-completion-fields {
  padding: 1rem;
  background: #f7faf7;
  border: 1px solid rgba(87, 125, 96, 0.13);
  border-radius: 16px;
}

.task-completion-fields[hidden] { display: none; }
.task-completion-fields > p {
  margin: 0.8rem 0 0;
  color: #6d756f;
  font-size: 0.72rem;
  line-height: 1.5;
}

.task-performer-list { display: grid; gap: 0.7rem; }
.task-performer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.34fr) auto;
  gap: 0.65rem;
  align-items: end;
}
.task-performer-row .task-editor-field { min-width: 0; }
.task-remove-performer,
.task-add-performer {
  min-height: 46px;
  padding: 0.68rem 0.82rem;
  border-radius: 12px;
  font-weight: 650;
  cursor: pointer;
}
.task-add-performer { margin-top: 0.75rem; color: #3a5340; background: #fff; border: 1px dashed rgba(87, 125, 96, 0.35); }
.task-remove-performer { color: #9b453d; background: #fff7f5; border: 1px solid rgba(155, 69, 61, 0.18); }
.task-remove-performer[hidden] { display: none; }
.task-completion-note-grid { margin-top: 0.9rem; }

.task-editor-error {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: #8b302b;
  background: rgba(180, 70, 60, 0.1);
  border-radius: 11px;
  font-size: 0.78rem;
}

.task-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.task-editor-primary,
.task-editor-secondary {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  font: 600 0.8rem/1 "Google Sans", sans-serif;
  cursor: pointer;
}

.task-editor-primary { color: #fff; background: #577d60; border: 1px solid #577d60; }
.task-editor-secondary { color: #3a5340; background: #fff; border: 1px solid rgba(87, 125, 96, 0.2); }
.task-editor-primary:disabled { opacity: 0.6; cursor: wait; }

.operation-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  max-width: min(380px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  color: #fff;
  background: #3a5340;
  border-radius: 13px;
  box-shadow: 0 16px 34px rgba(32, 33, 36, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
}

.operation-toast[hidden] { display: none; }

.file-item.has-preview {
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: 160ms ease;
}
.file-item.has-preview:hover {
  border-color: rgba(87, 125, 96, 0.22);
  background: #f2f6f2;
  transform: translateY(-1px);
}
.file-preview {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid rgba(87, 125, 96, 0.12);
}
.file-open-mark {
  margin-left: auto;
  color: #577d60;
  font-size: 0.9rem;
  font-weight: 700;
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  padding: 1.4rem;
  text-align: center;
  color: #7a817f;
  background: #fafbfa;
  border: 1px dashed rgba(87, 125, 96, 0.22);
  border-radius: 18px;
}
.empty-state strong { color: #515753; font-size: 0.88rem; }
.empty-state span { max-width: 300px; font-size: 0.76rem; line-height: 1.5; }

.time-total {
  margin-bottom: 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.25rem;
  background: #577d60;
  color: white;
  border-radius: 18px;
}
.time-total strong { font: 600 2rem/1.15 "Playfair Display", Georgia, serif; }
.time-total span { color: rgba(255, 255, 255, 0.74); font-size: 0.76rem; }

.cost-summary { margin-bottom: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.cost-summary > div { padding: 1rem; display: grid; gap: 0.28rem; background: #f8faf8; border-radius: 16px; }
.cost-summary span { color: #7a817f; font-size: 0.74rem; }
.cost-summary strong { font-size: 1.2rem; }

.operation-final-row .operation-card { min-height: 260px; }

.property-details-card {
  overflow: hidden;
  border-color: rgba(87, 125, 96, 0.13);
}

.property-details-heading { margin-bottom: 1rem; }

.assignee-pill {
  width: fit-content;
  padding: 0.48rem 0.72rem;
  color: #3a5340;
  background: #e9f1eb;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.property-record-redirect {
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: #f7faf7;
  border: 1px solid rgba(87, 125, 96, 0.12);
  border-radius: 18px;
}

.property-record-redirect-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.property-record-redirect-copy > div { display: grid; gap: 0.3rem; }
.property-record-redirect-copy strong { color: #313632; font-size: 0.92rem; }
.property-record-redirect-copy p {
  max-width: 720px;
  margin: 0;
  color: #747a76;
  font-size: 0.78rem;
  line-height: 1.55;
}

.property-record-redirect-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #3a5340;
  background: rgba(87, 125, 96, 0.12);
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 700;
}

.property-record-button {
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: #577d60;
  border-radius: 13px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(87, 125, 96, 0.18);
  transition: 160ms ease;
}

.property-record-button:hover {
  background: #47694f;
  transform: translateY(-1px);
}

.operation-footer {
  padding: 0.7rem 0.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #8a8f8c;
  font-size: 0.72rem;
}

@media (max-width: 1120px) {
  .operation-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .operation-hero { grid-template-columns: 1fr; }
  .progress-card { width: 100%; max-width: 370px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-primary-grid { grid-template-columns: 1fr; }
  .tasks-card { height: auto !important; }
  .pending-task-list { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .operation-shell { width: min(100% - 1rem, 760px); grid-template-columns: 1fr; }
  .operation-sidebar { position: static; min-height: auto; }
  .operation-brand { min-height: 76px; }
  .operation-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .back-to-panel { margin-top: 0; }
  .operation-two-column { grid-template-columns: 1fr; }
  .property-record-redirect { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .operation-shell { width: calc(100% - 0.75rem); padding-top: 0.4rem; gap: 0.7rem; }
  .operation-sidebar,
  .operation-hero,
  .operation-card,
  .operation-section,
  .metric-card { border-radius: 20px; }
  .operation-nav { grid-template-columns: 1fr; }
  .operation-hero { padding: 1.3rem; gap: 1.2rem; }
  .operation-title-line h1 { font-size: 2.65rem; }
  .progress-card { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .metric-card { min-height: 92px; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .task-card-actions { width: 100%; justify-content: space-between; }
  .task-preview-footer,
  .timeline-preview-footer { align-items: stretch; flex-direction: column; }
  .task-preview-footer a,
  .timeline-expand-button { width: 100%; }
  .timeline-item { grid-template-columns: 74px 16px minmax(0, 1fr); gap: 0.45rem; }
  .cost-summary { grid-template-columns: 1fr; }
  .property-record-redirect-copy { align-items: flex-start; }
  .property-record-button { width: 100%; }
  .task-item { align-items: flex-start; flex-wrap: wrap; }
  .task-manage-button { width: 100%; margin-left: 38px; }
  .task-editor-grid { grid-template-columns: 1fr; }
  .task-performer-row { grid-template-columns: 1fr; }
  .task-editor-field-wide { grid-column: auto; }
  .task-editor-actions { flex-direction: column-reverse; }
  .task-editor-primary,
  .task-editor-secondary { width: 100%; }
  .operation-footer { flex-direction: column; }
}
