/* ════════════════════════════════════════════════════════════════════
   workspace-reminders.css — pure liquid glass, scoped to .ws-rem-*
   Loads AFTER workspace.css + workspace-sections.css.
   ════════════════════════════════════════════════════════════════════ */

/* ── Tabs row ──────────────────────────────────────────────────── */

.ws-rem-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  margin-bottom: 18px;
  width: fit-content;
}
.ws-rem-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.62);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.ws-rem-tab:hover { color: rgba(255, 255, 255, 0.88); }
.ws-rem-tab.ws-is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}
.ws-rem-tab__count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 600;
}

/* ── Body ─────────────────────────────────────────────────────── */

.ws-rem-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ws-rem-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws-rem-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  padding: 0 2px 4px 2px;
}
.ws-rem-group__head--overdue { color: rgba(255, 200, 200, 0.78); }

/* ── Reminder card ─────────────────────────────────────────────── */

.ws-rem-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  transition: background 160ms ease, border-color 160ms ease, transform 200ms ease;
}
.ws-rem-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.ws-rem-card--overdue {
  border-color: rgba(255, 165, 165, 0.24);
  background: rgba(255, 200, 200, 0.04);
}
.ws-rem-card--snoozed { opacity: 0.78; }
.ws-rem-card--firing {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 40px -10px rgba(0, 0, 0, 0.55);
}

.ws-rem-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.ws-rem-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ws-rem-card__title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-rem-card__body-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-rem-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ws-rem-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}
.ws-rem-meta-chip--source { color: rgba(255, 255, 255, 0.52); }
.ws-rem-meta-chip--inferred { background: rgba(200, 220, 255, 0.05); color: rgba(200, 220, 255, 0.82); border-color: rgba(200, 220, 255, 0.12); }
.ws-rem-meta-chip--voice    { background: rgba(255, 220, 200, 0.05); color: rgba(255, 220, 200, 0.85); border-color: rgba(255, 220, 200, 0.14); }
.ws-rem-meta-chip--agent    { background: rgba(220, 200, 255, 0.05); color: rgba(220, 200, 255, 0.85); border-color: rgba(220, 200, 255, 0.14); }
.ws-rem-meta-chip--flow     { background: rgba(200, 255, 220, 0.05); color: rgba(200, 255, 220, 0.82); border-color: rgba(200, 255, 220, 0.14); }
.ws-rem-meta-chip--recurring { color: rgba(255, 255, 255, 0.78); }
.ws-rem-meta-chip--overdue  { color: rgba(255, 200, 200, 0.92); border-color: rgba(255, 200, 200, 0.20); }

.ws-rem-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ws-rem-act {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}
.ws-rem-act:hover { background: rgba(255, 255, 255, 0.09); color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.ws-rem-act--icon { padding: 7px 9px; }

/* ── Snooze popover ────────────────────────────────────────────── */

.ws-rem-snooze-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.5);
  min-width: 220px;
}
.ws-rem-snooze-pop button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}
.ws-rem-snooze-pop button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── Suggestions queue ─────────────────────────────────────────── */

.ws-rem-sugg-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}
.ws-rem-sugg-card__excerpt {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  border-left: 2px solid rgba(255, 255, 255, 0.10);
  padding-left: 10px;
  line-height: 1.5;
}

/* ── Form (create / edit modal body) ───────────────────────────── */

.ws-rem-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ws-rem-form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ws-rem-form__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 600;
}
.ws-rem-form__input,
.ws-rem-form__textarea,
.ws-rem-form__select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.94);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.ws-rem-form__input:focus,
.ws-rem-form__textarea:focus,
.ws-rem-form__select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}
.ws-rem-form__textarea { min-height: 70px; resize: vertical; }

.ws-rem-form__trigger-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.ws-rem-form__trigger-tab {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.62);
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.ws-rem-form__trigger-tab.ws-is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.ws-rem-form__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ws-rem-form__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  user-select: none;
}
.ws-rem-form__channel input { display: none; }
.ws-rem-form__channel.ws-is-active {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  color: #fff;
}

