.ops,
.ops-dialog {
  --op-line: #d9e0e4;
  --op-ink: #182b3c;
  --op-muted: #526575;
  --op-soft: #f2f6f8;
  --op-blue: #235b8d;
  color: var(--op-ink);
}
.ops {
  width: 100%;
  min-width: 0;
}
.ops [hidden],
.ops-dialog [hidden] {
  display: none !important;
}
.ops-head,
.ops-thread-head,
.ops-cal-nav,
.ops-dialog header,
.ops-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ops-head {
  margin: 0 0 20px;
}
.ops h1,
.ops h2,
.ops h3,
.ops-dialog h2,
.ops-dialog h3 {
  margin: 0;
  line-height: 1.25;
  color: var(--op-ink);
}
.ops h1 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}
.ops h2,
.ops-dialog h2 {
  font-size: 1.2rem;
}
.ops h3,
.ops-dialog h3 {
  font-size: 0.98rem;
}
.ops-head > div,
.ops-cal-nav > div,
.ops-status-actions,
.ops-searchbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ops input,
.ops select,
.ops textarea,
.ops-dialog input,
.ops-dialog select,
.ops-dialog textarea {
  box-sizing: border-box;
  font: inherit;
  min-width: 0;
  max-width: 100%;
  color: var(--op-ink);
  background: white;
  border: 1px solid #acbac4;
  border-radius: 6px;
  padding: 8px 10px;
}
.ops input:focus-visible,
.ops select:focus-visible,
.ops textarea:focus-visible,
.ops button:focus-visible,
.ops-dialog :focus-visible {
  outline: 2px solid var(--op-blue);
  outline-offset: 2px;
}
.ops button,
.ops-dialog button {
  cursor: pointer;
}
.ops button:disabled,
.ops-dialog button:disabled {
  cursor: default;
  opacity: 0.55;
}
.ops-inbox,
.ops-agenda,
.ops-campaigns {
  background: white;
  border: 1px solid var(--op-line);
  border-radius: 12px;
  overflow: hidden;
}
.ops-inbox {
  display: grid;
  grid-template-columns: minmax(245px, 0.85fr) minmax(0, 2fr);
  min-height: 480px;
  height: min(72vh, 760px);
}
.ops-list-pane {
  border-right: 1px solid var(--op-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ops-tools {
  padding: 15px;
  border-bottom: 1px solid var(--op-line);
  display: grid;
  gap: 10px;
}
.ops-tools > input {
  width: 100%;
}
.ops-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.ops-filters > * {
  width: 100%;
  font-size: 0.78rem !important;
}
.ops-queues,
.ops-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ops-queues button,
.ops-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px 7px;
  color: var(--op-muted);
  font: inherit;
  font-size: 0.8rem;
}
.ops-queues button[aria-pressed='true'],
.ops-tabs button[aria-pressed='true'] {
  background: #e6f1f7;
  color: #154867;
  border-color: #a9ccde;
}
.ops-queues span {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.ops-threads,
.ops-messages {
  overflow-y: auto;
}
.ops-thread-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font: inherit;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--op-line);
  color: var(--op-ink);
}
.ops-thread-row[aria-pressed='true'] {
  background: #edf6fa;
  box-shadow: inset 3px 0 #30759a;
}
.ops-thread-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.ops-thread-row small,
.ops-thread-row strong,
.ops-agenda-row small,
.ops-campaigns td small {
  display: block;
  overflow-wrap: anywhere;
}
.ops small,
.ops-dialog small {
  color: var(--op-muted);
  font-size: 0.78rem;
}
.ops-initial {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #dce9ed;
  color: #244656;
  font-weight: bold;
}
.ops-dot {
  width: 8px;
  height: 8px;
  background: #267798;
  border-radius: 50%;
}
.ops-thread {
  display: flex;
  min-height: 0;
  flex-direction: column;
}
.ops-empty {
  padding: 18px 16px;
  color: var(--op-muted);
  font-size: 0.91rem;
  margin: 0;
}
.ops-thread-head {
  justify-content: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--op-line);
}
.ops-thread-head > div {
  flex: 1;
  min-width: 120px;
}
.ops-thread-head h2 {
  overflow-wrap: anywhere;
}
.ops-history-filter {
  padding: 8px 16px;
  background: var(--op-soft);
}
.ops-history-filter select {
  font-size: 0.8rem;
  padding: 4px 8px;
}
.ops-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--op-soft);
}
.ops-msg {
  max-width: min(85%, 600px);
  padding: 10px 12px;
  border: 1px solid var(--op-line);
  border-radius: 10px;
  background: white;
  min-width: 0;
  color: var(--op-ink);
}
.ops-msg header {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.ops-msg header span {
  color: var(--op-muted);
  font-size: 0.75rem;
}
.ops-msg p,
.ops-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0.3em 0;
}
.ops-msg.is-team,
.ops-msg.is-note {
  align-self: flex-end;
}
.ops-msg.is-team {
  background: #e4f2f5;
  border-color: #bfdce2;
}
.ops-msg.is-note {
  background: #fff3cc;
  border-color: #dfcf95;
}
.ops-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--op-line);
}
.ops-composer .ops-tabs {
  grid-column: 1/-1;
}
.ops-composer textarea {
  resize: vertical;
  min-height: 52px;
}
.ops-reply-options {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.ops-reply-options select {
  font-size: 0.8rem;
}
.ops-attachments,
.ops-gallery-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  grid-column: 1/-1;
}
.ops-attachments > span {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.ops-file-button,
.ops-attachment {
  display: inline-block;
  position: relative;
  padding: 6px 8px;
  color: var(--op-blue);
  font: inherit;
  font-size: 0.81rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #acbac4;
  border-radius: 6px;
  cursor: pointer;
}
.ops-file-button:focus-within {
  outline: 2px solid var(--op-blue);
}
.ops-file-button input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.ops-attachment {
  display: block;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.ops-gallery-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--op-line);
}
.ops-gallery-row > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ops-gallery-row small {
  display: block;
}
.ops-media-full {
  max-width: 100%;
  max-height: 57vh;
  object-fit: contain;
  justify-self: center;
}
.ops-sign-preview {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--op-muted);
}
.ops-sign-preview input {
  width: auto;
}
.ops-template {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--op-line);
  padding-bottom: 6px;
}
.ops-template > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ops-template small {
  display: block;
}
.ops-dialog {
  background: white;
  color: var(--op-ink);
  border: 1px solid var(--op-line);
  border-radius: 12px;
  padding: 0;
  width: min(570px, calc(100vw - 26px));
  max-height: 88vh;
  box-shadow: 0 20px 70px #182b3c35;
  overflow: auto;
}
.ops-dialog::backdrop {
  background: #17283565;
}
.ops-dialog form {
  margin: 0;
  display: block;
}
.ops-dialog header,
.ops-dialog footer {
  padding: 15px 19px;
  border-bottom: 1px solid var(--op-line);
}
.ops-dialog footer {
  justify-content: flex-end;
  border-bottom: 0;
  border-top: 1px solid var(--op-line);
}
.ops-close {
  border: 0;
  background: transparent;
  padding: 0 6px;
  font-size: 1.6rem;
  color: var(--op-muted);
}
.ops-dialog-body {
  padding: 16px 19px;
  display: grid;
  gap: 12px;
}
.ops-dialog-body p {
  margin: 0;
}
.ops-dialog-body fieldset {
  display: grid;
  gap: 12px;
  border: 0;
  margin: 0;
  padding: 0;
}
.ops-field {
  display: grid;
  gap: 5px;
}
.ops-field > span {
  font-size: 0.85rem;
  color: var(--op-muted);
  font-weight: 600;
}
.ops-error {
  color: #a12525;
  margin: 0 19px 12px;
}
.ops-error:empty {
  display: none;
}
.ops-cal-nav,
.ops-searchbar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--op-line);
}
.ops-searchbar > input {
  flex: 1;
  min-width: min(180px, 100%);
}
.ops-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.ops-weekday {
  text-align: center;
  padding: 8px 0;
  font-size: 0.8rem;
  color: var(--op-muted);
}
.ops-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 76px;
  border: 0;
  border-top: 1px solid var(--op-line);
  border-right: 1px solid var(--op-line);
  background: white;
  text-align: left;
  padding: 6px;
  color: var(--op-ink);
  font: inherit;
}
.ops-day:nth-child(7n) {
  border-right: 0;
}
.ops-day.other {
  color: #6a7781;
  background: #f6f7f8;
}
.ops-day.chosen {
  box-shadow: inset 0 0 0 2px #397998;
  background: #f1f8fa;
}
.ops-day small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #235a69;
  font-size: 0.72rem;
}
.ops-day small.task {
  color: #3c477b;
}
.ops-day-list {
  border-top: 1px solid var(--op-line);
  padding: 13px 16px;
}
.ops-day-list h3 {
  margin: 8px 0 10px;
}
.ops-agenda-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(105px, 0.6fr) 2fr auto;
  text-align: left;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--op-line);
  color: var(--op-ink);
  font: inherit;
  font-size: 0.86rem;
}
.ops-table-scroll {
  overflow: auto;
}
.ops-campaigns table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.ops-campaigns th,
.ops-campaigns td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--op-line);
}
.ops-campaigns th {
  font-weight: 600;
  background: var(--op-soft);
}
.ops-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ops-metrics div {
  flex: 1;
  min-width: 66px;
  border-bottom: 2px solid #b9d4df;
  padding: 5px;
}
.ops-metrics strong,
.ops-metrics span {
  display: block;
}
.ops-metrics span {
  font-size: 0.78rem;
  color: var(--op-muted);
}
.ops-preview {
  background: var(--op-soft);
  padding: 12px;
  border-radius: 6px;
}
.ops-dialog .ops-searchbar {
  padding: 0 0 8px;
}
.ops-recipient {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--op-line);
}
.ops-recipient small {
  grid-column: 1/-1;
}
@media (max-width: 760px) {
  .ops-inbox {
    grid-template-columns: 1fr;
    height: auto;
  }
  .ops-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--op-line);
  }
  .ops-threads {
    max-height: 230px;
  }
  .ops-thread {
    min-height: 180px;
    max-height: 650px;
  }
  .ops-day {
    min-height: 51px;
    padding: 4px;
  }
  .ops-weekday {
    font-size: 0.7rem;
  }
  .ops-head {
    align-items: flex-start;
  }
  .ops-cal-nav {
    gap: 8px;
  }
  .ops-cal-nav h2 {
    width: 100%;
    order: -1;
  }
  .ops-composer {
    grid-template-columns: 1fr;
  }
  .ops-agenda-row {
    grid-template-columns: 1fr auto;
  }
  .ops-agenda-row time {
    grid-column: 1/-1;
  }
  .ops-campaigns th,
  .ops-campaigns td {
    padding: 8px;
  }
}
