/* Tend tab — warm, calm modules. Prefixed `tend-`. Follows DESIGN_SYSTEM.md. */

.tend-page {
  min-height: 100vh;
  padding: 8px 16px 120px;
  background: var(--kith-bg-grad);
  color: var(--kith-text);
  font-family: 'Inter Tight', sans-serif;
}

.tend-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
  background: var(--kith-bg-grad);
}
.tend-loading .tend-spin { font-size: 28px; color: var(--kith-gold); animation: tendSpin 900ms linear infinite; }
@keyframes tendSpin { to { transform: rotate(360deg); } }
.tend-error { text-align: center; padding: 60px 24px; color: var(--kith-text-muted);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; }

.tend-head { margin: 6px 4px 18px; }
.tend-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600;
  letter-spacing: -0.025em; margin: 0; color: var(--kith-text); }
.tend-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px;
  color: var(--kith-text-muted); margin: 5px 0 0; }

.tend-stack { display: flex; flex-direction: column; gap: 14px; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.tend-card {
  display: block; width: 100%; text-align: left;
  background: var(--kith-surface); border: none; border-radius: 16px; padding: 16px;
  box-shadow: 0 2px 10px rgba(60,34,24,0.08);
  cursor: pointer; font-family: inherit; color: inherit;
  transition: box-shadow 0.18s ease, transform 0.15s ease;
}
.tend-card-flush {
  background: var(--kith-surface); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(60,34,24,0.08);
}
button.tend-card:active { transform: scale(0.99); }

.tend-label {
  font-family: 'Inter Tight', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--kith-text-dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.tend-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* ── Avatars ───────────────────────────────────────────────────────────── */
.tend-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 600; flex-shrink: 0;
}

/* ── Pills / buttons ───────────────────────────────────────────────────── */
.tend-pill-green {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #2D6A4F 0%, #295E2C 50%, #1E4A22 100%);
  color: var(--kith-on-accent); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 4px 12px rgba(41,94,44,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.tend-btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #2D6A4F 0%, #295E2C 50%, #1E4A22 100%);
  color: var(--kith-on-accent); font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(41,94,44,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.tend-btn-primary:active { transform: translateY(1px); }
.tend-btn-primary:disabled {
  background: var(--kith-toggle-off); color: var(--kith-text-dim); box-shadow: none; cursor: default;
}
.tend-btn-danger {
  width: 100%; padding: 14px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--kith-red); color: var(--kith-on-accent); font-family: 'Inter Tight', sans-serif;
  font-size: 15px; font-weight: 600; box-shadow: 0 4px 12px rgba(135,28,35,0.3);
}
.tend-btn-ghost {
  width: 100%; padding: 12px; border: none; background: transparent;
  color: var(--kith-text-dim); font-family: 'Inter Tight', sans-serif; font-size: 14px; cursor: pointer;
  margin-top: 6px;
}
.tend-link {
  display: block; width: 100%; text-align: center; margin-top: 12px;
  background: transparent; border: none; cursor: pointer;
  color: var(--kith-text-muted); font-family: 'Inter Tight', sans-serif; font-size: 12.5px;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ── Daily Log ─────────────────────────────────────────────────────────── */
.tend-streak {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  background: rgba(209,160,38,0.13); color: #8A7018; font-size: 11px; font-weight: 600;
}
.tend-streak i { font-size: 11px; }
.tend-daylog-q {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px;
  line-height: 1.2; color: var(--kith-text); margin: 10px 0 14px; max-width: 92%;
}
.tend-daylog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tend-faces-row { display: flex; align-items: center; gap: 10px; }
.tend-faces { display: flex; }
.tend-face { border: 2px solid var(--kith-surface); border-radius: 50%; display: inline-flex; }
.tend-face-skeleton { width: 32px; height: 32px; background: var(--kith-border); animation: tendSkeleton 1.2s ease-in-out infinite; }
@keyframes tendSkeleton { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.tend-logged-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px;
  border-radius: 999px; background: var(--kith-accent-soft); color: var(--kith-accent-ink);
  font-size: 11.5px; font-weight: 600;
}

/* ── Reach Out ─────────────────────────────────────────────────────────── */
.tend-reach-q {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px;
  line-height: 1.2; color: var(--kith-text); margin: 8px 0 4px;
}
.tend-reach-sub { font-size: 12.5px; color: var(--kith-text-muted); margin: 0 0 16px; }
.tend-reach-dials { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.tend-dial-label {
  font-size: 12px; font-weight: 600; color: var(--kith-text-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.tend-dial-ends { display: flex; justify-content: space-between; margin-top: 2px; }
.tend-dial-ends span { font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 11.5px; color: var(--kith-text-muted); }
.tend-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  border-radius: 999px; background: var(--kith-border); outline: none;
}
.tend-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--kith-green); cursor: pointer; box-shadow: 0 2px 6px rgba(60,34,24,0.18);
}
.tend-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2px solid var(--kith-green); cursor: pointer; box-shadow: 0 2px 6px rgba(60,34,24,0.18);
}
.tend-reach-card {
  margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--kith-surface-2);
  display: flex; align-items: center; gap: 13px; animation: tendFadeIn 320ms cubic-bezier(.2,.8,.3,1);
}
.tend-reach-info { flex: 1; min-width: 0; }
.tend-reach-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600;
  color: var(--kith-text); cursor: pointer; }
.tend-reach-meta { font-size: 12px; color: var(--kith-text-muted); margin-top: 1px; }
.tend-reach-btns { display: flex; gap: 8px; flex-shrink: 0; }
.tend-reach-call, .tend-reach-text {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  text-decoration: none;
}
.tend-reach-call { border: 1.5px solid var(--kith-green); background: transparent; color: var(--kith-green); }
.tend-reach-text { border: none;
  background: linear-gradient(135deg, #2D6A4F 0%, #295E2C 100%); color: var(--kith-on-accent);
  box-shadow: 0 4px 10px rgba(41,94,44,0.35); }
.tend-reach-call.is-disabled, .tend-reach-text.is-disabled {
  opacity: 0.4; cursor: not-allowed; box-shadow: none;
}

/* ── Reminders ─────────────────────────────────────────────────────────── */
.tend-rem-head {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 18px;
  background: transparent; border: none; cursor: pointer; text-align: left; font-family: inherit;
}
.tend-rem-icon {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; color: var(--kith-on-accent); font-size: 20px;
  background: linear-gradient(160deg, #c98b95, #a85f6a);
  display: flex; align-items: center; justify-content: center;
}
.tend-rem-head-text { flex: 1; min-width: 0; }
.tend-rem-title-row { display: flex; align-items: baseline; gap: 8px; }
.tend-rem-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--kith-text); }
.tend-rem-count { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 12.5px; color: var(--kith-text-muted); }
.tend-rem-next { font-size: 12.5px; color: var(--kith-text-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tend-rem-next strong { color: var(--kith-text); font-weight: 600; }
.tend-rem-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; flex-shrink: 0;
  background: rgba(224,117,116,0.16); color: #c0524f; font-size: 11.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.tend-rem-chev { color: var(--kith-text-dim); font-size: 16px; flex-shrink: 0; transition: transform 0.22s; }
.tend-rem-chev.open { transform: rotate(90deg); }

.tend-rem-body { padding: 0 18px 18px; }
.tend-rem-tabs { display: flex; gap: 6px; margin-bottom: 14px; padding: 4px;
  background: var(--kith-surface-2); border-radius: 999px; }
.tend-rem-tab {
  flex: 1; padding: 7px 6px; border: none; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--kith-text-muted); font-family: 'Inter Tight', sans-serif;
  font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all 0.18s;
}
.tend-rem-tab.on { background: var(--kith-surface); color: var(--kith-text); font-weight: 600; box-shadow: 0 1px 4px rgba(60,34,24,0.06); }
.tend-rem-tab-count { font-size: 9.5px; padding: 1px 5px; border-radius: 999px;
  background: rgba(41,94,44,0.12); color: var(--kith-green); }
.tend-rem-rows { display: flex; flex-direction: column; gap: 10px; }
.tend-rem-empty {
  padding: 22px; border-radius: 14px; background: var(--kith-surface-2); text-align: center;
  color: var(--kith-text-muted); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13.5px;
}

/* reminder tile (self-contained, mirrors profile kith-tile) */
.tend-tile {
  display: flex; align-items: stretch; gap: 14px; width: 100%; padding: 12px 14px;
  background: var(--kith-surface); border: 1px solid var(--kith-border); border-radius: 14px; cursor: pointer;
  text-align: left; font-family: inherit; box-shadow: 0 1px 4px rgba(60,34,24,0.05);
}
.tend-tile-count {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 46px; padding-right: 12px; border-right: 1px solid var(--kith-border);
  color: var(--tend-dot, #e07574);
}
.tend-tile-count.is-today .tend-tile-num { font-size: 14px; }
.tend-tile-num { font-family: 'Inter Tight', sans-serif; font-size: 22px; font-weight: 700; line-height: 1; }
.tend-tile-unit { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.tend-tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.tend-tile-title-row { display: flex; align-items: center; gap: 6px; }
.tend-tile-star { color: var(--kith-gold); font-size: 12px; }
.tend-tile-title { font-family: 'Inter Tight', sans-serif; font-size: 14.5px; font-weight: 500; color: var(--kith-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tend-tile-meta { font-size: 11.5px; color: var(--kith-text-muted); }

/* ── Networking (off) ──────────────────────────────────────────────────── */
.tend-net-off-head { display: flex; align-items: center; gap: 14px; }
.tend-net-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; font-size: 22px;
  background: var(--kith-accent-soft); color: var(--kith-green); display: flex; align-items: center; justify-content: center;
}
.tend-net-off-title { font-family: 'Cormorant Garamond', serif; font-size: 16.5px; font-weight: 600;
  color: var(--kith-text); margin-top: 3px; }
.tend-net-off-body { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px;
  color: var(--kith-text-muted); margin: 12px 0 14px; line-height: 1.4; }

/* ── Networking (live) ─────────────────────────────────────────────────── */
.tend-net-live {
  position: relative; overflow: hidden; border-radius: 18px; padding: 18px; color: var(--kith-on-accent);
  background: linear-gradient(150deg, #2D6A4F, #1A3D1E);
  box-shadow: 0 10px 30px rgba(41,94,44,0.45);
}
.tend-net-glow { position: absolute; top: -40px; right: -30px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,0.12); pointer-events: none; }
.tend-net-live-top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative; }
.tend-net-status { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; }
.tend-net-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: tendPulse 1400ms ease-in-out infinite; }
.tend-net-elapsed { font-size: 12px; opacity: 0.85; }
.tend-net-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; margin: 12px 0 2px; position: relative; }
.tend-net-loc { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13.5px;
  opacity: 0.85; position: relative; }
.tend-net-count { display: flex; align-items: baseline; gap: 8px; margin: 16px 0; position: relative; }
.tend-net-count-num { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; line-height: 1; }
.tend-net-count-unit { font-size: 13px; opacity: 0.85; }
.tend-net-nudge { display: flex; align-items: center; gap: 8px; position: relative;
  background: rgba(255,255,255,0.14); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px;
  font-size: 12.5px; }
.tend-net-actions { display: flex; gap: 10px; position: relative; }
.tend-net-add {
  flex: 1; padding: 12px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--kith-surface); color: var(--kith-green); font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.tend-net-end {
  padding: 12px 18px; border-radius: 999px; cursor: pointer; color: var(--kith-on-accent);
  border: 1.5px solid rgba(255,255,255,0.5); background: transparent;
  font-family: 'Inter Tight', sans-serif; font-size: 13.5px; font-weight: 600;
}
.tend-net-cancel {
  display: block; width: 100%; margin-top: 10px; background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); font-family: 'Inter Tight', sans-serif; font-size: 12px;
  position: relative; text-decoration: underline; text-underline-offset: 2px;
}
.tend-net-filed { font-size: 11px; opacity: 0.7; margin-top: 12px; position: relative; }
.tend-net-filed strong { font-weight: 600; }

/* ── Quizzes ───────────────────────────────────────────────────────────── */
.tend-quiz { border: 1.5px dashed var(--kith-border); box-shadow: 0 1px 4px rgba(60,34,24,0.06); opacity: 0.94; cursor: default; }
.tend-soon { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(190,178,166,0.18); color: #8A7E6E; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; }
.tend-quiz-body { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tend-quiz-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; font-size: 24px;
  background: linear-gradient(150deg, rgba(209,160,38,0.18), rgba(181,131,141,0.14));
  color: #8A7018; display: flex; align-items: center; justify-content: center; }
.tend-quiz-title { font-family: 'Cormorant Garamond', serif; font-size: 16.5px; font-weight: 600; color: var(--kith-text-muted); }
.tend-quiz-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13.5px;
  color: var(--kith-text-dim); margin-top: 2px; line-height: 1.35; }

/* ── Overlay / sheets ──────────────────────────────────────────────────── */
.tend-overlay {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-end;
  background: rgba(20,15,10,0.45);
}
.tend-overlay.is-open { display: flex; animation: tendFade 220ms ease; }
.tend-sheet {
  width: 100%; max-height: 90%; background: var(--kith-bg-grad);
  border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; animation: tendRise 340ms cubic-bezier(.2,.8,.3,1);
}
.tend-sheet-auto { display: block; }
.tend-grabber { width: 42px; height: 5px; border-radius: 3px; background: var(--kith-border); margin: 12px auto 4px; }
.tend-sheet-head { padding: 6px 20px 10px; }
.tend-sheet-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 10px; color: var(--kith-text); }

.tend-toggle { display: inline-flex; gap: 4px; padding: 3px; background: var(--kith-surface); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--kith-border); }
.tend-toggle-btn { padding: 6px 16px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--kith-text-muted); font-family: 'Inter Tight', sans-serif;
  font-size: 12.5px; font-weight: 500; text-transform: capitalize; }
