/* 34 Ask Alfred: the kit sheet (from the archivo sheet, trimmed) and what this screen adds */
/* Settings (18): the Operations sheet's scoped rules for #view-alfred; the rv- panel, menu and error rules it shares are global and already loaded. */
#view-alfred { padding: 0 0 var(--v3-end-space); color: var(--al-text); width: 100%; min-width: 0; max-width: 100%; }
#view-alfred * { box-sizing: border-box; }
#view-alfred a { color: var(--al-action); text-decoration: none; cursor: pointer; }
#view-alfred a:hover { text-decoration: underline; }
#view-alfred .rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--al-gap-card); }
#view-alfred .rv-head .al-title { margin: 0; }
#view-alfred .rv-head-r { display: flex; align-items: center; gap: 16px; min-width: 0; }
#view-alfred .rv-meta span { white-space: nowrap; }
#view-alfred .rv-meta { text-align: right; font-size: var(--al-fs-label); color: var(--al-text-2); line-height: 1.5; font-variant-numeric: tabular-nums; max-width: 560px; }
#view-alfred .alf-tabs { display: flex; gap: 26px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; width: 0; min-width: 100%; margin-bottom: var(--al-gap-card); border-bottom: 1px solid var(--al-divider); }
#view-alfred .alf-tab { height: 40px; padding: 0; flex: none; border-radius: 0; background: none; color: var(--al-text-2); font-weight: 500; }
#view-alfred .alf-tab[aria-selected="true"] { background: none; box-shadow: inset 0 -2px 0 var(--al-brass); color: var(--al-action); font-weight: 700; }
#view-alfred .rv-count { margin-left: 6px; font-size: var(--al-fs-label); font-weight: 500; color: var(--al-text-2); font-variant-numeric: tabular-nums; }
#view-alfred .alf-tab[aria-selected="true"] .rv-count { color: var(--al-action); }
#view-alfred .al-region { background: var(--al-card); border: 1px solid var(--al-divider); border-radius: var(--al-r-card); box-shadow: var(--al-shadow-card); min-width: 0; margin-bottom: var(--al-gap-card); }
#view-alfred .al-region-hd { display: flex; align-items: baseline; gap: 12px; padding: var(--al-pad-card) var(--al-pad-card) var(--al-gap-title); border: 0; }
#view-alfred .al-region-hd .al-label { font-size: var(--al-fs-card); font-weight: 700; color: var(--al-text); }
#view-alfred .al-region-hd .al-meta { margin-left: auto; font-size: var(--al-fs-label); color: var(--al-text-2); font-variant-numeric: tabular-nums; }
#view-alfred .al-region-body { padding: 0 var(--al-pad-card) var(--al-pad-card); }
#view-alfred .rv-pad { padding: var(--al-pad-card); }
#view-alfred .al-flow { display: flex; flex-direction: column; }
#view-alfred .al-flow-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; margin: 0; border: 0; background: none; box-shadow: none; }
#view-alfred .al-flow-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--al-divider); }
#view-alfred .al-flow-row:last-child::after { display: none; }
#view-alfred .al-flow.is-compact .al-flow-row { min-height: 44px; padding: 8px 0; }
#view-alfred .al-flow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
#view-alfred .al-flow-title { font-size: var(--al-fs-ui); font-weight: 500; color: var(--al-text); line-height: 1.4; overflow-wrap: anywhere; }
#view-alfred .al-flow-meta { font-size: var(--al-fs-label); font-weight: 400; color: var(--al-text-2); line-height: 1.4; overflow-wrap: anywhere; }
#view-alfred .al-flow-aside { font-size: var(--al-fs-label); color: var(--al-text-2); white-space: nowrap; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
#view-alfred [role="button"].al-flow-row { cursor: pointer; border-radius: var(--al-r-control); padding-left: 12px; padding-right: 12px; margin: 0 -12px; }
#view-alfred [role="button"].al-flow-row:hover, #view-alfred .al-flow-row[aria-selected="true"] { background: var(--al-selected); }
#view-alfred .al-flow-row[aria-selected="true"] .al-flow-title { color: var(--al-action); font-weight: 600; }
#view-alfred [role="button"]:focus-visible, #view-alfred .rv-link:focus-visible { outline: none; box-shadow: var(--al-focus); }
#view-alfred .al-absent { font-size: var(--al-fs-ui); color: var(--al-text-2); margin: 0; }
#view-alfred .al-secondary { font-size: var(--al-fs-label); color: var(--al-text-2); margin: 8px 0 0; }
#view-alfred .rv-chev { flex: none; width: 16px; text-align: center; color: var(--al-text-2); transition: transform var(--al-t-hover, .15s); }
#view-alfred .rv-chev.is-open { transform: rotate(90deg); }
#view-alfred .rv-sub { padding: 0 0 8px 16px; }
#view-alfred .rv-link { border: 0; background: none; padding: 0; margin: 0; font: 500 var(--al-fs-ui)/1.4 var(--al-font-ui); color: var(--al-action); cursor: pointer; white-space: nowrap; }
#view-alfred .rv-link:hover { text-decoration: underline; }
#view-alfred .rv-dots { flex: none; width: 32px; height: 32px; border: 0; background: none; border-radius: var(--al-r-control); color: var(--al-text-2); cursor: pointer; font-size: 18px; line-height: 1; }
#view-alfred .rv-dots:hover { background: var(--al-selected); }
#view-alfred .rv-fig { flex: none; font-size: var(--al-fs-ui); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
#view-alfred .rv-num { font-size: var(--al-fs-ui); font-variant-numeric: tabular-nums; color: var(--al-text-2); margin-left: 12px; flex: none; }
#view-alfred .rv-lenses { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
#view-alfred .alf-filter .rv-n { margin-left: 6px; font-variant-numeric: tabular-nums; color: var(--al-text-2); }
#view-alfred .alf-filter[aria-pressed="true"] .rv-n { color: var(--al-action); }
#view-alfred .rv-tools { display: flex; align-items: center; gap: 12px; padding: var(--al-pad-card) var(--al-pad-card) 8px; }
#view-alfred .rv-search { width: 320px; max-width: 100%; height: var(--al-control-h); padding: 0 12px; border: 0; border-radius: var(--al-r-control); background: var(--al-field); box-shadow: inset 0 0 0 1px var(--al-line-control); font: 400 15px/1 var(--al-font-ui); color: var(--al-text); }
#view-alfred .rv-search:hover { box-shadow: inset 0 0 0 1px var(--al-action); }
#view-alfred .rv-search:focus { outline: none; box-shadow: var(--al-focus); }
#view-alfred .rv-search::placeholder { color: var(--al-text-2); }
#view-alfred .rv-table-wrap { padding: 0 var(--al-pad-card); overflow-x: auto; }
#view-alfred .rv-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#view-alfred .rv-table thead, #view-alfred .rv-table thead tr { background: none; }
#view-alfred .rv-table th { text-align: left; height: 44px; padding: 0 12px; font-size: var(--al-fs-label); font-weight: 600; color: var(--al-text-2); background: none; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--al-divider); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-alfred .rv-table td { height: 52px; padding: 0 12px; font-size: var(--al-fs-ui); border-bottom: 1px solid var(--al-divider); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
#view-alfred .rv-table tr:last-child td { border-bottom: 0; }
#view-alfred .rv-table th:first-child, #view-alfred .rv-table td:first-child { padding-left: 0; }
#view-alfred .rv-table th:last-child, #view-alfred .rv-table td:last-child { padding-right: 0; }
#view-alfred .rv-table .r { text-align: right; }
#view-alfred .rv-table tbody tr { cursor: pointer; }
#view-alfred .rv-table tbody tr:hover td, #view-alfred .rv-table tbody tr[aria-selected="true"] td { background: var(--al-selected); }
#view-alfred .rv-table tbody tr[aria-selected="true"] td:first-child { color: var(--al-action); font-weight: 600; }
#view-alfred .rv-table tbody tr:focus-visible { outline: none; box-shadow: inset var(--al-focus); }
#view-alfred .rv-nm { font-weight: 500; }
#view-alfred .rv-amb { margin-left: 8px; font-size: var(--al-fs-label); font-weight: 400; color: var(--al-text-2); }
#view-alfred .rv-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px var(--al-pad-card) var(--al-pad-card); font-size: var(--al-fs-label); color: var(--al-text-2); }
#view-alfred .rv-pager .rv-range { margin-right: 8px; font-variant-numeric: tabular-nums; }
#view-alfred .alf-button--icon.alf-button--compact { width: 32px; padding: 0; }
#view-alfred .rv-flag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--al-r-chip); background: var(--al-attention-wash); color: var(--al-attention); font-size: var(--al-fs-label); font-weight: 600; }
#view-alfred .rv-band, .rv-panel .rv-band { background: none; color: var(--al-attention); padding: 0; font-size: var(--al-fs-ui); font-weight: 600; }
#view-alfred .cv-error, .rv-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--al-critical-wash); color: var(--al-critical); border-radius: var(--al-r-control); padding: 12px 16px; font-size: var(--al-fs-ui); }


