/* shared/tags.css — the "@" dropdown and tag chips, shared by all three
   apps. Same quiet palette as the rest of Cala. */

/* The input's parent gets this class so the dropdown can hug the input. */
.tag-dd-host { position: relative; }

.tag-dd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  z-index: 40;
  max-height: 180px;
  overflow-y: auto;
}
.tag-dd[hidden] { display: none; }

/* In the rename sheets the input sits above a Save button, so a dropdown hung
   below the form lands under Save, off the screen's bottom edge. There we drop
   it back INTO the flow, right under the input: the list is fully visible and
   the bottom sheet simply grows upward to make room. */
.modal .tag-dd {
  position: static;
  margin-top: 6px;
}

.tag-dd__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  font: inherit;
  color: #111111;
  cursor: pointer;
}
.tag-dd__item:hover { background: #f6f6f6; }

.tag-dd__empty { padding: 10px 14px; color: #b8b8b8; font-size: 14px; }

/* The row of chips under a title. */
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag-chips[hidden] { display: none; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  color: #111111;
}
.tag-chip__x {
  border: none;
  background: none;
  color: #b8b8b8;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.tag-chip__x:hover { color: #111111; }