.tend-toggle-btn.on { background: linear-gradient(135deg, #2D6A4F, #295E2C); color: var(--kith-on-accent); font-weight: 600; }

.tend-search { padding: 0 20px 10px; }
.tend-search > * { box-sizing: border-box; }
.tend-search { display: block; }
.tend-search i { display: none; }
.tend-search { position: relative; }
.tend-search input {
  width: 100%; border: 1px solid rgba(190,178,166,0.6); border-radius: 12px; padding: 11px 13px 11px 38px;
  background: var(--kith-surface-2); font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14px; color: var(--kith-text); outline: none;
}
.tend-search { /* icon positioning wrapper */ }
.tend-search::before {
  content: "\\e30c"; font-family: "Phosphor"; position: absolute; left: 33px; top: 11px;
  color: #B8B0A6; font-size: 16px; font-style: normal;
}
.tend-search input:focus { border-color: var(--kith-gold); box-shadow: 0 0 0 3px rgba(209,160,38,0.12); }

.tend-people-list { flex: 1; overflow-y: auto; padding: 0 20px; min-height: 120px; max-height: 46vh; }
.tend-person-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 4px;
  background: transparent; border: none; border-bottom: 1px solid var(--kith-line); cursor: pointer; text-align: left;
  font-family: inherit;
}
.tend-person-text { flex: 1; min-width: 0; }
.tend-person-name { display: block; font-family: 'Inter Tight', sans-serif; font-size: 14.5px;
  font-weight: 500; color: var(--kith-text); }
.tend-person-meta { display: block; font-size: 11.5px; color: var(--kith-text-muted); }
.tend-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--kith-border); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
}
.tend-check.on { border: none; background: linear-gradient(135deg, #2D6A4F, #295E2C); }
.tend-add-plus { color: var(--kith-green); font-size: 16px; }
.tend-empty { padding: 24px; text-align: center; color: var(--kith-text-muted);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13.5px; }

.tend-sheet-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--kith-border); }
.tend-textarea {
  width: 100%; box-sizing: border-box; resize: none; border: 1px solid rgba(190,178,166,0.6);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px; color: var(--kith-text);
  background: var(--kith-surface-2); outline: none;
}
.tend-textarea:focus { border-color: var(--kith-gold); box-shadow: 0 0 0 3px rgba(209,160,38,0.12); }

