.yb-comment-status {
  position: fixed;
  bottom: 115px;
  right: 18px;
  z-index: 10001;
  max-width: min(360px, calc(100vw - 36px));
  background: #fff;
  color: #172b3b;
  border: 1px solid #aac0cf;
  padding: 10px;
  font: 14px/1.4 Arial, sans-serif;
}

.yb-comment-scope[hidden] { display: none; }
body[data-yb-review-markers="shared"] .yb-comment-open { bottom: 70px; }
body[data-yb-review-markers="shared"] .yb-comment-marker { transform: translate(-50%, -50%); }

.yb-comment-marker {
  position: absolute;
  z-index: 9998;
  width: 26px;
  height: 26px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #326793;
  color: #ffffff;
  display: grid;
  place-items: center;
  font: 800 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-shadow: 0 8px 18px rgba(2, 42, 92, .25);
  cursor: pointer;
}

.yb-comment-marker.shared {
  background: #40af49;
}

.yb-comment-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: min(390px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 36px));
  overflow: auto;
  background: #ffffff;
  border: 1px solid #d7e1ea;
  box-shadow: 0 18px 42px rgba(2, 42, 92, .18);
  display: none;
}

.yb-comment-panel.open {
  display: block;
}

.yb-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #072d66;
  color: #ffffff;
}

.yb-comment-head strong {
  font-size: 14px;
}

.yb-comment-panel button,
.yb-comment-dialog button {
  border: 0;
  border-radius: 0;
  background: #326793;
  color: #ffffff;
  font-weight: 800;
  padding: 8px 10px;
  cursor: pointer;
}

.yb-comment-panel button.secondary,
.yb-comment-dialog button.secondary {
  background: #eaf2f8;
  color: #072d66;
}

.yb-comment-body {
  padding: 12px 14px;
}

.yb-comment-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #505858;
  font-size: 12px;
}

.yb-comment-item {
  border: 1px solid #d7e1ea;
  padding: 10px;
  margin: 0 0 9px;
  background: #f7f7f8;
}

.yb-comment-item strong {
  display: block;
  margin-bottom: 4px;
  color: #072d66;
  font-size: 12px;
}

.yb-comment-item p {
  margin: 0 0 8px;
  color: #23313a;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.yb-comment-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  background: rgba(2, 42, 92, .28);
  padding: 20px;
}

.yb-comment-dialog.open {
  display: grid;
}

.yb-comment-box {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #d7e1ea;
  box-shadow: 0 22px 55px rgba(2, 42, 92, .24);
  padding: 18px;
}

.yb-comment-box h2 {
  margin: 0 0 6px;
  color: #072d66;
  font-size: 22px;
}

.yb-comment-box p {
  margin: 0 0 12px;
  color: #505858;
  font-size: 13px;
}

.yb-comment-box textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #b9c6d1;
  padding: 10px;
  font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #23313a;
}

.yb-comment-scope {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.yb-comment-scope label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d7e1ea;
  padding: 7px 9px;
  font-size: 13px;
  color: #23313a;
}

.yb-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.yb-comment-open {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9997;
  border: 0;
  background: #072d66;
  color: #ffffff;
  font: 800 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 9px 11px;
  box-shadow: 0 10px 24px rgba(2, 42, 92, .22);
  cursor: pointer;
}

@media print {
  .yb-comment-marker,
  .yb-comment-panel,
  .yb-comment-dialog,
  .yb-comment-status,
  .yb-comment-open {
    display: none !important;
  }
}
/* Opt-in calendar review location indicator. */
.yb-comment-item[data-locate-index] { cursor: pointer; }
.yb-comment-located { outline: 4px solid #173e65 !important; outline-offset: -4px; box-shadow: inset 0 0 0 7px #ffffffc9; z-index: 3; }
