/* Layout C: the morning's quiet information left, the person's decisions right. */
.zs-morning { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: var(--space-5); align-items: start; }
.zs-morning-heading { margin: 0 0 var(--space-6); }
.zs-morning-heading > span { display: block; font-size: var(--text-small); font-weight: 600; }
.zs-morning-heading h1 { margin: 2px 0 0; font-size: clamp(2.5rem, 5vw, 2.75rem); line-height: 1.05; font-stretch: var(--font-display-stretch); letter-spacing: -0.03em; }
.zs-home-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-6); }
.zs-bank-error { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--status-critical); border-radius: var(--radius-lg); background: var(--legacy-danger-soft); color: var(--legacy-ink); }
.zs-bank-error .wf-btn { margin-left: auto; background: var(--legacy-surface); }
.zs-home-skeleton { min-height: 0; padding: 0; border: 0; border-radius: 0; }
.zs-home-skeleton :is(span, section, aside, div) { min-width: 0; }
.zs-skeleton-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.zs-skeleton-summary > span, .zs-skeleton-layout > section, .zs-skeleton-layout aside > div { display: grid; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--legacy-line); border-radius: var(--radius-xl); background: var(--legacy-surface); box-shadow: var(--legacy-shadow-sm); }
.zs-skeleton-summary i:nth-child(1) { width: 42%; }
.zs-skeleton-summary i:nth-child(2) { width: 58%; height: var(--space-8); }
.zs-skeleton-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 388px); gap: var(--space-4); align-items: start; }
.zs-skeleton-layout > section i { height: var(--space-10); border-top: 1px solid var(--legacy-line); }
.zs-skeleton-layout aside { display: grid; gap: var(--space-4); }
.zs-skeleton-layout aside > div:first-child { min-height: 180px; align-content: end; grid-template-columns: repeat(7, 1fr); }
.zs-skeleton-layout aside > div:first-child i { width: 100%; height: var(--space-16); }
.zs-home-summary > a { min-width: 0; display: grid; align-content: start; gap: var(--space-2); padding: var(--space-6); border: 1px solid var(--legacy-line); border-radius: var(--radius-xl); background: var(--legacy-surface); color: var(--legacy-ink); text-decoration: none; box-shadow: var(--legacy-shadow-sm); }
.zs-home-summary > a:hover { translate: 0 -1px; }
.zs-home-summary strong { font-size: var(--text-figure); line-height: 1; font-stretch: var(--font-display-stretch); }
.zs-home-summary small { color: var(--legacy-ink-soft); font-size: var(--text-small); }
.zs-home-summary .zs-home-focus { border-color: var(--legacy-ink); background: var(--legacy-ink); color: var(--legacy-surface); }
.zs-home-summary .zs-home-focus small { color: var(--legacy-surface); }
.zs-kpi-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.zs-kpi-chips > span { padding: 2px var(--space-2); border-radius: var(--radius-full); background: color-mix(in srgb, var(--legacy-surface) 14%, transparent); color: var(--legacy-surface); font-size: var(--text-label); font-weight: 700; }
.zs-home-summary .zs-home-auto strong::after { content: " ohne Sie"; margin-left: var(--space-2); color: var(--legacy-success); font-size: var(--text-small); font-stretch: normal; }
.zs-kpi-progress { display: block; height: var(--space-1); border-radius: var(--radius-full); background: var(--legacy-line); overflow: hidden; }
.zs-kpi-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.zs-home-money small span { color: inherit; }
.zs-home-money small .zs-money-open { color: var(--status-critical); font-weight: 700; }
.zs-home-summary-empty .zs-home-focus { border-color: var(--legacy-line); background: var(--legacy-surface); color: var(--legacy-ink); }
.zs-home-summary-empty .zs-home-focus small { color: var(--legacy-ink-soft); }
.zs-home-summary-empty strong { color: var(--legacy-ink-soft); font-size: var(--text-subtitle); }
.zs-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 388px); gap: var(--space-4); align-items: start; }
.zs-home-work, .zs-home-rail { display: grid; gap: var(--space-4); min-width: 0; }
.zs-home-rail { position: sticky; top: var(--space-4); }
/* m12 C2: the box's own children carry its inset (below), so the phone's generic box padding is not added on top */
.zs-home-layout .sv-box { padding: 0; overflow: hidden; background: var(--legacy-surface); border: 1px solid var(--legacy-line); border-radius: var(--radius-xl); box-shadow: var(--legacy-shadow-sm); }
.zs-home-layout .sv-box > :is(h2, .zs-section-head, p, ul, details, .ch-chart) { margin-right: var(--space-5); margin-left: var(--space-5); }
.zs-home-layout .sv-box > :first-child { margin-top: var(--space-5); }
.zs-home-layout .sv-box > :last-child { margin-bottom: var(--space-5); }
.zs-home-rail .sv-box > :is(h2, .zs-section-head, p, ul, details, .ch-chart) { margin-right: var(--space-4); margin-left: var(--space-4); }
.zs-home-rail .sv-box > :first-child { margin-top: var(--space-4); }
/* m12 C2: the facts list ("Offen aus November") keeps the box's inset like its heading */
.zs-home-layout .sv-box > dl { margin-inline: var(--space-5); }
.zs-home-rail .sv-box > dl { margin-inline: var(--space-4); }
.zs-home-rail .sv-box > :last-child { margin-bottom: var(--space-4); }
.zs-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.zs-section-head h2, .zs-money > h2 { margin: 0; font-family: var(--font-display); font-stretch: var(--font-display-stretch); }
.zs-money .ch-chart { margin-top: var(--space-3); }
.zs-deadline-card .zs-morning-calendar li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; }
.zs-deadline-card .zs-morning-calendar time { color: var(--legacy-ink-soft); font-size: var(--text-small); font-weight: 700; white-space: nowrap; }
.zs-deadline-card .zs-morning-calendar li > span { display: grid; gap: 2px; min-width: 0; }
.zs-deadline-card .zs-morning-calendar .zs-deadline-relative { color: var(--legacy-ink-soft); font-size: var(--text-small); white-space: nowrap; }
.zs-deadline-card .zs-deadline-copy > :is(a, small) { min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: break-word; }
.zs-empty-setup ol { list-style: none; margin: 0; padding: 0; counter-reset: setup; }
.zs-empty-setup li { counter-increment: setup; display: grid; grid-template-columns: var(--space-8) minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); align-items: center; min-height: var(--space-16); padding: 0 var(--space-5); border-top: 1px solid var(--legacy-line); }
.zs-empty-setup li::before { content: counter(setup) "."; grid-row: 1 / span 2; font-weight: 700; }
.zs-empty-setup li span { color: var(--legacy-ink-soft); }
.zs-empty-setup li > :is(a, small) { grid-column: 3; grid-row: 1 / span 2; }
.zs-empty-setup > p { padding: 0 var(--space-5); }
.zs-empty-chart { display: grid; place-items: center; min-height: calc(var(--space-24) + var(--space-8)); margin: 0 var(--space-5) var(--space-5); border-top: 1px solid var(--legacy-line); }
.zs-empty-chart > div { align-self: end; width: 100%; display: flex; justify-content: space-around; align-items: end; }
.zs-empty-chart i { width: var(--space-6); height: var(--space-8); border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--sunken); }
.zs-morning-info { display: grid; gap: var(--space-4); min-width: 0; }
.zs-morning-actions { position: sticky; top: 84px; padding: var(--space-6); border-left: 1px solid var(--legacy-line); background: var(--legacy-surface); }
.zs-morning-actions h2 { margin-top: 0; }
.zs-morning-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.zs-morning-numbers > a { display: grid; grid-template-rows: auto auto; align-content: start; gap: var(--space-2); min-width: 0; padding: var(--space-4); border: 1px solid var(--legacy-line); border-radius: var(--radius-lg); background: var(--sunken); color: var(--legacy-ink); text-decoration: none; }
.zs-morning-numbers > a:hover { border-color: var(--legacy-ink-soft); }
.zs-morning-numbers strong { font-size: var(--text-subtitle); line-height: 1.1; }
.zs-morning-numbers span { color: var(--legacy-ink-soft); font-size: var(--text-small); }
.zs-morning-buildings, .zs-morning-tasks, .zs-morning-calendar { list-style: none; margin: 0; padding: 0; }
.zs-morning-buildings li { display: grid; grid-template-columns: minmax(12rem, 3fr) minmax(0, 5fr); gap: var(--space-1) var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--legacy-line); }
.zs-morning-buildings li > a { min-width: 12rem; overflow-wrap: normal; word-break: normal; hyphens: none; }
.zs-feierabend { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: var(--space-3); background: rgb(17 19 34 / .48); }
.zs-feierabend-card { width: min(40rem, 100%); max-height: min(80vh, 48rem); overflow: auto; padding: var(--space-4); border: 1px solid var(--legacy-line); border-radius: var(--radius-lg); background: var(--legacy-surface); box-shadow: var(--legacy-shadow-sm); text-align: center; }
.zs-feierabend-card h2 { margin: var(--space-2) 0; font-family: var(--font-display); font-size: var(--text-display); color: var(--legacy-ink); }
.zs-feierabend-check { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--legacy-success-soft); color: var(--legacy-success); font-size: var(--text-display); font-weight: 700; }
.zs-feierabend-list { margin: var(--space-3) 0; padding: 0; list-style: none; text-align: left; }
.zs-feierabend-list li { padding: var(--space-2) 0; border-top: 1px solid var(--legacy-line); }
.zs-feierabend-list li:last-child { border-bottom: 1px solid var(--legacy-line); }
.zs-object-name { display: grid; gap: var(--space-2); }
.zs-object-rings { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.zs-object-ring { display: grid; grid-template-columns: 24px auto; gap: 0 var(--space-1); align-items: center; min-height: 44px; padding: var(--space-1) var(--space-2); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--legacy-ink); text-align: left; cursor: pointer; }
.zs-ring-mark { grid-row: 1 / 3; box-sizing: border-box; display: grid; place-items: center; width: 24px; height: 24px; border: 3px solid currentColor; border-radius: 50%; font-size: var(--text-small); font-weight: 700; }
.zs-object-ring small { color: var(--legacy-ink-soft); font-size: var(--text-small); }
.zs-object-ring-ok .zs-ring-mark { color: var(--legacy-success); }
.zs-object-ring-warn .zs-ring-mark { color: var(--legacy-warning); }
.zs-object-ring-crit .zs-ring-mark { color: var(--legacy-danger); }
/* FUN2: in the object table's name cell the three rings stand side by side, mark above word */
.zs-matrix .zs-object-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 13rem; }
.zs-matrix .zs-object-ring { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: var(--space-1) 0; text-align: center; }
.zs-matrix .zs-ring-mark { grid-row: auto; }
.zs-matrix .zs-object-ring > span:not(.zs-ring-mark) { font-size: var(--text-small); }
a.zs-object-ring { text-decoration: none; }
/* the owner start's ring card follows the unit register on phones (the start orders its cards there) */
@media (max-width: 560px) { .pt02-rings { order: 3; } }
.zs-clean-streak { margin: var(--space-1) 0 0; color: var(--legacy-ink-soft); font-size: var(--text-small); }
.zs-building-state { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-2); align-items: center; max-width: 34rem; }
.zs-building-state small { grid-column: 2; }
@media (max-width: 600px) { .zs-morning-buildings li { grid-template-columns: minmax(0, 1fr); } .zs-morning-buildings li > a { min-width: 0; } .zs-building-state { justify-self: stretch; } }
.zs-task-list { padding-inline: var(--space-5); }
.zs-morning-tasks { display: grid; }
.zs-morning-tasks li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; min-width: 0; padding: var(--space-3) 0; border-top: 1px solid var(--legacy-line); }
.zs-morning-tasks .zs-task-group { display: block; padding: var(--space-4) 0 var(--space-2); color: var(--legacy-ink-soft); font-size: var(--text-body); font-weight: 700; letter-spacing: .05em; }
.zs-morning-tasks .zs-task-focus { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-inline: calc(-1 * var(--space-5)); padding: var(--space-5); background: var(--legacy-danger-soft); }
.zs-task-focus-head { display: flex; align-items: start; justify-content: space-between; gap: var(--space-3); }
.zs-task-focus-head p, .zs-task-check { margin: 2px 0 0; }
.zs-task-focus-facts { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr) minmax(0, 1.65fr); gap: var(--space-4); margin: 0; }
.zs-task-focus-facts div { display: grid; gap: 2px; }
.zs-task-focus-facts dt { color: var(--legacy-ink-soft); font-size: var(--text-small); }
.zs-task-focus-facts dd { margin: 0; font-weight: 650; }
.zs-task-focus-facts > div:nth-child(2):last-child { grid-column: 2 / -1; }
.zs-task-check { display: flex; align-items: center; gap: var(--space-2); }
.zs-task-check > span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--system); color: var(--legacy-ink); font-weight: 800; }
.zs-task-focus-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.zs-rail-facts { margin: var(--space-4) 0 0; border-top: 1px solid var(--legacy-line); }
.zs-rail-facts div { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; }
.zs-rail-facts dd { margin: 0; font-weight: 700; }
.zs-rail-link { display: inline-flex; margin-top: var(--space-3); font-weight: 650; }
/* A2: the causes of manual work in the Heute rail, one cause per row */
.zs-causes { display: grid; gap: var(--space-3); margin: var(--space-4) 0; padding: 0; list-style: none; }
.zs-causes li + li { padding-top: var(--space-3); border-top: 1px solid var(--legacy-line); }
.zs-cause { display: grid; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }
.zs-auto-list { display: grid; gap: var(--space-3); margin: var(--space-4) 0; padding: 0; list-style: none; }
.zs-auto-list li { display: flex; align-items: start; gap: var(--space-2); }
.zs-auto-list li > span:first-child { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--lime); color: var(--on-lime); font-weight: 800; }
.zs-auto-meta, .zs-auto-copy { min-width: 0; }
.zs-auto-meta { overflow-wrap: anywhere; }
.zs-auto-copy { display: grid; gap: 2px; }
.zs-auto-copy > :is(strong, small) { min-width: 0; overflow-wrap: anywhere; }
.zs-task-copy { display: grid; gap: 2px; min-width: 0; }
.zs-task-meta { display: block; min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: break-word; }
.zs-morning-tasks > li > .wf-status { letter-spacing: 0; text-transform: none; white-space: nowrap; }
.zs-morning-tasks > li > .wf-status::before { content: none; }
.wf-body .zs-task-title { display: block; min-width: 0; color: var(--legacy-ink); font-weight: 650; text-decoration: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: break-word; }
.wf-body .zs-task-title:hover { color: var(--legacy-blue); }
.zs-task-context { color: var(--legacy-ink-soft); font-weight: 600; }
.zs-warning-copy { display: inline-grid; gap: 2px; margin-inline: var(--space-1); }
.zs-task-action { justify-content: center; min-width: 7.5rem; }
.zs-morning-tasks > li:not(.zs-task-group):not(.zs-task-focus) { padding-block: var(--space-2); }
.zs-morning-tasks > li:not(.zs-task-focus) .zs-task-action { border-color: color-mix(in srgb, var(--accent) 28%, var(--legacy-line)); background: color-mix(in srgb, var(--accent) 10%, var(--legacy-surface)); color: var(--legacy-ink); }
.zs-money .ch-s4 { background: color-mix(in srgb, var(--chart-1) 22%, var(--legacy-surface)); }
.zs-task-more { display: block; margin: 0; padding: var(--space-3) var(--space-5); border-top: 1px solid var(--legacy-line); font-size: var(--text-small); }
.zs-task-rest { display: block; margin: 0; padding: var(--space-3) var(--space-5); border-top: 1px solid var(--legacy-line); font-size: var(--text-body); }
.wf-body .zs-task-more { color: var(--legacy-blue); font-weight: 700; text-decoration: none; }
@media (max-width: 600px) {
  .zs-bank-error { align-items: stretch; flex-direction: column; }
  .zs-bank-error .wf-btn { margin-left: 0; }
  .zs-empty-setup li { grid-template-columns: var(--space-6) minmax(0, 1fr); align-items: start; min-height: 0; padding: var(--space-4); }
  .zs-empty-setup li::before { grid-row: 1 / span 3; }
  .zs-empty-setup li > :is(b, span, a, small) { grid-column: 2; grid-row: auto; }
  .zs-empty-setup li > a { justify-self: start; margin-top: var(--space-2); }
  .zs-morning-tasks li { grid-template-columns: minmax(0, 1fr) auto; }
  .zs-morning-tasks .zs-task-focus { grid-template-columns: 1fr; margin-inline: calc(-1 * var(--space-4)); padding: var(--space-4); }
  .zs-task-focus-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zs-task-focus-facts div:last-child { grid-column: 1 / -1; }
  .zs-task-focus-actions .wf-btn-primary { flex: 1; }
  .zs-task-copy { grid-column: 1; }
  .zs-task-action { grid-column: 1 / -1; width: 100%; }
}
.zs-morning-empty { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-8) var(--space-4); text-align: center; }
.zs-morning-empty > span { font-size: var(--text-display); color: var(--legacy-ink-soft); }
.zs-morning-empty p { margin: 0; }
.zs-all-done { display: grid; gap: var(--space-4); }
.zs-all-done-message { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-5); }
.zs-all-done-message > span { display: grid; place-items: center; width: var(--space-12); height: var(--space-12); border-radius: 50%; background: var(--legacy-success-soft); color: var(--legacy-success); font-size: var(--text-subtitle); }
.zs-all-done-message strong { font-size: var(--text-subtitle); }
.zs-all-done-message p { margin: var(--space-1) 0 0; }
.zs-system-continues { padding: var(--space-5); border-top: var(--space-4) solid var(--legacy-canvas); }
.zs-system-continues h3 { margin: 0; font-size: var(--text-section); }
.zs-system-continues ul { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; }
.zs-system-continues li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); }
.zs-system-continues li > span:first-child { color: var(--legacy-success); }
.zs-morning-calendar li { padding: var(--space-2) 0; border-top: 1px solid var(--legacy-line); }
@media (max-width: 900px) {
  .zs-morning { display: flex; flex-direction: column; }
  .zs-morning-actions { order: -1; position: static; width: 100%; box-sizing: border-box; border: 0; padding: var(--space-4); border-radius: var(--radius-lg); }
  .zs-morning-info { width: 100%; }
  .zs-morning-numbers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-1); }
  .zs-morning-numbers > a { flex: 0 0 calc(var(--space-24) + var(--space-4)); scroll-snap-align: start; padding: var(--space-3); }
  .zs-home-layout { grid-template-columns: minmax(0, 1fr); }
  .zs-home-rail { position: static; }
  .zs-skeleton-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .zs-skeleton-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .zs-home-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .zs-home-summary > a { padding: var(--space-4); }
  .zs-home-summary strong { font-size: var(--text-title-compact); }
  .zs-home-summary .zs-home-money strong { font-size: clamp(1.08rem, 5.2vw, var(--text-title-compact)); white-space: nowrap; }
  .zs-home-summary .zs-home-auto strong { display: flex; align-items: baseline; gap: var(--space-1); white-space: nowrap; }
  .zs-home-summary .zs-home-auto strong::after { margin-left: 0; font-size: var(--text-label); }
  .zs-home-layout { display: flex; flex-direction: column; }
  .zs-home-work { order: -1; width: 100%; }
  .zs-task-list { padding-inline: var(--space-4); }
  .zs-morning-tasks li { grid-template-columns: minmax(0, 1fr) auto; }
  .zs-morning-tasks > li:not(.zs-task-group):not(.zs-task-focus) { grid-template-columns: minmax(0, 1fr) auto; }
  .zs-task-copy { grid-column: 1 / -1; grid-row: 1; }
  .wf-body .zs-task-title, .zs-task-meta { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: break-word; }
  .zs-morning-tasks > li > .wf-status { grid-column: 1; grid-row: 2; justify-self: start; }
  .zs-task-action { grid-column: 2; grid-row: 2; width: auto; min-width: 0; padding-inline: var(--space-3); }
  .zs-all-done-message { grid-template-columns: auto minmax(0, 1fr); padding: var(--space-4); }
  .zs-all-done-message > div { min-width: 0; }
  .zs-all-done-message p { overflow-wrap: anywhere; }
  .zs-all-done-message .wf-btn { grid-column: 2; justify-self: start; }
  .zs-system-continues { padding: var(--space-4); }
  .zs-system-continues .zs-section-head { align-items: flex-start; flex-wrap: wrap; }
  .zs-system-continues .zs-section-head h3 { flex: 1 1 100%; min-width: 0; }
  .zs-system-continues .zs-section-head .wf-status { max-width: 100%; white-space: normal; }
  .zs-system-continues p { min-width: 0; overflow-wrap: anywhere; }
}

