/* Control Room — follow-up schedule, quiet conversations, proposals, missing contacts, install the app. Uses the tokens of app.css.
   Status colours as everywhere: blue = working, amber = waits for you, green = done, red = problem. */

/* ------------------------------------------------------------------ install the app */
details.sx-os { border-top: 1px solid var(--line); }
details.sx-os > summary { color: var(--ink); font-weight: 600; flex-wrap: wrap; row-gap: 0; }
.sx-via { margin-left: auto; font-size: 13.5px; font-weight: 400; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.sx-steps { margin: 0; padding: 0 16px 14px 42px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.sx-steps b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ follow-up schedule: a ladder, each rung a little further in */
.sx-on { margin: 14px 0; }
.sx-ladder { position: relative; display: grid; gap: 8px; margin-top: 6px; }
.sx-ladder::before { content: ""; position: absolute; left: 41px; top: 18px; bottom: 18px; width: 2px; background: var(--line-strong); border-radius: 1px; }
.sx-ladder.off { opacity: .45; }
.sx-rung { position: relative; display: flex; align-items: center; gap: 12px; margin-left: calc(var(--i, 0) * 10px); padding: 10px 12px; background: var(--surface); border-radius: 14px; box-shadow: 0 1px 2px rgba(18, 24, 32, .05); }
.sx-rung .lbl { flex: 1; min-width: 0; font-size: 15px; }
.sx-rung .lbl b { display: block; font-weight: 600; }
.sx-rung .lbl small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 13.5px; line-height: 1.7; }
.sx-day { flex: none; min-width: 66px; padding: 5px 8px; border-radius: 9px; background: var(--cobalt-soft); color: var(--cobalt-ink); font: 700 12.5px var(--text); text-align: center; position: relative; z-index: 1; }
.sx-rung.first .sx-day { background: var(--moss-soft); color: var(--moss); }
.sx-rung.last { border: 1.5px dashed var(--line-strong); box-shadow: none; background: transparent; }
.sx-rung.last .sx-day { background: var(--sunk); color: var(--ink-2); }
.sx-gap { width: 68px; min-height: 34px; padding: 0 8px; text-align: center; font-size: 15px; }
.sx-stops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 2px 0; }
.sx-stops .lbl { font-size: 13.5px; color: var(--ink-3); margin-right: 4px; }
.sx-dirty { align-self: center; margin-right: 12px; font-size: 13.5px; color: var(--amber-ink); font-weight: 600; }
.sx-camp-ladder { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; }
.sx-camp-ladder span { flex: 1; min-width: 0; }
.sx-camp-ladder svg:first-child { color: var(--cobalt); }
.tiles + .sx-camp-ladder, .sx-camp-ladder + .tiles { margin-top: 12px; }
.sx-nt { display: flex; align-items: center; gap: 6px; color: var(--cobalt-ink); }
.sx-nt.due, .sx-nt.draft { color: var(--amber-ink); font-weight: 600; }
.sx-nt svg { flex: none; }

/* ------------------------------------------------------------------ missing contact details */
.sx-contacts { margin: 14px 0 0; padding: 12px 14px 14px; border-radius: var(--r-group); background: var(--surface); }
.sx-contacts-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.sx-contacts-head .lbl { flex: 1 1 200px; font-size: 15.5px; }
.sx-contacts-head .lbl small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 1px; }
.row[data-sx] .s { display: block; overflow: visible; -webkit-line-clamp: unset; line-height: 1.7; }
.sx-miss { white-space: normal; height: auto; min-height: 22px; padding-block: 2px; line-height: 1.25; }

/* ------------------------------------------------------------------ quiet conversations */
.seg.sx-many a { padding: 0 6px; font-size: 13.5px; }
.sx-intro { background: var(--surface); border-radius: var(--r-card); padding: 20px 18px 16px; }
.sx-intro h2 { margin: 0 0 8px; font: 650 22px/1.2 var(--display); letter-spacing: -.015em; }
.sx-intro p { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.sx-steps.flat { padding: 0 0 4px 22px; margin: 0 0 14px; }
.sx-me { padding: 0; margin-bottom: 14px; }
.sx-me .inp { width: 100%; }
.sx-qgroup { margin-top: 22px; }
.sx-qgroup > summary { list-style: none; cursor: pointer; }
.sx-qgroup > summary::-webkit-details-marker { display: none; }
.sx-qgroup h2 { display: inline-block; margin: 0 2px 10px; font: 650 20px/1.2 var(--display); letter-spacing: -.01em; }
.sx-qgroup h2 .count { color: var(--ink-3); font: 500 16px var(--text); margin-left: 6px; }
.sx-qgroup:not([open]) h2::after { content: "  ▸"; color: var(--ink-3); font-size: 14px; }
.sx-q .t { display: flex; align-items: center; gap: 10px; }
.sx-q .t .av { width: 32px; height: 32px; font-size: 12px; flex: none; }
.sx-qn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sx-q .when { margin-left: auto; }
.sx-snip { margin: 6px 0 0 42px; padding-left: 10px; border-left: 3px solid var(--line-strong); color: var(--ink-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-q .s { margin-left: 42px; }
.sx-qact { margin: 8px 0 0 42px; gap: 6px; }

/* ------------------------------------------------------------------ proposals */
.sx-p .t { display: flex; align-items: center; gap: 10px; }
.sx-pn { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.sx-pn .av { width: 32px; height: 32px; font-size: 12px; flex: none; }
.sx-pn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-amt { margin-left: auto; font: 650 17px var(--display); letter-spacing: -.01em; }
.sx-p .s, .sx-p .actions { margin-left: 42px; }
.sx-p.due { box-shadow: inset 3px 0 0 var(--amber); }
.sx-p.won .sx-amt { color: var(--moss); }
.sx-p.lost .sx-amt { color: var(--ink-3); text-decoration: line-through; }
.sx-pact { margin-top: 8px; gap: 6px; flex-wrap: wrap; }
