/* CLAUDE 10-24: Account > Affiliate (affiliate.js). Graphite like Team: hairlines, no boxes, one primary (Copy link). */

.af .page-head {
  display: block;
  margin-bottom: var(--s-5);
  text-align: left;
}
.af .page-sub {
  margin: var(--s-1) 0 0;
  color: var(--c-fg-2);
}
.af-sec {
  max-width: 560px;
  margin-bottom: var(--s-6);
}
.af-sec h3 {
  margin: 0 0 var(--s-3);
  color: var(--c-fg);
  font-size: var(--t-body);
  font-weight: 600;
}
.af-link {
  display: flex;
  gap: var(--s-2);
}
.af-link .m-field {
  flex: 1;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.af-hint {
  margin: var(--s-2) 0 0;
  color: var(--c-fg-3);
  font-size: var(--t-label);
}

/* CLAUDE 11-15: the entries affiliate.js shows or hides (a sidebar link and a list row set their own display) */
[data-aff-entry][hidden],
[data-aff-off][hidden] {
  display: none !important;
}

/* CLAUDE 11-15 (referrals): how it works, three numbered lines on hairlines; the message to post */
.af-how {
  max-width: 560px;
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
  counter-reset: af;
}
.af-how li {
  display: grid;
  grid-template-columns: 1.5em 1fr;
  gap: 0 var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-line);
  counter-increment: af;
}
.af-how li::before {
  grid-row: span 2;
  color: var(--c-fg-3);
  content: counter(af);
  font-variant-numeric: tabular-nums;
}
.af-how b {
  color: var(--c-fg);
  font-weight: 600;
}
.af-how small {
  color: var(--c-fg-3);
  font-size: var(--t-label);
}
.af-plans {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-fg-2);
  font-variant-numeric: tabular-nums;
}
.af-plans li {
  padding: var(--s-1) 0;
}
.af-msg {
  display: block;
  width: 100%;
  margin-bottom: var(--s-2);
  resize: vertical;
}

/* the numbers: label, value, a quiet note; a hairline under each, two columns where there is room */
.af-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* two columns on a phone */
  gap: 0 var(--s-5);
  max-width: 560px;
  margin: 0 0 var(--s-5);
}
.af-stats > div {
  display: grid;
  gap: 2px;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-line);
}
.af-stats dt {
  color: var(--c-fg-2);
  font-size: var(--t-label);
}
.af-stats dd {
  margin: 0;
  color: var(--c-fg);
  font-size: var(--t-page);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.af-stats small {
  color: var(--c-fg-3);
  font-size: var(--t-label);
}
.af-fine {
  max-width: 560px;
  margin: 0;
  color: var(--c-fg-3);
  font-size: var(--t-label);
}
.af-fine a {
  color: var(--c-fg-2);
}
.af-posts {
  display: flex;
  margin-bottom: var(--s-2);
}
/* CLAUDE 11-15 (owner: "then the affiliate"), 11-19: the one-line prompt where a clip was just made (affiliate.js
   nudge): the clips-ready view, a finished export's job card, the phone's export sheet */
.af-nudge {
  flex-basis: 100%;
  margin: var(--s-2) 0 0;
  color: var(--c-fg-2);
  font-size: var(--t-label);
}
.af-nudge button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-fg);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
dialog.exp-done .af-nudge {
  margin-top: var(--s-3);
  text-align: center;
}
