/* Tharsol Connect: release trains (/release-trains and its views, chat's "Add to release"). Namespaced (.rl-*), Connect's
   tokens only, so the same in light and dark. Chips and pills are tinted: tint fill, saturated text, 1px border. */

.rl-page { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; }
.rl-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 24px; }
.rl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px 8px; }
    .rl-head h1 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
    .rl-head .rl-grow { flex: 1; }
    /* Instead of New release for someone who may not start one (tinted, like the other notes). */
    .rl-head .rl-note { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: color-mix(in srgb, var(--muted) 8%, transparent); color: var(--muted); font-size: 12.5px; }
.rl-sub { color: var(--muted); font-size: 13px; }
.rl-nav { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
    .rl-nav a, .rl-nav button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; text-decoration: none; }
        .rl-nav a + a, .rl-nav button + button { border-left: 1px solid var(--border); }
        .rl-nav a:hover, .rl-nav button:hover { background: var(--hover); }
        .rl-nav .on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
    .rl-nav .n { margin-left: 5px; font-size: 11.5px; color: var(--muted); }

.rl-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; text-decoration: none; }
    .rl-btn:hover:not(:disabled) { background: var(--hover); }
    .rl-btn:disabled { opacity: .55; cursor: default; }
    .rl-btn.pri { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-weight: 600; }
    .rl-btn.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 11%, transparent); color: var(--ok); font-weight: 600; }
    .rl-btn.bad { border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-weight: 600; }
    .rl-btn.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); font-weight: 600; }
    .rl-btn.sm { height: 26px; padding: 0 8px; font-size: 12.5px; }
    .rl-btn .icon { width: 15px; height: 15px; }

.rl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 18px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); white-space: nowrap; }
    .rl-chip.ok { --c: var(--ok); }
    .rl-chip.bad { --c: var(--danger); }
    .rl-chip.warn { --c: var(--warn); }
    .rl-chip.acc { --c: var(--accent); }
    .rl-chip.muted { --c: var(--muted); }
    .rl-chip.vio { --c: #7C5CD6; }
    a.rl-chip { text-decoration: none; }

.rl-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 12px 14px; margin-top: 10px; }
    .rl-card h2 { margin: 0 0 6px; font-size: 15px; }
    .rl-card h3 { margin: 12px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
a.rl-card { display: block; color: inherit; text-decoration: none; }
    a.rl-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.rl-train-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
    .rl-train-top b { font-size: 15px; }
.rl-dates { color: var(--muted); font-size: 12.5px; }
.rl-builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.rl-build { font-size: 12.5px; }
    .rl-build .t { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-weight: 600; }

/* Progress: passed / failed / blocked / not tested. */
.rl-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--muted) 16%, transparent); }
    .rl-bar span { display: block; height: 100%; }
    .rl-bar .p { background: var(--ok); }
    .rl-bar .f { background: var(--danger); }
    .rl-bar .b { background: var(--warn); }
    .rl-bar.big { height: 12px; }
.rl-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }
    .rl-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
    .rl-legend .p { background: var(--ok); }
    .rl-legend .f { background: var(--danger); }
    .rl-legend .b { background: var(--warn); }
    .rl-legend .n { background: color-mix(in srgb, var(--muted) 30%, transparent); }