.ws-rem-form__hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.5;
  margin: -4px 0 0 0;
}
.ws-rem-form__nl {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.ws-rem-form__nl-input {
  flex: 1;
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  padding: 4px 6px;
  outline: none;
}

/* ════════════════════════════════════════════════════════════════════
   REDESIGN 2026-06-04 — world-class liquid glass
   ════════════════════════════════════════════════════════════════════ */

/* ── Glass hero ─────────────────────────────────────────────────── */
.ws-rem-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 20px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(42px) saturate(185%);
  -webkit-backdrop-filter: blur(42px) saturate(185%);
  box-shadow: 0 22px 60px -28px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.14);
}
.ws-rem-hero__glow {
  position: absolute;
  top: -60%; right: -10%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(120,150,255,0.20), rgba(170,120,255,0.07) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.ws-rem-hero__top {
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}
.ws-rem-hero__title {
  margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -0.02em;
  color: #fff;
}
.ws-rem-hero__sub {
  margin: 4px 0 0; font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,0.58); max-width: 52ch;
}
.ws-rem-hero__actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; align-items: stretch; }
.ws-rem-hero__btnrow { display: flex; gap: 10px; }
/* Tabs in the hero, sized to span the exact width of the two buttons above */
.ws-rem-tabs--hero { width: 100%; margin: 0; }
.ws-rem-tabs--hero .ws-rem-tab { flex: 1; justify-content: center; padding: 8px 10px; }
.ws-rem-hero__btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 12px; font-size: 13px; font-weight: 550;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.ws-rem-hero__btn:hover { background: rgba(255,255,255,0.11); transform: translateY(-1px); }
.ws-rem-hero__btn--primary {
  /* pure liquid glass — brighter sheen, but NOT a solid white slab */
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.22);
  color: #fff; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 10px 30px -16px rgba(0,0,0,0.5);
}
.ws-rem-hero__btn--primary:hover { background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10)); }
.ws-rem-hero__btn-ic { font-size: 14px; line-height: 1; }

