


:root {
  --ink: #f4f5f3;
  --surface: #ffffff;
  --surface-2: #f0f2ef;
  --sunk: #f7f8f6;
  --line: #e4e7e2;
  --line-strong: #d3d7d0;

  --text: #1a2026;
  --text-dim: #5c6670;
  --text-faint: #8a939d;

  --brass: #9a7a2e;
  --brass-soft: rgb(154 122 46 / 12%);

  --pos: #2e7d5b;
  --neg: #b0492e;
  --info: #3d6e9e;

  --pos-soft: rgb(46 125 91 / 10%);
  --neg-soft: rgb(176 73 46 / 10%);
  --info-soft: rgb(61 110 158 / 10%);

  --focus: var(--brass);
  --on-brass: #1a1206;
  --on-solid: #f4f5f3;

  

  --table-max: calc(100dvh - 16rem);

  

  --tap: 44px;
  --tap-least: 24px;

  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --shadow-md: 0 10px 30px -16px rgb(26 32 38 / 22%);
  --shadow-lg: -26px 0 64px -30px rgb(26 32 38 / 26%);

  --sans:
    "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, system-ui, sans-serif;
  --mono:
    "SF Mono", "JetBrains Mono", "Cascadia Code", ui-monospace, Menlo, monospace;

  color-scheme: light;
}



:root[data-theme="dark"] {
  --ink: #0e1114;
  --surface: #151a1f;
  --surface-2: #1b2128;
  --sunk: #10151a;
  --line: #262e37;
  --line-strong: #333d48;
  --text: #e8ecf1;
  --text-dim: #98a2af;
  --text-faint: #66707c;
  --brass: #c9a24e;
  --brass-soft: rgb(201 162 78 / 14%);
  --pos: #5bb08c;
  --neg: #d2704f;
  --info: #6e9ac9;
  --pos-soft: rgb(91 176 140 / 12%);
  --neg-soft: rgb(210 112 79 / 12%);
  --info-soft: rgb(110 154 201 / 12%);
  --on-solid: #0e1114;
  --shadow-md: 0 10px 30px -14px rgb(0 0 0 / 55%);
  --shadow-lg: -26px 0 64px -28px rgb(0 0 0 / 68%);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 580;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1rem;
}

 
.wordmark {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brass);
  width: max-content;
}

a.wordmark {
  cursor: pointer;
  transition: opacity 120ms ease;
}

a.wordmark:hover {
  opacity: 0.72;
}

.wordmark--lg {
  font-size: 1.5rem;
  letter-spacing: 0.4em;
}

 
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

 
.fig {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.01em;
  color: var(--text);
}

.fig__frac {
  font-size: 0.84em;
  color: var(--text-dim);
}

.fig__unit {
  font-size: 0.84em;
  color: var(--text-faint);
  margin-left: 0.3em;
}

.fig--pos {
  color: var(--pos);
}

.fig--neg {
  color: var(--neg);
}

.fig--pos .fig__frac,
.fig--neg .fig__frac {
  color: currentcolor;
  opacity: 0.72;
}

 


.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field > span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

input,
select,
textarea {
  --field-padding-block: 0.55rem;
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: var(--field-padding-block) 0.7rem;
  

  text-overflow: ellipsis;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}



textarea {
  line-height: 1.55;
  resize: vertical;
}



select {
  min-height: calc(1lh + 2 * var(--field-padding-block) + 2px);
}



input[readonly] {
  background: var(--sunk);
  color: var(--text-dim);
}

.field--compact input,
.field--compact select {
  --field-padding-block: 0.42rem;
  padding: var(--field-padding-block) 0.6rem;
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}



.filepick {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.filepick__name {
  min-width: 0;
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

 
.filepick__name--empty {
  color: var(--text-faint);
}

:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}

 
.btn {
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  padding: 0.52rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    opacity 120ms ease;
}

.btn--primary {
  background: var(--text);
  color: var(--on-solid);
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--quiet {
  border-color: var(--line-strong);
  color: var(--text-dim);
}

.btn--quiet:hover {
  background: var(--surface-2);
  color: var(--text);
}

 
.btn--danger {
  border-color: var(--line-strong);
  color: var(--neg);
}



.btn--apart {
  margin-right: auto;
}

.btn--danger:hover {
  background: var(--neg-soft);
  border-color: var(--neg);
}

.btn--block {
  width: 100%;
}

.btn--icon {
  min-width: var(--tap-least);
  padding: 0.42rem 0.55rem;
  color: var(--text-dim);
  border-color: var(--line-strong);
  line-height: 1;
}

.btn--icon:hover {
  color: var(--brass);
}



.dropzone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

.dropzone--over {
  border-color: var(--brass);
  background: var(--brass-soft);
}

.dropzone__text {
  font-size: 0.9rem;
  color: var(--text-dim);
}



.dropzone .linkish {
  font-size: 0.9rem;
}

.dropzone__or {
  font-size: 0.8rem;
  color: var(--text-faint);
}

 

 
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
   
  overflow: hidden;
}



.panel.record-card {
  overflow: visible;
}

.panel--pad {
  padding: 1.25rem;
}



.panel__scroll {
  max-height: var(--table-max);
  overflow-x: auto;
  overflow-y: auto;
}



.panel__scroll--capped {
  max-height: min(28rem, var(--table-max));
}

 
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 21rem));
  gap: 0.7rem;
}



.tiles--fill {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.tile {
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  gap: 0.35rem;
}

.tile__name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.tile__value {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.tile__meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

 
.dtable {
  display: grid;
  gap: 0.8rem;
}

.dtable__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}



.dtable__bar > :not(.dtable__filters) {
  margin-left: auto;
}



.dtable__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 16rem;
  min-width: 0;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 14rem;
  min-width: 0;
}

.search__icon {
  position: absolute;
  left: 0.65rem;
  width: 1rem;
  height: 1rem;
  color: var(--text-faint);
  pointer-events: none;
}

.search__input {
  width: 100%;
  padding-left: 2.15rem;
}



.select--compact {
  --field-padding-block: 0.45rem;
  width: auto;
  max-width: 13rem;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  padding: var(--field-padding-block) 0.6rem;
  font-size: 0.9rem;
}

.th-sort {
  cursor: pointer;
  user-select: none;
  transition: color 120ms ease;
}

.th-sort:hover {
  color: var(--text-dim);
}

.th-sort::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  opacity: 0.5;
}

.th-sort.is-sorted {
  color: var(--brass);
}

.th-sort.is-sorted[data-dir="asc"]::after {
  content: " ↑";
  opacity: 1;
}

.th-sort.is-sorted[data-dir="desc"]::after {
  content: " ↓";
  opacity: 1;
}

.num.th-sort::after {
  width: auto;
}



.dtable__foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}



.dtable__count,
.dtable__range {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}



.list-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}



.dtable__span {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
}

.dtable__span .field {
  flex: 0 1 10rem;
  margin: 0;
}

.dtable__span-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.82rem;
  color: var(--neg);
}



.dtable__total {
  font-size: 0.82rem;
  font-weight: 550;
}

.dtable__pager {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.dtable__pager .btn:disabled {
  opacity: 0.4;
  cursor: default;
}

 
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ledger th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--sunk);
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ledger td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}



.ledger .linkish {
  font-size: inherit;
}

.ledger tbody tr {
  transition: background 90ms ease;
}

.ledger tbody tr[data-clickable] {
  cursor: pointer;
}

.ledger tbody tr[data-clickable]:hover {
  background: var(--surface-2);
}



.ledger__under {
  display: none;
}



.ledger__open {
  display: block;
  

  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-variant-numeric: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}



.ledger tbody tr[data-clickable]:has(.ledger__open:focus-visible) {
  background: var(--surface-2);
}



.ledger__desk {
  display: contents;
}

.ledger__open.ledger__open--narrow {
  display: none;
}

.ledger__open:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}

.ledger tbody tr:last-child td {
  border-bottom: 0;
}



.ledger tfoot td {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line-strong);
  font-weight: 600;
  vertical-align: top;
}

 
.ledger tbody tr[data-opening] td {
  background: var(--sunk);
  color: var(--text-dim);
}

.cell-date {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  white-space: nowrap;
}

.cell-strong {
  font-weight: 550;
}

.cell-dim {
  color: var(--text-dim);
  max-width: 34rem;
}



.cell-note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  white-space: nowrap;
}



.cell-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.cell-struck,
.cell-struck .fig {
  text-decoration: line-through;
  color: var(--text-dim);
}

.num {
  text-align: right;
  white-space: nowrap;
}



.ledger th.num,
.ledger td.num {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

 
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.16em 0.55em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 0.44em;
  height: 0.44em;
  border-radius: 999px;
  background: currentcolor;
}

.badge--pos {
  color: var(--pos);
  border-color: color-mix(in srgb, var(--pos) 35%, transparent);
  background: var(--pos-soft);
}

.badge--neg {
  color: var(--neg);
  border-color: color-mix(in srgb, var(--neg) 35%, transparent);
  background: var(--neg-soft);
}

.badge--info {
  color: var(--info);
  border-color: color-mix(in srgb, var(--info) 35%, transparent);
  background: var(--info-soft);
}

.badge--brass {
  color: var(--brass);
  border-color: color-mix(in srgb, var(--brass) 35%, transparent);
  background: var(--brass-soft);
}

 
.facts {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
  gap: 0.55rem 1rem;
  margin: 0;
  font-size: 0.88rem;
}

.facts dt {
  color: var(--text-faint);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  padding: 0.85rem;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-dim);
}



.report-preview {
  white-space: pre;
  overflow-wrap: normal;
}

.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
}

 
.sheet {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 20;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgb(6 8 10 / 45%);
}

.sheet__panel {
  position: relative;
  width: min(31rem, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: sheet-in 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}



.sheet__panel--wide {
  width: min(52rem, 100%);
}

@keyframes sheet-in {
  from {
    transform: translateX(2rem);
    opacity: 0;
  }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.sheet__head > .btn {
  flex: none;
}



.sheet__head > div {
  min-width: 0;
}

.sheet__amount {
  font-size: 1.7rem;
  font-weight: 300;
  overflow-wrap: anywhere;
  hyphens: auto;
}



@media (max-width: 860px) {
  .sheet__amount {
    font-size: 1.35rem;
  }
}



.sheet__sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}



.sheet__body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 1.35rem;
}

