/* Rolodash components (rd-*): copied from the design system bundle.css. */
/* Rolodash components — plain CSS classes, prefix rd-. Tokens come from tokens.css. */

.rd-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.rd-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.rd-serif { font-family: var(--font-serif); font-weight: 400; }
.rd-link { color: var(--tomato); font-weight: 700; text-decoration: none; }
.rd-link:hover { color: var(--tomato-deep); text-decoration: underline; }
.rd-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* Button */
.rd-btn { font: inherit; font-size: 15px; line-height: 20px; font-weight: 600; min-height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-md); border: var(--border-control) solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); text-decoration: none; box-sizing: border-box; }
.rd-btn:hover { background: var(--paper-deep); }
.rd-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rd-btn--primary { background: var(--tomato); border-color: var(--tomato); color: var(--on-tomato); }
.rd-btn--primary:hover { background: var(--tomato-deep); border-color: var(--tomato-deep); }
.rd-btn--quiet { background: transparent; border-color: transparent; color: var(--tomato); padding: 0 var(--space-3); }
.rd-btn--quiet:hover { background: var(--tomato-soft); }
.rd-btn--block { width: 100%; }
.rd-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.rd-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Index card */
.rd-card { position: relative; background: var(--card); border: var(--border-card) solid var(--ink); border-radius: var(--radius-md); padding: var(--space-4); box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-2); }
.rd-card--paper { background: var(--paper); }
.rd-card--ruled { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, var(--rule) 23px, var(--rule) 24px); background-position: 0 var(--space-4); }
.rd-card--tabbed { margin-top: 20px; }
.rd-card__tab { position: absolute; top: -21px; left: var(--space-4); height: 20px; min-width: 20px; padding: 0 var(--space-3); box-sizing: border-box; background: var(--mustard); border: var(--border-card) solid var(--ink); border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; font-size: 12px; font-weight: 700; line-height: 19px; text-align: center; color: var(--ink); }
.rd-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.rd-card__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 20px; line-height: 28px; }
.rd-card__meta { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--tomato); white-space: nowrap; }
.rd-card__body { margin: 0; font-size: 15px; line-height: 24px; }
.rd-card__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
a.rd-card { color: inherit; text-decoration: none; }
a.rd-card:hover { background-color: var(--paper); }
a.rd-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Stamp */
.rd-stamp { width: 76px; height: 76px; flex: 0 0 76px; box-sizing: border-box; border-radius: 50%; border: var(--border-stamp) solid var(--tomato); color: var(--tomato); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-8deg); }
.rd-stamp__num { font-family: var(--font-serif); font-size: 26px; line-height: 26px; }
.rd-stamp__label { font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rd-stamp--ink { border-color: var(--ink); color: var(--ink); }
.rd-stamp--fern { border-color: var(--fern); color: var(--fern); }
.rd-stamp--empty { border-style: dashed; border-width: var(--border-control); border-color: var(--ink-muted); color: var(--ink-muted); transform: none; }
.rd-stamp--sm { width: 52px; height: 52px; flex-basis: 52px; }
.rd-stamp--sm .rd-stamp__num { font-size: 18px; line-height: 18px; }
.rd-stamp--sm .rd-stamp__label { font-size: 9px; }
.rd-stamp--tag { width: auto; height: auto; flex-basis: auto; border-radius: var(--radius-sm); border-width: var(--border-control); padding: 2px var(--space-2); flex-direction: row; gap: var(--space-1); transform: rotate(-4deg); font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Streak tile */
.rd-streak { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--paper); border: var(--border-card) solid var(--ink); border-radius: var(--radius-md); box-sizing: border-box; }
.rd-streak__text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.rd-streak__title { font-size: 15px; line-height: 20px; font-weight: 700; }
.rd-streak__sub { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* Challenge progress */
.rd-challenge { display: flex; flex-direction: column; gap: var(--space-2); }
.rd-challenge__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.rd-challenge__name { font-size: 15px; line-height: 20px; font-weight: 600; }
.rd-challenge__count { font-size: 13px; line-height: 20px; color: var(--ink-muted); white-space: nowrap; }
.rd-challenge__track { display: flex; gap: var(--space-2); }
.rd-challenge__seg { flex: 1 1 0; height: 8px; border-radius: 4px; background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--line); }
.rd-challenge__seg--done { background: var(--ink); box-shadow: none; }

/* Chip */
.rd-chip { font: inherit; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); box-sizing: border-box; border: var(--border-control) solid var(--ink); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; }
.rd-chip:hover { background: var(--paper-deep); }
.rd-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rd-chip[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.rd-chip--static { cursor: default; }
.rd-chip--static:hover { background: transparent; }

/* Avatar */
.rd-avatar { width: 40px; height: 40px; flex: 0 0 40px; box-sizing: border-box; border-radius: 50%; border: var(--border-control) solid var(--ink); background: var(--mustard); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; overflow: hidden; }
.rd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-avatar--sm { width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
.rd-avatar--lg { width: 72px; height: 72px; flex-basis: 72px; font-family: var(--font-serif); font-weight: 400; font-size: 26px; }
.rd-avatar--paper { background: var(--paper-deep); }

/* Field */
.rd-field { display: flex; flex-direction: column; gap: 6px; }
.rd-field__label { font-size: 13px; line-height: 20px; font-weight: 600; }
.rd-field__hint { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.rd-field__error { font-size: 13px; line-height: 20px; color: var(--tomato); font-weight: 600; }
.rd-input { font: inherit; font-size: 15px; line-height: 24px; width: 100%; min-height: 44px; box-sizing: border-box; padding: 9px var(--space-3); border: var(--border-control) solid var(--ink); border-radius: var(--radius-md); background: var(--card); color: var(--ink); }
.rd-input::placeholder { color: var(--ink-muted); }
.rd-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rd-input[aria-invalid="true"] { border-color: var(--tomato); }
textarea.rd-input { min-height: 96px; resize: vertical; }

/* Capture — free-text note the assistant files for you */
.rd-capture { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--card); border: var(--border-card) solid var(--ink); border-radius: var(--radius-md); }
.rd-capture__input { font: inherit; font-size: 15px; line-height: 24px; min-height: 96px; border: 0; padding: 0; resize: vertical; color: var(--ink); background: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, var(--rule) 23px, var(--rule) 24px); }
.rd-capture__input::placeholder { color: var(--ink-muted); }
.rd-capture__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.rd-capture__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.rd-capture__hint { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* Suggestion — the assistant speaking in place, no persona */
.rd-suggest { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); background: var(--mustard-soft); border: var(--border-hairline) dashed var(--ink); border-radius: var(--radius-md); }
.rd-suggest__icon { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; color: var(--ink); }
.rd-suggest__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.rd-suggest__text { font-size: 14px; line-height: 20px; }
.rd-suggest__why { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.rd-suggest__actions { display: flex; gap: var(--space-2); margin-top: var(--space-1); flex-wrap: wrap; }
.rd-suggest .rd-btn { min-height: 36px; padding: 0 var(--space-3); font-size: 14px; }

/* Brief — what to know before you meet */
.rd-brief__section { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-3); border-top: var(--border-hairline) solid var(--line); }
.rd-brief__list { margin: 0; padding-left: 18px; font-size: 15px; line-height: 24px; }

/* Tab bar */
.rd-tabbar { display: flex; justify-content: space-around; background: var(--card); border-top: var(--border-card) solid var(--ink); padding: var(--space-2) var(--space-2) var(--space-3); }
.rd-tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 48px; padding: 2px var(--space-2); border-radius: var(--radius-md); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.rd-tabbar__item svg { width: 22px; height: 22px; }
.rd-tabbar__item:hover { color: var(--ink); }
.rd-tabbar__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rd-tabbar__item[aria-current="page"] { color: var(--ink); background: var(--mustard-soft); }

/* Weekly cells for streaks: last 12 weeks */
.rd-weeks { display: flex; gap: 3px; margin-top: var(--space-1); }
.rd-weeks__w { width: 12px; height: 12px; border-radius: 2px; background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--line); }
.rd-weeks__w--on { background: var(--ink); box-shadow: none; }
.rd-weeks__w--paused { background: repeating-linear-gradient(45deg, var(--ink-muted) 0, var(--ink-muted) 1.5px, transparent 1.5px, transparent 4px); box-shadow: inset 0 0 0 1px var(--ink-muted); }