#view-alfred .rv-panel .rv-panel-body { padding-bottom: 88px; }
#view-alfred .rv-panel-foot { position: relative; flex: none; padding: 12px 24px 16px; border-top: 1px solid var(--al-divider); display: flex; flex-direction: column; gap: 10px; background: var(--al-raised); }
#view-alfred .rv-panel-foot .rv-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#view-alfred .rv-panel-foot .al-secondary { margin: 0; }
#view-alfred .rv-panel-foot .rv-acts { gap: 4px; flex-wrap: nowrap; }
#view-alfred .rv-panel-foot .rv-acts .alf-button { padding-inline: 10px; white-space: nowrap; }

#view-alfred .rv-panel-hd { align-items: flex-start; padding-top: 14px; padding-bottom: 6px; min-height: 56px; }
#view-alfred .rv-panel-foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; background: linear-gradient(to bottom, transparent, var(--al-raised)); pointer-events: none; }

#view-alfred .rv-error { margin: 8px 0; }

#view-alfred { padding-bottom: 96px; }


/* 13 Invoicing: the MODO PARALELO line, the figures line, the one-row chips (SPEC B, C) */
#view-alfred .iv-test-mail { margin: 6px 0 0; }
#view-alfred #iv-modo-paralelo { margin-bottom: var(--al-gap-card); }
#view-alfred #iv-modo-paralelo:empty { display: none; }
#view-alfred .iv-figs { color: var(--al-text-2); font-size: var(--al-fs-ui); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#view-alfred .iv-figs .iv-a3-gen { margin-left: auto; }
#view-alfred .iv-chips { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 4px var(--al-pad-card) 12px; overflow-x: auto; scrollbar-width: thin; }
#view-alfred .iv-chips .alf-filter { flex: none; white-space: nowrap; height: 28px; display: inline-flex; align-items: center; }
#view-alfred .rv-table th.al-r, #view-alfred .rv-table td.al-r { text-align: right; }
#view-alfred .rv-table .al-num { font-family: var(--al-font-ui); }
#view-alfred .rv-table td a { color: var(--al-action); }
#view-alfred .iv-total { margin-top: 10px; text-align: right; font-weight: 500; color: var(--al-text); }
#view-alfred .rv-panel .rv-table td { height: 40px; }
#view-alfred .ax-dots { flex: none; width: 32px; height: 32px; margin-left: auto; border: 0; background: none; border-radius: var(--al-r-control); color: var(--al-text-2); font-size: 18px; line-height: 1; cursor: pointer; }
#view-alfred .ax-dots:hover, #view-alfred .ax-dots:focus-visible { background: var(--al-selected); outline: none; }
#view-alfred .rv-table td .ax-dots { margin-left: 0; }