.sheet__body > * {
  flex: 0 0 auto;
}



.sheet__body > .record-form__actions:last-child {
  margin-top: auto;
}

 



.is-reserved {
  visibility: hidden;
}



.skeleton {
  display: grid;
  gap: 0.55rem;
  pointer-events: none;
}

.skeleton__head,
.skeleton__line {
  border-radius: 3px;
  background: var(--line);
}

.skeleton__head {
  width: 40%;
  height: 1.1rem;
}

.skeleton__line {
  height: 0.8rem;
}



.skeleton--row .skeleton__line {
  height: 1.3rem;
}

.skeleton__line:nth-child(2) {
  width: 85%;
}

.skeleton__line:nth-child(3) {
  width: 60%;
}



button[data-running][aria-busy="true"] {
  cursor: progress;
  background: var(--sunk);
  color: var(--text-dim);
}

button[data-running][aria-busy="true"]::after {
  content: " · " attr(data-running);
  font-weight: 400;
  color: var(--text-faint);
}



@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: skeleton-breathe 1.6s ease-in-out infinite;
  }

  @keyframes skeleton-breathe {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.55;
    }
  }

  

  button[data-running][aria-busy="true"]::after {
    animation: running-breathe 1.6s ease-in-out infinite;
  }

  @keyframes running-breathe {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.45;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}



.sheet--modal {
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.sheet--modal .sheet__panel {
  width: min(34rem, 100%);
  height: auto;
  max-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  animation: modal-in 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}



.sheet--modal .sheet__head > [data-close] {
  display: none;
}

@keyframes modal-in {
  from {
    transform: scale(0.98);
    opacity: 0;
  }
}



.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 0.3rem 0.1rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

.switch:hover,
.switch[aria-checked="true"] {
  color: var(--text);
}

.switch__track {
  position: relative;
  flex: none;
  width: 2.1rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--sunk);
  transition:
    background 140ms ease,
    border-color 140ms ease;
}

.switch__dot {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--text-faint);
  transition:
    transform 140ms ease,
    background 140ms ease;
}

.switch[aria-checked="true"] .switch__track {
  background: var(--brass);
  border-color: var(--brass);
}

.switch[aria-checked="true"] .switch__dot {
  background: var(--on-solid);
  transform: translateX(0.95rem);
}



.sheet__group {
  display: contents;
}




