/* Inline's top five in Foundry (docs/plans/inline-top5.md). Kept apart from
   app.css; the same tokens. */

/* 1, 2, 4: a grey line in a thread from outside the agent's turns */
.svc.tline { display: flex; justify-content: center; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 4px 8px; }
.svc.tline .ok { color: var(--success-ink); }
.svc.tline .warn { color: var(--warning); }
.svc.tline.tl-usage { color: var(--warning); }
.svc.tline .linkish { font-size: 12.5px; }

/* 3: the "Worked for" fold, grouped */
.wsum { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; font-size: 12.5px; max-width: 100%; }
.wgroup { display: flex; flex-direction: column; gap: 1px; border-left: 2px solid var(--border); padding-left: 10px; }
.wrow { display: flex; gap: 8px; align-items: baseline; color: var(--muted-foreground); text-decoration: none; border-radius: 4px; padding: 1px 4px; margin-left: -4px; min-width: 0; }
.wrow:hover { background: var(--accent); color: var(--foreground); text-decoration: none; }
.wrow .wpath { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; font-size: 12px; }
.wrow .add { color: var(--success-ink); font-family: var(--font-mono); font-size: 12px; flex: none; }
.wrow .del { color: var(--danger-ink); font-family: var(--font-mono); font-size: 12px; flex: none; }
.wrow .muted { flex: none; }
.wother .wrow::before { content: "✓"; color: var(--faint); }
.trace-step.at { background: var(--accent); border-radius: 6px; outline: 1px solid var(--border); }

/* 2: the Claude usage meter, and a turn paused on the limit */
.umeter { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-size: 12.5px; color: var(--muted-foreground); background: var(--background); }
.change-page > .umeter { margin: 6px 16px 0; }
.kc-card .umeter { margin-top: 10px; }
.umeter .uhead { display: flex; justify-content: space-between; gap: 8px; color: var(--foreground); }
.umeter .uhead .mono { font-size: 12px; }
.umeter .ubar { height: 6px; border-radius: 3px; background: var(--muted); overflow: hidden; }
.umeter .ubar i { display: block; height: 100%; background: var(--foreground); opacity: .55; border-radius: 3px; }
.umeter.u-high .ubar i { background: var(--warning); opacity: 1; }
.umeter.u-full .ubar i { background: var(--danger-ink); opacity: 1; }
.umeter .ufoot { display: flex; flex-wrap: wrap; gap: 0 4px; }
.reply.paused { color: var(--warning); font-size: 13.5px; }
.reply.paused .linkish { margin-left: 6px; }

/* 4: an agent's private question for a person */
.ask-card h3 { text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 500; color: var(--foreground); margin: 4px 0 8px; }
.ask-card .row { flex-wrap: wrap; }
.ask-own { display: flex; gap: 6px; margin-top: 8px; }
.ask-own input[type=text] { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--background); color: var(--foreground); }

/* 5: following */
.hpill .hlabel { margin-left: 4px; font-size: 12.5px; }
@media (max-width: 640px) { .hpill .hlabel { display: none; } }
#side-following { margin-top: 10px; }
.srow.sub.follow { padding-left: 37px; }
.srow.sub.follow .tag { margin-left: auto; font-size: 10.5px; }
.umeter.compact { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 4px 10px; border-width: 0 0 1px; border-radius: 0; background: none; font-size: 12px; }
.change-page > .umeter.compact { margin: 0; padding: 4px 16px; }
.umeter.compact .ulabel { color: var(--foreground); }
.umeter.compact .ubar { width: 64px; height: 5px; display: inline-block; }
.composer-note { text-align: center; font-size: 12.5px; padding: 14px 16px 18px; margin: 0; }

/* Phone: a thread's header keeps its title, Following and ⋯; the rest is in ⋯ */
.menu-item.phone-only { display: none; }
@media (max-width: 640px) {
  .thread-page .not-phone, .thread-page #follow-along { display: none; }
  .thread-page .menu-item.phone-only { display: flex; }
}
