/* Run history, the log viewer, the run dialogs, and the Activity and Webhooks lists (#427). */

/* ---- Moved from the components' own <style> blocks (#427) --------------------
   These sat in <style> elements inside the markup and are here unchanged. Every class
   carries the component's own prefix (rc-, lv-, bv-, rp-, appdl-, act-, wh-), so they
   reach nothing else and no other rule ties with them.
   --------------------------------------------------------------------------- */
/* Run history and logs (RunCenter) */

.rc-body { flex: 1; min-height: 0; display: flex; }
.rc-sidebar { width: 270px; flex-shrink: 0;  overflow-y: auto;  }
.rc-side-empty, .rc-detail-empty { color: var(--qcb-gray-500); padding: 1.25rem; font-size: .85rem; }
.rc-side-waiting { display: flex; align-items: center; gap: .45rem; padding: .6rem .8rem;  font-size: .82rem; font-weight: 600;   }
.rc-run { width: 100%; text-align: left;    cursor: pointer; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.rc-run-top { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .82rem; color: var(--qcb-gray-800); }
/* .rc-run-status has no text-transform: the status arrives in words, sentence case, as in Activity (#439). */
.rc-live-dot { color: #16a34a; animation: rc-pulse 1.2s ease-in-out infinite; margin-left: auto; }
@keyframes rc-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.rc-run-time { color: var(--qcb-gray-500); font-size: .75rem; }
.rc-run-meta { display: flex; gap: .5rem; font-size: .72rem; color: var(--qcb-gray-500); }

.rc-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* flex-shrink:0 on the fixed chrome (meta, banner, tabs) so the tab body —
   the only flex:1 child — absorbs all remaining height instead of being
   squeezed out by a long status message. */
.rc-meta { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; padding: .7rem 1rem;  font-size: .8rem;  }
.rc-meta-item { display: inline-flex; align-items: center; gap: .35rem; }

/* Status / error banner. Clamped to two lines when collapsed; capped and
   independently scrollable when expanded, so it can never consume the modal. */
.rc-note {
    flex-shrink: 0; display: flex; align-items: flex-start; gap: .75rem;
    padding: .55rem 1rem; 
     font-size: .78rem; 
}
.rc-note--error {   border-bottom-color: var(--qcb-red-100); }
.rc-note-text {
    flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-note-text--open {
    display: block; -webkit-line-clamp: none;
    max-height: 30vh; overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem;
}
.rc-note-toggle {
    flex-shrink: 0; border: 0; background: transparent; padding: 0;
    color: inherit; opacity: .75; text-decoration: underline;
    cursor: pointer; font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.rc-note-toggle:hover { opacity: 1; }
.rc-tabs { flex-shrink: 0; display: flex; gap: .25rem; padding: .4rem .6rem 0; border-bottom: 1px solid var(--qcb-gray-100); }
.rc-tab {
    border: 0; background: transparent; color: var(--qcb-gray-500); cursor: pointer;
    padding: .45rem .8rem; font-size: .82rem; font-weight: 600; border-bottom: 2px solid transparent;
    display: inline-flex; align-items: center; gap: .4rem;
}
.rc-tab:hover { color: var(--qcb-gray-700); }
.rc-tab-badge {   border-radius: 999px; font-size: .68rem;  font-weight: 700; }

.rc-tabbody { flex: 1; min-height: 0; display: flex; }
.rc-tabbody > * { flex: 1; min-height: 0; }
.rc-log { display: flex; padding: .85rem 1rem 1rem; }
.rc-log > * { flex: 1; min-height: 0; }
.rc-scroll { overflow-y: auto; }

.rc-issues { padding: .25rem .25rem 1rem; }
.rc-issue-section { margin: .75rem .75rem 0; }
.rc-issue-head { font-weight: 700; color: var(--qcb-gray-800); font-size: .85rem; display: flex; align-items: center; gap: .45rem; margin-bottom: .4rem; }
.rc-issue-group { font-size: .78rem; font-weight: 600; color: var(--qcb-gray-500); margin: .5rem 0 .15rem; display: flex; gap: .4rem; align-items: center; }
.rc-issue-row {
    width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--qcb-gray-100); background: transparent;
    cursor: pointer; padding: .35rem .5rem; display: flex; gap: .6rem; align-items: baseline;
}
.rc-issue-row:hover { background: var(--qcb-gray-100); }
.rc-issue-name { font-size: .82rem; color: var(--qcb-gray-700); }
.rc-issue-id { font-size: .7rem; color: var(--qcb-gray-400); font-family: ui-monospace, monospace; }
.rc-issue-level { font-size: .68rem; font-weight: 700; text-transform: uppercase; min-width: 4rem; }
.rc-issue-warning .rc-issue-level { color: var(--qcb-amber-700); }
.rc-issue-error .rc-issue-level { color: var(--qcb-red-700); }
.rc-issue-msg { font-size: .8rem; color: var(--qcb-gray-700); }

.rc-details { padding: 1rem; }
.rc-downloads { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.rc-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.rc-stat { border: 1px solid var(--qcb-gray-100); border-radius: 10px; padding: .7rem; text-align: center; }
.rc-stat-n { font-size: 1.5rem; font-weight: 800; color: var(--qcb-gray-900); line-height: 1; }
.rc-stat-l { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--qcb-gray-500); margin-top: .3rem; font-weight: 600; }
.rc-stat--ok .rc-stat-n { color: var(--qcb-green-700); }
.rc-stat--fail .rc-stat-n { color: var(--qcb-red-700); }
.rc-stat--wrn .rc-stat-n { color: var(--qcb-amber-700); }
.rc-detail-section { margin-top: .75rem; }
.rc-detail-head { font-weight: 700; color: var(--qcb-gray-800); font-size: .85rem; margin-bottom: .4rem; }
.rc-detail-line { display: flex; justify-content: space-between; padding: .3rem .25rem; border-bottom: 1px solid var(--qcb-gray-100); font-size: .82rem; color: var(--qcb-gray-700); }

.rc-footer { display: flex; justify-content: flex-end; gap: .6rem; padding: .8rem 1.25rem;   }
.rc-btn-danger { background: var(--qcb-red-600); border-color: var(--qcb-red-600); color: var(--qcb-on-fill); }
.rc-btn-danger:hover { background: var(--qcb-red-700); }

/* On a phone (#442) the run list and the run details stack: the list on top in a short
   box of its own, the details below with the full width. Side by side, the 270px list
   left the details about 90px, and the tabs and the log ran past the right edge of the
   dialog. The log keeps its own box, where long lines wrap; nothing scrolls the page. */
@media (max-width: 640px) {
    .rc-body { flex-direction: column; }
    .rc-sidebar { width: auto; flex: 0 0 auto; max-height: 25%;  border-bottom: 1px solid var(--qcb-gray-100); }
    /* The details scroll as one, so the log can keep a box tall enough to read in. */
    .rc-detail { flex: 1 1 0; min-height: 0; overflow-y: auto; }
    .rc-tabbody { flex: 0 0 auto; height: 70vh; }
    .rc-tabs { overflow-x: auto; }
    .rc-log { padding: .5rem; }
    .rc-footer { flex-wrap: wrap; padding: .6rem .9rem; }
}

/* Log viewer (LogViewer, inside the run history) */
.lv-root { display: flex; flex-direction: column; height: 100%; min-height: 0; border: 1px solid #2b2f36; border-radius: 8px; overflow: hidden; }
.lv-toolbar {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    padding: .5rem .6rem; border-bottom: 1px solid #2b2f36; background: #1b1f24;
}
.lv-search { position: relative; display: flex; align-items: center; gap: .3rem; }
.lv-search-icon { position: absolute; left: .55rem; color: var(--qcb-gray-500); font-size: .75rem; }
.lv-search-input {
    background: #11151a; border: 1px solid #2b2f36; color: var(--qcb-gray-200);
    border-radius: 6px; padding: .3rem .5rem .3rem 1.6rem; font-size: .8rem; width: 220px;
}
.lv-search-input:focus { outline: none; border-color: var(--qcb-teal-500); box-shadow: 0 0 0 2px rgba(20,184,166,.25); }
.lv-match-count { color: var(--qcb-gray-400); font-size: .75rem; min-width: 2.5rem; text-align: center; }

.lv-filters { display: flex; gap: .35rem; }
.lv-chip {
    border: 1px solid #2b2f36; background: #11151a; color: var(--qcb-gray-400);
    border-radius: 999px; padding: .2rem .6rem; font-size: .75rem; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: .35rem;
}
.lv-chip:hover { border-color: #3b4049; }
.lv-chip--active { background: var(--qcb-action-bg); border-color: var(--qcb-action-bg); color: var(--qcb-on-fill); }
.lv-chip--err.lv-chip--active { background: var(--qcb-red-600); border-color: var(--qcb-red-600); }
.lv-chip--wrn.lv-chip--active { background: var(--qcb-amber-700); border-color: var(--qcb-amber-700); }
.lv-chip-n { font-size: .68rem;  border-radius: 999px; padding: 0 .35rem; }

.lv-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.lv-icon-btn {
    border: 1px solid #2b2f36; background: #11151a; color: var(--qcb-gray-300);
    border-radius: 6px; padding: .3rem .5rem; cursor: pointer; font-size: .8rem; line-height: 1;
}
.lv-icon-btn:hover { border-color: #3b4049; color: var(--qcb-on-fill); }
.lv-icon-btn:disabled { opacity: .4; cursor: default; }
.lv-jump-err { color: var(--qcb-red-500); }
.lv-autoscroll { color: var(--qcb-gray-400); font-size: .75rem; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }

.lv-body {
    flex: 1; min-height: 0; overflow-y: auto; background: #0d1117; padding: .5rem .25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem;
}
.lv-empty, .lv-truncated { color: var(--qcb-gray-500); padding: 1rem; font-style: italic; }
.lv-truncated { color: var(--qcb-gray-400); border-bottom: 1px dashed #2b2f36; }

.lv-line { display: flex; gap: .6rem; padding: .05rem .5rem; white-space: pre-wrap; word-break: break-word; }
.lv-line:hover { background: #161b22; }
.lv-num { color: #8b949e; user-select: none; text-align: right; min-width: 3.2rem; flex-shrink: 0; }
.lv-text { color: #c9d1d9; flex: 1; }
.lv-error .lv-text { color: #ffa198; }
.lv-error { background: rgba(220,38,38,.10); }
.lv-warning .lv-text { color: #f0c674; }
.lv-warning { background: rgba(180,83,9,.10); }
.lv-info .lv-text { color: #9cdcfe; }

.lv-mark { background: #fde047; color: #111; border-radius: 2px; padding: 0 1px; }
.log-line-flash { animation: lv-flash 0.9s ease-out; }
@keyframes lv-flash { from { background: #fde04755; } to { background: transparent; } }

.lv-light .lv-search-input { background: var(--qcb-surface); border-color: var(--qcb-gray-300); color: var(--qcb-gray-800); }
.lv-light .lv-search-icon { color: var(--qcb-gray-400); }
.lv-light .lv-match-count, .lv-light .lv-autoscroll { color: var(--qcb-gray-500); }
.lv-light .lv-chip--active .lv-chip-n { background: var(--qcb-carbon-20); }
.lv-light .lv-icon-btn:hover { border-color: var(--qcb-gray-400); color: var(--qcb-gray-900); }

.lv-light .lv-empty, .lv-light .lv-truncated { color: var(--qcb-gray-400); }
.lv-light .lv-truncated { border-bottom-color: var(--qcb-gray-200); }
.lv-light .lv-num { color: var(--qcb-gray-500); }
.lv-light .lv-text { color: var(--qcb-gray-800); }
.lv-light .lv-error { background: var(--qcb-red-50); }
.lv-light .lv-error .lv-text { color: var(--qcb-red-700); }
.lv-light .lv-warning { background: var(--qcb-amber-50); }
.lv-light .lv-warning .lv-text { color: var(--qcb-amber-700); }
.lv-light .lv-info .lv-text { color: var(--qcb-blue-700); }

/* Backup verification dialog */
.bv-overlay {
    position: fixed; inset: 0; z-index: 1060;
    background: rgba(17, 24, 39, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; backdrop-filter: blur(2px);
}

.bv-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--qcb-gray-900); display: flex; align-items: center; gap: .6rem; }
.bv-title i { color: var(--qcb-blue-600); }
.bv-subtitle { color: var(--qcb-gray-500); font-size: .85rem; margin-top: .15rem; }

.bv-loading { text-align: center; padding: 3rem 1rem; color: var(--qcb-gray-500); }
.bv-loading p { margin: 1rem 0 .25rem; font-weight: 600; color: var(--qcb-gray-700); }
.bv-loading span { font-size: .8rem; }
.bv-spinner {
    width: 2.5rem; height: 2.5rem; margin: 0 auto; border-radius: 50%;
    border: 3px solid var(--qcb-gray-200); border-top-color: var(--qcb-blue-600); animation: bv-spin .8s linear infinite;
}
@keyframes bv-spin { to { transform: rotate(360deg); } }

.bv-meta { display: flex; gap: 1.25rem; color: var(--qcb-gray-500); font-size: .8rem; margin-bottom: 1rem; }
.bv-meta code { background: var(--qcb-gray-100); padding: .05rem .35rem; border-radius: 4px; color: var(--qcb-gray-700); }

.bv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.1rem; }
.bv-stat { border-radius: 10px; padding: .85rem 1rem; text-align: center; border: 1px solid transparent; }
.bv-stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.bv-stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-top: .3rem; }

.bv-callout { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 10px; font-size: .85rem; margin-bottom: 1rem; line-height: 1.4; }
.bv-callout i { margin-top: .1rem; font-size: 1rem; }

.bv-failures { display: flex; flex-direction: column; border: 1px solid var(--qcb-gray-100); border-radius: 10px; overflow: hidden; max-height: 320px; overflow-y: auto; }
.bv-fail { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem .9rem; border-bottom: 1px solid var(--qcb-gray-100); }
.bv-fail:last-child { border-bottom: 0; }
.bv-fail-path { font-size: .82rem; color: var(--qcb-gray-700); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bv-pill { font-size: .72rem; font-weight: 600; border-radius: 6px; padding: .12rem .5rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.bv-pill i { font-size: .65rem; }
.bv-pill--info     { background: var(--qcb-gray-100); color: var(--qcb-gray-600); }

.bv-failures--types { margin-bottom: 1.1rem; }

.bv-section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--qcb-gray-500); margin: .25rem 0 .4rem; }

/* Restore preview dialog */
.rp-overlay {
    position: fixed; inset: 0; z-index: 1060;
    background: rgba(17, 24, 39, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; backdrop-filter: blur(2px);
}

.rp-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--qcb-gray-900); display: flex; align-items: center; gap: .6rem; }
.rp-title i { color: var(--qcb-blue-600); }
.rp-subtitle { color: var(--qcb-gray-500); font-size: .85rem; margin-top: .15rem; }

.rp-loading { text-align: center; padding: 3rem 1rem; color: var(--qcb-gray-500); }
.rp-loading p { margin: 1rem 0 .25rem; font-weight: 600; color: var(--qcb-gray-700); }
.rp-loading span { font-size: .8rem; }
.rp-spinner {
    width: 2.5rem; height: 2.5rem; margin: 0 auto; border-radius: 50%;
    border: 3px solid var(--qcb-gray-200); border-top-color: var(--qcb-blue-600); animation: rp-spin .8s linear infinite;
}
@keyframes rp-spin { to { transform: rotate(360deg); } }

.rp-meta { display: flex; gap: 1.25rem; color: var(--qcb-gray-500); font-size: .8rem; margin-bottom: 1rem; }
.rp-meta code { background: var(--qcb-gray-100); padding: .05rem .35rem; border-radius: 4px; color: var(--qcb-gray-700); }

.rp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .75rem; margin-bottom: 1.1rem; }
.rp-stat { border-radius: 10px; padding: .85rem 1rem; text-align: center; border: 1px solid transparent; }
.rp-stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.rp-stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-top: .3rem; }
.rp-stat--skip     { background: var(--qcb-gray-50); border-color: var(--qcb-gray-100); color: var(--qcb-gray-500); }

.rp-callout { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 10px; font-size: .85rem; margin-bottom: 1rem; line-height: 1.4; }
.rp-callout i { margin-top: .1rem; font-size: 1rem; }

.rp-empty { text-align: center; color: var(--qcb-gray-400); padding: 2rem 1rem; }
.rp-empty i { font-size: 1.5rem; }
.rp-empty p { margin: .5rem 0 0; }

.rp-groups { display: flex; flex-direction: column; gap: .55rem; }
.rp-group { border: 1px solid var(--qcb-gray-100); border-radius: 10px; overflow: hidden; }
.rp-group-head {
    width: 100%; border: 0; background: var(--qcb-gray-50); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: .7rem .9rem; gap: 1rem;
}
.rp-group-head:hover { background: var(--qcb-gray-100); }
.rp-group-name { font-weight: 600; color: var(--qcb-gray-800); display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.rp-group-name > i { color: var(--qcb-gray-400); font-size: .75rem; width: .8rem; }
.rp-group-counts { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }

.rp-chip {     white-space: nowrap; }
.rp-chip--skip     { background: var(--qcb-gray-100); color: var(--qcb-gray-500); }

/* A group's line under its head: the filter, and a note. The base look is the
   warning one; rp-group-note--warn only names it. */
.rp-group-note { font-size: .78rem; color: var(--qcb-amber-700); padding: .5rem .9rem; border-top: 1px solid var(--qcb-gray-100); background: var(--qcb-attention-surface); }
.rp-group-note--info > i { color: var(--qcb-blue-600); }
.rp-group-note--info .qcb-hint:not(:hover):not(:focus-visible) { color: var(--qcb-blue-600); }

.rp-items { max-height: 280px; overflow-y: auto; border-top: 1px solid var(--qcb-gray-100); }
.rp-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .9rem; border-bottom: 1px solid var(--qcb-gray-100); }
.rp-item:last-child { border-bottom: 0; }
.rp-item-main { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.rp-item-name { font-size: .85rem; color: var(--qcb-gray-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-item-id { font-size: .7rem; color: var(--qcb-gray-400); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-item-detail { font-size: .75rem; color: var(--qcb-gray-600); white-space: normal; line-height: 1.35; margin-top: .15rem; }
.rp-item-included-by i { font-size: .65rem; margin-right: .2rem; }

.rp-pill { font-size: .72rem; font-weight: 600; border-radius: 6px; padding: .12rem .5rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.rp-pill i { font-size: .65rem; }
.rp-pill--skip     { background: var(--qcb-gray-100); color: var(--qcb-gray-500); }

/* App download dialog */
.appdl-overlay {
    position: fixed; inset: 0; z-index: 1070;
    background: rgba(17, 24, 39, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; backdrop-filter: blur(2px);
}
.appdl-modal {
    background: var(--qcb-surface); border-radius: 14px; width: 100%; max-width: 760px;
    max-height: 88vh; display: flex; flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden;
}

.appdl-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--qcb-gray-900); display: flex; align-items: center; gap: .6rem; }
.appdl-title i { color: var(--qcb-teal-600); }
.appdl-subtitle { color: var(--qcb-gray-500); font-size: .85rem; margin-top: .15rem; }

.appdl-body {   min-height: 12rem; }
.appdl-loading { text-align: center; padding: 3rem 1rem; color: var(--qcb-gray-500); }
.appdl-loading p { margin: 1rem 0 .25rem; font-weight: 600; color: var(--qcb-gray-700); }
.appdl-spinner { width: 2.5rem; height: 2.5rem; margin: 0 auto; border-radius: 50%; border: 3px solid var(--qcb-gray-200); border-top-color: var(--qcb-teal-600); animation: appdl-spin .8s linear infinite; }
@keyframes appdl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .appdl-spinner { animation: none; } }

.appdl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .75rem; }
.appdl-label { font-size: .8rem; font-weight: 600; color: var(--qcb-gray-700); margin: 0; }
.appdl-select { width: auto; min-width: 14rem; }
.appdl-search { margin-bottom: 0; flex: 1 1 14rem; }

.appdl-count { font-size: .75rem; color: var(--qcb-gray-500); margin-bottom: .4rem; }
.appdl-list { display: flex; flex-direction: column; border: 1px solid var(--qcb-gray-100); border-radius: 10px; max-height: 50vh; overflow-y: auto; }
.appdl-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid var(--qcb-gray-100); }
.appdl-row:last-child { border-bottom: 0; }
.appdl-row-main { flex: 1; min-width: 0; }
.appdl-row-name { font-weight: 600; font-size: .88rem; color: var(--qcb-gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appdl-row-meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .75rem; color: var(--qcb-gray-500); }
/* On a phone the badge and the button go under the app's name, so the name keeps the full width. */
@media (max-width: 575.98px) {
    .appdl-row { flex-wrap: wrap; }
    .appdl-row-main { flex-basis: 100%; }
}
.appdl-row-twin { margin-top: .1rem; }
.appdl-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--qcb-gray-700); overflow-wrap: anywhere; }
.appdl-confirm-details { margin: -.6rem 0 .9rem; }
.appdl-row-state { font-size: .75rem; margin-top: .2rem; }
.appdl-row-state--ok { color: var(--qcb-green-700); }
.appdl-row-state--bad { color: var(--qcb-red-700); }
.appdl-row-state--run { color: var(--qcb-teal-700); }

.appdl-confirm-title { font-size: 1rem; font-weight: 700; color: var(--qcb-gray-900); margin: 0 0 .2rem; overflow-wrap: anywhere; }
.appdl-confirm-meta { font-size: .8rem; color: var(--qcb-gray-500); margin: 0 0 .9rem; }
.appdl-facts { font-size: .84rem; color: var(--qcb-gray-700); padding-left: 1.1rem; margin: 0; display: flex; flex-direction: column; gap: .35rem; }

.appdl-callout { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 10px; font-size: .85rem; margin-bottom: 1rem; line-height: 1.4; }
.appdl-callout i { margin-top: .1rem; font-size: 1rem; }

/* Activity */
/* The page sits in the shared shell (QcbPage, QcbPageHeader) like the other
   nav pages; no icon in the title. The toolbar, table, empty and loading
   states and the pager are the shared list's (#423, ui-list-parts.css). */

/* Summary tiles */
.act-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .85rem; margin-bottom: 1.25rem; }

.act-stat-ic { font-size: 1.15rem; color: var(--qcb-gray-400); }

/* Rows */
.act-row { cursor: pointer; }
.act-trigger { color: var(--qcb-gray-600); white-space: nowrap; }

.act-chip { display: inline-block; min-width: 1.4rem; text-align: center;   border-radius: 6px;  margin-right: .25rem; }
/* A word now, not a dash, so it needs text contrast rather than a faint grey (#361). */
.act-chip-none {  font-size: .8rem; }

/* The keyboard entry point for the row. */
.act-open-btn { color: var(--qcb-gray-500); }
.act-row:hover .act-open-btn { color: var(--qcb-teal-700); }

/* Webhooks list */
/* The table, the status pills, the menu and the empty and loading states are the
   shared list's (#423, ui-list-parts.css); these are the cells only this list has. */
.wh-chan { font-weight: 600; }
.wh-url { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: var(--qcb-gray-600); }
.wh-url-headers { font-size: .72rem; color: var(--qcb-gray-600); margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-url-headers i { color: var(--qcb-teal-600); margin-right: .2rem; }
.wh-scope-summary { display: flex; align-items: flex-start; gap: .3rem; font-size: .72rem; color: var(--qcb-gray-600); margin-top: .2rem; }
.wh-scope-summary > i { margin-top: .1rem; color: var(--qcb-teal-600); }

.wh-health { font-size: .78rem; }
.wh-health-ok { color: var(--qcb-green-700); }
.wh-health-fail { color: var(--qcb-red-700); }
/* ---- End of moved <style> blocks (#427) ---- */