:root {
  --rail: 236px;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
}

 
.signin {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.signin__card {
  width: min(23rem, 100%);
  display: grid;
  gap: 1rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.signin__lead {
  margin: 0.25rem 0 0.75rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.signin__error {
  margin: 0;
  color: var(--neg);
  font-size: 0.85rem;
}

 



.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100dvh;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-right: 1px solid var(--line);
  height: 100%;
  

  overflow: visible;
}





.rail__nav {
  display: grid;
  gap: 0.1rem;
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}



.rail__section {
  margin: 1.1rem 0 0.2rem;
  padding: 0 0.7rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}



.rail__lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  padding: 0.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.lang {
  padding: 0.3rem 0.5rem;
  border: 1px solid transparent;
  border-radius: calc(var(--r-sm) - 3px);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.lang:hover {
  color: var(--text);
}

.lang.is-active {
  background: var(--surface);
  color: var(--brass);
  border-color: var(--line);
}

 
.rail__link {
  padding: 0.5rem 0.7rem;
  border-left: 2px solid transparent;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition:
    color 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.rail__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.rail__link.is-active {
  color: var(--brass);
  border-left-color: var(--brass);
  font-weight: 550;
}



.rail__link--nested {
  display: none;
}



.rail__foot {
  display: grid;
  flex: none;
}

 
.usermenu {
  position: relative;
}

.usercard {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
}

.usercard:hover,
.usercard[aria-expanded="true"] {
  background: var(--surface-2);
}

.usercard__chev {
  flex: none;
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 150ms ease;
}

.usercard[aria-expanded="true"] .usercard__chev {
  transform: rotate(180deg);
}

.usermenu__pop {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 0.4rem;
  padding: 0.25rem;
  display: grid;
  gap: 0.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.usermenu__pop[hidden] {
  display: none;
}

.usermenu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.usermenu__item:hover {
  background: var(--surface-2);
}

.usermenu__item--danger {
  color: var(--neg);
}

.usermenu__item--danger:hover {
  background: var(--neg-soft);
}

.usermenu__lang {
  display: grid;
  gap: 0.35rem;
  padding: 0.4rem 0.4rem 0.2rem;
}

.usermenu__label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.usermenu__divider {
  height: 1px;
  margin: 0.3rem 0;
  background: var(--line);
}

.rail__avatar {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brass);
  border: 0;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 650;
}

.rail__id {
  display: grid;
  flex: 1;
  min-width: 0;
}



.rail__name {
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail__email {
  font-size: 0.74rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.main {
  padding: 1.5rem var(--pad) var(--pad);
  display: grid;
  gap: 1.1rem;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
}

.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

 
.dashboard {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

 
#uebersicht-body {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.kennzahl-reihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 0.8rem;
}

.kennzahl {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.kennzahl__label {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.kennzahl__wert {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.kennzahl__leer {
  color: var(--text-dim);
}



.kennzahl__fenster {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.kennzahl__rest {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.kennzahl__rest-grund {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  line-height: 1.4;
}

.verlauf {
  display: grid;
  gap: 0.15rem;
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.7rem;
}

.verlauf__zeile {
  display: grid;
  grid-template-columns: auto minmax(8rem, 1fr) auto;
  gap: 0.15rem 0.8rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.verlauf__zeit {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}



.verlauf__was {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}



.verlauf__satz {
  font-size: 0.88rem;
  min-width: 0;
  overflow-wrap: anywhere;
}



.verlauf__satz--roh {
  color: var(--text-faint);
  font-family: var(--mono);
}



.verlauf__punkt {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--text-faint);
  flex: none;
  align-self: center;
}

.verlauf__punkt--pos {
  background: var(--pos);
}

.verlauf__punkt--neg {
  background: var(--neg);
}

.verlauf__punkt--brass {
  background: var(--brass);
}



.verlauf__zusatz {
  font-size: 0.74rem;
  color: var(--text-faint);
  font-family: var(--mono);
  min-width: 0;
  overflow-wrap: anywhere;
}



.verlauf__wo {
  font-size: 0.74rem;
  color: var(--text-faint);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7rem;
}



@media (max-width: 860px) {
  .verlauf__zeile {
    grid-template-columns: 1fr minmax(0, auto);
  }

  .verlauf__was {
    grid-column: 1 / -1;
    order: 3;
  }
}

.aufgaben {
  display: grid;
  gap: 0.4rem;
}



.aufgabe {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font: inherit;
  color: inherit;
  text-align: left;
}

button.aufgabe {
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

button.aufgabe:hover {
  border-color: var(--line);
  background: var(--surface);
}

.aufgabe__zahl {
  flex: 0 0 4.5rem;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}



.aufgabe__text {
  flex: 1 1 14rem;
  min-width: 0;
}

.aufgabe__name {
  line-height: 1.35;
}

.aufgabe__hinweis {
  font-size: 0.8rem;
  color: var(--text-dim);
}



.aufgabe--erledigt .aufgabe__zahl,
.aufgabe--erledigt .aufgabe__name {
  color: var(--text-dim);
}

.aufgabe--unpruefbar .aufgabe__zahl,
.aufgabe--unpruefbar .aufgabe__name {
  color: var(--text-faint);
}

.aufgabe--unpruefbar {
  background: transparent;
  border-color: var(--line);
  border-style: dashed;
}



.tiles--strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.tiles--strip .tile {
  flex: 1 1 10rem;
  align-content: start;
  gap: 0.1rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 0;
}

.tiles--strip .tile__name {
  font-size: 0.66rem;
}

.tiles--strip .tile__value {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
}

.tiles--strip .tile__meta {
  font-size: 0.72rem;
}

 

.aufgabe__marke {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.ueb-kopf {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.ueb-luecke-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

 
.crumb {
  font: inherit;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.86rem;
  transition: color 120ms ease;
}

.crumb:hover {
  color: var(--brass);
}



#benutzer {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}



.dtable__bar .btn {
  flex: none;
  padding: 0.42rem 0.9rem;
  font-size: 0.85rem;
}

.stack {
  display: grid;
  gap: 0.7rem;
}

 
.soon-state {
  display: grid;
  gap: 0.5rem;
  place-items: start;
  max-width: 40rem;
  padding: 2rem 1.5rem;
  background: var(--sunk);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

.soon-state__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-dim);
}

 
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}



.chips__satz {
  align-self: center;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.78rem;
  white-space: nowrap;
}



.chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

 


.memberships {
  display: grid;
  gap: 0.35rem;
}

.membership {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 0.86rem;
}

.membership__name {
  min-width: 0;
  overflow-wrap: anywhere;
}



.membership__role {
  width: auto;
  field-sizing: content;
  border: 0;
  background: transparent;
  padding: 0 0.1rem;
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
}

.membership__x,
.chip__x {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.membership__x:hover,
.chip__x:hover {
  color: var(--neg);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
}



.check input {
  width: auto;
  flex: none;
  accent-color: var(--brass);
}



.check--lead {
  align-items: flex-start;
  gap: 0.4rem;
  font-size: inherit;
  color: inherit;
}

.check--lead input {
  margin: 0.2rem 0 0;
}

 
.field__hint {
  font-size: 0.72rem;
  color: var(--text-faint);
}



.field__hint--warnung {
  color: var(--neg);
}

 
.sheet-ident {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sheet-ident__iban {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.sheet-ident__meta {
  font-size: 0.78rem;
  color: var(--text-faint);
}



.zahlung {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.zahlung:last-child {
  border-bottom: 0;
}

.zahlung__when {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.zahlung__amount {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-variant-numeric: tabular-nums;
}

.zahlung__purpose {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}



[data-panel] {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

[data-panel][hidden] {
  display: none;
}

 
.history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.history li {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--sunk);
  font-size: 0.86rem;
}

.raw-label {
  margin-bottom: 0.45rem;
}

 
#eigentuemer-list {
  max-width: 68rem;
}

 
.cell-key {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  white-space: nowrap;
}

.record {
  display: grid;
  gap: 1.35rem;
  align-content: start;
  max-width: 68rem;
  animation: record-in 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes record-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
}

.record__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.record__ident {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.record__key {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--brass);
}



.record__name-mark {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.record__name {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
}

.record__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}



.record__pager {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}



.record__pager .btn:disabled {
  opacity: 0.4;
  cursor: default;
}

 
.record__pager-position {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-dim);
}



.record__cards {
  columns: 2;
  column-gap: 1rem;
}

.record__cards > *,
.record__slot > * {
  break-inside: avoid;
  margin-bottom: 1rem;
}



@media (max-width: 860px) {
  .record__cards {
    columns: 1;
  }

  .segmented {
    flex-wrap: wrap;
  }
}

.record-card {
  padding: 1.3rem 1.4rem;
  display: grid;
  gap: 1.1rem;
  align-content: start;
}



.record-card > .badge {
  justify-self: start;
}



.notiz-zelle {
  display: grid;
  gap: 0.15rem;
}



.notiz-kurz {
  white-space: nowrap;
}



.record-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.record-card__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.record-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10.5rem, 100%), 1fr));
  gap: 1.05rem 1.4rem;
}



.record__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.record__crumb {
  justify-self: start;
  margin-bottom: -0.5rem;
}

 


.letterhead {
  column-span: all;
  padding: 1.6rem 1.7rem;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  gap: 0.9rem;
  align-content: start;
}



.letterhead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.letterhead__rule {
  width: 2.75rem;
  height: 2px;
  background: var(--brass);
}

.letterhead__block {
  display: grid;
  gap: 0.12rem;
  font-size: 1.02rem;
  line-height: 1.5;
}

.letterhead__name {
  font-weight: 500;
  letter-spacing: -0.005em;
}

.letterhead__line {
  color: var(--text-dim);
}

 
.letterhead__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.83rem;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}

.letterhead__reach {
  white-space: nowrap;
}

.letterhead__note {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}



.tabs {
  display: flex;
  gap: 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}



.tab {
  flex-shrink: 0;
  padding: 0 0 0.7rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.93rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 120ms ease,
    border-color 120ms ease;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: var(--brass);
  border-bottom-color: var(--brass);
  font-weight: 550;
}



.page-tabs {
  margin-bottom: 0;
  overflow-x: visible;
  flex-wrap: wrap;
}

.page-tabs[hidden] {
  display: none;
}

 
.segmented {
  display: flex;
  padding: 0.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}



.segmented__option {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: calc(var(--r-sm) - 3px);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.segmented__option:hover {
  color: var(--text);
}

.segmented__option.is-active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--brass);
  font-weight: 550;
}



.segmented__option .badge {
  padding: 0.05em 0.42em;
  font-size: 0.9em;
  font-weight: 600;
}

.segmented__option .badge::before {
  display: none;
}

 
.track {
  height: 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.track__let {
  height: 100%;
  background: var(--pos);
}

.track__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.track__vacant {
  color: var(--text-faint);
}



.record__slot {
  display: contents;
}




.fact {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}



.record-facts > * {
  grid-row: span 2;
}

.record-facts > .fact {
  grid-template-rows: subgrid;
}

.fact__label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.fact__value {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.fact__value--data {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fact__value--empty {
  color: var(--text-faint);
}



.record-facts > .fact--wide,
.facts > .fact--wide {
  grid-column: 1 / -1;
}



.tabs--sub {
  gap: 1.2rem;
  border-bottom: 0;
  margin-top: -0.6rem;
  margin-bottom: 1.1rem;
}

.tabs--sub .tab {
  padding-bottom: 0.35rem;
  font-size: 0.85rem;
}

 
.lease-list {
  display: grid;
  gap: 0.55rem;
}

.lease {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(50%);
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.lease:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lease__name {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.lease__span {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}

.lease .badge {
  grid-row: 1 / span 2;
  grid-column: 2;
}



.lease__tools {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



.lease__tools .btn {
  flex: none;
}

.track__span {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.linkish {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brass);
  font: inherit;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
}

.linkish:hover {
  text-decoration: underline;
}



.fact__value--data:has(button) {
  overflow: visible;
}



.linkish .fig,
.linkish .fig__int,
.linkish .fig__frac,
.linkish .fig__unit {
  color: currentcolor;
}

.linkish .fig__frac,
.linkish .fig__unit {
  opacity: 0.72;
}



.channel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.channel-list {
  display: grid;
  gap: 0.55rem;
}

.channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 0.75rem;
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.channel:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.channel[data-clickable],
.lease[data-clickable] {
  cursor: pointer;
}



.lease__span .linkish {
  font-family: var(--sans);
  font-size: inherit;
}

.lease[data-clickable]:hover .lease__name {
  color: var(--brass);
}



.lease__failure {
  grid-column: 1 / -1;
}

.lease__failure:empty {
  display: none;
}

.channel[data-clickable]:hover .channel__value {
  color: var(--brass);
}

.channel__value {
  font-size: 1rem;
  overflow-wrap: anywhere;
  transition: color 120ms ease;
}

.channel__meta {
  grid-column: 1;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.channel .badge {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.linkish--small {
  font-size: 0.82rem;
}

.record-form {
  display: grid;
  gap: 1.1rem;
}

.record-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1rem;
}



.record-form__grid--four {
  grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr));
}



.reach-facts {
  grid-template-columns: fit-content(14rem) minmax(0, 1fr);
  gap: 0.35rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.reach-facts dd {
  font-variant-numeric: tabular-nums;
}



.record-form__stack {
  display: grid;
  gap: 0.6rem;
}



.record-form__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.record-form__actions .btn {
  flex: none;
}



.record-form__actions--links {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  

  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  

  .rail {
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 0.85rem;
    padding-block: 0.25rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  

  .rail__nav {
    order: 4;
    display: flex;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin: 0;
    min-height: auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  

  .rail .mandant {
    flex: 1 1 0;
    min-width: 0;
    max-width: 15rem;
  }

  .rail .mandant__name {
    -webkit-line-clamp: 1;
  }

  

  .rail__section {
    display: none;
  }

  .rail__link {
    flex: none;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .rail__link.is-active {
    border-left: 0;
    border-bottom-color: var(--brass);
  }

  .rail__foot {
    order: 3;
    margin-left: auto;
    grid-auto-flow: column;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0;
    border-top: 0;
  }

  .rail__id {
    display: none;
  }

  .usermenu__pop {
    top: 100%;
    bottom: auto;
    left: auto;
    right: 0;
    width: 15rem;
    margin: 0.4rem 0 0;
  }

  .record__head {
    align-items: flex-start;
  }

  .record__actions {
    width: 100%;
  }

  .record__actions .btn {
    flex: 1;
  }

  

  .record__menu,
  .record__menu .menu,
  .record__menu .menu__trigger {
    width: 100%;
  }

  .record__menu .menu__pop {
    left: 0;
    right: 0;
  }

  

  .record-form__actions .btn {
    flex: 1 1 auto;
  }
}




 

.vendor-access {
  display: grid;
  gap: 1rem;
}



.vendor-access__link {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--brass);
  border-radius: var(--r-md);
  background: var(--sunk);
}

.vendor-access__link input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.vendor-access__link .btn {
  justify-self: start;
}

 


.adressen__antwort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.adressen__antwort .btn {
  flex: 0 0 auto;
  padding: 0.28rem 0.62rem;
  font-size: 0.85rem;
}

.adressen__fehler {
  align-self: center;
  color: var(--neg);
  font-size: 0.82rem;
}




.konto-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.konto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.konto:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}



.konto--open {
  width: 100%;
  margin: 0;
  padding-top: 0;
  padding-right: 0;
  padding-left: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.konto--open .konto__iban {
  color: var(--brass);
}

.konto--open:hover .konto__iban {
  text-decoration: underline;
}

.konto__iban {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}



.konto__badges {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.konto > .badge {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.konto__meta {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: var(--text-faint);
}



.konto__notiz {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.konto__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.3rem;
}

 



.vorschlag-eyebrow {
  margin-top: 1.2rem;
}

.vorschlag-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.vorschlag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.vorschlag__iban {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.vorschlag .badge {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.vorschlag__meta,
.vorschlag__zahler {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.vorschlag__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.vorschlag--beantwortet .vorschlag__iban {
  color: var(--text-dim);
}



.mapping-card {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}



#sachkonten-findings:not(:empty) + .mapping-card {
  margin-top: 1.1rem;
}



.record__cards--single {
  columns: 1;
}

.merge {
  display: grid;
  gap: 0.85rem;
}

.merge__row {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.merge__row--keep {
  border-color: var(--pos);
  background: var(--pos-soft);
}

.merge__ident {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.merge__name {
  font-size: 1rem;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.merge__meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}

.merge__reason {
  font-size: 0.92rem;
  color: var(--text-dim);
}

 

.lease__parteien {
  display: grid;
  gap: 0.15rem;
  justify-items: start;
}



.record-form__section {
  display: grid;
  gap: 1.1rem;
  padding-top: 0.4rem;
}

 


.position-backfill,
.previous-rent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.position-backfill__count,
.previous-rent__figures {
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.previous-rent__lead {
  color: var(--text-dim);
}



.position-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-strong);
}

.position-total__label {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.position-total__betrag {
  min-width: 0;
}

.position-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}



.position {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.9rem;
  width: 100%;
  padding: 0 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.position:hover .position__art {
  color: var(--brass);
}

.position:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.position__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.position__art {
  font-size: 1rem;
}

.position__bezeichnung {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.position__betrag {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

.position__ust {
  display: block;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}

.position__zeitraum,
.position__meta {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.position--beendet .position__art,
.position--beendet .position__betrag {
  color: var(--text-dim);
}

.position-more {
  grid-column: 1 / -1;
}

.position-more summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.position-more[open] summary {
  margin-bottom: 0.8rem;
}

 
.position-more__list {
  display: grid;
  gap: 0.35rem;
}

.position-more__list > p {
  margin: 0;
}

.position-plan__section {
  display: grid;
  gap: 0.5rem;
}

.position-plan__section > p {
  margin: 0;
}



.field__required {
  font-style: normal;
  color: var(--brass);
  margin-left: 0.15rem;
}





.field > .field__hinweis {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}



.datum {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.datum:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}

.datum.is-invalid,
input.is-invalid {
  border-color: var(--neg);
}

.field--compact .datum {
  padding: 0.42rem 0.6rem;
  font-size: 0.9rem;
}

 
.datum__text {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}

.datum__text:focus-visible {
  border-color: transparent;
  box-shadow: none;
}

.datum__knopf {
  --icon: 1.25rem;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: var(--icon);
  height: var(--icon);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 120ms ease;
}

.datum:hover .datum__knopf,
.datum__knopf:focus-visible {
  opacity: 1;
}

.datum__knopf svg {
  width: 100%;
  height: 100%;
}



.datum__knopf::before {
  content: "";
  position: absolute;
  inset: calc((var(--icon) - var(--tap-least)) / 2);
}



.kalender {
  position: fixed;
  z-index: 30;
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 12px 34px rgb(0 0 0 / 16%);
}

.kalender__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.kalender__titel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.1rem 0.2rem;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.kalender__caret {
  display: grid;
  place-items: center;
  width: 0.62rem;
  color: var(--text-dim);
}

.kalender__caret svg {
  width: 100%;
  fill: currentColor;
  transition: transform 120ms ease;
}

.kalender__titel[aria-expanded="true"] .kalender__caret svg {
  transform: rotate(180deg);
}

.kalender__pfeile {
  display: flex;
  gap: 0.15rem;
}



.kalender__pfeil {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: background-color 120ms ease;
}

.kalender__pfeil svg {
  width: 1.15rem;
  height: 1.15rem;
}

.kalender__pfeil:hover {
  background: var(--surface-2);
}

.kalender__raster {
  display: grid;
  grid-template-columns: repeat(7, 2.5rem);
  gap: 0.2rem;
}

.kalender__wochentag {
  display: grid;
  place-items: center;
  height: 2.1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.kalender__tag {
  display: grid;
  place-items: center;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 120ms ease;
}

 
.position-members {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.6rem;
}

 

.kalender__tag:hover:not(:disabled),
.kalender__tag:focus-visible {
  background: var(--surface-2);
}



.kalender__tag.is-heute {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.kalender__tag.is-gewaehlt,
.kalender__tag.is-gewaehlt:hover {
  background: var(--brass);
  color: #fff;
  box-shadow: none;
}

.kalender__tag:disabled {
  color: var(--text-faint);
  opacity: 0.45;
  cursor: default;
}

 
.kalender__jahre {
  display: grid;
  grid-template-columns: repeat(4, 4.6rem);
  gap: 0.2rem;
  max-height: 17.5rem;
  overflow-y: auto;
}

.kalender__jahr {
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.kalender__jahr:hover,
.kalender__jahr:focus-visible {
  background: var(--surface-2);
}

.kalender__jahr.is-gewaehlt,
.kalender__jahr.is-gewaehlt:hover {
  background: var(--brass);
  color: #fff;
}



.field > .field__error {
  font-size: 0.78rem;
  color: var(--neg);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}






.combo__list {
  position: fixed;
  z-index: 20;
  width: max-content;
  max-width: min(40rem, calc(100vw - 2rem));
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 10px 30px rgb(0 0 0 / 18%);
}



.combo__option {
  padding: 0.4rem 0.55rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo__option:hover,
.combo__option.is-marked {
  background: var(
    --surface-2,
    color-mix(in srgb, var(--focus) 12%, transparent)
  );
}

.combo__empty,
.combo__more {
  padding: 0.4rem 0.55rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.combo__more {
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
}



.menu {
  position: relative;
}



.record__menu {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
}

.menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.menu__chev {
  display: inline-flex;
  transition: transform 150ms ease;
}

.menu__trigger[aria-expanded="true"] .menu__chev {
  transform: rotate(180deg);
}



.menu__pop {
  position: fixed;
  z-index: 40;
  display: grid;
  gap: 0.1rem;
  min-width: 13rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.menu__pop[hidden] {
  display: none;
}

.menu__item {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.menu__item:hover,
.menu__item:focus-visible {
  background: var(--surface-2);
}

.menu__item--danger {
  color: var(--neg);
}

.menu__item--danger:hover {
  background: var(--neg-soft);
}



.menu__item--refused {
  max-width: 28rem;
  white-space: normal;
}

 
.menu__item--armed {
  background: var(--neg-soft);
  font-weight: 550;
}

 



.hint {
  display: inline-flex;
  margin-left: 0.35rem;
  vertical-align: middle;
}



.badge-hint {
  white-space: nowrap;
}



.hint__mark {
  --mark: 1.05rem;
  --mark-line: 1px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--mark);
  height: var(--mark);
  padding: 0;
  border: var(--mark-line) solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-faint);
  font: inherit;
  font-size: 0.7rem;
  line-height: 1;
  text-indent: 0;
  text-transform: none;
  letter-spacing: 0;
  cursor: help;
}



.hint__mark::before {
  content: "";
  position: absolute;
  inset: calc((var(--mark) - var(--tap-least)) / 2 - var(--mark-line));
}

.hint__mark:hover,
.hint__mark:focus-visible {
  border-color: var(--brass);
  color: var(--brass);
}



.hint__bubble {
  position: fixed;
  z-index: 20;
  width: max-content;
  max-width: min(24rem, 80vw);
  

  white-space: normal;
  overflow-wrap: anywhere;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  

  display: none;
}

 



.menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.menu__count {
  flex: none;
}



.menu__dot {
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.1rem;
  border-radius: 999px;
  background: currentcolor;
}

 



.menu__section {
  display: grid;
  gap: 0.1rem;
}

.menu__group {
  padding: 0.45rem 0.6rem 0.15rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.menu__divider {
  height: 1px;
  margin: 0.2rem 0;
  background: var(--line);
}






.split {
  display: grid;
  gap: 1rem;
}



.split__part {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.split__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}



.split__number {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
}



.split__origin {
  font-size: 0.78rem;
  color: var(--text-faint);
}



.split__toggle {
  margin-left: auto;
}

.split__toggle--set {
  color: var(--brass);
}



.split__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  align-items: end;
}



.sheet__panel--wide .split__row {
  grid-template-columns:
    minmax(0, 16rem) minmax(0, 1fr)
    minmax(0, 4.5rem) minmax(0, 6.25rem);
}



@media (max-width: 860px) {
  .sheet__panel--wide .split__row {
    grid-template-columns: minmax(0, 1fr);
  }
}



.split__field--building,
.split__field--account,
.split__field--percent,
.split__field--amount,
.split__field--unit {
  min-width: 0;
}



.split__part:not(:first-of-type) .split__row > .field > span:first-child {
  display: none;
}



.split__fold {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
}

.split__fold > .field {
  flex: 1 1 8rem;
  min-width: 0;
}



.split__fold > .split__field--unit {
  flex: 1 1 100%;
}



.record-form__grid > .split__fold {
  grid-column: 1 / -1;
}



.split__fold > .field__hint {
  flex: 1 1 100%;
  margin: 0;
}



.split__fold > .split__field--notiz {
  flex: 1 1 100%;
}



.split__fold > .split__zeitraum {
  flex: 2 1 15rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-items: end;
}



.split__foot {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
  background: var(--surface);
}

.split__rest {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  justify-content: flex-end;
  font-weight: 600;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

.split__rest--open {
  color: var(--text);
}



.split__distributed {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-dim);
}



.split__name {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--brass);
}



.select--spalten {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}



.split__part--locked {
  background: var(--surface-2);
}

.split__part--locked .split__row input:disabled {
  color: var(--text-dim);
}

.split__locked {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

.split__konto-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
}





.shares__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem 12rem 9.5rem;
  gap: 0.75rem;
  align-items: center;
}

.shares__row > .linkish {
  justify-self: start;
  white-space: nowrap;
}

.shares__head {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.shares__party {
  display: grid;
  gap: 0.35rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.shares__name {
  overflow-wrap: anywhere;
}

.shares__row .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shares__changes {
  display: grid;
  gap: 0.35rem;
}



.shares__from {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.shares__from .field {
  width: 9.5rem;
}

.shares__ab {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.shares__remove {
  justify-self: start;
  font-size: 1.1rem;
  line-height: 1;
}

.shares__sums {
  margin: 0;
}

.shares__tools {
  display: flex;
  gap: 1rem;
}

 
@media (max-width: 860px) {
  .shares__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .shares__name {
    grid-column: 1 / -1;
  }

  .shares__head {
    display: none;
  }

  .shares__row .field > span {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }

  .shares__change {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .shares__ab {
    display: none;
  }

  .shares__from {
    justify-self: stretch;
  }

  .shares__from .field {
    width: auto;
    flex: 1;
  }
}

 



.hint.is-open .hint__bubble {
  display: block;
}

 



.screen-stack {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.vt-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}


.vt-bar .segmented {
  flex: 0 1 auto;
}

.vt-bar .menu {
  margin-left: auto;
}



.vt-mark {
  margin-left: 0.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--neg);
  color: var(--surface);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.vt {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}



.vt-rail {
  position: sticky;
  top: 1rem;
  display: grid;
  align-content: start;
  gap: 1px;
  max-height: var(--table-max);
  overflow-y: auto;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.vt-pick {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.8rem 0.55rem 0.7rem;
  border: 0;
  border-left: 2px solid transparent;
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
}

.vt-pick:hover {
  background: var(--surface-2);
}

.vt-pick:focus-visible,
.datarow:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.vt-pick.is-active {
  background: var(--surface-2);
  border-left-color: var(--brass);
}

.vt-pick__name {
  font-size: 0.9rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.vt-pick.is-active .vt-pick__name {
  color: var(--brass);
  font-weight: 550;
}

.vt-pick__warn {
  margin-left: 0.35rem;
  color: var(--neg);
}

.vt-pick__meta {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}



.vt-pick__who {
  font-size: 0.75rem;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}

.vt-pick.is-active .vt-pick__who {
  color: var(--text-dim);
}

.vt-tafel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}



.vt-tafel .record-facts {
  grid-template-columns: repeat(auto-fit, minmax(9rem, auto));
  justify-content: start;
  gap: 1.05rem 2.4rem;
}

.vt-kopf__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.vt-kopf__titel {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}



.vt-kopf__jahr {
  width: auto;
  padding: 0.1rem 1.6rem 0.1rem 0.35rem;
  margin-inline-start: -0.35rem;
  border-color: transparent;
  background-color: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.vt-kopf__jahr:hover {
  border-color: var(--line);
  background-color: var(--sunk);
}



.vt-kopf__jahr option {
  font-size: 0.9rem;
  font-weight: 400;
}



.vt-kopf__zeile .btn {
  margin-left: auto;
}

.vt-kopf__zeile .btn + .btn {
  margin-left: 0;
}

.vt-satz {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.vt-satz--leise {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.82rem;
}



.datalist {
  display: grid;
  max-height: var(--table-max);
  overflow-y: auto;
}



.datarow {
  display: grid;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.4rem 0.3rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.datarow--verteilung {
  grid-template-columns: minmax(0, 1fr) 6rem 5rem 4rem;
}

.datarow--kostenart {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.datarow:hover {
  background: var(--surface-2);
}



.datarow .badge {
  max-width: 100%;
  white-space: normal;
}



.datarow--zurueckgenommen {
  grid-template-columns: minmax(0, 1fr) 7rem;
  text-decoration: line-through;
  color: var(--text-dim);
}



.datarow--kopf:hover {
  background: var(--surface);
}

.datarow--kopf {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: default;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.datarow__name {
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.datarow__neben {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.datarow__zahl {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.datarow__quote {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.vt-balken {
  height: 3px;
  border-radius: 999px;
  background: var(--surface-2);
}

.vt-balken__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brass);
}



.vt-offen {
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.datarow--offen {
  grid-template-columns: minmax(0, 1fr) auto;
  color: var(--text-dim);
}

.datarow--offen:last-child {
  border-bottom: 0;
}

.datarow__aufnehmen {
  font-size: 0.82rem;
  color: var(--brass);
}



.befund-list {
  display: grid;
}

.befund {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4rem;
  align-items: center;
  gap: 0.5rem 0.9rem;
  width: 100%;
  padding: 0.45rem 0.3rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.befund:hover {
  background: var(--surface-2);
}

.befund:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.befund .badge {
  justify-self: start;
}

.befund:last-child {
  border-bottom: 0;
}

.befund__name {
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.befund__oeffnen {
  text-align: right;
  font-size: 0.82rem;
  color: var(--brass);
}


.nachlass-list {
  display: grid;
}

.datarow--nachlass {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.9rem;
  padding: 0.55rem 0.3rem;
}

.datarow--nachlass:last-child {
  border-bottom: 0;
}



.datarow--fest,
.datarow--fest:hover {
  background: transparent;
  cursor: default;
}



.datarow__name .badge {
  margin-left: 0.45rem;
}

.datarow__meta {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: var(--text-faint);
}



.nachlass-slot {
  display: contents;
}



.nachlass-form {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--sunk);
}



@media (max-width: 68rem) {
  .vt {
    grid-template-columns: minmax(0, 1fr);
  }

  .vt-rail {
    position: static;
    max-height: 18rem;
  }
}


 

.datarow--kostenart-eigen {
  grid-template-columns: minmax(0, 1fr);
}



.ka-nummer {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.ka-schluessel {
  display: grid;
  gap: 0.1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  min-width: 0;
}

.ka-anteil {
  display: flex;
  gap: 0.45rem;
  min-width: 0;
}

.ka-anteil__prozent {
  flex: none;
  width: 2.6rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.field--breit {
  grid-column: 1 / -1;
}



.ka-form {
  grid-template-columns: minmax(0, 1fr);
}

.ka-paar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: 0.9rem;
  align-items: start;
}

.ka-paar[hidden] {
  display: none;
}



.ka-satz {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

 

.datarow--kosten {
  grid-template-columns: minmax(0, 1fr) 8rem 8rem 6rem 6rem;
}



@media (max-width: 860px) {
  .datarow--kosten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.25rem;
  }

  .datarow--kosten > :first-child {
    grid-column: 1 / -1;
  }

  

  .datarow--kostenart {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.2rem;
  }

  .datarow--kostenart .datarow__neben {
    display: inline-block;
    max-width: 100%;
  }
}



.datarow--foot {
  border-top: 1px solid var(--line);
  font-weight: 600;
  cursor: default;
}

.datarow--foot:hover {
  background: transparent;
}



.kn-divisor {
  margin: 0.35rem 0 0;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}



.kn-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}



.kn-mehr {
  color: var(--neg);
}

.kn-weniger {
  color: var(--pos);
}



.ab-teile {
  display: grid;
  gap: 0.2rem;
}

.ab-teil:not(:first-child) {
  color: var(--text-dim);
}



.ab-teil {
  white-space: nowrap;
}



.ab-teil--gekuerzt {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}



.ab-teil--zurueckgezogen {
  text-decoration: line-through;
  color: var(--text-dim);
}



.ablesung {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  min-width: 0;
}



.ablesung__scroll {
  max-height: var(--table-max);
  overflow-x: auto;
  overflow-y: auto;
  min-width: 0;
}

.ablesung__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 120px 100px auto;
  gap: 12px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}



.ablesung__head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}

.ablesung__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}



.ablesung__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.ablesung__input {
  width: 100%;
  padding: 6px 8px;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.ablesung__input:focus {
  outline: 2px solid var(--brass);
  outline-offset: -1px;
}

.ablesung__delta {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text-dim);
}

.ablesung__delta.is-warn {
  color: var(--neg);
  font-weight: 600;
}

.ablesung__tausch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}



@media (max-width: 860px) {
  .ablesung__row {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
    row-gap: 2px;
  }

  .ablesung__label {
    grid-column: 1;
    grid-row: 1;
  }

  .ablesung__vorher {
    grid-column: 1;
    grid-row: 2;
  }

  .ablesung__input {
    grid-column: 2;
    grid-row: 1;
  }

  .ablesung__delta {
    grid-column: 2;
    grid-row: 2;
  }

  .ablesung__tausch {
    grid-column: 1 / -1;
    grid-row: 3;
    white-space: normal;
  }

  .ablesung__head {
    display: none;
  }
}



.vt-bar__stand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}



.vt-bar__stand .fig,
.vt-bar__stand .fig__int,
.vt-bar__stand .fig__frac,
.vt-bar__stand .fig__unit {
  color: currentcolor;
  font-size: inherit;
}



.deckung {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.deckung__konto {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
}

.deckung__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.deckung__wer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
}

.deckung__name {
  font-size: 1.05rem;
  font-weight: 500;
}

.deckung__iban {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.deckung__spanne {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.deckung__jahre {
  display: grid;
  gap: 0.45rem;
}

.deckung__jahr {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.deckung__jahrzahl {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  min-width: 2.8rem;
}

.deckung__monate {
  display: flex;
  gap: 3px;
}

.deckung__monat {
  width: 2rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  background: var(--sunk);
}



.deckung__probe {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--sunk);
}

.deckung__monat--gedeckt {
  background: var(--pos-soft);
  border-color: color-mix(in srgb, var(--pos) 45%, var(--line));
  color: var(--pos);
}

.deckung__monat--unvollstaendig {
  background: var(--brass-soft);
  border-color: color-mix(in srgb, var(--brass) 50%, var(--line));
  color: var(--brass);
}

.deckung__monat--luecke {
  background: var(--neg-soft);
  border-color: color-mix(in srgb, var(--neg) 50%, var(--line));
  color: var(--neg);
  font-weight: 600;
}

.deckung__fehlstellen {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--neg);
  font-variant-numeric: tabular-nums;
}

.deckung__abgewiesen {
  display: grid;
  gap: 0.4rem;
}

.abgewiesen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0.15rem 0.9rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--neg-soft);
  color: var(--neg);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.abgewiesen:hover {
  border-color: color-mix(in srgb, var(--neg) 45%, var(--line));
}

.abgewiesen.is-geklaert {
  background: var(--sunk);
  color: var(--text-dim);
}

.abgewiesen.is-geklaert:hover {
  border-color: var(--line-strong, var(--line));
}

.abgewiesen__datei {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.abgewiesen__notiz {
  grid-column: 1 / -1;
  color: var(--text-faint);
}

.deckung__legende {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.deckung__legende span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}



.mandant {
  position: relative;
}

.mandant__card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
}

.mandant__card:hover,
.mandant__card[aria-expanded="true"] {
  background: var(--surface-2);
}

.mandant__id {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.mandant__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}



.mandant__name {
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mandant__chev {
  flex: none;
  margin-left: auto;
  color: var(--text-faint);
}



.mandant__pop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 17rem;
  margin-top: 0.3rem;
  padding: 0.25rem;
  display: grid;
  gap: 0.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.mandant__pop[hidden] {
  display: none;
}

.mandant__wahl {
  display: flex;
  align-items: start;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.mandant__wahl:hover {
  background: var(--surface-2);
}



.mandant__wahl[aria-checked="true"] {
  color: var(--brass);
}

.mandant__haken {
  flex: none;
  width: 0.9rem;
  margin-top: 0.15rem;
  color: var(--brass);
}

.mandant__wahl[aria-checked="false"] .mandant__haken {
  visibility: hidden;
}



.record-form__reach {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}



.reach-pick {
  display: grid;
  gap: 0;
  max-height: 18rem;
  overflow-y: auto;
}

.reach-pick__row {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.3rem 0.1rem;
  border-top: 1px solid var(--line);
}

.reach-pick__row:first-child {
  border-top: 0;
}

.reach-pick__row:hover {
  background: var(--sunk);
}





.reach-pick--kosten {
  grid-template-columns:
    auto 5.5rem minmax(5rem, 1fr) minmax(max-content, 7rem)
    minmax(6.5rem, auto);
  column-gap: 0.5rem;
}

.reach-pick__row--kosten {
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}




.reach-pick__head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  cursor: default;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.reach-pick__head:hover {
  background: var(--surface);
}



.reach-pick__betrag {
  text-align: right;
  font-variant-numeric: tabular-nums;
}



.reach-pick__art {
  justify-self: start;
}



.reach-pick__ort {
  grid-column: 1 / -1;
  padding-left: 1.4rem;
  padding-bottom: 0.15rem;
}



.reach-pick__row input {
  width: auto;
  accent-color: var(--brass);
}



.beleg {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) 1fr;
  gap: 0.3rem 1.1rem;
  margin: 0;
  align-items: baseline;
}

.beleg__label {
  color: var(--text-dim);
  font-size: 0.8rem;
  white-space: nowrap;
}

.beleg__value {
  margin: 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}



.settlement-tab {
  display: grid;
  gap: 1rem;
}

.settlement-tab .record__cards > :last-child {
  margin-bottom: 0;
}

 




 
.plain-text {
  margin: 0;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.plain-list {
  margin: 0;
  padding-left: 1.3rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

 



.attachment__mark {
  width: 4.5rem;
}

.attachment__mark img {
  display: block;
  width: 3.4rem;
  height: 2.4rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--sunk);
}

.attachment__typ {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}



.record-block__commands {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.attachment__actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

 



.preview {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.preview__scrim {
  position: absolute;
  inset: 0;
  background: rgb(6 8 10 / 62%);
}

.preview__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: min(64rem, 100%);
  max-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}



.preview__name {
  min-width: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.preview__actions {
  display: flex;
  flex: none;
  gap: 0.5rem;
}

.preview__body {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  padding: 1.1rem;
  background: var(--sunk);
  overflow: auto;
}



.preview__body img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

 



.meter-photo p {
  margin: 0;
}

.meter-photo__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meter-photo__thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--sunk);
  cursor: zoom-in;
  overflow: hidden;
}



.meter-photo__thumb img {
  display: block;
  width: 6rem;
  height: 4.5rem;
  object-fit: cover;
}

 
.meter-photo__waiting {
  flex: 1 1 100%;
  text-align: right;
}

.meter-photo__offer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

 



.record-block {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 0.9rem;
}



.record-rows {
  display: grid;
  gap: 1rem;
}



.record-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.record-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.record-row > .record-form__grid {
  flex: 1 1 18rem;
  min-width: 0;
}



.record-row__foot {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
}

.record-row__foot > .position-more {
  flex: 1 1 auto;
  min-width: 0;
}



.position-more__facts {
  margin-left: 0.6rem;
  color: var(--text-dim);
}



.record-row__sum {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-left: auto;
}

.record-row__amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}



.invoice__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.invoice__head-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}



.record-facts--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .record-facts--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

 



.tab__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tab__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--neg);
}



.sn__missing {
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: normal;
}



.ledger td.sn__state .badge {
  white-space: nowrap;
}

.sn__evidence {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.sn__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.sn__action .btn {
  padding: 0.28rem 0.62rem;
  font-size: 0.85rem;
}

.sn__error {
  color: var(--neg);
  font-size: 0.82rem;
}



.sn-path {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.sn-path:first-of-type {
  border-top: 0;
}

.sn-path__name {
  font-weight: 550;
}

.sn-path__field {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}

.sn-path .signin__error {
  grid-column: 1 / -1;
  margin: 0;
}



@media (max-width: 860px) {
  .sn-path {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sn-path__name {
    grid-column: 1 / -1;
  }
}



.report-preview {
  white-space: pre;
  overflow-wrap: normal;
}



@media (max-width: 860px) {
  .report-preview {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}






.zm-betreff {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1.35;
}

.zm-ident {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.zm-msg {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.zm-msg:first-child {
  border-top: 0;
}

.zm-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.zm-msg__from {
  font-weight: 500;
}

.zm-msg__when,
.zm-msg__anhang {
  font-size: 0.78rem;
  color: var(--text-faint);
}



.zm-msg__body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.5;
}



.zm-frage {
  display: grid;
  gap: 0.55rem;
}

.zm-frage__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.zm-frage__adresse {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.zm-frage__faden {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}



.zm-frage__datum {
  flex: 0 0 8.5rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}



.zm-frage__faden .badge {
  flex: 0 0 auto;
}



@media (max-width: 860px) {
  .zm-frage__faden {
    flex-wrap: wrap;
  }

  .zm-frage__datum {
    flex-basis: 100%;
  }
}



.zm-aktionen {
  justify-content: flex-end;
}






.uhr-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1rem;
}

.uhr-job {
  min-width: 0;
}



.uhr-job .record-card__eyebrow {
  min-width: 0;
  overflow-wrap: anywhere;
}



.uhr-job__state {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.uhr-job__streak {
  font-size: 0.8rem;
  color: var(--text-faint);
  white-space: nowrap;
}



.uhr__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
}

.uhr__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
  white-space: nowrap;
}

.uhr__count-value {
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--text);
}

.uhr__count-label {
  font-size: 0.78rem;
  color: var(--text-faint);
}



.uhr__said {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}



.uhr__said--neg {
  color: var(--neg);
}

 



.stepper-frame {
  margin-block: 1rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper__step {
  min-width: 0;
}

.stepper__button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  align-items: center;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stepper__step.is-active .stepper__button {
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}

.stepper__number {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.stepper__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.stepper__state {
  min-width: 0;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.stepper__step--bestaetigt .stepper__number {
  background: var(--pos-soft);
  color: var(--pos);
}

.stepper__step--bestaetigt .stepper__state {
  color: var(--pos);
}

.stepper__step--wieder-offen .stepper__number {
  background: var(--neg-soft);
  color: var(--neg);
}

.stepper__step--wieder-offen .stepper__state {
  color: var(--neg);
}

.stepper__select {
  display: none;
}

@media (max-width: 860px) {
  .stepper {
    display: none;
  }

  .stepper__select {
    display: grid;
  }
}

.stepper-body {
  min-width: 0;
}

.stepper-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.datev-schritt {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.datev-warnung {
  color: var(--neg);
}

.datev-monatswahl {
  max-width: 22rem;
}

 



.dks-karte {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  border-left: 3px solid var(--line);
}

.dks-karte--offen {
  border-left-color: var(--line-strong);
}

.dks-karte--bestaetigt {
  border-left-color: var(--pos);
}

.dks-karte--wieder-offen {
  border-left-color: var(--neg);
}

.dks-karte__kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  min-width: 0;
}

.dks-karte__name {
  min-width: 0;
}

.dks-karte__iban,
.dks-karte__finanzkonto {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

 
.dks-pruefungen {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.dks-zeile {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.dks-zeile--warnung .dks-zeile__label {
  color: var(--neg);
}

.dks-zeile__label {
  font-weight: 600;
  min-width: 0;
}

.dks-zeile__text {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.dks-zeile__still {
  min-width: 0;
}

.dks-satz {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dks-luecke {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.dks-luecke .dks-satz + .dks-satz {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.dks-bank {
  display: grid;
  grid-template-columns: minmax(0, 16rem) auto minmax(0, 1fr);
  align-items: end;
  gap: 0.75rem;
  min-width: 0;
}

.dks-bank__meldung,
.dks-bestaetigung__meldung {
  min-width: 0;
}

.dks-bestaetigung {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.dks-bestaetigung__wer {
  margin: 0;
  color: var(--text-dim);
}

.dks-quittung {
  align-items: flex-start;
  color: var(--neg);
  min-width: 0;
}

.dks-bestaetigung__fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}



@media (max-width: 860px) {
  .dks-zeile {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dks-zeile > .dks-satz,
  .dks-zeile > .dks-zeile__text {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dks-bank {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dks-bank__meldung {
    grid-column: 1 / -1;
  }
}

 



.befund__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 1rem;
}

.befund__titel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  min-width: 0;
}

.befund__zahlen {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.befund__anzahl {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.befund__liste {
  display: grid;
  margin-top: 0.7rem;
  min-width: 0;
}

.datarow--befund {
  grid-template-columns: minmax(0, 1fr) auto;
  color: var(--text);
}

.datarow--befund:last-child {
  border-bottom: 0;
}

.datarow--still {
  cursor: default;
}

.datarow--still:hover {
  background: transparent;
}

.datarow--befund .badge {
  margin-left: 0.5rem;
}

.befund__objekt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 0.8rem;
  padding: 0.3rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.befund__objekt:first-child {
  margin-top: 0;
}

.befund__objektname {
  min-width: 0;
  overflow-wrap: anywhere;
}

 
@media (max-width: 860px) {
  .befund__kopf,
  .datarow--befund,
  .befund__objekt {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .befund__zahlen {
    justify-content: flex-start;
  }
}






.dvs-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  min-width: 0;
}

.dvs-totals__count {
  font-weight: 600;
}

.dvs-totals__label {
  margin-left: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}



.dvs-header-line {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.dvs-header-line code {
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: pre;
}



.dvs-file__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.dvs-file__state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.dvs-file__label,
.dvs-file__who {
  color: var(--text-dim);
}

.dvs-file__name {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

 
.dvs-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 0.6rem;
}

.dvs-tile {
  padding: 0.7rem 0.85rem;
  background: var(--sunk);
  min-width: 0;
}

.dvs-tile__value {
  font-size: 1.15rem;
  font-weight: 450;
}

.dvs-tile--outside .tile__name {
  color: var(--neg);
}

.dvs-header summary {
  width: fit-content;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
}

.dvs-header[open] summary {
  margin-bottom: 0.5rem;
}

.dvs-lines {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}



#datev-abschluss-view .cell-note {
  white-space: normal;
}



.dvs-prose {
  min-width: 11rem;
  overflow-wrap: anywhere;
}



.dvk-kreise {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.dvk-kreis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.dvk-kreis__name {
  flex: 1 1 8rem;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--text);
}

.dvk-kreis__zahlen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}



.dvk-kreis--still {
  cursor: default;
  padding-left: 1.65rem;
}

.dvk-totals {
  margin-bottom: 0.9rem;
}




.preis-list {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.9rem;
}

.datarow--preis {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.datarow--preis .datarow__quote {
  min-width: 8.5rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: right;
}



.preis__offen {
  color: var(--text-dim);
  font-style: italic;
}

 
@media (max-width: 860px) {
  .datarow--preis {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .datarow--preis .datarow__quote {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }
}




.logo-band {
  display: flex;
  align-items: flex-end;
  padding: 0.5rem 0 0.75rem;
  border-bottom: 2px solid var(--brass);
}

.logo-band__mark {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left bottom;
}




.invoice-scheme__preview {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--r-sm);
  background: var(--brass-soft);
}

.invoice-scheme__number {
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.invoice-scheme__prefix {
  font-family: var(--mono);
  text-transform: uppercase;
}

.invoice-scheme .check {
  margin: 0.35rem 0 1rem;
}



.client-tag {
  display: inline-block;
  margin-right: 0.3rem;
  padding: 0 0.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-faint);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  vertical-align: 0.05em;
}




.satzfragen {
  display: grid;
  gap: 0.9rem;
}

.satzfrage {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.satzfrage:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.satzfrage__konto {
  font-weight: 600;
}



.satzfrage__grund {
  margin-left: 0.15rem;
  letter-spacing: normal;
  text-transform: none;
}



.satzfrage__felder {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 13rem);
  justify-content: start;
  gap: 0.9rem;
  align-items: start;
}

@media (max-width: 860px) {
  .satzfrage__felder {
    grid-template-columns: minmax(0, 1fr);
  }
}




.bk-panel {
  display: grid;
  gap: 0.75rem;
}



.bk-anpassen {
  margin-left: auto;
}

.bk-kopf__rechts {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.bk-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}



.bk-zeile {
  font-size: 0.86rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.bk-form {
  display: grid;
  gap: 0.9rem;
}



.bk-form__zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 10rem);
  gap: 0.75rem;
  align-items: end;
}

.bk-form__zeile > .field:only-child {
  grid-column: 1 / -1;
}

 
@media (max-width: 860px) {
  .bk-form__zeile {
    grid-template-columns: minmax(0, 1fr);
  }
}



[id^="bericht-"] .dtable__bar .search {
  flex: 0 1 22rem;
}




.report-list {
  display: grid;
  gap: 1.4rem;
}

.report-group {
  display: grid;
  gap: 0.55rem;
}



.report-group__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  cursor: pointer;
}

.report-group__head:hover {
  color: var(--text-dim);
}

.report-group__chev {
  display: inline-flex;
  transition: transform 0.12s ease;
}



.report-group__chev--closed {
  transform: rotate(-90deg);
}

@media (prefers-reduced-motion: reduce) {
  .report-group__chev {
    transition: none;
  }
}



.report-group__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
  gap: 0.55rem 0.7rem;
}



.report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.report-card:hover {
  background: var(--surface-2);
}



.report-card__open {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.report-card__name {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.report-card__meta {
  font-size: 0.78rem;
  color: var(--text-faint);
}



.report-card__star {
  display: inline-flex;
  padding: 0.3rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}

.report-card__star svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
}

.report-card__star:hover {
  color: var(--brass);
  background: var(--brass-soft);
}

.report-card__star--set {
  color: var(--brass);
}

.report-card__star--set svg {
  fill: currentcolor;
}



.report-card__refusal {
  grid-column: 1 / -1;
}




.page-head__crumb {
  display: block;
  margin: 0 0 0.2rem;
}

.page-head__jump {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.page-head__key {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}



.refusal {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  max-width: 34rem;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 2px solid var(--brass);
}

.refusal__said {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}



.refusal__there {
  flex: none;
}



.sprung {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 40;
}

.sprung__scrim {
  position: absolute;
  inset: 0;
  background: rgb(6 8 10 / 45%);
}

.sprung__panel {
  position: relative;
  width: min(34rem, calc(100vw - 2rem));
  margin-top: 12vh;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgb(6 8 10 / 45%);
  overflow: hidden;
}

.sprung__input {
  font: inherit;
  font-size: 1.02rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sprung__input:focus {
  outline: none;
}

.sprung__list {
  overflow-y: auto;
  min-height: 0;
  padding: 0.4rem 0 0.6rem;
}

.sprung__group {
  padding: 0.6rem 1.1rem 0.25rem;
}

.sprung__hit {
  font: inherit;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.sprung__hit.is-active,
.sprung__hit:hover {
  background: var(--surface-2);
}

.sprung__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sprung__meta {
  color: var(--text-faint);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.sprung__empty {
  padding: 0.9rem 1.1rem;
  color: var(--text-faint);
}

 



.shell {
  --assistent: min(58rem, 100% - var(--rail) - 3rem);
  --assistent-top: 4.5rem;
}

.assistent {
  position: fixed;
  inset-block-start: var(--assistent-top);
  inset-inline: var(--rail) 0;
  z-index: 45;
  width: var(--assistent);
  margin-inline: auto;
  height: calc(100vh - var(--assistent-top) - 2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

.page-head__tools {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
}



.assistent {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}



.assistent__scroll {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}



.assistent__turns {
  display: grid;
  gap: 1.6rem;
  align-content: start;
  min-width: 0;
}

.assistent__turn,
.assistent__said {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}

 
.assistent__foot {
  display: grid;
  gap: 0.5rem;
}

.assistent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.assistent__head h2 {
  margin: 0;
}



.assistent__ask {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.assistent__input {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}



.assistent__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.assistent__budget {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.assistent__vorschlaege {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
}

.assistent__vorschlag {
  font: inherit;
  text-align: left;
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.assistent__vorschlag:hover {
  color: var(--brass);
}



.assistent__frage {
  margin: 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--brass);
  font-size: 1rem;
  font-weight: 550;
}

.assistent__satz {
  margin: 0;
}



.assistent__plan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}



.assistent__step {
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-faint);
  font-size: 0.78rem;
  white-space: nowrap;
}

.assistent__step--ran {
  border-color: var(--line-strong);
  color: var(--text-dim);
}



.assistent__zug {
  padding-inline-end: 0.2rem;
  color: var(--text-faint);
  font-size: 0.78rem;
  white-space: nowrap;
}



.assistent__kosten {
  margin-inline-start: auto;
  color: var(--text-faint);
  font-size: 0.78rem;
  white-space: nowrap;
}



.assistent__vertiefen {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
}



.assistent__tafeln {
  display: grid;
  gap: 0.9rem;
}



.assistent__record td {
  border-bottom: 0;
}



.assistent__tafeln .ledger th {
  white-space: normal;
  vertical-align: bottom;
}



.assistent .ledger td {
  padding: 0.55rem 0.6rem;
}



.assistent__window {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}



.assistent__weg {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brass);
  font: inherit;
  text-align: left;
  cursor: pointer;
}



@media (max-width: 860px) {
  .shell {
    --assistent: 100%;
    --assistent-top: 0rem;
  }

  .assistent {
    inset-inline: 0;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }
}



.page-head__ask {
  position: relative;
  overflow: hidden;
  color: var(--brass);
  border-color: color-mix(in srgb, var(--brass) 38%, transparent);
  background: var(--brass-soft);
}

.page-head__ask:hover {
  color: var(--brass);
  border-color: color-mix(in srgb, var(--brass) 62%, transparent);
  background: color-mix(in srgb, var(--brass) 16%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 14%, transparent);
}

.page-head__spark {
  width: 0.82rem;
  height: 0.82rem;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 220ms ease;
}

.page-head__ask:hover .page-head__spark {
  transform: rotate(18deg) scale(1.12);
}

.page-head__ask::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    100deg,
    transparent 20%,
    color-mix(in srgb, var(--brass) 30%, transparent) 50%,
    transparent 80%
  );
  pointer-events: none;
}

.page-head__ask:hover::after {
  animation: page-head-sweep 620ms ease-out;
}

@keyframes page-head-sweep {
  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-head__ask:hover::after {
    animation: none;
  }

  .page-head__spark,
  .page-head__ask:hover .page-head__spark {
    transition: none;
    transform: none;
  }
}

 



.assistent__scope {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}



.assistent__sum-total td {
  border-top: 1px solid var(--line-strong);
  border-bottom: 0;
  font-weight: 550;
}



.assistent__not-added {
  margin: 0.2rem 0 0;
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 550;
}






.datarow--heiz {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr) 7rem;
}

@media (max-width: 860px) {
  .datarow--heiz {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}



.heizbeleg__abgelegt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}



.heizbeleg__datei {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}



.heizbeleg__einheit .datarow__name {
  overflow-wrap: normal;
}



.cell-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}



.heizbeleg__ohne {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: italic;
}



.cell-actions .menu__trigger {
  color: var(--text-faint);
}

.cell-actions .menu__trigger:hover {
  color: var(--brass);
}



.datarow--heiz-summe {
  font-weight: 550;
  cursor: default;
}

.datarow--heiz-summe:hover {
  background: transparent;
}



.datarow--heiz-art {
  color: var(--text-dim);
}



.record-form__zeitraum {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1rem;
}



.heizco2__grund summary {
  width: fit-content;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
}

.heizco2__grund[open] summary {
  margin-bottom: 0.4rem;
}



@media (min-width: 52rem) {
  .sheet__panel--wide .sheet__head,
  .sheet__panel--wide .sheet__body {
    padding-right: 2.5rem;
  }
}



.sheet__body {
  scrollbar-gutter: stable;
}



.sheet__body .panel__scroll {
  max-height: none;
}



.record-facts .cell-note {
  white-space: normal;
}



.badge-hint {
  margin-top: 0.3rem;
}



.be-heizung__betrag {
  grid-column: 2;
  justify-self: end;
}



.be-kopf {
  display: grid;
  gap: 0.55rem;
}



.be-stand {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}



.ob-schritte {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
}

.ob-schritt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.ob-schritt:hover:not(:disabled) {
  background: var(--sunk);
}

.ob-schritt:disabled {
  cursor: default;
}

.ob-schritt__name {
  min-width: 0;
}



.ob-schritt__stand {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: right;
  white-space: nowrap;
}



.ob-schritt__stand--derived {
  color: var(--pos);
}

.ob-schritt__stand--marked {
  color: var(--brass);
}

.ob-schritt__stand--skipped {
  color: var(--text-faint);
}



.ob-schritt__satz,
.ob-schritt__rand {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.ob-schritt__rand {
  color: var(--text-faint);
}




.kal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.kal-bar__steps {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 18rem;
  min-width: 0;
}

.kal-bar__title {
  margin: 0 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  min-width: 0;
}



.date-pick {
  position: relative;
}

.date-pick__open {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline dotted var(--text-dim);
  text-underline-offset: 0.25em;
}

.date-pick__field {
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.date-pick__field .datum {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.date-pick__field > span,
.date-pick__field .datum__text,
.date-pick__field .datum__knopf,
.date-pick__field .field__error {
  display: none;
}

.kal-layers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.9rem;
}

.kal-layers__land {
  font-size: 0.85rem;
}

.kal-layers__undated {
  font-size: 0.85rem;
}

.kal-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.kal-month__weekday {
  padding: 0.35rem 0.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.kal-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  min-height: 7rem;
  padding: 0.3rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kal-cell--outside {
  background: var(--surface-2);
}

.kal-cell--outside .kal-cell__day {
  color: var(--text-faint);
}

.kal-cell--holiday,
.kal-col--holiday {
  background: var(--brass-soft);
}

.kal-cell__day {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  padding: 0.05rem 0.35rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.kal-cell.is-today .kal-cell__day,
.kal-col.is-today .kal-col__head {
  background: var(--brass);
  color: var(--on-brass);
}

.kal-cell__dots {
  display: none;
}

.kal-cell__chips {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.kal-holiday {
  overflow: hidden;
  color: var(--brass);
  font-size: 0.74rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kal-chip {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.kal-chip--appointment {
  border-left-color: var(--brass);
}

.kal-chip--deadline {
  border-left-color: var(--info);
}

.kal-chip--overdue {
  border-color: var(--neg);
  background: var(--neg-soft);
  color: var(--neg);
  font-weight: 600;
}

.kal-chip--order {
  border-left-color: var(--pos);
}

.kal-chip--lease-end {
  border-left-color: var(--text-faint);
}

.kal-more {
  align-self: flex-start;
  font-size: 0.76rem;
}

.kal-days {
  display: grid;
  gap: 0.5rem;
}

.kal-days--week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.kal-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  min-height: 10rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.kal-col__head {
  align-self: flex-start;
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}

.kal-days--day .kal-chip {
  padding: 0.4rem 0.6rem;
  font-size: 0.88rem;
  white-space: normal;
}

.kal-creates {
  cursor: pointer;
}

@media (hover: hover) {
  .kal-creates:hover {
    box-shadow: inset 0 0 0 1px var(--brass);
  }
}

@media (max-width: 860px) {
  .kal-cell {
    min-height: 3.6rem;
    padding: 0;
  }

  .kal-cell__day {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    height: 100%;
    padding: 0.25rem 0;
  }

  .kal-cell__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
  }

  .kal-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--brass);
  }

  .kal-cell.is-today .kal-dot {
    background: var(--on-brass);
  }

  .kal-cell__chips,
  .kal-cell .kal-holiday {
    display: none;
  }

  .kal-days--week {
    grid-template-columns: minmax(0, 1fr);
  }

  .kal-col {
    min-height: 0;
  }

  .kal-chip {
    white-space: normal;
  }
}




.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  gap: 0.4rem 1rem;
  min-width: 0;
}

.check-list .check {
  min-width: 0;
}

.pt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.pt-bar__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.pt-bar__title {
  margin: 0 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  min-width: 0;
}

.pt-bar__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pt-team {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.pt-board {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 1rem;
}

.pt-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  min-width: 0;
}

.pt-row--head {
  border-top: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pt-name,
.pt-head {
  padding: 0.6rem 0.75rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pt-name {
  font-weight: 600;
}

.pt-head--holiday,
.pt-cell--holiday {
  background: var(--surface-2);
}

.pt-head__name {
  display: block;
  text-transform: none;
  letter-spacing: 0;
}

.pt-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.4rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.pt-cell:hover {
  background: var(--surface-2);
}

.pt-cell__day {
  display: none;
}

.pt-chip {
  display: block;
  min-width: 0;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-chip__task {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.pt-chip--own {
  background: var(--brass-soft);
  color: var(--text);
}

.pt-chip--other {
  background: var(--surface-2);
  color: var(--text-dim);
}

.pt-chip--proposal {
  border: 1px dashed var(--text-dim);
  color: var(--text-dim);
}

.pt-chip--away {
  background: var(--surface-2);
  color: var(--text-dim);
  font-style: italic;
}

.pt-chip--conflict {
  box-shadow: inset 0 0 0 1px var(--neg);
  color: var(--neg);
}

.pt-task {
  grid-column: 1 / -1;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.pt-notice {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.pt-job {
  width: 100%;
  padding-inline: 0;
  padding-top: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 860px) {
  .pt-bar__title {
    flex: 1 1 100%;
    margin: 0;
  }

  .pt-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pt-row--head {
    display: none;
  }

  .pt-cell {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: 2.75rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .pt-cell__day {
    display: block;
    flex: 0 0 6.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
  }

  .pt-cell .pt-chip {
    flex: 1 1 auto;
  }
}









.cell-reason {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}



@media (max-width: 860px) {
  input,
  select,
  textarea,
  .field--compact input,
  .field--compact select,
  .select--compact,
  .vendor-access__link input,
  .ablesung__input,
  .assistent__input,
  .membership__role,
  .sn-path__field {
    font-size: 1rem;
  }

  button,
  select,
  summary,
  .rail__link,
  .wordmark,
  .check {
    min-height: var(--tap);
  }

  

  .rail__link:not(.rail__link--nested),
  .wordmark {
    display: inline-flex;
    align-items: center;
  }

  .btn--icon,
  .membership__x,
  .chip__x {
    min-width: var(--tap);
  }

  

  .ledger__open,
  .hint__mark,
  .datum__knopf {
    min-height: auto;
  }

  .hint__mark::before {
    inset: calc((var(--mark) - var(--tap)) / 2 - var(--mark-line));
  }

  .datum__knopf::before {
    inset: calc((var(--icon) - var(--tap)) / 2);
  }

  

  td > .check {
    align-items: baseline;
  }

  

  .dtable__foot {
    flex-wrap: wrap;
  }

  

  .page-head,
  .channel__head,
  .record-card__head,
  .invoice__head,
  .invoice__head-group {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    row-gap: 0.5rem;
  }

  .page-head > :last-child:not(:first-child),
  .channel__head > :last-child:not(:first-child),
  .record-card__head > :last-child:not(:first-child),
  .invoice__head > :last-child {
    margin-left: auto;
  }

  

  .lease__tools {
    order: 1;
    grid-row: auto;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    min-width: 0;
  }

   
  .lease__failure {
    order: 2;
  }

  .lease__tools .linkish {
    overflow-wrap: anywhere;
    text-align: left;
  }

  

  .record-card > .linkish .cell-note {
    white-space: normal;
  }

  

  .konto {
    grid-template-columns: minmax(0, 1fr);
  }

  .konto > :not(:first-child) {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  

  .datalist {
    grid-auto-rows: max-content;
    overflow-x: hidden;
  }

  

  .datarow--verteilung:not(.datarow--offen) {
    grid-template-columns: 6rem minmax(0, 1fr) 4rem;
    row-gap: 0.2rem;
  }

  .datarow--verteilung:not(.datarow--offen) > :first-child {
    grid-column: 1 / -1;
  }

  

  .reach-pick__row:not(.reach-pick__row--kosten) {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  

  .reach-pick__row,
  .ablesung__tausch {
    min-height: var(--tap);
  }

  .reach-pick__row:not(.reach-pick__row--kosten) > :nth-child(n + 4) {
    grid-column: 2 / -1;
  }

  .reach-pick--kosten {
    grid-template-columns: auto max-content minmax(0, 1fr);
  }

  .reach-pick__row--kosten > :nth-child(4) {
    grid-column: 2;
  }

  .reach-pick__row--kosten > :nth-child(5) {
    grid-column: 3;
  }

  

  .ledger .col--under {
    display: none;
  }

  .ledger--stacked thead {
    display: none;
  }

  .ledger--stacked tr,
  .ledger--stacked td {
    display: block;
  }

  .ledger.ledger--stacked td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 0;
    padding: 0.25rem 0;
    text-align: right;
  }

  .ledger--stacked td::before {
    content: attr(data-label);
    flex: none;
    font-weight: 400;
    color: var(--text-faint);
  }

   
  .panel__scroll:has(> .ledger--stacked) {
    max-height: none;
    overflow: visible;
  }

  .ledger--stacked tr {
    padding-block: 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  

  .ledger th,
  .ledger td {
    padding-inline: 0.75rem;
  }

  .ledger td,
  .fact__value {
    hyphens: auto;
  }

  

  .ledger__under {
    display: block;
    overflow-wrap: anywhere;
    white-space: normal;
    hyphens: manual;
    margin-top: 0.2rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dim);
  }

  .ledger__under-item div {
    display: inline;
  }

  

  .ledger__desk {
    display: none;
  }

  .ledger .ledger__open.ledger__open--narrow {
    display: block;
  }

  

  .ledger td .badge,
  .ledger td .badge-hint,
  .ledger td .cell-note,
  .ledger__under-item * {
    max-width: 100%;
    white-space: normal;
  }

  .ledger--stacked td .badge {
    hyphens: manual;
  }

  .ledger__under-item + .ledger__under-item::before,
  .ledger__under-item div + div::before {
    content: " · ";
  }

  

  .page-head__key {
    display: none;
  }

  

  .record__actions:not(:has(button)) {
    display: none;
  }

  .page-head__ask > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  

  .page-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    min-height: calc(var(--tap) + 1px);
  }

  .dtable__filters {
    display: contents;
  }

  .dtable__bar .search {
    flex: 1 1 9rem;
  }

  .dtable__bar .select--compact {
    flex: 1 1 8rem;
    min-width: 0;
  }

  

  :root {
    --band: 6.25rem;
    --table-max: calc(100dvh - 16rem - var(--band));
  }
}



@media (max-width: 860px) {
  .reach-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .reach-facts dd + dt {
    margin-top: 0.45rem;
  }
}