/* The data screens (zahlen.mjs): layout only; colours, radii and type from the tokens in
   design.css, figures and tables from charts.css. */
.zs-object > h3 { margin: 0 0 var(--space-4); font-size: var(--text-subtitle); font-weight: 600; } /* a card's title (designer-r2-5) */
.zs-object > h3 > .wf-muted { font-size: var(--text-body); font-weight: 500; }
.zs-object .ch-figure { margin-bottom: var(--space-4); }
.zs-sub { font-size: var(--text-body); font-weight: 700; color: var(--ink-2); margin: var(--space-6) 0 var(--space-3); }
.zs-line { margin: var(--space-1) 0; }
.zs-more { margin: var(--space-3) 0 0; }
.zs-more summary { color: var(--legacy-blue); font-size: var(--text-small); font-weight: 600; }
.zs-forecast { padding: var(--space-4) 0; border-top: 1px solid var(--legacy-line); }
.zs-forecast:first-child { border-top: 0; padding-top: 0; }
.zs-forecast h3 { font-size: var(--text-section); margin: 0 0 var(--space-2); }
.zs-heading { font-size: var(--text-section); margin: var(--space-2) 0 var(--space-4); }

/* Cockpit: the work list, three figures in one row divided by hairlines, then the trust
   accounts beside the open cases per object. */