/* IN2: one status chip per row (neutral by default, success for paid, attention for vencida) */
#view-alfred .alf-status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--al-r-chip); background: var(--al-selected); color: var(--al-text-2); font-size: var(--al-fs-label); font-weight: 600; white-space: nowrap; vertical-align: middle; }
#view-alfred .alf-status--success { background: var(--al-success-wash); color: var(--al-success); }
#view-alfred .alf-status--attention { background: var(--al-attention-wash); color: var(--al-attention); }
#view-alfred .rv-table td .alf-status { height: 22px; padding: 0 8px; margin: 0; }
#view-alfred .rv-panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#view-alfred .iv-doc-test { margin-bottom: 8px; }

/* IN5: four labelled figures */
#view-alfred .iv-stats { display: flex; flex-wrap: wrap; gap: 8px 40px; }
#view-alfred .iv-stat-v { font-size: 22px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--al-text); }
#view-alfred .iv-stat-l { font-size: var(--al-fs-label); color: var(--al-text-2); margin-top: 2px; }
#view-alfred .iv-stat.is-attention .iv-stat-v { color: var(--al-attention); }

/* IN3: hairline label/value rows in the panel */
#view-alfred .iv-rows { display: flex; flex-direction: column; }
#view-alfred .iv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--al-divider); }
#view-alfred .iv-row:last-child { border-bottom: 0; }
#view-alfred .iv-row-l { flex: none; font-size: var(--al-fs-label); color: var(--al-text-2); }
#view-alfred .iv-row-v { text-align: right; font-size: var(--al-fs-ui); color: var(--al-text); overflow-wrap: anywhere; min-width: 0; }
#view-alfred .rv-panel .rv-sec { margin-bottom: 14px; }