/* Items. */
.rl-items { margin-top: 10px; }
.rl-item { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-top: 8px; }
    .rl-item.open { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
    .rl-item.focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.rl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 12px; cursor: pointer; }
    .rl-row .ti { flex: 1 1 220px; min-width: 0; font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
    .rl-row .src { font-size: 12.5px; color: var(--muted); }
    .rl-row .src a { color: var(--accent); }
.rl-checks { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rl-body { border-top: 1px solid var(--line); padding: 10px 12px 12px; font-size: 13px; }
.rl-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
    .rl-facts dt { color: var(--muted); }
    .rl-facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rl-acts.bottom { align-items: flex-end; } /* a labelled field beside a button: the button lines up with the field, not its label */
.rl-field.wide { flex: 1 1 320px; }
.rl-dp-pc { padding: 10px 0; border-top: 1px solid var(--line); }
.rl-dp-pc:first-of-type { border-top: 0; }
.rl-msg { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
    .rl-msg.bad { color: var(--danger); }
    .rl-msg.ok { color: var(--ok); }
.rl-warn { margin-top: 8px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); color: var(--text); }
.rl-runs { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
    .rl-runs li { padding: 4px 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
    .rl-runs .who { color: var(--muted); }

.rl-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 -4px 14px rgba(0, 0, 0, .06); }
    .rl-foot .left { flex: 1; font-size: 13px; }

/* Forms. */
.rl-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
    .rl-form .wide { grid-column: 1 / -1; }
.rl-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
    .rl-field > span { font-weight: 600; }
.rl-in, .rl-area, .rl-sel { width: 100%; box-sizing: border-box; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.rl-area { resize: vertical; min-height: 60px; }
.rl-checkset { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--text); font-size: 13px; }
    .rl-checkset label { display: inline-flex; align-items: center; gap: 5px; }
.rl-picklist { max-height: 140px; overflow-y: auto; border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; }

.rl-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
    .rl-seg button { border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
        .rl-seg button.on { font-weight: 600; border-color: color-mix(in srgb, var(--c, var(--accent)) 50%, transparent); background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent); color: var(--c, var(--accent)); }
        .rl-seg button.ok { --c: var(--ok); }
        .rl-seg button.bad { --c: var(--danger); }
        .rl-seg button.warn { --c: var(--warn); }
        .rl-seg button.muted { --c: var(--muted); }

.rl-cands { margin-top: 10px; }
    .rl-cands li { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
    .rl-cands ul { margin: 0; padding: 0; }
    .rl-cands .ti { flex: 1 1 200px; min-width: 0; }

.rl-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: color-mix(in srgb, var(--muted) 7%, transparent); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 6px 0 0; max-height: 420px; overflow-y: auto; }
.rl-notes { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.rl-events { margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
    .rl-events li { padding: 4px 0; border-top: 1px solid var(--line); }
    .rl-events .when { color: var(--muted); margin-right: 6px; }
.rl-empty { color: var(--muted); font-size: 13.5px; padding: 18px 0; }

/* Chat's "Add to release" picker. */
.rl-pick { position: relative; z-index: 3; margin-top: 6px; min-width: 240px; max-width: min(320px, 92vw); padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-size: 13px; }
    .rl-pick b { display: block; margin-bottom: 6px; }
    .rl-pick .rl-sel { margin-bottom: 6px; }
    .rl-pick .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }

@media (max-width: 640px) {
    .rl-head { padding: 10px 12px 6px; }
    .rl-scroll { padding: 0 12px 20px; }
    .rl-facts { grid-template-columns: 1fr; }
    .rl-foot { position: static; }
}

@media print {
    .rl-noprint { display: none !important; }
    .rl-page, .rl-scroll { height: auto; overflow: visible; }
    .rl-card, .rl-item { break-inside: avoid; box-shadow: none; }
}

/* A platform build's files (ReleaseFilesPanel.razor). */
.rl-files h3 { margin: 0 0 8px; font-size: 14px; }
.rl-files h3 .rl-sub { font-weight: 400; font-size: 12px; margin-left: 6px; }
.rl-filelist { list-style: none; margin: 0; padding: 0; }
.rl-filelist li { padding: 7px 0; border-top: 1px solid var(--border); }
.rl-filelist li:first-child { border-top: 0; }
.rl-filelist .fl-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rl-filelist .fl-main a { font-weight: 600; word-break: break-all; }
.rl-filelist .fl-note { margin-top: 2px; white-space: pre-wrap; }
.rl-filelist .fl-acts { margin-top: 4px; }
.rl-files .fl-anyway { display: block; margin-top: 6px; }
.rl-files .fl-up input[type=file] { max-width: 260px; font-size: 12.5px; }
.rl-files .fl-item { max-width: 220px; width: auto; }
.rl-files .fl-notein { max-width: 260px; }

/* Releases → Deployments (MREP server deployments, phase 1, 26 Oct 2026): the same tokens and rl-* controls. Status is
   always a text label in a tinted chip, never colour alone; tables scroll inside their card only as a last resort. */
.rl-dp { display: flex; flex-direction: column; gap: 4px; }
.rl-dp .rl-grow { flex: 1; }
.rl-dp-sim { margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); color: var(--text); }
.rl-dp-tabs { align-self: flex-start; margin-bottom: 4px; }
.rl-dp-steps { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 8px 0; padding: 0; font-size: 12.5px; color: var(--muted); }
    .rl-dp-steps li { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; }
    .rl-dp-steps li.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.rl-dp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
    .rl-dp-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.rl-dp-main { min-width: 0; }
.rl-dp-summary { position: sticky; top: 0; }
    .rl-dp-summary h3 { margin-top: 14px; }
.rl-dp-num { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }
.rl-dp-metric { margin: 8px 0; color: var(--muted); }
    .rl-dp-metric b { font-size: 30px; font-weight: 600; color: var(--accent); margin-right: 6px; }
.rl-dp-wide { width: 100%; justify-content: center; margin-top: 10px; }
.rl-dp-choices, .rl-dp-components { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; margin-top: 6px; }
.rl-dp-choice, .rl-dp-component { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; cursor: pointer; min-width: 0; }
    .rl-dp-choice.on, .rl-dp-component.on { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
    .rl-dp-choice input, .rl-dp-component input { margin-top: 3px; }
    .rl-dp-choice span, .rl-dp-component span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .rl-dp-choice small, .rl-dp-component small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
    .rl-dp-choice:focus-within, .rl-dp-component:focus-within, .rl-dp-company:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.rl-dp-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
    .rl-dp-filters .rl-in { flex: 1 1 200px; width: auto; }
    .rl-dp-filters .rl-sel { width: auto; }
.rl-dp-region { margin: 10px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rl-dp-regionhead { display: flex; align-items: baseline; gap: 8px; margin: 0 !important; padding: 7px 12px; font-size: 13px !important; color: var(--accent) !important; text-transform: none !important; letter-spacing: 0 !important; background: color-mix(in srgb, var(--accent) 8%, transparent); }
    .rl-dp-regionhead small { color: var(--muted); font-weight: 400; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.rl-dp-serverhead { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 7px 12px; font-size: 12.5px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 6%, transparent); }
.rl-dp-ip { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.rl-dp-company { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px 8px 22px; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
    .rl-dp-company.static { cursor: default; }
    .rl-dp-company .rl-dp-nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .rl-dp-company small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
    .rl-dp-company input { margin-top: 3px; }
.rl-dp-indent { padding-left: 22px; }
.rl-dp-checks { margin: 6px 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
    .rl-dp-checks li { margin: 5px 0; }
    .rl-dp-checks:not(.plain) li::before { content: "✓"; color: var(--ok); margin-right: 7px; }
.rl-dp-tablewrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; }
.rl-dp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
    .rl-dp-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 7px 9px; border-bottom: 1px solid var(--border); background: var(--surface); }
    .rl-dp-table td { padding: 7px 9px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
    .rl-dp-table code, .rl-dp code { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.rl-dp-caption { caption-side: top; text-align: left; padding: 7px 9px; font-size: 12.5px; color: var(--muted); }
.rl-dp-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
span.rl-dp-sub { display: inline; margin-left: 6px; }
/* Phase 2: the "Ready to deliver" hint (a link only), rejection reasons, correlation ids. */
.rl-dp-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0; padding: 9px 11px; border-radius: 8px; font-size: 13px; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); color: var(--text); }
    .rl-dp-hint > span:not(.rl-chip) { flex: 1 1 260px; min-width: 0; }
.rl-dp-reasons { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
    .rl-dp-reasons li { margin: 3px 0; }
.rl-dp-corr { font-family: ui-monospace, Consolas, monospace; opacity: .8; }
.rl-dp-listing { margin: 8px 0; font-size: 13px; }
    .rl-dp-listing summary { cursor: pointer; color: var(--accent); }
    .rl-dp-listing ul { margin: 6px 0 0; padding-left: 18px; }
    .rl-dp-listing li { margin: 4px 0; }
.rl-dp-ack { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 8px; font-size: 13px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.rl-dp-actions { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.rl-dp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Packages → Build package (26 Oct 2026): sub-tabs, the agent card, the solution picker (an indented list), the build's log. */
.rl-dp-subtabs { align-self: flex-start; margin: 2px 0 2px; }
.rl-dp-subtabs a { font-size: 12.5px; }
.rl-dp-setup { margin: 8px 0 0; padding-left: 20px; font-size: 13px; color: var(--text); }
    .rl-dp-setup li { margin: 5px 0; overflow-wrap: anywhere; }
.rl-dp-component label { cursor: pointer; }
.rl-dp-choice .rl-chip { display: inline-flex; flex-direction: row; margin-left: 6px; vertical-align: middle; }
.rl-acts.tight { margin-top: 4px; }
.rl-dp-component span.rl-acts.tight { flex-direction: row; align-items: center; }
.rl-dp-browser { margin-top: 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 4%, transparent); }
    .rl-dp-browser h3 { margin: 0 0 8px; font-size: 14px; }
/* The solution picker (Build package, Browse; the Deploy tab's Source): solutions only, grouped by repository. */
.rl-dp-picker { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.rl-dp-pick-h { margin: 6px 0 0; }
.rl-dp-slns { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
    .rl-dp-slns > li { padding: 7px 11px; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
    .rl-dp-slns > li:first-child { border-top: 0; }
.rl-dp-repo { color: var(--muted); font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--muted) 6%, transparent); }
.rl-dp-sln-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
    .rl-dp-sln-row .nm { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
    .rl-dp-sln-row .nm small { overflow-wrap: anywhere; }
    .rl-dp-sln-row.open { background: color-mix(in srgb, var(--accent) 6%, transparent); }
    .rl-dp-sln-row.off { color: var(--muted); }
.rl-dp-sln-projects { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px 12px; }
    .rl-dp-sln-projects .rl-dp-choice { background: transparent; color: inherit; text-align: left; }
.rl-dp-tree { max-height: 340px; overflow: auto; margin: 6px 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
    .rl-dp-tree li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 10px 5px calc(10px + var(--depth, 0) * 16px); border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
    .rl-dp-tree li:first-child { border-top: 0; }
    .rl-dp-tree li .nm { overflow-wrap: anywhere; min-width: 0; }
    .rl-dp-tree li.k-folder .nm { color: var(--muted); }
    .rl-dp-tree li.k-sln .nm, .rl-dp-tree li.k-project .nm { font-weight: 600; }
    .rl-dp-tree li.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
    .rl-dp-tree li .rl-btn { margin-left: auto; }
.rl-dp-sln { margin: 8px 0; }
    .rl-dp-sln h4 { margin: 0 0 4px; font-size: 13px; }
.rl-dp-job { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
    .rl-dp-job h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
    .rl-dp-job h4 { margin: 12px 0 4px; font-size: 13px; color: var(--muted); }
.rl-dp-log { max-height: 320px; overflow: auto; margin: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--muted) 8%, transparent); color: var(--text); font: 12px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.rl-dp-table tr.on td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.rl-dp-link { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
    .rl-dp-link .rl-sel { width: auto; max-width: 100%; }
/* Deploy (quick deploy, 29 Oct 2026): one card list of the configured sites, one Deploy button, a Source editor. Progress
   is a tinted chip with its words and the steps lit; no animation (reduced motion: nothing moves). */
.rl-dp-quickbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
    .rl-dp-quickbar h2 { margin: 0; }
.rl-dp-qrow { align-items: flex-start; flex-wrap: wrap; }
    .rl-dp-qrow .rl-dp-nm { flex: 1 1 260px; min-width: 0; }
    .rl-dp-qrow .rl-dp-nm label { cursor: pointer; }
    /* The row's actions (Import queries + Deploy) in a fixed-width end column, so every row's state chips line up. */
    .rl-dp-qrow > .rl-dp-qacts { flex: 0 0 320px; display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; margin-left: auto; }
    .rl-dp-qacts > .rl-btn { flex: none; }
    /* Import queries after deploy (MREP v4 APIs): just before the row's Deploy. */
    .rl-dp-qimport { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 12.5px; cursor: pointer; padding-top: 4px; }
    .rl-dp-qimport small { flex-basis: 100%; color: var(--muted); }
    .rl-dp-qimport.warn small { color: var(--warn); }
@media (max-width: 760px) {
    .rl-dp-qrow > .rl-dp-qacts { flex-basis: 100%; }
}
/* Filter cards (11 Nov 2026), like the attendance KPI cards: one per component, ticked = its rows shown. */
.rl-dp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.rl-dp-k { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; opacity: .6; }
    .rl-dp-k.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
    .rl-dp-k > span { min-width: 0; }
    .rl-dp-k small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rl-dp-k b { display: block; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
    .rl-dp-k i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.rl-dp-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

/* A server component's icon tile and kind tag (30 Oct 2026): tint fill, saturated glyph, 1px border. */
.rl-dc { --dc: #888780; flex: none; width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--dc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--dc) 45%, transparent); color: var(--dc); }
    .rl-dc svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .rl-dc.sm { width: 24px; height: 24px; border-radius: 6px; }
    .rl-dc.sm svg { width: 14px; height: 14px; }
.rl-dc.teal, .rl-dk.teal { --dc: #1D9E75; }
.rl-dc.blue, .rl-dk.blue { --dc: #378ADD; }
.rl-dc.purple, .rl-dk.purple { --dc: #7F77DD; }
.rl-dc.amber, .rl-dk.amber { --dc: #BA7517; }
.rl-dc.gray, .rl-dk.gray { --dc: #888780; }
.rl-dk { --dc: #888780; display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 500; line-height: 18px; vertical-align: 2px;
    background: color-mix(in srgb, var(--dc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--dc) 45%, transparent); color: var(--dc); }
.rl-dp-qrow > .rl-dc { margin-top: 2px; }
.rl-dp-checks li > .rl-dc { vertical-align: middle; margin-right: 6px; }
.rl-dp-qstate { display: flex; flex-direction: column; gap: 4px; flex: 1 1 300px; min-width: 0; }
    .rl-dp-qstate > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rl-dp-steps.tight { margin: 2px 0; gap: 4px; font-size: 11.5px; }
    .rl-dp-steps.tight li { padding: 1px 7px; }
.rl-dp-quick .rl-dp-browser { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
    .rl-dp-quick * { transition: none !important; animation: none !important; }
}

@media (max-width: 1000px) {
    .rl-dp-grid { grid-template-columns: minmax(0, 1fr); }
    .rl-dp-summary { position: static; }
}

@media (max-width: 640px) {
    .rl-dp-tabs { align-self: stretch; }
    .rl-dp-company { padding-left: 12px; }
    /* Phones: every row becomes a small card, each value under its column's name (data-label). */
    .rl-dp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .rl-dp-table, .rl-dp-table tbody, .rl-dp-table tr, .rl-dp-table td { display: block; width: 100%; box-sizing: border-box; }
    .rl-dp-table tr { padding: 6px 0; border-top: 1px solid var(--border); }
    .rl-dp-table td { border: 0; padding: 3px 10px; }
    .rl-dp-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
    .rl-dp-table td[data-label="Retry"]:empty { display: none; }
    .rl-dp-subtabs { align-self: stretch; }
    .rl-dp-tree li { padding-left: calc(8px + var(--depth, 0) * 8px); }
}