/* Heute: a group per kind (its tag once, with the count), each row one line with the case and
   object under it; rows waiting for this person's approval in the human tint (coral = "Sie"). */
.zs-today { display: grid; gap: var(--space-5); }
.zs-today-head { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); }
.zs-today-count { font-size: var(--text-small); color: var(--legacy-ink-soft); font-variant-numeric: tabular-nums; }
.zs-today ul, ul.zs-rows { list-style: none; margin: 0; padding: 0; }
.zs-today li, .zs-rows > li { display: grid; gap: 2px; min-width: 0; padding: var(--space-3) var(--space-3); border-top: 1px solid var(--legacy-line); }
.zs-today li > a, .zs-rows > li > a { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.wf-body .zs-today a, .wf-body .zs-today summary, .wf-body .zs-rows a { color: var(--legacy-ink); font-weight: 600; }
.wf-body .zs-today a:hover, .wf-body .zs-rows a:hover { color: var(--legacy-blue); }
.zs-today .wf-muted, .zs-rows .wf-muted { font-size: var(--text-small); }
.zs-today-group li { padding-left: var(--space-6); }
.zs-today-group li:first-child { margin-top: var(--space-2); }
.zs-you > ul > li { background: transparent; border-left: 0; }
.zs-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.zs-figures > .ch-figure { padding: 0 var(--space-6); border-left: 1px solid var(--legacy-line); }
.zs-figures > .ch-figure:first-child { padding-left: 0; border-left: 0; }
.zs-figures > .ch-figure:last-child { padding-right: 0; }
/* The figures of a row share their rows (label, period, value …): a label on two lines does not
   push its figure below the others. */
@media (min-width: 768px) { .zs-figures > .ch-figure { grid-row: span 6; grid-template-rows: subgrid; } }
.zs-pair { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.zs-pair > .sv-box { margin: 0 0 var(--space-4); }
.zs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 var(--space-4); border: 1px solid var(--legacy-line); border-radius: var(--radius-md); overflow: hidden; background: var(--sunken); }
.zs-tile { font: inherit; text-align: left; display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border: 0; border-left: 1px solid var(--legacy-line); background: none; color: var(--legacy-ink-soft); cursor: pointer; }
.zs-tile:first-child { border-left: 0; }
.zs-tile[aria-selected="true"] { background: var(--legacy-surface); box-shadow: inset 0 -2px 0 var(--accent); color: var(--legacy-ink); }
.zs-tile[aria-selected="true"] .zs-tile-value { color: var(--legacy-blue); }
.zs-tile-value { font-size: var(--text-subtitle); font-weight: 700; font-stretch: var(--font-display-stretch); letter-spacing: -0.025em; word-spacing: normal; font-variant-numeric: tabular-nums; }
.zs-tile-label { font-size: var(--text-small); font-weight: 500; }
@media (max-width: 1100px) { .zs-pair { grid-template-columns: minmax(0, 1fr); } }

/* Object status: a matrix of states; the object's name opens its findings. */
.zs-link { font: inherit; font-weight: 600; color: var(--legacy-blue); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.zs-link:hover, .zs-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.zs-cell { display: inline-flex; }
/* The area's name in each cell: for screen readers, and on narrow screens for everyone. */
.zs-area { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Up to 1440 px the states are symbols only (the word stays for screen readers and in the cell's title). */
@media (min-width: 768px) and (max-width: 1439px) {
  .zs-matrix .ch-state { font-size: 0; letter-spacing: 0; gap: 0; padding: var(--space-1); }
}

.zs-vote { margin: var(--space-3) 0; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--sunken); }
.zs-vote .ch-result { margin-top: var(--space-2); }
.zs-due { margin: var(--space-3) 0; }
/* tenant-r2-6, owner-r2-13: a month is one line (month, amount, state), also on a phone */
.zs-months ul { list-style: none; margin: var(--space-2) 0; padding: 0; }
.zs-months li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(9rem, auto); gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-top: 1px solid var(--legacy-line); }
.zs-month-amount { font-variant-numeric: tabular-nums; text-align: right; }
.zs-month-paid { color: var(--legacy-ink-soft); font-size: var(--text-small); }
@media (max-width: 479px) { .zs-months li { grid-template-columns: minmax(0, 1fr) auto; } .zs-months li > :last-child { grid-column: 1 / -1; } }
.zs-line + .ch-chart { margin-top: var(--space-5); } /* the top tick never under the line above (tenant-17) */
.zs-participation .zs-links { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }

@media (max-width: 767px) {
  /* KPIs and tiles one below the other: every figure whole on the screen (auditor-19) */
  .zs-figures { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .zs-figures > .ch-figure, .zs-figures > .ch-figure:first-child, .zs-figures > .ch-figure:last-child { box-sizing: border-box; padding: var(--space-4); border: 1px solid var(--legacy-line); border-radius: var(--radius-lg); background: var(--legacy-paper); }
  .zs-tiles { grid-template-columns: minmax(0, 1fr); }
  .zs-tile { min-height: 64px; }
  .zs-tile-label { font-size: var(--text-small); }
  /* The matrix as one block per object: each area named beside its state. */
  .zs-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .zs-matrix tr, .zs-matrix th, .zs-matrix td { display: block; }
  .wf-body .zs-matrix .ch-table th, .wf-body .zs-matrix .ch-table td { position: static; white-space: normal; }
  .zs-matrix tbody th { padding-top: var(--space-3); border-bottom: 0; }
  .zs-matrix td { border-bottom: 0; padding: var(--space-1) var(--space-2); }
  .zs-matrix tr { border-bottom: 1px solid var(--legacy-line); padding-bottom: var(--space-2); }
  .zs-matrix .zs-cell { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
  .zs-link { min-height: 44px; }
  /* The findings as one block per finding: area, state and finding, then what to do. */
  .zs-findings thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .zs-findings tr, .zs-findings th, .zs-findings td { display: block; border-bottom: 0; padding: var(--space-1) var(--space-2); }
  .wf-body .zs-findings .ch-table th, .wf-body .zs-findings .ch-table td { position: static; white-space: normal; }
  .zs-findings tr { border-bottom: 1px solid var(--legacy-line); padding: var(--space-2) 0; }
  .zs-findings tbody th { font-weight: 600; padding-top: var(--space-2); }
  .zs-findings tr > :has(> span:only-child:empty) { display: none; }
  .zs-matrix .zs-area { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--legacy-ink-soft); }
}
/* designer-r3-1: an exception row: title, the tag in its own column, one line in words under it;
   on a phone the tag goes under the title. */
.wf-body .zs-exception > details > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--space-2); row-gap: 2px; }
.zs-exception-line { grid-column: 2 / -1; font-weight: 400; }
.zs-exception-detail { display: block; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .wf-body .zs-exception > details > summary { grid-template-columns: auto minmax(0, 1fr); }
  .zs-exception > details > summary > .wf-status { grid-column: 2; justify-self: start; }
}
.zs-today-group .zs-today-all { display: inline-block; margin: var(--space-2) 0 0 var(--space-6); font-size: var(--text-small); }
.zs-morning-balance {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--sunken);
  color: var(--ink-2);
  font-size: var(--text-body);
  overflow-wrap: anywhere;
}
.zs-morning-balance strong { color: var(--legacy-ink); font-size: var(--text-section); }

