.pulse-v2 {
  min-height: 100vh;
  box-sizing: border-box;
  background: #f4f7f7;
  color: #092728;
  font-family: inherit;
}

/* Operations visual system: Pulse follows the same workspace shell. */
.pulse-v2.is-operations {
  padding: clamp(22px, 4vw, 38px);
  background: #f4f7f7;
}

.pulse-v2.is-operations .pulse-v2__header {
  box-sizing: border-box;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #dce7e9;
  border-top: 4px solid #12aeb5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(7, 17, 22, .055);
}

.pulse-v2.is-operations .pulse-v2__header h1 {
  color: #10252b;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.08;
}

.pulse-v2.is-operations .pulse-v2__back,
.pulse-v2.is-operations .pulse-v2__create {
  min-height: 46px;
  border: 1px solid #c8dadd;
  border-radius: 13px;
  box-shadow: none;
}

.pulse-v2.is-operations .pulse-v2__back {
  background: #fff;
  color: #087f83;
}

.pulse-v2.is-operations .pulse-v2__create {
  border-color: #0f9f9a;
  background: #0f9f9a;
}

.pulse-v2.is-operations :is(.pulse-v2__message, .pulse-v2__composer, .pulse-v2__detail, .pulse-v2__empty) {
  border: 1px solid #dce7e9;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 17, 22, .045);
}

@media (max-width: 700px) {
  .pulse-v2.is-operations {
    padding: 18px 14px 40px;
  }

  .pulse-v2.is-operations .pulse-v2__header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px;
    border-radius: 19px;
  }

  .pulse-v2.is-operations .pulse-v2__back,
  .pulse-v2.is-operations .pulse-v2__create {
    width: 100%;
  }
}

.pulse-v2 *,
.pulse-v2 *::before,
.pulse-v2 *::after {
  box-sizing: border-box;
}

.pulse-v2.is-operations {
  padding: 36px;
}

.pulse-v2.is-customer {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 100px;
  background: #f7f9f9;
}

.pulse-v2__header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 22px;
}

.pulse-v2.is-customer .pulse-v2__header {
  grid-template-columns: 1fr;
  gap: 16px;
}