/* PN3: the Firma first screen: totals and the rule on one line, filters, count and export on one row */
#view-alfred .pn-fhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; padding: 16px 24px 4px; }
#view-alfred .pn-fhead .iv-stats { padding: 0; }

/* the page: flow layout in the main well, the way the other v2 screens sit */
#view-alfred { display: block; height: auto; min-height: 0; overflow: visible; flex-direction: column; }
#view-alfred [hidden] { display: none !important; }
#view-alfred .rv-pad { padding: var(--al-pad-card); }
#view-alfred .ak-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 var(--al-gap-card); }
#view-alfred .ak-line { font-size: var(--al-fs-label); color: var(--al-text-2); font-variant-numeric: tabular-nums; }
#view-alfred .ak-subject { font-size: var(--al-fs-ui); color: var(--al-text); overflow-wrap: anywhere; }
#view-alfred .ak-note { margin: 0; padding: 0 var(--al-pad-card) 12px; font-size: var(--al-fs-label); color: var(--al-text-2); line-height: 1.5; }
#view-alfred .ak-why { padding-top: 0; }
#view-alfred .al-region-body .ak-note { padding-left: 0; padding-right: 0; }
#view-alfred .ak-q { width: 100%; max-width: 520px; }
#view-alfred .ak-bar { display: flex; align-items: center; gap: 8px; padding: 12px calc(var(--al-pad-card) - 16px) 0; flex-wrap: wrap; }
#view-alfred .al-region-body .ak-bar { padding-left: 0; padding-right: 0; }

/* Ley: hits are plain hairline rows; the kind is said in words on the row */
#view-alfred .ak-hit { position: relative; padding: 12px; margin: 0 -12px; border-radius: var(--al-r-control); cursor: pointer; }
#view-alfred .ak-hit::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px; background: var(--al-divider); }
#view-alfred .ak-hit:last-child::after { display: none; }
#view-alfred .ak-hit:hover, #view-alfred .ak-hit:focus-visible { background: var(--al-selected); outline: none; }
#view-alfred .ak-hit:focus-visible { box-shadow: var(--al-focus); }
#view-alfred .ak-hit-h { display: flex; align-items: baseline; gap: 12px; }
#view-alfred .ak-hit-k { font-size: var(--al-fs-label); font-weight: 600; color: var(--al-text-2); }
#view-alfred .ak-hit-a { margin-left: auto; font-size: var(--al-fs-label); color: var(--al-text-2); font-variant-numeric: tabular-nums; }
#view-alfred .ak-hit-t { margin-top: 4px; font-size: var(--al-fs-ui); font-weight: 600; color: var(--al-text); overflow-wrap: anywhere; }
#view-alfred .ak-hit-s { margin-top: 2px; font-size: var(--al-fs-ui); color: var(--al-text-2); overflow-wrap: anywhere; }
#view-alfred .ak-hit-x { margin-top: 6px; font-size: var(--al-fs-ui); line-height: 1.5; color: var(--al-text-2); overflow-wrap: anywhere; }
#view-alfred .ak-dest { margin-top: 8px; font-size: var(--al-fs-label); color: var(--al-action); }
#view-alfred .ak-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; margin-top: 8px; }
#view-alfred .ak-cell-l { display: block; font-size: var(--al-fs-label); color: var(--al-text-2); }
#view-alfred .ak-cell-v { display: block; font-size: var(--al-fs-ui); color: var(--al-text); overflow-wrap: anywhere; }
#view-alfred .ak-sil { padding: 4px 0; }
#view-alfred .ak-sil-k { font-size: var(--al-fs-label); font-weight: 600; color: var(--al-text-2); }
#view-alfred .ak-sil.is-warn .ak-sil-k { color: var(--al-attention); }
#view-alfred .ak-sil-h { margin-top: 4px; font-size: var(--al-fs-ui); font-weight: 500; color: var(--al-text); }
#view-alfred .ak-sil-b { margin-top: 2px; font-size: var(--al-fs-ui); color: var(--al-text-2); line-height: 1.5; }
#view-alfred .ak-jobs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#view-alfred .ak-text { font-size: var(--al-fs-ui); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; }