/* The Heute cards contain names and generated titles. They wrap inside the content column
   instead of increasing the app shell beyond the viewport. */
.zs-today, .zs-today > *, .zs-today li { min-width: 0; max-width: 100%; box-sizing: border-box; }

@media (max-width: 600px) {
  .pt-main a[href="/app/portal#versammlung"], .pt-main .wf-hit {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* m13 (approved 05-heute-a): one compact row per task at every width — title and meta one line each
   (shortened by fit.mjs, whole text in title), chip and button beside them; Fristen dates in two lines */
.wf-body :is(.zs-task-title, .zs-task-meta, .zs-deadline-copy > a, .zs-deadline-copy > small)[data-fit-phone] { white-space: nowrap; overflow-wrap: normal; }
.zs-deadline-card .zs-morning-calendar time { display: grid; min-width: 3.25rem; line-height: 1.3; }
.zs-deadline-card .zs-morning-calendar time > b { color: var(--legacy-ink); font-weight: 700; }
.zs-deadline-card .zs-morning-calendar time > span { font-weight: 400; }
.zs-deadline-card .zs-deadline-copy > a { color: var(--legacy-ink); font-weight: 650; text-decoration: none; }
@media (max-width: 600px) {
  .wf-staff:has(#sv-heute:not([hidden])) .wf-page h1 { font-size: var(--text-display); white-space: nowrap; }
  .zs-morning-tasks > li:not(.zs-task-group):not(.zs-task-focus) { grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-1); }
  .zs-task-copy { grid-column: 1; grid-row: 1; }
  .zs-morning-tasks > li > .wf-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .zs-morning-tasks > li:not(.zs-task-focus) .zs-task-action { grid-column: 3; grid-row: 1; width: auto; min-width: 44px; padding-inline: var(--space-2); font-size: var(--text-small); }
}
@media (max-width: 600px) {
  /* the title link keeps its 44px tap area, reaching under the meta line instead of pushing it down */
  .wf-body .zs-morning-tasks .zs-task-title { min-height: 44px; margin-bottom: calc(1lh - 44px); }
  .zs-task-copy { gap: 0; }
}
/* m13: "Alle 11 Fristen" starts at the card inset like the rows above it (was flush on the card edge) */
.zs-deadline-card > .zs-rail-link { margin-inline: var(--space-4); margin-bottom: var(--space-3); }

/* M18: copy the approved 05-heute-a row rhythm without changing its real data or actions. */
.zs-home-layout, .zs-home-summary { hyphens: none; word-break: normal; }
.wf-body .zs-morning-tasks .zs-task-title,
.zs-morning-tasks .zs-task-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  hyphens: none;
}
.zs-auto-card .zs-section-head { align-items: center; flex-wrap: nowrap; }
.zs-auto-card .zs-section-head h2 {
  min-width: 0;
  font-family: var(--font-display);
  font-stretch: var(--font-display-stretch);
  white-space: nowrap;
}
.zs-auto-card .zs-section-head .wf-status {
  flex: none;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.zs-auto-card .zs-auto-window { height: auto; min-height: var(--space-8); padding-block: var(--space-1); }
.zs-auto-window > span { display: grid; line-height: 1.05; }
.zs-auto-window small { color: inherit; font-size: var(--text-caption); font-weight: 500; }
.zs-task-copy.zs-task-focus-head { display: flex; }
.wf-body .zs-morning-tasks > li > .wf-status::before { display: none; content: none; }
.zs-page-auto {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-min);
  padding: 0 var(--space-3);
  border: 1px solid var(--legacy-line);
  border-radius: var(--radius-full);
  background: var(--legacy-surface);
  color: var(--legacy-ink);
  font-size: var(--text-small);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.zs-page-auto > span { width: 8px; height: 8px; border-radius: 50%; background: var(--system); }
body:has(#sv-heute:not([hidden])) .wf-page-actions > .wf-portfolio-picker { display: none; }
body:has(#sv-heute:not([hidden])) .wf-autopilot-pill { display: none; }
@media (max-width: 600px) {
  .zs-home-deadlines small { overflow-wrap: normal; word-break: normal; hyphens: none; }
}
@media (max-width: 600px) {
  .zs-page-auto { display: none; }
  .zs-task-copy.zs-task-focus-head { flex-wrap: wrap; }
  .zs-task-focus-head > div { flex: 1 1 100%; }
  .zs-auto-card .zs-section-head h2 { font-size: var(--text-subtitle); letter-spacing: -.05em; }
}
