/* Flow 12 · A leaver, an absence and the named cover (tools/genFlowLeaverCover.mjs). The screens are My account,
   Settings › Users, the handover page, Settings › Duties, Home and the Site page, drawn with the look of Settings › Rules
   (screens-insights.css › .si-*) and of the Site page (screens-site.css › .ss-*); .flc-* is what this flow adds. Tokens only. */

/* ── The hero: actors, start, end ── */
.flc-hero dl { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-4); margin: 0 0 var(--space-6); }
.flc-hero dl > div { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--color-default); border-radius: var(--radius-card); background: var(--color-surface); }
.flc-hero dt { color: var(--color-subtle); font-size: var(--text-label); line-height: var(--leading-label); text-transform: uppercase; letter-spacing: 0.04em; }
.flc-hero dd { margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
@media (max-width: 960px) { .flc-hero dl { grid-template-columns: minmax(0, 1fr); } }

/* ── A frame with small pictures of the same moment elsewhere ── */
.flc-with { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.flc-aside { display: flex; align-items: flex-start; gap: var(--space-4); width: 845px; max-width: 100%; }
.flc-aside__cap { flex: none; width: 150px; margin: 0; padding-top: var(--space-2); }
.flc-aside__box { zoom: 0.66; display: flex; flex: 1; flex-direction: column; align-items: center; padding: var(--space-4); border: 1px dashed var(--color-emphasis); border-radius: var(--radius-card); background: var(--color-page); color: var(--color-foreground); font-size: var(--text-sm); }
.flc-aside__box > * { width: 640px; max-width: 100%; }
.flc-aside__box .c-modal { width: 100%; box-shadow: var(--shadow-card); }
.flc-boxcard { display: flex; flex-direction: column; gap: var(--space-3); }
@media (max-width: 960px) { .flc-aside { flex-direction: column; } .flc-aside__box { zoom: 1; } }

/* ── The screen ── */
.flc-screen { position: relative; width: 1280px; height: 800px; }
.flc-page { gap: var(--space-4); padding-top: var(--space-5); }
.flc-page--drawer { padding-right: 424px; }
.flc-page--drawer .flc-row2 { grid-template-columns: minmax(0, 1fr); }
.flc-page--drawer .ap-card { overflow: visible; }
.flc-muted { color: var(--color-muted); }
.flc-wrap, .si-card .t-caption.flc-wrap { white-space: normal; overflow: visible; }
.flc-pad { margin: 0; padding: 0 var(--space-4) var(--space-4); }
.flc-inset { margin: 0 var(--space-4) var(--space-3); }
.flc-dash { color: var(--color-subtle); }
.flc-right { display: flex; justify-content: flex-end; }
.flc-split { display: flex; align-items: flex-end; gap: var(--space-3); }
.flc-split > .flc-field { flex: 1; }
.flc-start { align-self: flex-start; }
.flc-bad { color: var(--color-danger-text); }
.btn.flc-danger { color: var(--color-danger-text); }
.flc-q { display: inline-flex; align-self: flex-start; padding: 1px var(--space-2); border: 1px dashed var(--color-warning); border-radius: var(--radius-sm); background: var(--color-warning-soft); color: var(--color-warning-text); font-size: var(--text-xs); line-height: var(--leading-xs); white-space: normal; }
.flc-qline { padding-top: var(--space-1); }
.si-cols.flc-cols--users { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.flc-table td:nth-child(3) { white-space: nowrap; }
.flc-table td.flc-cov { min-width: 150px; }
.si-head .flc-muted { margin: var(--space-1) 0 0; }

/* Lists of facts: label over value */
.flc-plain > li { padding-top: 6px; padding-bottom: 6px; }
.flc-plain .ap-list__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flc-plain .ap-list__text > .t-caption { white-space: normal; }
.flc-plain > li > .flc-q { margin: 2px 0; }

/* Fields */
.flc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding: 0 var(--space-4) var(--space-3); }
.flc-form--modal { padding: 0; }
.flc-field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.flc-field--wide { grid-column: 1 / -1; }
.flc-field .c-field__label { font-size: var(--text-xs); }
.flc-input { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); height: var(--size-control-sm); padding: 0 var(--space-3); overflow: hidden; white-space: nowrap; font-size: var(--text-sm); }
.flc-input .icon { flex: none; width: 14px; height: 14px; color: var(--color-subtle); }
.flc-input.is-empty { justify-content: flex-end; }
.flc-input--area { height: auto; min-height: 56px; align-items: flex-start; padding-block: var(--space-2); white-space: normal; }
.flc-select .c-select__trigger { width: 100%; }
.flc-select .c-select__value { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.flc-select .c-select__list--static { box-shadow: var(--shadow-card); }
.flc-who { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.flc-who .ap-avatar, .flc-cv .ap-avatar, .c-select__option .ap-avatar { width: 22px; height: 22px; font-size: 10px; }
.flc-cover .c-alert--compact, .flc-rec .c-alert--compact { margin: 0 var(--space-4) var(--space-3); }
.flc-cover--in { border-top: 1px solid var(--color-default); padding-top: var(--space-3); }
.flc-cover--in > header { display: flex; justify-content: flex-end; padding: 0 var(--space-4) var(--space-2); }

/* Settings › Users and Duties */
.flc-table { font-size: var(--text-sm); }
.flc-table th, .flc-table td { padding: 7px var(--space-4); vertical-align: middle; }
.flc-table thead th { border-top: 1px solid var(--color-default); }
.flc-table tr.is-sel td { background: var(--color-primary-soft); }
.flc-person { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.flc-person__t { display: flex; flex-direction: column; min-width: 0; }
.flc-person__t .t-caption { white-space: nowrap; }
.flc-cv { display: inline-flex; align-items: center; min-width: 0; gap: var(--space-2); font-size: var(--text-xs); }
.flc-cv__t { white-space: normal; min-width: 0; }
.flc-end { text-align: right; white-space: nowrap; }
.flc-end .btn + .btn { margin-left: var(--space-2); }
.flc-rec > header { align-items: center; }
.flc-new { background: var(--color-success-soft); }
.flc-audit > li { padding-top: 5px; padding-bottom: 5px; }
.flc-audit .ap-list__text { display: flex; flex-direction: column; gap: 1px; }
.flc-viewing { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--size-control-sm); padding: 0 var(--space-3); border: 1px solid var(--color-default); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-muted); font-size: var(--text-xs); }

/* The handover page: one row per kind of work */
.ap-list.flc-kinds > li { display: grid; grid-template-columns: minmax(0, 1fr) 220px 230px; align-items: center; gap: var(--space-4); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.flc-kind.is-bad { background: var(--color-danger-soft); }
.flc-kind__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flc-kind__what > strong { display: inline-flex; align-items: center; gap: var(--space-2); }
.flc-kind__items { margin: 0; padding: 0; list-style: none; color: var(--color-muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.flc-kind__what .t-caption { margin: 0; }
.flc-kind__end { display: flex; justify-content: flex-end; }

/* Home: the cover band, actions marked as covered */
.flc-band { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-info); border-radius: var(--radius-card); background: var(--color-info-soft); }
.flc-band__ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-info-text); }
.flc-band__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flc-band__t strong { color: var(--color-info-text); }
.flc-tag { align-self: flex-start; margin-top: 4px; }
.ap-list .ap-list__text { min-width: 0; }
.ap-list > li > .ap-list__text { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.ap-list > li.is-open { background: var(--color-primary-soft); }
.ap-check.flc-checked { display: inline-flex; align-items: center; justify-content: center; border-color: var(--color-success); background: var(--color-success); color: var(--color-success-foreground); }
.flc-empty { align-items: center; padding: var(--space-4); text-align: center; }
.flc-empty .c-empty__title { margin: 0; }

/* The Site page: a two-column row under the head */
.flc-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.flc-row2--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.flc-act > header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-2); }
.flc-evs { margin: 0; padding: 0; list-style: none; }
.flc-ev { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-default); }
.flc-ev__ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--color-surface-muted); color: var(--color-muted); }
.flc-ev__b { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.flc-ev__who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin: 0; font-size: var(--text-sm); }
.flc-ev__who > span:last-child { color: var(--color-muted); font-size: var(--text-xs); }
.flc-ev__x { margin: 0; color: var(--color-foreground); font-size: var(--text-sm); }