/* panel text: the held law, a memo */
#view-alfred .rv-panel .ak-md { font-size: var(--al-fs-ui); line-height: 1.6; }

/* Chat: the thread, the answer and the composer */
#view-alfred .ak-sess { position: absolute; z-index: 30; left: 12px; top: 56px; width: min(440px, calc(100% - 24px)); max-height: 360px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; background: var(--al-raised); border-radius: var(--al-r-card); box-shadow: var(--al-shadow-menu); }
#view-alfred .ak-chat-card { position: relative; }
#view-alfred .ak-sess-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; margin: 0; border: 0; border-radius: var(--al-r-control); background: none; cursor: pointer; text-align: left; font: inherit; color: var(--al-text); }
#view-alfred .ak-sess-row:hover, #view-alfred .ak-sess-row:focus-visible { background: var(--al-selected); outline: none; }
#view-alfred .ak-sess-t { font-size: var(--al-fs-ui); font-weight: 500; overflow-wrap: anywhere; }
#view-alfred .ak-sess-s { font-size: var(--al-fs-label); color: var(--al-text-2); overflow-wrap: anywhere; }
#view-alfred .ak-thread { padding: 16px var(--al-pad-card) 88px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; flex: 1; min-height: 160px; }
#view-alfred .ak-turn--user { display: flex; justify-content: flex-end; }
#view-alfred .ak-bubble { max-width: 80%; padding: 10px 14px; border-radius: var(--al-r-card); background: var(--al-selected); color: var(--al-text); font-size: var(--al-fs-ui); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
#view-alfred .ak-turn--alf { min-width: 0; }
#view-alfred .ak-md { font-size: var(--al-fs-ui); line-height: 1.6; color: var(--al-text); overflow-wrap: anywhere; }
#view-alfred .ak-md p { margin: 0 0 10px; }
#view-alfred .ak-md ul, #view-alfred .ak-md ol { margin: 0 0 10px; padding-left: 22px; }
#view-alfred .ak-md h1, #view-alfred .ak-md h2, #view-alfred .ak-md h3 { margin: 14px 0 6px; font-size: var(--al-fs-card); font-weight: 600; }
#view-alfred .ak-sources { display: flex; flex-direction: column; margin: 8px 0; }
#view-alfred .ak-sources-t { font-size: var(--al-fs-label); font-weight: 600; color: var(--al-text-2); margin-bottom: 4px; }
#view-alfred .ak-src { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; }
#view-alfred .ak-src-k { font-size: var(--al-fs-label); color: var(--al-text-2); }
#view-alfred .ak-src-t { font-size: var(--al-fs-ui); overflow-wrap: anywhere; }
#view-alfred .ak-turn .ak-note { padding: 0; }
#view-alfred .ak-turn-bar { display: flex; justify-content: flex-end; }
#view-alfred .ak-composer { flex: none; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px var(--al-pad-card) 8px; border-top: 1px solid var(--al-divider); }
#view-alfred .ak-composer textarea { flex: 1 1 280px; min-width: 0; min-height: 56px; padding: 10px 12px; border: 0; border-radius: var(--al-r-control); background: var(--al-field); box-shadow: inset 0 0 0 1px var(--al-line-control); font: 400 15px/1.4 var(--al-font-ui); color: var(--al-text); resize: vertical; }
#view-alfred .ak-composer textarea:focus { outline: none; box-shadow: var(--al-focus); }
#view-alfred .ak-composer .ak-note { padding: 0; align-self: center; }
#view-alfred #ak-mic.is-listening { background: var(--al-attention-wash); color: var(--al-attention); }

