/* Authenticated workspace; public pages keep their existing navigation. */
.app-shell {
  --workspace-width: 240px;
  --workspace-top: 60px;
  background: #f7f9fa;
}
.app-shell .workspace-body { margin-left: var(--workspace-width); padding-top: var(--workspace-top); min-width: 0; }
.app-shell main { width: 100%; max-width: 1480px; padding: 24px 28px 48px; margin: 0 auto; min-width: 0; min-height: calc(100svh - 160px); }
.app-shell main [id], .app-shell #main-content, .app-shell #feedback-widget { scroll-margin-top: calc(var(--workspace-top) + 16px); }
.app-shell .workspace-menu { margin: 0; }
.workspace-menu-toggle, .workspace-scrim { display: none; }
.workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 42;
  width: var(--workspace-width);
  padding: 0 16px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.app-shell .workspace-sidebar .brand { display: flex; align-items: center; gap: 9px; height: var(--workspace-top); font-size: 1rem; text-decoration: none; }
.app-shell .workspace-sidebar .brand img { width: 28px; height: 28px; flex-basis: 28px; }
.workspace-picker { border: 1px solid #c9d6d3; border-radius: 6px; margin: 14px 0 22px; background: #fafcfb; }
.workspace-picker > summary { position: relative; padding: 10px 28px 10px 12px; cursor: pointer; list-style: none; }
.workspace-picker > summary::after { content: '\2304'; position: absolute; right: 12px; top: 24px; color: var(--muted); }
.workspace-picker summary span { display: block; color: var(--muted); font-size: 0.72rem; margin-bottom: 3px; }
.workspace-picker summary strong { display: block; font-size: 0.875rem; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.workspace-picker-options { max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); padding: 5px; }
.workspace-picker-options a { display: grid; gap: 3px; text-decoration: none; padding: 9px 7px; border-radius: 4px; }
.workspace-picker-options a:hover, .workspace-picker-options a[aria-current] { background: #e8f3ee; }
.workspace-picker-options strong { font-size: 0.82rem; }
.workspace-picker-options small { font-size: 0.75rem; color: var(--muted); }
.workspace-picker-options p { padding: 8px; font-size: 0.85rem; }
.workspace-picker-options .workspace-picker-create { color: var(--primary-dark); border-top: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }
.workspace-primary, .workspace-related, .workspace-personal { display: grid; gap: 4px; }
.workspace-sidebar nav a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; font-size: 0.875rem; line-height: 1.4; border-radius: 4px; color: #405059; text-decoration: none; }
.workspace-sidebar nav a:hover { background: #f0f4f5; color: var(--ink); }
.workspace-sidebar nav a.active { background: #e3f0e9; color: var(--primary-dark); font-weight: 700; box-shadow: inset 3px 0 var(--primary); }
.workspace-related { margin: 8px 0 12px 12px; padding-left: 8px; border-left: 1px solid var(--line); }
.workspace-sidebar .workspace-related a { font-size: 0.8rem; min-height: 36px; }
.workspace-organisation { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.workspace-organisation > summary { cursor: pointer; padding: 10px 12px; font-size: 0.8rem; color: var(--muted); }
.workspace-organisation nav { display: grid; gap: 3px; }
.workspace-personal { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.workspace-topbar { position: fixed; top: 0; right: 0; left: var(--workspace-width); height: var(--workspace-top); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.workspace-context { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; color: var(--muted); }
.workspace-profile { position: relative; flex-shrink: 0; }
.workspace-profile > summary { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 4px 6px; cursor: pointer; list-style: none; border-radius: 4px; font-size: 0.85rem; }
.workspace-profile > summary:hover { background: #f0f4f5; }
.workspace-avatar { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #e4edf5; color: #315b7d; font-size: 0.72rem; font-weight: 700; }
.workspace-profile summary > span:last-child { max-width: 180px; overflow-wrap: anywhere; }
.workspace-profile-links, .workspace-actions-menu { position: absolute; z-index: 45; right: 0; top: calc(100% + 6px); width: 240px; max-width: calc(100vw - 32px); padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgb(27 45 49 / 12%); }
.workspace-profile-links a, .workspace-actions-menu > a { display: block; padding: 10px 12px; min-height: 40px; text-decoration: none; font-size: 0.85rem; border-radius: 4px; }
.workspace-profile-links a:hover, .workspace-actions-menu > a:hover { background: #edf3f4; }
.workspace-profile-links form { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.app-shell .workspace-profile-links button, .app-shell .workspace-actions-menu button { width: 100%; text-align: left; border: 0; border-radius: 4px; padding: 10px 12px; background: transparent; color: var(--ink); font-size: 0.85rem; }
.app-shell .workspace-profile-links button:hover, .app-shell .workspace-actions-menu button:hover { background: #edf3f4; }
.workspace-page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 20px; }
.workspace-page-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.app-shell .workspace-page-head h1, .app-shell .page-head h1 { font-size: 1.65rem; line-height: 1.25; margin: 0 0 5px; text-align: left; }
.workspace-page-head p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.workspace-page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.app-shell .workspace-page-actions > .primary, .app-shell .page-head-actions > .primary, .app-shell .page-head > .primary { min-height: 40px; padding: 9px 14px; font-size: 0.85rem; }
.workspace-actions { position: relative; }
.workspace-actions > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 0.8rem; list-style: none; }
.workspace-actions > summary:hover { background: #f0f4f5; }
.workspace-actions-menu { width: 300px; max-height: calc(100svh - 180px); overflow-y: auto; }
.app-shell .workspace-actions-menu .role-disclosure { margin: 6px 0 0; padding: 6px 8px; border-top: 1px solid var(--line); }
.app-shell .workspace-actions-menu .role-disclosure > summary { font-size: 0.8rem; padding: 8px 4px; }
.app-shell .workspace-actions-menu .role-disclosure > summary span { display: none; }
.app-shell .workspace-actions-menu .role-visibility-panel { display: block; padding: 8px 4px; margin: 0; background: transparent; border: 0; }
.app-shell .workspace-actions-menu .role-visibility-panel p { font-size: 0.8rem; }
.app-shell .workspace-actions-menu .role-capability-list { display: none; }
.app-shell .page-head { margin-bottom: 20px; align-items: flex-start; }
.app-shell .page-head p:not(.eyebrow) { font-size: 0.875rem; }
.app-shell .page-head .eyebrow { font-size: 0.7rem; margin: 0 0 5px; }
.app-shell .page-head > div:first-child { flex-basis: 260px; }
.app-shell .work-page { margin-top: 0; padding-top: 0; gap: 12px; }
.app-shell .section-view-nav { margin: 0; }
.app-shell .section-view-links { gap: 4px 20px; }
.app-shell .section-view-links a { padding: 8px 0; min-height: 38px; font-size: 0.85rem; }
.app-shell .section-view-content { padding-top: 4px; }
.app-shell .year-filter-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0; padding: 8px 0; }
.app-shell .year-filter-panel .eyebrow { display: none; }
.app-shell .year-filter-panel h2 { font-size: 0.85rem; color: var(--muted); margin: 0; font-weight: 500; }
.app-shell .year-filter-form { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; width: auto; }
.app-shell .year-filter-form label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8rem; }
.app-shell .year-filter-form input { width: 90px; margin: 0; min-height: 36px; padding: 6px 8px; font-size: 0.875rem; }
.app-shell .year-filter-form button { min-height: 36px; padding: 7px 12px; font-size: 0.8rem; }
.app-shell .work-page > .panel, .app-shell .columns > .panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.app-shell .columns { gap: 24px; margin-top: 0; }
.app-shell .work-page h2 { font-size: 1.1rem; }
.app-shell .create-disclosure { margin: 0 0 8px; }
.app-shell .work-page :is(.inline-edit-box, .entry-correction-box) { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 6px 0 0; margin-top: 4px; }
.app-shell .work-page :is(.inline-edit-box, .entry-correction-box) > summary { padding: 6px 0; font-size: 0.8rem; font-weight: 600; }
.app-shell .stats { margin: 16px 0; gap: 14px; }
.app-shell .stats > div { padding: 16px; }
.app-shell .stats strong { font-size: 1.3rem; }
.workspace-export { margin: 20px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.workspace-export > summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--primary-dark); }
.app-shell .workspace-export .export-trust-panel { background: transparent; border: 0; padding: 18px 0 0; margin: 0; }
.app-shell .workspace-body .site-footer { padding: 24px 28px; border-top: 1px solid var(--line); background: transparent; }
.app-shell .workspace-body .feedback-widget { margin-right: 28px; }
.account-settings { max-width: 820px; }
.account-settings > h2 { font-size: 1.1rem; margin: 24px 0 12px; }
.app-shell .account-settings .panel { border: 0; box-shadow: none; background: transparent; padding: 0; }
.account-settings .panel > h2, .account-settings .panel > .hint { display: none; }
.account-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 0.875rem; }
.workspace-picker > summary::-webkit-details-marker,
.workspace-profile > summary::-webkit-details-marker,
.workspace-actions > summary::-webkit-details-marker { display: none; }

/* Work comes first; feeds and reports are unframed page sections. */
.app-shell .dashboard-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 28px; }
.app-shell .dashboard-section { min-width: 0; margin: 0 0 28px; padding: 0; background: transparent; }
.app-shell .dashboard-work-grid > .dashboard-section { margin: 0; }
.dashboard-section-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.app-shell .dashboard-section-title h2 { font-size: 1.1rem; margin: 0; line-height: 1.4; }
.dashboard-section-title > span, .dashboard-section-title p { color: var(--muted); font-size: 0.8rem; margin: 4px 0 0; }
.dashboard-section-title > a { font-size: 0.8rem; }
.dashboard-feed { list-style: none; margin: 0; padding: 0; }
.dashboard-feed > li { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dashboard-feed a { color: var(--ink); font-size: 0.875rem; font-weight: 600; text-decoration: none; line-height: 1.45; overflow-wrap: anywhere; }
.dashboard-feed a:hover { color: var(--primary-dark); text-decoration: underline; }
.dashboard-feed small, .dashboard-feed time, .dashboard-feed-meta { font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }
.dashboard-feed > .dashboard-feed-empty { color: var(--muted); font-size: 0.85rem; padding-block: 22px; }
.dashboard-feed-more { display: inline-block; margin-top: 12px; font-size: 0.8rem; }
.dashboard-feed-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dashboard-state { flex-shrink: 0; font-size: 0.7rem; font-weight: 600; color: #405b68; background: #e9f0f4; padding: 3px 6px; border-radius: 3px; }
.dashboard-state.is-overdue { color: #9b3939; background: #fae9e7; }
.dashboard-task-filters { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.dashboard-task-filters a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 0.75rem; text-decoration: none; }
.dashboard-task-filters a[aria-current] { color: var(--primary-dark); border-bottom-color: var(--primary); font-weight: 700; }
.dashboard-task-filters span { font-size: 0.68rem; }
.dashboard-date-feed time { color: var(--primary-dark); font-weight: 600; }
.dashboard-scope-picker { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.dashboard-scope-picker label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8rem; min-width: 0; }
.dashboard-scope-picker select { width: 300px; max-width: 100%; margin: 0; min-height: 36px; padding: 6px 8px; font-size: 0.8rem; }
.app-shell .dashboard-scope-picker button, .app-shell .dashboard-year-filter button { min-height: 36px; padding: 7px 12px; font-size: 0.8rem; }
.dashboard-year-filter { display: flex; align-items: center; gap: 8px; margin: 0; }
.dashboard-year-filter label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8rem; }
.dashboard-year-filter input { width: 84px; min-height: 36px; margin: 0; padding: 6px 8px; font-size: 0.85rem; }
.app-shell .dashboard-finance-section { border-top: 1px solid var(--line); padding-top: 22px; }
.dashboard-finance-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 16px 0; }
.dashboard-finance-metrics > div { display: grid; gap: 7px; min-width: 0; border-left: 2px solid #d4e4de; padding-left: 14px; }
.dashboard-finance-metrics span { font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }
.dashboard-finance-metrics strong { font-size: 1.3rem; overflow-wrap: anywhere; }
.dashboard-own-hausgeld { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 14px 0; border-block: 1px solid var(--line); }
.dashboard-own-hausgeld > div { display: grid; gap: 6px; }
.dashboard-own-hausgeld span, .dashboard-own-hausgeld a { font-size: 0.8rem; }
.dashboard-own-hausgeld strong { font-size: 1.2rem; }
.dashboard-chart { margin-top: 12px; font-size: 0.85rem; }
.dashboard-chart > summary { cursor: pointer; color: var(--primary-dark); padding: 8px 0; }
.dashboard-chart .bar-chart { margin: 16px 0 8px; }
.dashboard-history > li { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.dashboard-history > li > a { grid-column: 1; }
.dashboard-history > li > small { grid-column: 1; }
.dashboard-history > li > time { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.dashboard-object-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.app-shell .dashboard-section .pro-portfolio-table { min-width: 660px; }
.dashboard-role { margin: -8px 0 20px; color: var(--muted); font-size: 0.8rem; }
.dashboard-empty { padding: 16px 0 28px; }
.dashboard-empty h2 { font-size: 1.1rem; }
.dashboard-empty p, .dashboard-empty a { font-size: 0.875rem; }
.app-shell .workspace-export .community-board-section { margin: 18px 0 0; }

/* The first WEG needs only community and unit data. */
.app-shell .first-success-form { max-width: 960px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.app-shell .first-success-form h1 { font-size: 1.65rem; margin: 0 0 8px; }
.app-shell .first-success-form h2 { font-size: 1.15rem; margin: 0; }
.first-success-form .wizard-head { display: grid; gap: 16px; margin-bottom: 8px; }
.first-success-form .wizard-steps { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.first-success-form .wizard-step.active { gap: 16px; }
.first-success-form .setup-unit-count { max-width: 220px; }
.first-success-form .setup-unit-row { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 0 18px; }
.first-success-form .setup-core-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.first-success-form .unit-setup { margin: 0; }
.first-success-form .unit-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.first-success-form .unit-row-head { font-size: 0.8rem; }
.first-success-form .unit-setup-grid label { font-size: 0.85rem; }
.setup-community-result { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.setup-community-result > span { display: block; color: var(--muted); font-size: 0.75rem; margin-bottom: 5px; }
.setup-community-result > strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.setup-community-result > p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.setup-unit-result { font-size: 0.85rem; color: var(--primary-dark); font-weight: 600; }
.setup-optional { margin: 8px 0; padding-block: 16px; border-block: 1px solid var(--line); }
.setup-optional > summary, .setup-demo-option > summary { font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.setup-optional-content { display: grid; gap: 16px; padding-top: 24px; }
.setup-optional-content h3 { margin: 8px 0 0; font-size: 1rem; }
.setup-optional-content > button { justify-self: start; }
.setup-saved-result { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.setup-saved-status { display: inline-block; margin: 0 0 14px; font-size: 0.85rem; color: var(--primary-dark); font-weight: 600; }
.setup-saved-totals { font-size: 0.9rem; font-weight: 600; }
.setup-saved-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 0; margin: 0 0 16px; list-style: none; }
.setup-saved-units > li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; min-width: 0; }
.setup-saved-units strong { font-weight: 500; overflow-wrap: anywhere; }
.setup-saved-units span { flex-shrink: 0; color: var(--muted); }
.setup-next-actions { margin-bottom: 28px; }
.app-shell .setup-next-actions h2 { font-size: 1.05rem; margin: 0 0 12px; }
.setup-next-actions > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.setup-start-steps { list-style: none; max-width: 820px; padding: 0; margin: 24px 0; }
.setup-start-steps > li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.setup-start-steps > li > span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 4px; background: #e3f0e9; color: var(--primary-dark); font-size: 0.85rem; }
.app-shell .setup-start-steps h2 { font-size: 1.05rem; margin: 0 0 6px; }
.setup-start-steps p, .setup-later-note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.setup-demo-option { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.setup-demo-option form { margin: 14px 0; }
.setup-demo-option > a { font-size: 0.85rem; }

/* Cashflow, obligations and current plans remain visually distinct. */
.hausgeld-overview { min-width: 0; max-width: 100%; }
.finance-boundary { padding: 12px 0; margin: 4px 0 18px; border-block: 1px solid var(--line); color: #40545c; font-size: 0.85rem; line-height: 1.6; }
.finance-keyfigures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 20px 0; }
.finance-keyfigures > div { display: grid; gap: 7px; padding-left: 12px; border-left: 2px solid #c8dbd6; min-width: 0; }
.finance-keyfigures span { font-size: 0.78rem; color: var(--muted); }
.finance-keyfigures strong { font-size: 1.2rem; overflow-wrap: anywhere; }
.finance-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.finance-filters label { display: grid; gap: 5px; min-width: 0; margin: 0; font-size: 0.8rem; flex: 1 1 160px; }
.finance-filters input, .finance-filters select { margin: 0; width: 100%; min-height: 40px; font-size: 0.85rem; padding: 8px 10px; }
.app-shell .finance-filters button { min-height: 40px; padding: 8px 14px; font-size: 0.8rem; }
.hausgeld-matrix-wrap { max-width: 100%; overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 4px; }
.hausgeld-matrix { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; text-align: left; }
.hausgeld-matrix caption { text-align: left; font-size: 0.75rem; color: var(--muted); padding: 12px; background: #fff; }
.hausgeld-matrix th, .hausgeld-matrix td { padding: 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; font-size: 0.8rem; width: 144px; }
.hausgeld-matrix thead th { background: #edf2f5; font-weight: 600; }
.hausgeld-matrix th:first-child { position: sticky; left: 0; z-index: 1; min-width: 185px; width: 185px; max-width: 185px; overflow-wrap: anywhere; background: #fff; }
.hausgeld-matrix thead th:first-child { z-index: 2; background: #edf2f5; }
.hausgeld-matrix small { display: block; margin-top: 8px; color: var(--muted); font-weight: 400; line-height: 1.5; }
.hausgeld-matrix tr:last-child > * { border-bottom: 0; }
.hausgeld-cell { display: grid; gap: 7px; min-width: 124px; min-height: 84px; padding: 6px; color: var(--ink); text-decoration: none; border-radius: 3px; }
.hausgeld-cell:hover { outline: 1px solid var(--primary); }
.hausgeld-cell strong { font-size: 0.76rem; }
.hausgeld-cell span { font-size: 0.72rem; line-height: 1.6; }
.hausgeld-cell.is-open { background: #fbeeed; color: #8c3534; }
.hausgeld-cell.is-partial { background: #fff2d6; color: #73591d; }
.hausgeld-cell.is-paid { background: #e5f2eb; color: #285d43; }
.hausgeld-cell.is-credit { background: #e7eff8; color: #315c85; }
.hausgeld-cell.is-plan, .hausgeld-cell.is-neutral { color: #65727a; background: #f4f6f7; }
.hausgeld-cell.is-review { background: #fff2d6; color: #73591d; }
.hausgeld-month-detail { border-left: 3px solid #4e7e9f; padding: 10px 16px; margin: 20px 0; }
.hausgeld-month-detail h3 { margin: 0 0 8px; font-size: 1rem; }
.hausgeld-month-detail p { margin: 0; font-size: 0.85rem; line-height: 1.6; }
.app-shell .finance-entry-list { display: grid; gap: 0; margin: 0; }
.app-shell .finance-entry-list > .finance-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 12px 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0; background: transparent; }
.finance-entry-description { display: grid; gap: 6px; min-width: 0; }
.finance-entry-description > b { font-size: 0.9rem; overflow-wrap: anywhere; }
.finance-entry-description > span { font-size: 0.76rem; color: var(--muted); overflow-wrap: anywhere; }
.finance-entry-description .finance-record-label { color: #315b7e; font-weight: 600; }
.finance-entry-description .finance-record-label.is-receivable { color: #8c562f; }
.finance-entry-description .finance-record-label.is-payable { color: #7b5c20; }
.finance-entry-amount { font-size: 0.95rem; white-space: nowrap; }
.finance-entry-amount.obligation { color: #556269; }
.finance-entry-actions { min-width: 0; }
.finance-entry-actions:has(> .hint) { grid-column: 1 / -1; justify-self: end; }
.app-shell .entry-actions > summary { width: 40px; height: 40px; justify-content: center; padding: 4px; font-size: 1.4rem; }
.app-shell .entry-actions .workspace-actions-menu { width: 420px; max-width: calc(100vw - 40px); }
.entry-actions .entry-correction-box { margin: 0; border: 0; padding: 0; }
.entry-actions .entry-correction-box > summary { font-size: 0.85rem; padding: 10px; cursor: pointer; }
.entry-actions .entry-correction-box form { padding: 10px; }
.finance-pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.workflow-notice { padding: 12px 16px; border-left: 3px solid #19725d; }
.document-list > li:target, .workflow-list > li:target, .hausgeld-month-detail:target { outline: 2px solid #19725d; outline-offset: 4px; scroll-margin-top: 90px; }
.workflow-extra-fields { margin-block: 12px; }
.workflow-extra-fields > summary { padding-block: 10px; cursor: pointer; }
.post-document-box > summary { font-weight: 600; cursor: pointer; padding-block: 12px; }
.document-search-form .checkbox { display: flex; align-items: center; gap: 8px; }
.document-search-form input[type="checkbox"] { width: 18px; height: 18px; }
.hausgeld-month-detail .finance-entry { min-width: 0; }

@media (max-width: 1100px) {
  .app-shell { --workspace-width: 216px; }
  .app-shell main { padding-inline: 22px; }
  .workspace-sidebar { padding-inline: 12px; }
  .workspace-topbar { padding-inline: 22px; }
  .app-shell .workspace-body .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  html.workspace-drawer-open { overflow: hidden; }
  .app-shell { --workspace-width: 280px; --workspace-top: 60px; }
  .app-shell .workspace-body { margin-left: 0; }
  .workspace-topbar { left: 0; padding: 0 16px 0 82px; }
  .workspace-menu-toggle { display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; top: 10px; height: 40px; padding: 8px 10px; z-index: 50; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font-size: 0.8rem; list-style: none; }
  .workspace-menu-toggle::-webkit-details-marker { display: none; }
  .workspace-menu[open] .workspace-menu-toggle { left: calc(var(--workspace-width) - 70px); }
  .workspace-menu[open] .workspace-scrim { display: block; position: fixed; inset: 0; width: 100%; height: 100svh; margin: 0; padding: 0; z-index: 41; border: 0; border-radius: 0; background: rgb(21 36 41 / 30%); }
  .workspace-sidebar { padding-inline: 16px; }
  .app-shell .workspace-sidebar .brand { max-width: 190px; }
  .app-shell main { padding: 22px 20px 40px; }
  .app-shell .page-head > div:first-child { flex-basis: auto; }
  .app-shell .workspace-body .site-footer { padding-inline: 20px; }
  .app-shell .workspace-body .feedback-widget { margin-right: 20px; }
  .workspace-context { font-size: 0.8rem; }
  .workspace-profile summary > span:last-child { max-width: 110px; }
  .app-shell .section-view-picker { padding-bottom: 12px; }
  .app-shell .section-view-picker label { font-size: 0.8rem; }
  .app-shell .dashboard-work-grid { gap: 24px; }
}
@media (max-width: 760px) {
  .app-shell .dashboard-work-grid { grid-template-columns: 1fr; }
  .finance-keyfigures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .app-shell main { padding: 20px 16px 36px; }
  .workspace-profile summary > span:last-child { display: none; }
  .workspace-profile > summary { padding: 4px; }
  .workspace-page-head { gap: 12px; }
  .workspace-page-actions { width: 100%; }
  .workspace-page-actions > .primary { flex: 1; text-align: center; }
  .workspace-page-actions .workspace-actions-menu { width: min(300px, calc(100vw - 32px)); }
  .app-shell .workspace-body .grid { grid-template-columns: 1fr; }
  .app-shell .columns { grid-template-columns: 1fr; }
  .app-shell .year-filter-panel h2 { flex-basis: 100%; }
  .app-shell .year-filter-form { justify-content: flex-end; width: 100%; }
  .app-shell .workspace-body .site-footer { padding-inline: 16px; }
  .app-shell .workspace-body .feedback-widget { margin-right: 16px; }
  .app-shell .dashboard-work-grid, .dashboard-object-list { grid-template-columns: 1fr; }
  .dashboard-finance-metrics { gap: 14px; grid-template-columns: 1fr; }
  .dashboard-finance-metrics > div { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .dashboard-finance-metrics strong { font-size: 1.15rem; }
  .dashboard-history > li { grid-template-columns: 1fr; }
  .dashboard-history > li > time { grid-column: 1; grid-row: auto; }
  .dashboard-scope-picker label { width: 100%; }
  .dashboard-scope-picker select { flex: 1; min-width: 0; width: 0; }
  .dashboard-scope-picker button { margin-left: auto; }
  .first-success-form .two, .first-success-form .unit-setup-grid { grid-template-columns: minmax(0, 1fr); }
  .setup-saved-units, .setup-next-actions > ul { grid-template-columns: minmax(0, 1fr); }
  .first-success-form .wizard-actions button { width: 100%; }
  .finance-filters label { flex-basis: 100%; }
  .finance-filters button { margin-left: auto; }
  .hausgeld-matrix th:first-child { min-width: 135px; width: 135px; max-width: 135px; }
  .app-shell .finance-entry-list > .finance-entry { grid-template-columns: minmax(0, 1fr) 40px; gap: 10px; }
  .finance-entry-description { grid-column: 1 / -1; }
  .finance-entry-amount { grid-column: 1; }
  .finance-entry-actions { grid-column: 2; }
}
