/* ext-shadow (9 Oct): "Jigger would have replied", under each customer turn of a thread.
   app.css tokens only, so the light and dark themes both follow. The box sits on the team's
   side, where the real reply follows, and stays quieter than a real message: no fill, a
   dashed hairline, smaller type. A dashed edge means it never left the desk. */
.shadow { align-self: flex-end; width: min(66%, 500px); margin: -4px 0 2px; padding: 9px 12px 8px; border: 1px dashed var(--gold-line); border-radius: 12px 12px 4px 12px; background: color-mix(in srgb, var(--paper) 55%, transparent); color: var(--ink2); font-size: 13px; line-height: 1.5; }
.shadow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-bottom: 5px; }
.shadow-mark { display: inline-flex; color: var(--gold); }
.shadow-mark .icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.shadow-label { font: 600 10.5px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.shadow-count { font: 500 11px/1.2 var(--text); color: var(--muted); }
.shadow-chip { margin-left: auto; padding: 2px 7px; border: 1px solid var(--rule2); border-radius: 999px; font: 600 10px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.shadow-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.shadow-check { margin: 6px 0 0; padding-left: 8px; border-left: 2px solid color-mix(in srgb, var(--warn) 60%, transparent); font-size: 12px; line-height: 1.45; color: var(--soft); }
.shadow-check b { font-weight: 600; color: var(--warn); }
.shadow-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 7px; }
.shadow-basis { flex: 1 1 auto; font-size: 11px; line-height: 1.4; color: var(--muted); }
.shadow-copy, .shadow-again { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 1px solid var(--rule2); border-radius: var(--r-sm); background: transparent; color: var(--soft); font: 600 11.5px/1 var(--text); cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.shadow-copy:hover, .shadow-again:hover { color: var(--ink); background: var(--accent2); border-color: var(--gold-line); transform: none; }
.shadow-copy .icon { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shadow-problem { margin: 0; font-size: 12.5px; color: var(--soft); }
.shadow.is-failed { border-color: color-mix(in srgb, var(--stop) 45%, transparent); }
.shadow.is-failed .shadow-problem { color: var(--stop); }
.shadow.is-quiet { border-color: var(--rule2); background: transparent; }
.shadow.is-quiet .shadow-head { margin-bottom: 0; }
.shadow.is-quiet .shadow-foot { margin-top: 6px; justify-content: flex-start; }
.shadow.is-quiet .shadow-label, .shadow.is-quiet .shadow-mark { color: var(--soft); }
.shadow.is-quiet .shadow-problem { margin-top: 5px; }
.shadow.is-live { border-style: solid; border-color: var(--gold-line); }

/* being written: two lines of the reply's own height, so the thread does not jump */
.shadow-wait { position: relative; display: grid; gap: 7px; margin: 2px 0 0; min-height: 34px; }
.shadow-wait i { display: block; height: 9px; border-radius: 5px; background: var(--bg2); overflow: hidden; position: relative; }
.shadow-wait i:nth-child(2) { width: 62%; }
.shadow-wait i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--paper) 85%, transparent), transparent); animation: j-shimmer 1.3s ease-in-out infinite; }
.shadow-wait-label { font-size: 11px; color: var(--muted); }

/* a turn nobody would answer, and the message still waiting: one quiet line, no box */
.shadow-none { align-self: flex-end; margin: -6px 2px 0; font-size: 11px; color: var(--muted); }

/* the switch in the thread's header */
.shadow-toggle { display: inline-flex; align-items: center; gap: 6px; }
.shadow-toggle .icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shadow-toggle.on { color: var(--ink2); border-color: var(--gold-line); }

@media (prefers-reduced-motion: reduce) {
  .shadow-wait i::after { animation: none; }
}
@media (max-width: 760px) {
  .shadow { width: min(88%, 500px); }
  .shadow-foot { flex-wrap: wrap; }
}
/* over the header's artwork the switch keeps its own ground, so it reads in both themes */
.side-chat-head .shadow-toggle { position: relative; z-index: 1; background: var(--paper); color: var(--soft); }
.side-chat-head .shadow-toggle:hover { background: var(--paper2); color: var(--ink); }

/* 13 Oct: a held reply, what a reply was written under, why it says what it says, the voice
   picker, and the read-only operations line under a Teams message */
.shadow.is-held { border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.shadow.is-held .shadow-problem { color: var(--ink2); }
.shadow.is-held .shadow-problem b { font-weight: 600; color: var(--warn); }
.shadow-records { display: block; margin: 5px 0 0; }
.shadow-stale { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 6px 0 0; padding-top: 6px; border-top: 1px dashed var(--rule2); font-size: 11px; line-height: 1.4; color: var(--soft); }
.shadow-why { margin: 6px 0 0; font-size: 11.5px; color: var(--soft); }
.shadow-why summary { cursor: pointer; font-weight: 600; color: var(--soft); }
.shadow-why ul { margin: 5px 0 0; padding-left: 16px; display: grid; gap: 3px; line-height: 1.45; color: var(--ink2); }
.side-chat-head .shadow-voice { position: relative; z-index: 1; flex: none; height: 26px; min-height: 26px; padding: 0 26px 0 9px; border: 1px solid var(--rule2); border-radius: var(--r-sm); background-color: var(--paper); background-position: right 8px center; color: var(--soft); font: 600 12px/1 var(--text); max-width: 190px; text-overflow: ellipsis; }
.shadow-ops { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 3px 8px; margin: -4px 2px 2px; padding: 4px 9px; border: 1px dashed var(--rule2); border-radius: var(--r-sm); font-size: 11.5px; line-height: 1.4; color: var(--soft); max-width: min(88%, 560px); }
.shadow-ops b { font-weight: 600; color: var(--ink2); }
.shadow-ops.is-urgent { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.shadow-ops.is-urgent b { color: var(--warn); }
.shadow-ops-owner { color: var(--muted); }

/* 13 Oct, the suggestion panel (web/app.js): a reply a check held back and "nothing needs a
   reply" are states, said calmly; a plain reply from the records is labelled as one; and where
   the list and the opened panel put a conversation in different lanes, the panel says why. */
.reply-hold { display: grid; gap: 4px; margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--rule2); border-left: 2px solid var(--soft); border-radius: var(--r-sm); background: var(--paper2); font-size: 13px; line-height: 1.5; color: var(--ink2); }
.reply-hold strong { font: 600 10.5px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.reply-hold p { margin: 0; overflow-wrap: anywhere; }
.reply-hold.held { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 6%, var(--paper)); }
.reply-hold.held strong { color: var(--warn); }
.reply-hold-text summary { cursor: pointer; font: 600 11.5px/1.5 var(--text); color: var(--soft); }
.reply-hold-text p { margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--rule2); color: var(--soft); white-space: pre-wrap; user-select: none; -webkit-user-select: none; }
.option-source { display: inline-flex; align-self: flex-start; align-items: center; margin-top: 6px; padding: 2px 8px; border: 1px solid var(--rule2); border-radius: 999px; font: 600 10px/1.4 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.mini-msg.lane-diff { padding: 8px 10px; border-left: 2px solid var(--warn); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: color-mix(in srgb, var(--warn) 6%, var(--paper)); font-size: 12.5px; line-height: 1.5; color: var(--ink2); overflow-wrap: anywhere; }
.lane-tag.lane-corrected { gap: 6px; }
.lane-tag .lane-was { font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .7; text-decoration: line-through; }