/* Inmueble */
#view-alfred .ak-chips { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
#view-alfred .ak-caveat { margin: 12px 0 0; font-size: var(--al-fs-ui); color: var(--al-text-2); line-height: 1.5; }
#view-alfred .ak-prop-id .ak-bar { padding-top: 12px; }
#view-alfred .ak-facts { display: flex; flex-direction: column; margin-top: 8px; }
#view-alfred .ak-fact { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--al-divider); }
#view-alfred .ak-fact:last-child { border-bottom: 0; }
#view-alfred .ak-fact-l { flex: 0 0 34%; font-size: var(--al-fs-label); color: var(--al-text-2); }
#view-alfred .ak-fact-v { flex: 1; min-width: 0; font-size: var(--al-fs-ui); color: var(--al-text); overflow-wrap: anywhere; }
#view-alfred .ak-aside { color: var(--al-text-2); }
#view-alfred .ak-li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--al-divider); }
#view-alfred .ak-li:last-child { border-bottom: 0; }
#view-alfred .ak-li-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
#view-alfred .ak-li-t { font-size: var(--al-fs-ui); color: var(--al-text); overflow-wrap: anywhere; }
#view-alfred .ak-li-s { font-size: var(--al-fs-label); color: var(--al-text-2); overflow-wrap: anywhere; }
#view-alfred .ak-li-a { flex: none; font-size: var(--al-fs-ui); font-variant-numeric: tabular-nums; text-align: right; }
#view-alfred .ak-head-error { margin: 0 0 var(--al-gap-card); }

/* 7 · comparables */
#view-alfred .ak-cmp-lead { margin: 0 0 4px; font-size: var(--al-fs-card); font-weight: 600; color: var(--al-text); }
#view-alfred .ak-cmp-k { margin: 16px 0 6px; font-size: var(--al-fs-label); font-weight: 600; color: var(--al-text-2); }
#view-alfred .ak-cmp-fig { margin: 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--al-text); }
#view-alfred .ak-cmp-a { font-size: var(--al-fs-ui); font-weight: 500; color: var(--al-text); }
#view-alfred .ak-cmp-wrap { padding: 0; }
#view-alfred .ak-table td { height: auto; padding-top: 10px; padding-bottom: 10px; white-space: normal; overflow-wrap: anywhere; }
#view-alfred .ak-table .ak-r { text-align: right; }
#view-alfred .ak-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; max-width: 520px; }
#view-alfred .ak-bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
#view-alfred .ak-bar-fill { width: 100%; background: var(--al-action); border-radius: 2px; }
#view-alfred .ak-bar-fill.is-empty { background: var(--al-divider); }
#view-alfred .ak-bar-l { font-size: var(--al-fs-label); color: var(--al-text-2); font-variant-numeric: tabular-nums; }
#view-alfred .ak-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
#view-alfred .ak-card { padding: 12px 14px; border-radius: var(--al-r-control); background: var(--al-selected); }

/* Chat fills the window: the card takes what is left under the tabs, the writing box is pinned at its foot, the conversation list floats over it */
#view-alfred.ak-fill { display: flex; flex-direction: column; height: calc(100vh - var(--al-topbar-h, 56px) - 96px); min-height: 480px; padding-bottom: 0; }
#view-alfred.ak-fill #ak-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#view-alfred.ak-fill #ak-chat > .al-region { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
#view-alfred.ak-fill #ak-chat > .al-region .ak-memline-row { flex: none; }
#view-alfred .ak-standing { margin: 4px 0 0; font-size: 13px; color: var(--v3-text-2); }