/* setup / new-person form */
.tend-setup { padding: 6px 20px calc(20px + env(safe-area-inset-bottom)); }
.tend-setup-inner { padding: 6px 0 0; }
.tend-setup-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13.5px;
  color: var(--kith-text-muted); margin: 0 0 18px; }
.tend-field-label { display: block; font-size: 12px; font-weight: 600; color: var(--kith-text-muted);
  margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.tend-input {
  width: 100%; box-sizing: border-box; border: 1px solid rgba(190,178,166,0.6); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px; font-family: 'Inter Tight', sans-serif; font-size: 15px;
  color: var(--kith-text); background: var(--kith-surface-2); outline: none;
}
.tend-input:focus { border-color: var(--kith-gold); box-shadow: 0 0 0 3px rgba(209,160,38,0.12); }
.tend-setup-when { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--kith-text-muted);
  margin: 4px 0 16px; }

/* cancel confirm */
.tend-confirm { padding: 6px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.tend-confirm-icon { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 14px;
  background: rgba(135,28,35,0.1); color: var(--kith-red); font-size: 26px;
  display: flex; align-items: center; justify-content: center; }
.tend-confirm .tend-sheet-title { text-align: center; }
.tend-confirm-body { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px;
  color: var(--kith-text-muted); line-height: 1.45; margin: 0 0 18px; }

/* reminder action sheet */
.tend-action-sheet { width: 100%; background: var(--kith-bg-grad);
  border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  animation: tendRise 340ms cubic-bezier(.2,.8,.3,1); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.tend-action-head { display: flex; align-items: center; gap: 16px; padding: 6px 20px 16px; }
.tend-action-count { display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 56px; color: var(--tend-dot, #e07574); }
.tend-action-num { font-family: 'Inter Tight', sans-serif; font-size: 30px; font-weight: 700; line-height: 1; }
.tend-action-unit { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.tend-action-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: var(--kith-text); }
.tend-action-sub { font-size: 12.5px; color: var(--kith-text-muted); margin-top: 2px; }
.tend-action-list { padding: 0 20px; }
.tend-action {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 16px; margin-bottom: 8px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--kith-surface); box-shadow: 0 1px 4px rgba(60,34,24,0.06); font-family: inherit; text-align: left;
}
.tend-action i { color: var(--kith-text-dim); font-size: 16px; }
.tend-action-label { display: block; font-family: 'Inter Tight', sans-serif; font-size: 15px;
  font-weight: 500; color: var(--kith-text); }
.tend-action-asub { display: block; font-size: 12px; color: var(--kith-text-muted); margin-top: 1px; }
.tend-action-danger .tend-action-label { color: var(--kith-red); }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.tend-toast-host { position: fixed; left: 0; right: 0; bottom: 130px; z-index: 300;
  display: flex; justify-content: center; pointer-events: none; }
.tend-toast { background: var(--kith-text); color: var(--kith-bg); padding: 11px 18px; border-radius: 999px;
  font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); max-width: 86%; text-align: center;
  animation: tendFadeIn 240ms ease; }

/* ── Dark-mode ink lifts (olive-gold #8A7018 is illegible on dark) ─────── */
html[data-theme="dark"] .tend-streak,
html[data-theme="dark"] .tend-quiz-icon { color: var(--kith-gold); }

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes tendFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tendRise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes tendFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tendPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