/* The action's drawer, open at the right of the page */
.flc-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; width: 400px; border-left: 1px solid var(--color-default); background: var(--color-surface); box-shadow: var(--shadow-overlay); }
.flc-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-3); border-bottom: 1px solid var(--color-default); }
.flc-drawer__head .c-drawer__title, .flc-drawer__head .c-drawer__sub { margin: 0; }
.flc-drawer__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) var(--space-5); }
.flc-facts { border: 1px solid var(--color-default); border-radius: var(--radius-control); }
.flc-facts > li:first-child { border-top: 0; }

/* The notification centre, open under the bell */
.flc-notif { position: absolute; top: 52px; right: 210px; z-index: 3; width: 400px; border: 1px solid var(--color-default); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-overlay); overflow: hidden; }
.flc-notif > header { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-default); }
.flc-notif > header > span { color: var(--color-muted); font-size: var(--text-xs); }
.flc-notif__item { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-primary-soft); }
.flc-notif__ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-primary-strong); }
.flc-notif__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.flc-notif--static { position: static; width: 100%; }
.flc-who .ap-avatar, .flc-cv .ap-avatar, .flc-person .ap-avatar, .c-select__option .ap-avatar { flex: none; }
.flc-person .ap-avatar { width: 26px; height: 26px; font-size: 10px; }
.flc-notif .ap-avatar, .flc-viewing .ap-avatar { width: 22px; height: 22px; font-size: 10px; flex: none; }
.ap-card.flc-kindcard, .flc-page .ap-card:has([data-flow-target]) { overflow: visible; }
.ap-list.flc-kinds > li:last-child { border-bottom-left-radius: var(--radius-card); border-bottom-right-radius: var(--radius-card); }
.c-alert.flc-inset { width: auto; }
.si-cols.flc-cols--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.flc-page .ap-prop strong, .flc-page .ap-prop .t-caption, .flc-boxcard .ap-prop strong, .flc-boxcard .ap-prop .t-caption { white-space: normal; overflow: visible; text-overflow: clip; }
.flc-page .ap-list__text > span, .flc-boxcard .ap-list__text > span { white-space: normal; }
.flc-person__t strong { white-space: nowrap; }
.flc-table td.flc-cov { min-width: 180px; }
.si-cols.flc-cols--users { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.flc-st { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.flc-cover--in .flc-form { grid-template-columns: minmax(0, 1fr); }
