/* ==========================================================================
   Dashboard - lane B
   --------------------------------------------------------------------------
   Parallel-work lane. `dashboard.css` is shared, so concurrent sessions
   editing it overwrite each other; each session writes only to its own lane
   file instead. Loaded after `dashboard.css` and declared dependent on it, so
   rules here win at equal specificity and the cascade order stays A, B, C.

   Enqueue handle: `uaematch-dashboard-b`
   Registered in: functions.php -> uaematch_dashboard_scripts()

   Source: ui_kits/emirae-dashboard-v2/v2.css, build "Back office v2 -
   reconciled 27 Jul 2026", read through DesignSync. Ported verbatim except for
   the `.uaec-dash-root` scope prefix the theme puts on every dashboard rule,
   and the additions marked LANE B below.

   ICON SIZING. `uaematch_dash_icon()` deliberately emits no width/height: the
   component decides how big its own icon is. Every block here that prints one
   carries an explicit `svg { width; height }`. Without it the glyph inflates to
   its container - the trap recorded in feedback_inline-svg-sizing-gotcha.
   ========================================================================== */


/* ==========================================================================
   DISPUTES - case hero and the two parties
   ========================================================================== */
.uaec-dash-root .dsphero { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.uaec-dash-root .dsphero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gray-300, #cbd5e1); }
.uaec-dash-root .dsphero--info::before { background: var(--accent); }
.uaec-dash-root .dsphero--warning::before { background: var(--warning-500); }
.uaec-dash-root .dsphero--success::before { background: var(--success-700); }
.uaec-dash-root .dsphero--neutral::before { background: var(--gray-300, #cbd5e1); }
.uaec-dash-root .dsphero--error::before { background: var(--error-500); }
.uaec-dash-root .dsphero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 16px; }
.uaec-dash-root .dsphero__ref { display: inline-block; white-space: nowrap; font-size: var(--fs-2xs, 10.5px); font-weight: 700; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 6px; }
.uaec-dash-root .dsphero__t { font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: -0.015em; color: var(--text-strong); margin: 0; }
.uaec-dash-root .dsphero__m { font-size: var(--fs-sm); color: var(--text-secondary); margin: 6px 0 0; }
.uaec-dash-root .dsphero__state { flex: none; }

.uaec-dash-root .dspparties { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 14px 22px 18px; border-top: 1px solid var(--border); background: var(--surface-alt); }
.uaec-dash-root .dspparty { display: flex; align-items: center; gap: 11px; min-width: 0; }
.uaec-dash-root .dspparty--them { justify-content: flex-start; text-align: right; flex-direction: row-reverse; }
.uaec-dash-root .dspparty__av { flex: none; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; padding: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(158deg, #2a3a58, var(--navy-900)); }
.uaec-dash-root .dspparty--them .dspparty__av { background: linear-gradient(158deg, var(--gray-400, #94a3b8), var(--gray-600, #475569)); }
.uaec-dash-root .dspparty > div { min-width: 0; }
.uaec-dash-root .dspparty > div > b { display: block; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uaec-dash-root .dspparty > div > span { display: block; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uaec-dash-root .dspparties__v { display: flex; align-items: center; justify-content: center; line-height: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.uaec-dash-root .dspparties__v svg { width: 15px; height: 15px; stroke-width: 1.8; }
@media (max-width: 620px) {
	.uaec-dash-root .dspparties { grid-template-columns: 1fr; }
	.uaec-dash-root .dspparty--them { flex-direction: row; text-align: left; justify-content: flex-start; }
	.uaec-dash-root .dspparties__v { display: none; }
}

/* ---------------- The decision ---------------- */
.uaec-dash-root .dspverdict { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-xl); border: 1px solid color-mix(in srgb, var(--success-700) 28%, transparent); background: linear-gradient(160deg, var(--success-50), #fff 72%); }
.uaec-dash-root .dspverdict--neutral { border-color: var(--border-strong); background: var(--surface-alt); }
.uaec-dash-root .dspverdict__ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; background: var(--success-700); color: #fff; }
.uaec-dash-root .dspverdict--neutral .dspverdict__ic { background: var(--gray-500, #64748b); }
.uaec-dash-root .dspverdict__ic svg { width: 20px; height: 20px; stroke-width: 1.9; }
.uaec-dash-root .dspverdict b { display: block; font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-strong); letter-spacing: -0.01em; }
.uaec-dash-root .dspverdict p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; margin: 5px 0 0; }
.uaec-dash-root .dspverdict__d { display: block; margin-top: 8px; font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------------- The log ---------------- */
.uaec-dash-root .dsplog { display: flex; flex-direction: column; }
.uaec-dash-root .dsplog__n { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent-hover); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-radius: 999px; padding: 2px 10px; }
.uaec-dash-root .dsplog__n.is-none { color: var(--text-muted); background: var(--surface-alt); border-color: var(--border); }
.uaec-dash-root .dsplog__n svg { width: 12px; height: 12px; stroke-width: 2.2; flex: none; }

.uaec-dash-root .dspev { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 14px; padding: 0 0 20px; }
.uaec-dash-root .dspev::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1px; background: var(--border); }
.uaec-dash-root .dspev:last-child { padding-bottom: 0; }
.uaec-dash-root .dspev:last-child::before { display: none; }
.uaec-dash-root .dspev__av { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; padding: 0; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(158deg, #2a3a58, var(--navy-900)); }
.uaec-dash-root .dspev__av svg { width: 16px; height: 16px; stroke-width: 1.9; }
.uaec-dash-root .dspev--them .dspev__av { background: linear-gradient(158deg, var(--gray-400, #94a3b8), var(--gray-600, #475569)); }
.uaec-dash-root .dspev--sys .dspev__av,
.uaec-dash-root .dspev--pending .dspev__av { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.uaec-dash-root .dspev--mod .dspev__av { background: linear-gradient(158deg, var(--accent), var(--accent-hover)); }
.uaec-dash-root .dspev__b { min-width: 0; padding-top: 2px; }
.uaec-dash-root .dspev__h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.uaec-dash-root .dspev__h b { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); }
.uaec-dash-root .dspev__who { font-size: var(--fs-xs); color: var(--text-muted); max-width: 24ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uaec-dash-root .dspev__h time { margin-left: auto; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }
.uaec-dash-root .dspev__x { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }
.uaec-dash-root .dspev__x b { color: var(--text-strong); font-weight: var(--fw-bold); }
.uaec-dash-root .dspev__lead { margin: 0; }
.uaec-dash-root .dspev--note .dspev__h b { color: var(--accent-hover); }
.uaec-dash-root .dspev--end .dspev__h b { color: var(--success-700); }
.uaec-dash-root .dspev--pending .dspev__x { color: var(--text-muted); }

/* LANE B. The kit keeps "Waiting on Emirae" as the last row of the log. Here
   the log element IS the container live-updates.js appends into, so a trailing
   row would end up above every event that arrives while the card is open. The
   row therefore sits outside the log and redraws its own rail, which is what
   `.dspev:last-child::before` would otherwise have removed. */
.uaec-dash-root .dsppending { padding-top: 20px; }
.uaec-dash-root .dsppending::before { display: block; top: 0; height: 20px; bottom: auto; }

.uaec-dash-root .dspquote { margin: 9px 0 0; padding: 11px 14px; border-radius: var(--radius-md); background: var(--surface-alt); border: 1px solid var(--border); font-size: var(--fs-sm); line-height: 1.6; color: var(--text); font-style: italic; }
.uaec-dash-root .dspquote--mod { font-style: normal; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--text-strong); }

/* ---------------- Adding to the timeline ---------------- */
.uaec-dash-root .dspcomp { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-alt); overflow: hidden; }
.uaec-dash-root .dspcomp__h { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.uaec-dash-root .dspcomp__av { flex: none; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; padding: 0; font-size: 10.5px; font-weight: 800; color: #fff; background: linear-gradient(158deg, #2a3a58, var(--navy-900)); }
.uaec-dash-root .dspcomp__h > div > b { display: block; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); }
.uaec-dash-root .dspcomp__h > div > span { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.uaec-dash-root .dspcomp__ta { border: none; border-radius: 0; background: var(--surface); min-height: 92px; width: 100%; min-width: 0; display: block; }
.uaec-dash-root .dspcomp__ta:focus { box-shadow: none; outline: none; }
.uaec-dash-root .dspcomp__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 11px 16px; border-top: 1px solid var(--border); }
.uaec-dash-root .dspcomp__rules { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.uaec-dash-root .dspcomp__rules span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.uaec-dash-root .dspcomp__rules svg { width: 13px; height: 13px; stroke-width: 2; flex: none; }
.uaec-dash-root .dspcomp__act { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.uaec-dash-root .dspclosed { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-xl); border: 1px dashed var(--border-strong); background: var(--surface-alt); }
.uaec-dash-root .dspclosed > svg { width: 18px; height: 18px; stroke-width: 1.9; color: var(--text-muted); flex: none; }
.uaec-dash-root .dspclosed b { display: block; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); }
.uaec-dash-root .dspclosed span { display: block; font-size: var(--fs-xs); color: var(--text-secondary); }

/* ---------------- Where this stands ---------------- */
.uaec-dash-root .dspsteps { list-style: none; margin: 4px 0 0; padding: 0; }
.uaec-dash-root .dspstep { position: relative; display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 11px; padding-bottom: 16px; }
.uaec-dash-root .dspstep::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--border); }
.uaec-dash-root .dspstep:last-child { padding-bottom: 0; }
.uaec-dash-root .dspstep:last-child::before { display: none; }
.uaec-dash-root .dspstep__dot { position: relative; z-index: 1; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; background: var(--surface); border: 2px solid var(--border-strong); }
.uaec-dash-root .dspstep__dot svg { display: block; width: 11px; height: 11px; stroke-width: 3; color: #fff; }
.uaec-dash-root .dspstep > div > b { display: block; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-muted); }
.uaec-dash-root .dspstep > div > span { display: block; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; margin-top: 1px; }
.uaec-dash-root .dspstep.is-done .dspstep__dot { background: var(--success-700); border-color: var(--success-700); }
.uaec-dash-root .dspstep.is-done > div > b { color: var(--text-strong); }
.uaec-dash-root .dspstep.is-now .dspstep__dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.uaec-dash-root .dspstep.is-now > div > b { color: var(--accent-hover); }
.uaec-dash-root .dspstep.is-muted { opacity: .5; }

/* ---------------- How it can end ---------------- */
.uaec-dash-root .dspends { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.uaec-dash-root .dspends li { display: flex; align-items: flex-start; gap: 7px; font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.5; }
.uaec-dash-root .dspends svg { width: 12px; height: 12px; stroke-width: 2.4; color: var(--text-muted); flex: none; margin-top: 3px; }

/* ---------------- LANE B: list and filing form ---------------- */
.uaec-dash-root .tbl--dsp td { vertical-align: top; }
.uaec-dash-root .dsprow__by { font-size: var(--fs-xs); margin-top: 2px; }
.uaec-dash-root .dspcard__reason { margin-bottom: 8px; }
.uaec-dash-root a.ocard { text-decoration: none; color: inherit; display: block; }
.uaec-dash-root a.ocard:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.uaec-dash-root .dsp-foot { margin-top: 14px; }
.uaec-dash-root .dspform { max-width: 640px; }
.uaec-dash-root .dspform form { display: flex; flex-direction: column; gap: 18px; }


/* ==========================================================================
   ACCOUNT SETTINGS - the profile-form field set
   Ported from the same v2.css block the company profile uses.
   ========================================================================== */
.uaec-dash-root .pf-grid { display: grid; gap: 18px; }
.uaec-dash-root .pf-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 760px) { .uaec-dash-root .pf-grid--2 { grid-template-columns: 1fr; } }
.uaec-dash-root .pf-f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.uaec-dash-root .pf-f__l { display: flex; align-items: baseline; gap: 9px; font-size: 12.5px; font-weight: 700; letter-spacing: .005em; color: var(--text-strong); }
.uaec-dash-root .pf-f__req { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.uaec-dash-root .pf-f__h { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; margin: 0; }
.uaec-dash-root .pf-i { width: 100%; min-width: 0; font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-regular, 400); color: var(--text-strong); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 0 15px; height: 46px; transition: border-color .15s, box-shadow .15s; }
.uaec-dash-root .pf-i::placeholder { color: var(--gray-400, #94a3b8); }
.uaec-dash-root .pf-i:hover { border-color: var(--gray-400, #94a3b8); }
.uaec-dash-root .pf-i:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.uaec-dash-root .pf-i[readonly], .uaec-dash-root .pf-i:disabled { background: var(--surface-alt); color: var(--text-muted); cursor: default; }
.uaec-dash-root .pf-i[readonly]:hover, .uaec-dash-root .pf-i:disabled:hover { border-color: var(--border-strong); }
.uaec-dash-root .pf-i--ta { height: auto; padding: 13px 15px; line-height: 1.6; resize: vertical; }
.uaec-dash-root .pf-i--sel { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 13px center; }

.uaec-dash-root .pf-rule { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-alt); padding: 15px; display: flex; flex-direction: column; gap: 15px; }
.uaec-dash-root .pf-rule__h { display: flex; align-items: flex-start; gap: 10px; }
.uaec-dash-root .pf-rule__h > svg { width: 17px; height: 17px; stroke-width: 1.9; color: var(--text-muted); flex: none; margin-top: 2px; }
.uaec-dash-root .pf-rule__h b { display: block; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-strong); margin-bottom: 4px; }
.uaec-dash-root .pf-rule__h span { display: block; font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.55; }
.uaec-dash-root .pf-rule .pf-i { background: var(--surface); }
.uaec-dash-root .pf-lock { display: inline-flex; align-items: center; gap: 4px; }
.uaec-dash-root .pf-lock svg { display: block; width: 11px; height: 11px; stroke-width: 2.4; }

/* LANE B: the account screen is a column of cards, each holding one form. */
.uaec-dash-root .acform { max-width: 760px; }
.uaec-dash-root .acform form { display: flex; flex-direction: column; gap: 18px; }
.uaec-dash-root .acform--pw form { max-width: 520px; }
.uaec-dash-root .acid { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.uaec-dash-root .acid__av { flex: none; width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; line-height: 1; font-size: 16px; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(158deg, #2a3a58, var(--navy-900)); }
.uaec-dash-root .acid__b { min-width: 0; flex: 1; }
.uaec-dash-root .acid__name { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-strong); letter-spacing: -0.01em; }
.uaec-dash-root .acid__meta { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.uaec-dash-root .acid__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }


/* ==========================================================================
   INBOX - LANE B additions only.
   The two-pane messenger itself already lives in dashboard.css and matches the
   kit; these are the parts the kit has that the theme did not.
   ========================================================================== */
.uaec-dash-root .thlist__head .thread__unread { position: static; }
.uaec-dash-root .thread__ctx--closed { color: var(--text-muted); }
/* The compose box is a grid child, and a textarea carries an intrinsic width
   from its `cols` default. Without min-width:0 that intrinsic size stretches
   the whole conversation column on a phone. */
.uaec-dash-root .convo__compose .ta { min-width: 0; flex: 1; }
.uaec-dash-root .convo__compose .uaec-btn { flex: none; }

/* ============================================================
   KIT FIDELITY PASS 4 (2026-07-29) - shared screens delta vs the kit.
   The other shared-screen components (chips, nrow, card heads, dl rows)
   are corrected in dashboard.css passes 2-3; this lane only owned one
   divergence of its own.
   ============================================================ */
.uaec-dash-root .dspev__who { max-width: 20ch;}
