/* Private officer message dialog and the buttons that open it.
   Colors follow the live theme tokens when system.css is present. */

.lo-channels button.dld-oc-open,
.contact-list button.dld-oc-open,
.contact-options button.dld-oc-open {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-options button.dld-oc-open {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--l-text, #0f2a24);
  font-size: 14px;
}

.contact-options button.dld-oc-open small {
  display: block;
  margin-top: 2px;
  font-size: var(--t-micro, 13px);
  font-weight: 400;
  color: var(--l-faint, #55665f);
  text-decoration: none;
}

.contact-options button.dld-oc-open:hover {
  background: var(--soft, #e8eeea);
}

.lo-channels button.dld-oc-open {
  color: var(--d-text, #eef4f1);
  text-decoration-color: var(--mint, #8ad9c7);
}

.dld-oc-fallback {
  margin-top: 18px;
}

.dld-oc-fallback .btn {
  white-space: normal;
}

body.dld-oc-lock {
  overflow: hidden;
}

.dld-oc {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.dld-oc[hidden] {
  display: none !important;
}

.dld-oc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 12, 0.72);
}

.dld-oc-dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: var(--paper, #f3f5f2);
  color: var(--l-text, #0f2a24);
  box-shadow: 0 40px 90px -36px rgba(5, 15, 12, 0.8);
}

.dld-oc-dialog .field {
  margin-top: 14px;
}

.dld-oc-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine, #0e5e4e);
}

.dld-oc-dialog h2 {
  margin: 8px 40px 0 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink, #0f2a24);
}

.dld-oc-dialog #dld-oc-desc,
.dld-oc-note,
.dld-oc-success p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--l-muted, #3b4f48);
}

.dld-oc-optional {
  font-weight: 400;
  color: var(--l-faint, #55665f);
}

.dld-oc-x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #0f2a24);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dld-oc-x:hover {
  background: rgba(15, 42, 36, 0.06);
}

.dld-oc-dialog .btn {
  margin-top: 18px;
}

.dld-oc-error {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--brass-deep, #8a6422);
}

.dld-oc-error[hidden],
.dld-oc-success[hidden] {
  display: none !important;
}

.dld-oc-success h2 {
  margin-right: 0;
}

.dld-oc-note {
  margin-top: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .dld-oc {
    padding: 0;
    align-items: end;
  }

  .dld-oc-dialog {
    width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .dld-oc-dialog .btn {
    transition: none;
  }
}

.dld-oc-dialog .select-wrap {
  display: block;
}

.dld-oc-dialog .select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