.pulse-v2__header small,
.pulse-v2__composer-head small {
  display: block;
  margin-bottom: 5px;
  color: #617476;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pulse-v2__header h1,
.pulse-v2__composer-head h2 {
  margin: 0;
  color: #082627;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pulse-v2__header p {
  margin: 10px 0 0;
  color: #617476;
  font-size: 15px;
  font-weight: 700;
}

.pulse-v2__back,
.pulse-v2__create,
.pulse-v2__publish,
.pulse-v2__composer-close,
.pulse-v2__empty button {
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.pulse-v2__back {
  padding: 11px 14px;
  background: #ffffff;
  color: #173a3c;
  box-shadow: 0 8px 22px rgba(8, 39, 40, 0.08);
}

.pulse-v2.is-customer .pulse-v2__back {
  justify-self: start;
}

.pulse-v2__create,
.pulse-v2__publish {
  padding: 14px 18px;
  background: #0b3132;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 39, 40, 0.16);
}

.pulse-v2__create:hover,
.pulse-v2__publish:hover {
  transform: translateY(-1px);
}

.pulse-v2__create:disabled,
.pulse-v2__publish:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pulse-v2__messages,
.pulse-v2__composer,
.pulse-v2__detail {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.pulse-v2__messages {
  display: grid;
  gap: 12px;
}

.pulse-v2__message {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(10, 51, 52, 0.08);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 5px 1fr auto;
  align-items: stretch;
  gap: 16px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  box-shadow: 0 12px 34px rgba(8, 39, 40, 0.07);
  cursor: pointer;
}

.pulse-v2__message:hover {
  border-color: rgba(11, 49, 50, 0.22);
  transform: translateY(-1px);
}

.pulse-v2__message.is-unread {
  border-color: rgba(24, 190, 176, 0.4);
  box-shadow: 0 15px 36px rgba(18, 173, 161, 0.12);
}

.pulse-v2__message-indicator {
  width: 5px;
  border-radius: 999px;
  background: #b6c3c4;
}

.pulse-v2__message.is-important .pulse-v2__message-indicator {
  background: #d99616;
}

.pulse-v2__message.is-urgent .pulse-v2__message-indicator {
  background: #c94343;
}

.pulse-v2__message-content {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.pulse-v2__message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pulse-v2__message-meta strong {
  color: #4f6668;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-v2__message-meta time,
.pulse-v2__message-recipient,
.pulse-v2__message-status {
  color: #738586;
  font-size: 12px;
  font-weight: 700;
}

.pulse-v2__message-title {
  overflow: hidden;
  color: #092728;
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-v2__message-preview {
  display: -webkit-box;
  overflow: hidden;
  color: #506567;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pulse-v2__message-status {
  color: #0a9085;
}

.pulse-v2__message-arrow {
  align-self: center;
  color: #819193;
  font-size: 28px;
}

.pulse-v2__empty {
  width: 100%;
  max-width: 740px;
  margin: 50px auto;
  padding: 42px 24px;
  border-radius: 24px;
  display: grid;
  justify-items: center;
  gap: 10px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 14px 38px rgba(8, 39, 40, 0.07);
}

.pulse-v2__empty strong {
  font-size: 18px;
}

.pulse-v2__empty p {
  max-width: 480px;
  margin: 0;
  color: #647779;
  line-height: 1.5;
}

.pulse-v2__empty button {
  margin-top: 8px;
  padding: 11px 16px;
  background: #0b3132;
  color: #ffffff;
}

.pulse-v2__empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #dff7f3;
  color: #087c73;
  font-size: 22px;
  font-weight: 950;
}

.pulse-v2__loader {
  width: 28px;
  height: 28px;
  border: 3px solid #d6e1e2;
  border-top-color: #0a9187;
  border-radius: 50%;
  animation: pulse-v2-spin 0.8s linear infinite;
}

@keyframes pulse-v2-spin {
  to {
    transform: rotate(360deg);
  }
}

.pulse-v2__composer {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(8, 39, 40, 0.09);
}

.pulse-v2__composer-head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.pulse-v2__composer-head h2 {
  font-size: 28px;
}

.pulse-v2__composer-close {
  width: 42px;
  height: 42px;
  background: #edf2f2;
  color: #294748;
  font-size: 24px;
}

.pulse-v2__field {
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}

.pulse-v2__field > span,
.pulse-v2__recipients legend,
.pulse-v2__priorities legend {
  color: #284748;
  font-size: 13px;
  font-weight: 900;
}

.pulse-v2__field input,
.pulse-v2__field select,
.pulse-v2__field textarea {
  width: 100%;
  border: 1px solid #cfdbdc;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fbfcfc;
  color: #092728;
  font: inherit;
  outline: none;
}

.pulse-v2__field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.pulse-v2__field input:focus,
.pulse-v2__field select:focus,
.pulse-v2__field textarea:focus {
  border-color: #159f94;
  box-shadow: 0 0 0 3px rgba(21, 159, 148, 0.12);
}

.pulse-v2__recipients,
.pulse-v2__priorities {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.pulse-v2__recipients {
  display: grid;
  gap: 8px;
}

.pulse-v2__recipients > label {
  padding: 12px;
  border: 1px solid #d8e1e2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbfcfc;
  cursor: pointer;
}

.pulse-v2__recipients > label span {
  display: grid;
  gap: 3px;
}

.pulse-v2__recipients small {
  color: #718385;
}

.pulse-v2__priorities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pulse-v2__priorities legend {
  width: 100%;
  margin-bottom: 8px;
}

.pulse-v2__priorities label {
  cursor: pointer;
}

.pulse-v2__priorities input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pulse-v2__priorities span {
  display: block;
  padding: 10px 14px;
  border: 1px solid #cfdbdc;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.pulse-v2__priorities input:checked + span {
  border-color: #0b3132;
  background: #0b3132;
  color: #ffffff;
}

.pulse-v2__notice {
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #eef5f5;
  color: #3e5a5c;
  font-size: 13px;
  font-weight: 750;
}

.pulse-v2__notice.is-error,
.pulse-v2__empty.is-error {
  background: #fff0f0;
  color: #842f2f;
}

.pulse-v2__publish {
  width: 100%;
}

.pulse-v2__detail {
  max-width: 820px;
  padding-top: 10px;
}

.pulse-v2__detail > .pulse-v2__back {
  margin-bottom: 18px;
}

.pulse-v2__detail-card {
  padding: clamp(24px, 5vw, 46px);
  border-top: 6px solid #9aa9aa;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(8, 39, 40, 0.09);
}

.pulse-v2__detail-card.is-important {
  border-top-color: #d99616;
}

.pulse-v2__detail-card.is-urgent {
  border-top-color: #c94343;
}

.pulse-v2__detail-meta {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #718284;
  font-size: 12px;
  font-weight: 850;
}

.pulse-v2__detail-card h2 {
  margin: 0 0 20px;
  color: #092728;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.pulse-v2__detail-card > p {
  margin: 0;
  color: #385355;
  font-size: 16px;
  line-height: 1.75;
}

.pulse-v2__detail-card footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #e0e7e7;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #667a7c;
  font-size: 13px;
}

@media (max-width: 760px) {
  .pulse-v2.is-operations {
    padding: 20px 16px 80px;
  }

  .pulse-v2.is-operations .pulse-v2__header {
    grid-template-columns: 1fr;
  }

  .pulse-v2__create {
    width: 100%;
  }

  .pulse-v2__message {
    padding: 15px;
    gap: 12px;
  }

  .pulse-v2__message-title {
    font-size: 16px;
  }

  .pulse-v2__composer {
    padding: 18px;
  }
}

/* Pulse composer readability and visual hierarchy */
.pulse-v2__composer {
  max-width: 920px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(9, 39, 40, .08);
}

.pulse-v2__composer-head {
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e9e9;
}

.pulse-v2__field > span,
.pulse-v2__recipients legend,
.pulse-v2__priorities legend {
  color: #173a3c !important;
  font-size: 14px;
  letter-spacing: .02em;
}

.pulse-v2__field input,
.pulse-v2__field select,
.pulse-v2__field textarea {
  min-height: 52px;
  border: 2px solid #d5e0e1;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: #092728 !important;
  font-size: 16px;
  font-weight: 650;
}

.pulse-v2__field input::placeholder,
.pulse-v2__field textarea::placeholder {
  color: #738285;
  opacity: 1;
}

.pulse-v2__recipients {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid #e0e8e8;
  border-radius: 18px;
  background: #f7fafa;
}

.pulse-v2__recipients legend {
  padding: 0 7px;
}

.pulse-v2__recipients > label {
  min-width: 0;
  min-height: 78px;
  padding: 14px 16px;
  border: 2px solid #d6e1e2;
  background: #fff;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.pulse-v2__recipients > label:hover {
  border-color: #7fcfc8;
  background: #f4fffd;
}

.pulse-v2__recipients > label:has(input:checked) {
  border-color: #159f94;
  background: #ebfaf8;
  box-shadow: 0 0 0 3px rgba(21, 159, 148, .1);
}

.pulse-v2__recipients input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 24px;
  width: 24px !important;
  height: 24px;
  min-height: 24px;
  margin: 0;
  border: 2px solid #829496;
  border-radius: 7px;
  background: #fff;
}

.pulse-v2__recipients input[type="checkbox"]::before {
  content: "✓";
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  transform: scale(0);
}

.pulse-v2__recipients input[type="checkbox"]:checked {
  border-color: #0b8f86;
  background: #0b8f86;
}

.pulse-v2__recipients input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.pulse-v2__recipients input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(21, 159, 148, .25);
  outline-offset: 2px;
}

.pulse-v2__recipients > label span strong {
  color: #092728 !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.pulse-v2__recipients > label span small {
  overflow-wrap: anywhere;
  color: #5e7173 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.pulse-v2__priorities {
  gap: 10px;
  padding: 16px 0 2px;
}

.pulse-v2__priorities span {
  min-width: 112px;
  padding: 11px 18px;
  border: 2px solid #cbd8d9;
  background: #fff;
  color: #294748 !important;
  text-align: center;
}

.pulse-v2__priorities label:hover span {
  border-color: #749b9d;
  background: #f2f7f7;
}

.pulse-v2__priorities input:focus-visible + span {
  outline: 3px solid rgba(21, 159, 148, .22);
  outline-offset: 2px;
}

.pulse-v2__priorities input:checked + span {
  border-color: #0b3132;
  background: #0b3132;
  color: #fff !important;
}

.pulse-v2__publish {
  min-height: 56px;
  margin-top: 8px;
  font-size: 17px;
}

@media (max-width: 760px) {
  .pulse-v2__composer { padding: 18px; }
  .pulse-v2__recipients { grid-template-columns: 1fr; padding: 12px; }
  .pulse-v2__priorities { display: grid; grid-template-columns: 1fr; }
  .pulse-v2__priorities label,
  .pulse-v2__priorities span { width: 100%; }
}

/* Keep the Operations workspace spacing last in the legacy cascade. */
.pulse-v2.is-operations {
  padding: clamp(22px, 4vw, 38px);
}

@media (max-width: 700px) {
  .pulse-v2.is-operations {
    padding: 18px 14px 40px;
  }
}

/* Operations message archive */
.pulse-v2__archive-tools {display:grid;grid-template-columns:minmax(220px,2fr) minmax(110px,1fr) minmax(140px,1fr) auto;gap:16px;align-items:end;background:#fff;border:1px solid #dce7e9;border-radius:20px;padding:20px;margin-bottom:24px;}
.pulse-v2__archive-tools label {display:grid;gap:8px;color:#24484c;font-size:14px;font-weight:600;letter-spacing:normal;text-transform:none;}
.pulse-v2__archive-tools input,.pulse-v2__archive-tools select,.pulse-v2__archive-tools button {box-sizing:border-box;width:100%;min-width:0;min-height:46px;border:1px solid #adc7cb;border-radius:10px;padding:10px 12px;background:#fff;color:#102e33;font:inherit;font-size:16px;}
.pulse-v2__archive-tools button {cursor:pointer;background:#eef7f7;font-weight:600;}
.pulse-v2__archive-tools :is(input,select,button):focus-visible {outline:3px solid #0f898e;outline-offset:2px;}
.pulse-v2__archive-tools p {grid-column:1/-1;margin:0;color:#526b70;font-size:14px;}
.pulse-v2__archive-month {margin:0 0 28px;}
.pulse-v2__archive-month h2 {display:flex;flex-wrap:wrap;gap:12px;align-items:baseline;margin:0 0 12px;font-size:21px;color:#13383c;}
.pulse-v2__archive-month h2 span {font-size:14px;font-weight:400;color:#526b70;}
@media(max-width:900px){.pulse-v2__archive-tools {grid-template-columns:1fr 1fr;}.pulse-v2__archive-search {grid-column:1/-1;}.pulse-v2__archive-tools button {grid-column:1/-1;}}
@media(max-width:380px){.pulse-v2__archive-tools {grid-template-columns:1fr;}}
