/* What is left of the Undated Daily sidebar's stylesheet.
 *
 * That panel was deleted on 2026-08-12, and the parts of this file that only it
 * rendered went with it: the body and card, the section headings and add
 * buttons, the `ug-event` chip stack, the sub-goals chevron and its Tiptap
 * editor. The `@import` of long-term-popup.css went too — it existed so the
 * global sidebar could open the Daily tab's weekly-parent picker cold, and
 * nothing global opens that picker any more.
 *
 * The `ug-` prefix was never about this panel. It was chosen so these rules
 * could copy the Calendar's look WITHOUT the calendar's class names, which are
 * router-injected only after the Calendar tab is first visited — a global
 * surface has to render identically before that happens. Three such surfaces
 * still do, which is why the rules below survive:
 *   • `.ug-card-title` — the day-nav title, in both the `sidebar-date-navigation`
 *     React island and the Today's-schedule sidebar's vanilla fallback.
 *   • `.ug-linked-goal-tag*` and `.ug-popup*` — the shared sidebar goal UI
 *     (js/sidebar/sidebar_goal_ui.js): the weekly-parent pill and the
 *     rename/delete popup that opens off a goal row.
 *
 * Chip COLORS were never copied here and still are not: event_palette.js sets
 * the same --intentional-event-* source vars + .icx-event-themed, resolved per
 * theme in styles/components.css, which is global. */

.ug-card-title {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ── Linked-goal tag (mirrors .intentional-calendar-x-linked-goal-tag,
      the pill a calendar card shows in its toggled-open state) ───────── */
.ug-linked-goal-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 2px 6px 2px 5px;
  font-size: 11px;
  line-height: 1.2;
  align-self: flex-start;
  max-width: calc(100% - 19px);
  margin: 0 0 5px 19px; /* aligns under the title (check 14px + gap 5px) */
  cursor: pointer;
  color: var(--icx-tag-color, inherit);
}

.ug-linked-goal-tag:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ug-linked-goal-tag-emoji {
  font-size: 12px;
  flex-shrink: 0;
}

.ug-linked-goal-tag-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.ug-linked-goal-tag-remove {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1px;
}

.ug-linked-goal-tag-remove:hover {
  opacity: 1;
}

/* ── Title popup (mirrors .long-term-popup frosted card) ───────────── */
.ug-popup {
  position: fixed;
  z-index: 900;
  width: 300px;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: blur(12px) brightness(120%);
  -webkit-backdrop-filter: blur(12px) brightness(120%);
  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);
}

.ug-popup.hidden {
  display: none;
}

.ug-popup-field {
  position: relative;
  min-height: 38px;
  padding-right: 46px;
}

.ug-popup-title {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 38px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  outline: none;
  resize: none;
}

.ug-popup-title:focus {
  border-color: var(--accent);
}

.ug-popup-delete {
  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;
}

.ug-popup-delete:hover {
  color: var(--text-primary);
}

.ug-popup-delete svg {
  width: 16px;
  height: 16px;
}

.ug-popup-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ug-popup-link.hidden {
  display: none;
}