/* ── Live stat pills ────────────────────────────────────────────── */
.ws-rem-stats {
  position: relative;
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
}
.ws-rem-stat {
  appearance: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-width: 92px; padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.ws-rem-stat:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.ws-rem-stat__n { font-size: 22px; font-weight: 680; line-height: 1; color: #fff; letter-spacing: -0.02em; }
.ws-rem-stat__l { font-size: 11px; font-weight: 550; letter-spacing: 0.04em; color: rgba(255,255,255,0.52); text-transform: uppercase; }
.ws-rem-stat--overdue { border-color: rgba(255,150,150,0.28); }
.ws-rem-stat--overdue .ws-rem-stat__n { color: #ffb4b4; }
.ws-rem-stat--today  .ws-rem-stat__n { color: #bdd0ff; }
.ws-rem-stat--cand   .ws-rem-stat__n { color: #d7c0ff; }
.ws-rem-stat--empty { opacity: 0.5; }
.ws-rem-stat--empty:hover { opacity: 0.85; }

/* ── Ask-Synergy command bar ────────────────────────────────────── */
.ws-rem-ai {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 6px 6px 6px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.ws-rem-ai:focus-within {
  border-color: rgba(170,185,255,0.55);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 4px rgba(150,165,255,0.12), 0 14px 40px -16px rgba(120,140,255,0.4);
}
.ws-rem-ai.ws-is-thinking { border-color: rgba(170,185,255,0.4); }
.ws-rem-ai__input {
  flex: 1; appearance: none; background: transparent; border: none; outline: none;
  color: rgba(255,255,255,0.96); font-size: 14px; font-family: inherit; padding: 9px 8px 9px 12px;
}
.ws-rem-ai__input::placeholder { color: rgba(255,255,255,0.4); }
.ws-rem-ai__go {
  flex-shrink: 0; appearance: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 12px;
  /* pure liquid glass send button — no solid white */
  border: 1px solid rgba(255,255,255,0.20);
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  color: rgba(255,255,255,0.92); font-size: 17px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 150ms ease, background 150ms ease;
}
.ws-rem-ai__go:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.10)); }
.ws-rem-ai.ws-is-thinking .ws-rem-ai__go { animation: ws-rem-spin 1.1s linear infinite; }
@keyframes ws-rem-spin { to { transform: rotate(360deg); } }
.ws-rem-ai__go:active { transform: scale(0.95); }
.ws-rem-ai__status {
  margin-top: 10px; padding: 9px 14px; border-radius: 11px; font-size: 12.5px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
}
.ws-rem-ai__status--ok    { border-color: rgba(150,230,170,0.3);  color: #c8f3d4; }
.ws-rem-ai__status--err   { border-color: rgba(255,160,160,0.3);  color: #ffc9c9; }
.ws-rem-ai__status--hint  { border-color: rgba(190,200,255,0.3);  color: #cdd6ff; }
.ws-rem-ai__check { color: #8fe6a8; font-weight: 700; }
.ws-rem-ai__when { color: rgba(255,255,255,0.6); }
.ws-rem-ai__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #aeb9ff;
  animation: ws-rem-pulse 0.9s ease-in-out infinite;
}
@keyframes ws-rem-pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ── Group head count + flash ───────────────────────────────────── */
.ws-rem-group__count {
  margin-left: 4px; padding: 1px 7px; border-radius: 8px; font-size: 10.5px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); font-weight: 600;
}
.ws-rem-group--flash > .ws-rem-card { animation: ws-rem-flash 1.05s ease; }
@keyframes ws-rem-flash {
  0% { box-shadow: 0 0 0 0 rgba(160,175,255,0); }
  30% { box-shadow: 0 0 0 2px rgba(160,175,255,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(160,175,255,0); }
}

/* ── Recurring presets + importance range (modal) ──────────────── */
.ws-rem-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ws-rem-preset {
  appearance: none; cursor: pointer;
  padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  transition: background 130ms ease, border-color 130ms ease;
}
.ws-rem-preset:hover { background: rgba(255,255,255,0.09); color: #fff; }
.ws-rem-preset.ws-is-active {
  background: linear-gradient(135deg, rgba(190,200,255,0.9), rgba(160,175,255,0.78));
  color: #14151c; border-color: transparent; font-weight: 600;
}
.ws-rem-form__imp-label {
  float: right; text-transform: none; letter-spacing: 0; font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.ws-rem-form__imp-label[data-level="urgent"] { color: #ff9b9b; }
.ws-rem-form__imp-label[data-level="high"]   { color: #ffd58a; }
.ws-rem-form__imp-label[data-level="normal"] { color: #bdd0ff; }
.ws-rem-form__imp-label[data-level="low"]    { color: rgba(255,255,255,0.55); }
.ws-rem-form__range {
  --imp-fill: 50%;
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 8px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, rgba(160,175,255,0.85) var(--imp-fill), rgba(255,255,255,0.10) var(--imp-fill));
}
.ws-rem-form__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.ws-rem-form__range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.ws-rem-form__channel-ic { font-size: 13px; opacity: 0.85; }

/* ── Modal → pure liquid glass (override the flat dark look) ────── */
.ws-modal-backdrop {
  background: rgba(8,10,20,0.42) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
}
.ws-modal--rem {
  max-width: 560px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,0.085), rgba(255,255,255,0.028)) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(72px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(72px) saturate(200%) !important;
  box-shadow: 0 40px 100px -24px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.16);
}
.ws-modal--rem .ws-modal__head { border-bottom-color: rgba(255,255,255,0.10); padding: 18px 22px; }
.ws-modal--rem .ws-modal__title { font-size: 17px; font-weight: 620; }
.ws-modal--rem .ws-modal__foot { background: rgba(255,255,255,0.03); border-top-color: rgba(255,255,255,0.10); }
/* The NL parse hero inside the modal — make it a feature, glassy + glowing */
.ws-modal--rem .ws-rem-form__nl {
  background: linear-gradient(135deg, rgba(170,185,255,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(170,185,255,0.28);
  border-radius: 14px; padding: 14px; margin-bottom: 4px;
}
.ws-modal--rem .ws-rem-form__input,
.ws-modal--rem .ws-rem-form__textarea,
.ws-modal--rem .ws-rem-form__select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.ws-modal--rem .ws-rem-form__input:focus,
.ws-modal--rem .ws-rem-form__textarea:focus,
.ws-modal--rem .ws-rem-form__select:focus {
  border-color: rgba(170,185,255,0.5);
  box-shadow: 0 0 0 3px rgba(150,165,255,0.12);
}
.ws-modal--rem .ws-rem-form { display: flex; flex-direction: column; gap: 16px; }

/* ── Apply button in the NL parse hero (was "Parse") ───────────── */
.ws-rem-nl-go {
  appearance: none; cursor: pointer; flex-shrink: 0;
  padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  transition: background 140ms ease, transform 140ms ease;
}
.ws-rem-nl-go:hover { background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.10)); transform: translateY(-1px); }

/* ── Modal Create/primary button → glass (was solid white) ─────── */
.ws-modal--rem .ws-btn--primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07)) !important;
  border: 1px solid rgba(255,255,255,0.24) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22) !important;
}
.ws-modal--rem .ws-btn--primary:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0.12)) !important;
}

/* ── Custom glass dropdown (context "when I…" event) ───────────── */
.ws-rem-dd { position: relative; }
.ws-rem-dd__btn {
  width: 100%; appearance: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 11px; font-size: 13px; font-family: inherit;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: border-color 140ms ease, background 140ms ease;
}
.ws-rem-dd.ws-is-open .ws-rem-dd__btn,
.ws-rem-dd__btn:hover { border-color: rgba(170,185,255,0.5); background: rgba(255,255,255,0.09); }
.ws-rem-dd__chev { font-size: 11px; color: rgba(255,255,255,0.55); transition: transform 160ms ease; }
.ws-rem-dd.ws-is-open .ws-rem-dd__chev { transform: rotate(180deg); }
.ws-rem-dd__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  max-height: 240px; overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  /* pure liquid glass */
  background: linear-gradient(160deg, rgba(40,44,68,0.72), rgba(26,28,44,0.66));
  backdrop-filter: blur(48px) saturate(190%);
  -webkit-backdrop-filter: blur(48px) saturate(190%);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.16);
}
.ws-rem-dd__opt {
  appearance: none; cursor: pointer; text-align: left;
  padding: 10px 12px; border-radius: 9px; font-size: 13px; font-family: inherit;
  border: 1px solid transparent; background: transparent; color: rgba(255,255,255,0.82);
  transition: background 120ms ease, color 120ms ease;
}
.ws-rem-dd__opt:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ws-rem-dd__opt.ws-is-active {
  background: rgba(170,185,255,0.16); color: #fff; border-color: rgba(170,185,255,0.28);
}

