.policy-reference {
  position: relative;
  width: 100%;
}
.policy-reference input[data-policy-reference] {
  width: 100%;
}
.policy-reference-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 1.2rem;
  margin-top: .22rem;
  color: #64736f;
  font-size: .72rem;
}
.policy-reference-status {
  line-height: 1.35;
}
.policy-reference-custom-note {
  margin-top: .3rem;
  padding: .45rem .58rem;
  border-left: 2px solid #c28c3a;
  border-radius: 0 .3rem .3rem 0;
  background: #fbf5e8;
  color: #72521e;
  font-size: .74rem;
  line-height: 1.4;
}
.policy-reference-custom-note[hidden] { display: none; }
.policy-ref-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4dfd9;
  border-radius: 999px;
  padding: .08rem .42rem;
  color: #42594f;
  background: #f4f7f3;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .025em;
}
.policy-ref-badge.is-shared { color: #176b54; border-color: #b8dacb; background: #edf7f1; }
.policy-ref-badge.is-imported { color: #825a1d; border-color: #ead9b7; background: #fbf5e8; }
.policy-reference-menu {
  position: absolute;
  z-index: 1100;
  top: calc(100% + .2rem);
  left: 0;
  right: 0;
  max-height: 18rem;
  overflow-y: auto;
  padding: .28rem;
  border: 1px solid #cbd8d1;
  border-radius: .55rem;
  background: #fffefa;
  box-shadow: 0 12px 30px rgb(30 55 44 / 16%);
}
.policy-reference-menu[hidden] { display: none; }
.policy-reference-option {
  display: block;
  width: 100%;
  padding: .58rem .68rem;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  color: #263b32;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.policy-reference-option:hover,
.policy-reference-option[aria-selected="true"] {
  background: #eaf3ed;
  outline: none;
}
.policy-reference-option-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-weight: 650;
}
.policy-reference-option-description {
  display: block;
  margin-top: .17rem;
  color: #687970;
  font-size: .78rem;
  line-height: 1.35;
}
.policy-reference-other {
  margin-top: .25rem;
  border-top: 1px solid #e3e9e4;
  color: #176b54;
}
.policy-classification-form {
  margin-top: .55rem;
  max-width: 19rem;
}
.policy-classification-label {
  display: block;
  margin: 0 0 .35rem;
  color: #637168;
  font-size: .72rem;
  font-weight: 600;
}
.policy-classification-label input {
  margin-top: .25rem;
}
.policy-classification-submit {
  padding: .32rem .65rem;
  border: 1px solid #bdcfc4;
  border-radius: .35rem;
  background: #edf5ef;
  color: #245b43;
  font-size: .76rem;
  font-weight: 650;
  cursor: pointer;
}
.policy-classification-submit:hover { background: #e0eee4; }
.policy-classification-submit:focus-visible,
.policy-reference-option:focus-visible {
  outline: 3px solid #97c7a8;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .policy-reference-menu { max-height: 14rem; }
}
