/* apps/web/src/story-mentions.css */
.story-mentions-inline {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line,#35253e);
}
.story-mentions-fields {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 0;
}
.story-mentions-fields.has-position {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 210px);
}
.story-mentions-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 10px;
  color: var(--muted,#aaa6b6);
  font-weight: 600;
}
.story-mentions-fields label > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.story-mentions-fields label small {
  font-size: 9px;
  font-weight: 400;
  opacity: .8;
}
.story-mentions-inline textarea,
.story-mentions-inline select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line,#35253e);
  border-radius: 7px;
  background: var(--bg,#08070d);
  color: inherit;
  padding: 9px 10px;
  outline: none;
  font: inherit;
  line-height: 1.5;
}
.story-mentions-inline textarea {
  min-height: 50px;
  height: 50px;
  resize: vertical;
}
.story-mentions-inline select {
  min-height: 40px;
}
.story-mentions-inline textarea:focus,
.story-mentions-inline select:focus {
  border-color: #b34be8;
  box-shadow: 0 0 0 3px #a330dd20;
}
.story-mentions-inline textarea:disabled,
.story-mentions-inline select:disabled {
  opacity: .55;
}
.story-mentions-inline > small {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted,#91869e);
  margin: 0;
}
.story-mentions-error {
  font-size: 11px;
  color: #f87171;
  margin: 0;
}
.story-mention-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.story-mention-preview {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}
.story-mention-preview > span {
  display: block;
  flex: none;
  background: transparent;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  box-shadow: none;
}
.story-mention-preview.draggable {
  cursor: move;
}
@media (max-width: 600px) {
  .story-mentions-fields.has-position {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-mentions-inline textarea,
  .story-mentions-inline select {
    font-size: 16px;
  }
}