/* Challenge extras */
.rd-challenge__meta { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.rd-challenge__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-1); }

/* Follow-up — an open thread with someone */
.rd-followup { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) 0; border-bottom: var(--border-hairline) solid var(--line); }
.rd-followup__check { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 0; border: var(--border-control) solid var(--ink); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); }
.rd-followup__check:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rd-followup__check[aria-pressed="true"] { background: var(--fern); border-color: var(--fern); color: var(--card); }
.rd-followup__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-followup__text { font-size: 15px; line-height: 22px; }
.rd-followup__meta { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* Measure — Rhythm, Depth, Reach with a 12-week trend */
.rd-measure { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--card); border: var(--border-card) solid var(--ink); border-radius: var(--radius-md); }
.rd-measure__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.rd-measure__value { font-family: var(--font-serif); font-size: 28px; line-height: 32px; }
.rd-measure__trend { display: block; width: 100%; height: 40px; }
.rd-measure__note { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
a.rd-measure { color: inherit; text-decoration: none; }
a.rd-measure:hover { background: var(--paper); }
a.rd-measure:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Rings — how many people sit in each ring */
.rd-rings { display: flex; flex-direction: column; gap: var(--space-2); }
.rd-rings__row { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; }
.rd-rings__name { width: 96px; flex: 0 0 96px; font-size: 14px; font-weight: 600; }
.rd-rings__bar { flex: 1 1 auto; height: 12px; border-radius: 6px; background: var(--paper-deep); overflow: hidden; }
.rd-rings__fill { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.rd-rings__fill--muted { background: var(--ink-muted); }
.rd-rings__count { width: 32px; flex: 0 0 32px; text-align: right; font-family: var(--font-serif); font-size: 18px; }
.rd-rings__moves { font-size: 14px; line-height: 22px; }
