/* ── Atlas full record page: breadcrumb, summary rail, pipeline stepper, tabs ── */

.atl-rp-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--pad); flex: none; }
.atl-rp-crumb { display: flex; align-items: baseline; gap: 9px; font-size: 13px; color: var(--muted); min-width: 0; }
.atl-rp-crumb .lk { cursor: pointer; transition: color 0.14s; }
.atl-rp-crumb .lk:hover { color: var(--text); }
.atl-rp-crumb .sep { color: var(--faint); }
.atl-rp-crumb .cur { font-family: 'Source Serif 4', serif; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.atl-rp-grid { display: grid; grid-template-columns: 332px minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 1180px) { .atl-rp-grid { grid-template-columns: 1fr; } }
.atl-rp-rail { display: flex; flex-direction: column; gap: var(--gap); }
.atl-rp-main { display: flex; flex-direction: column; min-width: 0; }

/* summary card */
.atl-rp-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.atl-rp-name { font-family: 'Source Serif 4', serif; font-size: 23px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.atl-rp-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.atl-rp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.atl-rp-editbtn { width: 100%; justify-content: center; margin-top: 14px; }

/* point of contact */
.atl-rp-poc { display: flex; align-items: center; gap: 12px; }
.atl-rp-poc-av { width: 44px; height: 44px; border-radius: 50%; background: var(--tc-soft, var(--acc-soft)); color: var(--tc-ink, var(--acc-ink)); border: 1px solid color-mix(in oklab, var(--tc, var(--acc)) 36%, transparent); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex: none; }
.atl-rp-poc-av.sm { width: 30px; height: 30px; font-size: 11px; }
.atl-rp-poc-nm { font-size: 14px; font-weight: 700; }
.atl-rp-poc-rl { font-size: 12px; color: var(--muted); margin-top: 1px; }
.atl-rp-poc-em { font-size: 12px; color: var(--acc-ink); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atl-rp-poc-acts { display: flex; gap: 8px; margin-top: 14px; }

/* pipeline stepper */
.atl-stepper { display: flex; padding: 2px 0; }
.atl-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 2px; cursor: pointer; }
.atl-step:not(:first-child)::before { content: ''; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--line2); }
.atl-step.done:not(:first-child)::before, .atl-step.on:not(:first-child)::before { background: color-mix(in oklab, var(--tc) 45%, var(--line2)); }
.atl-step-dot { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: var(--card2); border: 2px solid var(--line3); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; }
.atl-step:hover .atl-step-dot { transform: scale(1.18); border-color: var(--tc); }
.atl-step.done .atl-step-dot { background: var(--tc); border-color: var(--tc); }
.atl-step.on .atl-step-dot { background: var(--tc); border-color: var(--tc); box-shadow: 0 0 12px var(--tc); }
.atl-step-lb { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); transition: color 0.14s; white-space: nowrap; }
.atl-step:hover .atl-step-lb { color: var(--muted); }
.atl-step.on .atl-step-lb { color: var(--tc-ink); }

/* tabs */
.atl-rtabs { display: flex; gap: 7px; flex-wrap: wrap; margin: var(--gap) 0 calc(var(--gap) * 0.8); }
.atl-rtab { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; cursor: pointer; transition: color 0.14s, background 0.14s, border-color 0.14s; }
.atl-rtab:hover { color: var(--text); border-color: var(--line3); }
.atl-rtab.on { color: var(--on-accent); background: linear-gradient(135deg, var(--acc), var(--acc2)); border-color: transparent; box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--acc) 55%, transparent); }
.atl-rtab .n { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: var(--chip); color: var(--muted); }
.atl-rtab.on .n { background: rgba(255, 255, 255, 0.22); color: var(--on-accent); }

.atl-rp-body { min-height: 280px; }

/* activity feed */
.atl-act { display: flex; gap: 12px; padding: 12px 2px; }
.atl-act + .atl-act { border-top: 1px solid var(--line2); }
.atl-act-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.atl-act-tx { font-size: 13px; font-weight: 500; line-height: 1.45; }
.atl-act-when { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

/* emails */
.atl-em + .atl-em { border-top: 1px solid var(--line2); }
.atl-em.open { background: var(--card2); border-radius: 14px; padding: 0 12px; margin: 4px -12px; border-top: none; }
.atl-em.open + .atl-em { border-top: none; }
.atl-em-top { display: flex; align-items: center; gap: 11px; padding: 12px 2px; cursor: pointer; min-width: 0; }
.atl-em-from { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; flex: none; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atl-em-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 8px var(--acc2); flex: none; }
.atl-em-subj { font-size: 13px; font-weight: 600; flex: none; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atl-em-snip { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.atl-em-when { font-size: 11.5px; color: var(--faint); flex: none; margin-left: auto; }
.atl-em-open { padding: 2px 2px 14px 43px; }
.atl-em-body { font-size: 13px; line-height: 1.6; white-space: pre-line; }
.atl-em-reply { display: flex; gap: 9px; align-items: flex-end; margin-top: 14px; }
.atl-em-reply textarea { flex: 1; }

/* tasks tab */
.atl-rp-task { border-radius: 0; }
.atl-rp-task + .atl-rp-task { border-top: 1px solid var(--line2); }
.atl-rp-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 0 28px; font-size: 13px; color: var(--muted); }
.atl-rp-addrow { width: 100%; justify-content: center; margin-top: 12px; border-style: dashed; }

/* notes tab */
.atl-rp-notebox { background: var(--card2); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 15px 10px; margin-bottom: 14px; }
.atl-rp-notebox-ft { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--line2); }
.atl-note-card { background: var(--card2); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 16px; }
.atl-note-card + .atl-note-card { margin-top: 10px; }
.atl-note-t { font-size: 13.5px; font-weight: 700; }
.atl-note-b { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 5px; white-space: pre-line; }
.atl-note-meta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--faint); margin-top: 10px; }

/* files tab */
.atl-file { display: flex; align-items: center; gap: 12px; padding: 11px 2px; }
.atl-file + .atl-file { border-top: 1px solid var(--line2); }
.atl-file-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--acc-soft); color: var(--acc-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.atl-file-nm { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atl-file-meta { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