/* Responsive: stack hero actions under title on narrow workspace */
@media (max-width: 720px) {
  .ws-rem-hero__actions { width: 100%; }
  .ws-rem-hero__btn { flex: 1; justify-content: center; }
  .ws-rem-stat { flex: 1; min-width: 0; }
}

/* ── Overview widget (top 3 today) ─────────────────────────────── */

.ws-overview-reminders {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ws-overview-reminders__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}
.ws-overview-reminders__title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-overview-reminders__when {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.52);
  flex-shrink: 0;
}

/* ── Dock chip integration ─────────────────────────────────────── */

.ws-dock-chip--reminders[data-count="0"] { opacity: 0.55; }
.ws-dock-popover__rem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ws-dock-popover__rem-row:last-child { border-bottom: none; }
.ws-dock-popover__rem-title {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-dock-popover__rem-when {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* ── Modal (used by reminders create/edit) ─────────────────────── */

.ws-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
/* Empty backdrop (no modal child) collapses to zero — defensive guard
   against any stale element that might be lying around without a real
   modal inside. Without this, an orphaned backdrop blocks all clicks. */
.ws-modal-backdrop:empty,
.ws-modal-backdrop:not(:has(.ws-modal)) {
  display: none !important;
  pointer-events: none !important;
}
.ws-modal {
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.ws-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-modal__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.01em;
}
.ws-modal__close {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
}
.ws-modal__close:hover { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.10); }
.ws-modal__body {
  padding: 18px 20px;
  overflow-y: auto;
}
.ws-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.ws-modal--rem .ws-modal__body { padding-top: 14px; }

/* ============================================================
   Custom glass date + time picker (.ws-rem-dtp)
   Replaces native datetime-local (Safari doesn't commit value)
   ============================================================ */
.ws-rem-dtp { position: relative; width: 100%; }
.ws-rem-dtp__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ws-rem-dtp__btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}
.ws-rem-dtp.ws-is-open .ws-rem-dtp__btn {
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.ws-rem-dtp__btn[data-empty="1"] span[data-dtp-label] { color: rgba(255, 255, 255, 0.46); }
.ws-rem-dtp__cal-ic { font-size: 15px; opacity: .7; }

.ws-rem-dtp__pop {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 48px);
  padding: 14px;
  border-radius: 20px;
  background: rgba(28, 28, 34, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(46px) saturate(190%);
  -webkit-backdrop-filter: blur(46px) saturate(190%);
  box-shadow: 0 24px 70px -18px rgba(0, 0, 0, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-6px) scale(.985);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.ws-rem-dtp.ws-is-open .ws-rem-dtp__pop {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* calendar header */
.ws-rem-dtp__calhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ws-rem-dtp__mlabel {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: .01em;
}
.ws-rem-dtp__nav {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.ws-rem-dtp__nav:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.18); }

/* day-of-week row */
.ws-rem-dtp__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.ws-rem-dtp__dow span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, 0.40);
  padding: 4px 0;
}

