/* ===== Deck Family — Extras (transcription) =====
 * Scoped to #view-extras / .xtr- classes. Uses the app's warm design tokens.
 * Restyled Jul 3 to the app's convention: .section-title eyebrows above plain
 * .card sections (same as the Health view) — no bespoke card headers/icon chips.
 */

/* Small muted intro line inside a card (matches the app's card copy) */
.xtr-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }

/* --- YouTube textarea --- */
.xtr-textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 92px;
  font-family: var(--sans); font-size: 15px; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--cream); line-height: 1.5;
}
.xtr-textarea:focus { outline: none; border-color: var(--plum-soft); box-shadow: 0 0 0 3px rgba(122,74,130,0.15); }
.xtr-row { display: flex; justify-content: flex-end; }
.xtr-btn { min-width: 160px; }
.xtr-btn:disabled { opacity: 0.6; }

.xtr-msg { font-size: 13px; margin: 2px 0 0; }
.xtr-msg.is-ok { color: var(--sage-ink); }
.xtr-msg.is-err { color: var(--clay); }

/* --- Upload dropzone --- */
.xtr-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
  padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: 16px;
  background: var(--cream); transition: border-color .15s, background .15s;
}
.xtr-drop:hover, .xtr-drop.is-over { border-color: var(--plum-soft); background: #fdf8ef; }
.xtr-drop-ic { width: 34px; height: 34px; color: var(--plum-soft); }
.xtr-drop-ic svg { width: 34px; height: 34px; }
.xtr-drop-txt { font-size: 13px; color: var(--muted); }

.xtr-uploads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.xtr-up { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.xtr-up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.xtr-up-bar { flex: 0 0 84px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.xtr-up-fill { display: block; height: 100%; width: 0; background: var(--plum); transition: width .2s; }
.xtr-up-pct { flex: 0 0 34px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.xtr-up.is-done .xtr-up-fill { background: var(--sage); }
.xtr-up.is-done .xtr-up-pct { color: var(--sage-ink); }
.xtr-up.is-err .xtr-up-fill { background: var(--clay); }
.xtr-up.is-err .xtr-up-pct { color: var(--clay); }

/* --- Status list --- */
.xtr-sec-lbl {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 10px 0 6px; font-weight: 600;
}
.xtr-sec-lbl:first-child { margin-top: 0; }
.xtr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.xtr-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.xtr-item:last-child { border-bottom: 0; }
.xtr-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
a.xtr-item-name:hover { color: var(--plum); text-decoration: underline; }
.xtr-item-meta { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.xtr-dl { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--clay); text-decoration: none; }
.xtr-dl:hover { text-decoration: underline; }

.xtr-item.is-processing .xtr-item-name { color: var(--muted); }
.xtr-spin {
  flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--plum);
  animation: xtr-spin 0.8s linear infinite;
}
@keyframes xtr-spin { to { transform: rotate(360deg); } }

.xtr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.xtr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--chip-bg); color: var(--chip-ink); font-size: 12px; font-weight: 600;
}
.xtr-chip-ago { font-weight: 400; opacity: 0.75; }

/* Home tile — lilac, matches the small-tile family (shop/fin) */
.hm-small-extras { background: var(--tile-lilac); }
.hm-small-extras .hm-small-ic { color: var(--tile-lilac-ink); }
.hm-small-extras .hm-small-name { color: var(--tile-lilac-ink); }
.hm-small-extras .hm-small-sub { color: var(--tile-lilac-mut); }

/* ===== Meditation Studio (med- namespace) — appended Jul 3 2026 ===== */
/* Reuses the .xtr-card shell + warm tokens. Library list of finished meditations. */

.med-list { display: flex; flex-direction: column; gap: 10px; }

.med-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--cream); text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .05s ease;
}
.med-item:active { transform: scale(0.995); }
.med-item:hover { border-color: var(--plum-soft); }

.med-play {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tile-lilac); color: var(--tile-lilac-ink);
}
.med-play svg { width: 16px; height: 16px; margin-left: 2px; }

.med-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.med-name {
  font-family: var(--serif); font-size: 16px; color: var(--plum);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.med-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.med-tag {
  font-size: 11px; color: var(--muted);
  background: rgba(122,74,130,0.08); border-radius: 999px; padding: 1px 8px;
}
.med-when { font-size: 12px; color: var(--muted); }
.med-arr { flex: 0 0 auto; color: var(--muted); font-size: 20px; line-height: 1; }
