/* Timed event popup — same visual style as long-term-popup */

.timed-event-popup {
  position: fixed;
  z-index: 900;
  min-width: 320px;
  max-width: 380px;
  /* Frosted glass that follows the theme: translucent panel color so the
     backdrop blur still shows through, dark on dark themes / light on light. */
  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: var(--nds-wax-effect);
  -webkit-backdrop-filter: var(--nds-wax-effect);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  padding: 12px;
  color: var(--text-primary);
}

.timed-event-popup.hidden {
  display: none;
}

.tep-top-field-section {
  position: relative;
  min-height: 38px;
  padding-right: 46px;
  margin-bottom: 2px;
}

.tep-trash-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.tep-trash-btn:hover {
  color: var(--text-primary);
}

.tep-trash-btn svg {
  width: 16px;
  height: 16px;
}

.tep-title {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 38px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  padding: 8px 10px;
  user-select: text;
  overflow: hidden;
  outline: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.tep-title:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

.tep-title:focus {
  border-color: var(--border-subtle);
  background: transparent;
}

.tep-reflection {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 10px;
  resize: none;
  outline: none;
  margin-top: 8px;
}

.tep-reflection::placeholder {
  color: var(--text-muted);
}

.tep-reflection:focus {
  border-color: rgba(var(--overlay-rgb), 0.3);
  background: transparent;
}