/* day grid */
.ws-rem-dtp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.ws-rem-dtp__cell {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.80);
  font-size: 13px;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.ws-rem-dtp__cell:hover { background: rgba(255, 255, 255, 0.08); }
.ws-rem-dtp__cell--blank { pointer-events: none; opacity: 0; }
.ws-rem-dtp__cell.ws-is-today { color: #fff; border-color: rgba(255, 255, 255, 0.26); }
.ws-rem-dtp__cell.ws-is-sel {
  background: rgba(255, 255, 255, 0.92);
  color: #15151b;
  font-weight: 600;
  border-color: transparent;
}
.ws-rem-dtp__cell.ws-is-sel:hover { background: #fff; }

/* time row */
.ws-rem-dtp__time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-rem-dtp__tgrp {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-rem-dtp__step {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px; line-height: 1;
  cursor: pointer;
  transition: background .14s ease;
}
.ws-rem-dtp__step:hover { background: rgba(255, 255, 255, 0.12); }
.ws-rem-dtp__tnum {
  min-width: 30px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.95);
}
.ws-rem-dtp__tsep { color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.ws-rem-dtp__ap {
  margin-left: 4px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.ws-rem-dtp__ap:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.20); }

.ws-rem-dtp__ampm { display: inline-flex; gap: 2px; margin-left: 4px; }
.ws-rem-dtp__min {
  width: 38px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px; font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: background .14s ease;
}
.ws-rem-dtp__min:hover { background: rgba(255, 255, 255, 0.12); }
.ws-rem-dtp__ap.ws-is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: #15151b;
}
.ws-rem-dtp__cal { /* calendar wrapper */ }

/* quick chips */
.ws-rem-dtp__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.ws-rem-dtp__quick button {
  flex: 1 1 auto;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.ws-rem-dtp__quick button:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
}

/* ============================================================
   Inline glass validation (.ws-rem-form-err) — no dark tint
   ============================================================ */
.ws-rem-form-err {
  display: flex;
  align-items: center;
  gap: 9px;
  max-height: 0;
  margin: 0 20px;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: rgba(255, 224, 224, 0.95);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .26s ease, opacity .22s ease, transform .22s ease, padding .26s ease, margin .26s ease;
}
.ws-rem-form-err::before {
  content: "!";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 170, 170, 0.22);
  border: 1px solid rgba(255, 170, 170, 0.40);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ws-rem-form-err--show {
  max-height: 60px;
  margin: 4px 20px 0;
  padding: 10px 14px;
  border-color: rgba(255, 170, 170, 0.28);
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   History cards (.ws-rem-card--hist)
   ============================================================ */
.ws-rem-card--hist { opacity: .92; }
.ws-rem-card--hist .ws-rem-card__title { color: rgba(255, 255, 255, 0.80); }
.ws-rem-hist--done {
  background: rgba(150, 230, 170, 0.10);
  border-color: rgba(150, 230, 170, 0.26);
  color: rgba(190, 240, 200, 0.92);
}
.ws-rem-hist--dismissed {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}
.ws-rem-hist--expired {
  background: rgba(255, 210, 160, 0.08);
  border-color: rgba(255, 210, 160, 0.22);
  color: rgba(255, 220, 180, 0.85);
}
