:root {
  --ink:#213b32;
  --text:#34463e;
  --muted:#7a8981;
  --line:#e5eae6;
  --green:#23694f;
  --green-dark:#174b39;
  --mint:#e7f1eb;
  --canvas:#f5f7f4;
  --white:#fff;
  --amber:#946d22;
  --shadow:0 3px 16px #213b3203;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--canvas);
  font-size:14px;
  line-height:1.55;
  font-synthesis:none}
* {
  box-sizing:border-box}
body {
  margin:0}
a {
  color:var(--green);
  text-decoration:none}
a:hover {
  text-decoration:underline}
button,input,select,textarea {
  font:inherit}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent}
button {
  cursor:pointer}
h1,h2,h3,p {
  margin-top:0}
h1,h2,h3 {
  color:var(--ink);
  font-weight:620;
  letter-spacing:-.035em}
h1 {
  font-size:30px;
  line-height:1.2;
  margin-bottom:0}
h2 {
  font-size:19px;
  margin-bottom:12px}
h3 {
  font-size:16px;
  margin-top:24px;
  margin-bottom:12px}
p {
  margin-bottom:16px}
small,.small {
  font-size:12px}
strong {
  font-weight:600}
.muted {
  color:var(--muted)}
.positive {
  color:var(--green)}
.pre-wrap {
  white-space:pre-wrap}
.align-right {
  text-align:right}
.sidebar {
  width:246px;
  position:fixed;
  inset:0 auto 0 0;
  background:#fbfcfa;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  z-index:50}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font-size:21px;
  font-weight:660;
  letter-spacing:-.7px;
  padding:29px 26px 25px}
.brand:hover {
  text-decoration:none}
.brand-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--green);
  color:white;
  width:36px;
  height:36px;
  border-radius:11px;
  font-size:27px;
  line-height:1;
  padding-bottom:5px;
  font-weight:600;
  letter-spacing:-3px;
  padding-right:4px}
.workspace-label {
  font-size:9px;
  font-weight:700;
  letter-spacing:1.4px;
  color:#83958a;
  padding:0 24px}
.weg-switch {
  padding:9px 18px 17px}
.weg-switch select {
  font-size:12px;
  font-weight:600;
  background:#f2f5f1;
  min-height:42px;
  border-color:#e0e6df;
  padding-left:11px;
  color:#405647}
.sidebar nav {
  overflow:auto;
  padding:0 13px 16px;
  scrollbar-width:thin;
  scrollbar-color:#d6ded7 transparent}
.nav-group {
  margin:15px 0 18px}
.nav-label {
  display:block;
  color:#8a988f;
  font-size:9px;
  font-weight:700;
  letter-spacing:1.25px;
  padding:0 13px 9px}
.nav-link {
  color:#617269;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:6px;
  margin:2px 0;
  font-size:12px;
  font-weight:500}
.nav-link:hover {
  background:#eef3ed;
  text-decoration:none;
  color:var(--green)}
.nav-link.active {
  background:#e5eee5;
  color:#255839;
  font-weight:650}
.nav-icon {
  font-size:17px;
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7a9082}
.active .nav-icon {
  color:#367251}
.sidebar-bottom {
  margin-top:auto;
  display:flex;
  gap:10px;
  align-items:center;
  padding:17px 18px;
  border-top:1px solid var(--line);
  background:#fbfcfa}
.avatar {
  height:34px;
  width:34px;
  border-radius:50%;
  background:#e6ebdf;
  display:grid;
  place-items:center;
  color:#607252;
  font-size:12px;
  font-weight:600}
.sidebar-bottom strong {
  font-size:11px}
.sidebar-bottom small {
  display:block;
  font-size:10px;
  color:var(--muted)}
.sidebar-bottom form {
  margin-left:auto}
.app-shell {
  margin-left:246px}
.topbar {
  height:73px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 38px;
  background:#fdfefb}
.breadcrumb {
  display:flex;
  gap:14px;
  font-size:11px;
  align-items:center;
  color:#7a8a80}
.breadcrumb strong {
  color:#52665a;
  font-weight:500}
.top-actions {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  color:#6d7e73}
.live-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#5d9672}
.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  background:transparent;
  border-radius:6px;
  height:30px;
  width:30px;
  color:#748477;
  font-size:17px}
.icon-button:hover {
  background:var(--mint);
  text-decoration:none}
main {
  max-width:1650px;
  margin:auto;
  padding:35px 38px 20px}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:26px;
  gap:20px}
.eyebrow {
  display:block;
  font-size:9px;
  font-weight:700;
  letter-spacing:1.7px;
  color:#87968a;
  margin-bottom:9px}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:37px;
  padding:8px 14px;
  font-size:12px;
  font-weight:550;
  line-height:1.4;
  border:1px solid #dce4db;
  border-radius:6px;
  background:white;
  color:#405f4d;
  white-space:nowrap;
  transition:background .15s}
.button:hover {
  background:#eef3ed;
  text-decoration:none}
.button.primary {
  background:var(--green);
  color:#fff;
  border-color:var(--green)}
.button.primary:hover {
  background:var(--green-dark)}
.button.subtle {
  background:transparent;
  color:#738175;
  border-color:var(--line)}
.button.danger {
  background:#fff4f1;
  color:#ae4d35;
  border-color:#f1d7ce}
.button-row {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap}
.panel {
  border:1px solid var(--line);
  border-radius:10px;
  background:white;
  padding:24px;
  margin-bottom:22px;
  box-shadow:var(--shadow);
  min-width:0}
.panel.narrow {
  max-width:950px}
.page-description {
  color:var(--muted);
  max-width:950px;
  font-size:13px;
  margin-top:-7px;
  margin-bottom:24px}
.welcome-strip {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid #e0e8dc;
  border-radius:9px;
  padding:23px 26px;
  background:#eef3e9;
  margin-bottom:22px;
  gap:20px}
.welcome-strip h2 {
  font-size:23px;
  margin-bottom:5px}
.welcome-strip p {
  font-size:12px;
  margin:0;
  color:#728369}
.welcome-strip .button {
  padding:11px 18px}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:23px}
.stat {
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:22px 21px;
  min-width:0}
.stat p {
  color:#7b8a80;
  font-size:12px;
  margin-bottom:9px}
.stat h2 {
  font-size:25px;
  font-weight:610;
  margin:0 0 7px;
  letter-spacing:-.9px;
  white-space:nowrap}
.stat small {
  color:#88968c;
  font-size:10px;
  display:block}
.stat-unit {
  font-size:11px;
  color:#8b988f;
  font-weight:400;
  letter-spacing:0;
  margin-left:7px}
.stat-icon {
  position:absolute;
  right:17px;
  top:17px;
  width:28px;
  height:28px;
  border-radius:7px;
  display:grid;
  place-items:center;
  font-size:17px}
.mint {
  background:#e9f4ed;
  color:#387753}
.amber {
  background:#faf0d9;
  color:#96702b}
.lavender {
  background:#eeebf5;
  color:#807499}
.blue {
  background:#e9f0f6;
  color:#6e8ca5}
.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);
  gap:22px}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
  flex-wrap:wrap}
.section-heading h2 {
  margin:0}
.section-heading p {
  margin:4px 0 0}
.section-heading>a {
  font-size:11px}
.chart {
  padding:5px 0 12px}
.chart svg {
  width:100%;
  display:block;
  min-height:180px}
.chart-summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid #f0f2ef;
  padding-top:17px;
  font-size:10px;
  color:#829082}
.chart-summary strong {
  font-size:12px;
  color:#57705e}
.legend-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#559a77;
  margin-right:5px}
.badge {
  display:inline-block;
  background:#f0f4ee;
  color:#6d826e;
  font-size:10px;
  line-height:1.3;
  padding:5px 8px;
  border-radius:5px;
  white-space:nowrap;
  font-weight:500}
.badge.mint {
  background:#e4f0e8;
  color:#427a56}
.badge.amber {
  background:#fcf2dc;
  color:#a0782b}
.action-panel {
  background:#fcfdf9}
.action-panel h2 {
  margin-bottom:12px}
.action-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:17px 0;
  border-bottom:1px solid #edf0e9;
  color:inherit}
.action-row:hover {
  text-decoration:none}
.action-row>span:last-child {
  margin-left:auto;
  color:#8b9a86}
.action-row strong {
  font-size:12px}
.action-row small {
  display:block;
  font-size:10px;
  color:#8d9988;
  margin-top:3px}
.action-symbol {
  width:33px;
  height:33px;
  background:#eef3e9;
  border:1px solid #e4ebdd;
  display:grid;
  place-items:center;
  border-radius:7px;
  color:#76906a;
  font-size:17px}
.quiet-note {
  font-size:10px;
  color:#8b9886;
  line-height:1.6;
  background:#f2f5ed;
  padding:12px 15px;
  margin-top:17px;
  border-radius:6px}
.table-wrap {
  overflow:auto;
  margin:0 -2px;
  max-width:100%}
table {
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  text-align:left}
th {
  color:#8a988d;
  font-weight:500;
  font-size:10px;
  letter-spacing:.15px;
  white-space:nowrap;
  padding:12px 10px;
  border-bottom:1px solid var(--line);
  background:#fcfdfa}
td {
  padding:15px 10px;
  border-bottom:1px solid #eff2ed;
  vertical-align:middle;
  color:#637569}
tbody tr:last-child td {
  border-bottom:0}
td strong {
  font-weight:500;
  color:#49604e;
  font-size:12px}
td small {
  display:block;
  color:#97a192;
  font-size:10px;
  margin-top:3px;
  max-width:380px}
td .table-link {
  font-weight:550;
  color:#425f4b}
td .table-link:hover {
  color:var(--green)}
.num {
  text-align:right;
  font-variant-numeric:tabular-nums;
  white-space:nowrap}
.total-row td {
  font-weight:650;
  background:#f4f7f0;
  color:#47613f}
.task-row {
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #f0f2ed;
  padding:18px 0;
  color:#586d5a}
.task-row:hover {
  text-decoration:none}
.task-row:last-child {
  border:0}
.task-check {
  width:16px;
  height:16px;
  border:1px solid #d8e2d2;
  border-radius:4px;
  flex-shrink:0}
.task-row div {
  min-width:0}
.task-row strong {
  font-size:12px;
  font-weight:500}
.task-row small {
  display:block;
  font-size:10px;
  color:#929e8b;
  margin-top:3px}
.task-row .badge {
  margin-left:auto}
.notice {
  border-radius:7px;
  border:1px solid #dfe7dd;
  background:#f3f6ee;
  padding:13px 16px;
  margin-bottom:20px;
  font-size:12px;
  color:#67785c}
.notice.success {
  background:#eaf4ed;
  color:#346747;
  border-color:#d7e8dc}
.notice.error {
  background:#fff0eb;
  border-color:#f1d2c9;
  color:#a54130}
.notice.warning {
  background:#fff7e6;
  border-color:#f1e3c0;
  color:#886d37}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:17px;
  min-width:0}
.field label {
  font-size:12px;
  font-weight:550;
  color:#526b59}
.field label span {
  color:#9b7e50}
.field small {
  font-size:11px;
  color:var(--muted)}
input,select,textarea {
  border:1px solid #dce4db;
  border-radius:6px;
  padding:10px 12px;
  background:#fdfefc;
  color:#36573f;
  min-height:40px;
  width:100%;
  outline:none}
input:focus,select:focus,textarea:focus {
  border-color:#69a57e;
  box-shadow:0 0 0 3px #69a57e17}
textarea {
  resize:vertical;
  min-height:105px}
input::placeholder {
  color:#a4b09e}
input[type=checkbox] {
  width:16px;
  min-height:16px;
  accent-color:var(--green)}
input[type=file] {
  font-size:12px}
td input {
  min-width:130px;
  max-width:220px}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:24px}
.form-actions {
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:8px}
.filter-row {
  display:flex;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:20px}
.filter-row .field {
  margin:0;
  min-width:140px;
  max-width:420px;
  flex:1}
.filter-row .button {
  min-height:40px}
.checkbox {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  min-height:40px}
.search-row {
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:17px;
  max-width:460px}
.section-heading .search-row {
  margin:0}
.search-row input {
  font-size:12px;
  min-width:200px}
.summary-band {
  padding:14px 18px;
  background:#f2f6ef;
  border:1px solid #e4ebde;
  border-radius:6px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  font-size:12px;
  margin:16px 0 22px;
  color:#637b57}
.detail-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:25px 35px;
  margin:25px 0}
.detail-grid dt {
  color:#8b9b85;
  font-size:11px;
  margin-bottom:6px}
.detail-grid dd {
  margin:0;
  font-size:13px;
  color:#506647;
  overflow-wrap:anywhere}
.two-columns {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  align-items:start}
details summary {
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  color:#516b47;
  padding:2px 0;
  list-style-position:inside}
details[open]>summary {
  margin-bottom:20px}
.print-only {
  display:none}
.count-title {
  display:flex;
  align-items:center;
  gap:10px}
.count {
  font-size:11px;
  display:inline-grid;
  place-items:center;
  background:#eef3e8;
  color:#6a815c;
  min-width:24px;
  height:24px;
  border-radius:6px;
  padding:0 6px}
.empty {
  text-align:center;
  padding:44px 15px 47px}
.empty-symbol {
  width:43px;
  height:43px;
  margin:0 auto 15px;
  display:grid;
  place-items:center;
  background:#edf3e7;
  border-radius:13px;
  font-size:25px;
  color:#93a982}
.empty h3 {
  margin:0 0 8px;
  font-size:16px}
.empty p {
  font-size:12px;
  color:var(--muted);
  max-width:390px;
  margin:auto}
.list-card {
  display:flex;
  gap:18px;
  align-items:center;
  padding:20px 0;
  border-bottom:1px solid var(--line);
  color:#526b47}
.list-card:last-child {
  border:0}
.list-card:hover {
  text-decoration:none}
.list-card>span:last-child {
  margin-left:auto}
.list-card strong {
  display:block}
.list-card small {
  display:block;
  margin-top:5px;
  color:var(--muted)}
.year-tile {
  padding:12px;
  border:1px solid #dfe7d7;
  border-radius:6px;
  background:#f3f7ed;
  color:#7c936a;
  font-size:16px}
.csv-example,code {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:11px}
.csv-example {
  background:#f5f7f1;
  padding:13px;
  border-radius:6px;
  overflow:auto}
.audit-payload {
  font-size:10px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-width:650px;
  max-height:400px;
  overflow:auto}
.letter {
  max-width:900px;
  padding:50px}
.letter-sender {
  font-size:10px;
  border-bottom:1px solid var(--line);
  padding-bottom:10px;
  margin-bottom:35px}
.letter h2 {
  margin-top:35px}
.footer {
  display:flex;
  justify-content:space-between;
  font-size:9px;
  color:#96a08f;
  padding:7px 0 0;
  gap:15px}
.footer .muted {
  padding:0 7px}
.mobile-toggle {
  display:none}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0}
.skip-link {
  position:fixed;
  left:15px;
  top:-70px;
  z-index:999;
  background:white;
  padding:10px;
  border:1px solid var(--green)}
.skip-link:focus {
  top:15px}
.login-page {
  background:#f3f6ef;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:35px}
.login-shell {
  width:min(1100px,100%);
  display:grid;
  grid-template-columns:1.1fr 1fr;
  min-height:660px;
  background:white;
  padding:0;
  overflow:hidden;
  border-radius:16px;
  border:1px solid #e0e8d8;
  box-shadow:0 20px 80px #2740190a}
.login-intro {
  padding:40px 45px;
  background:#e9f0e1;
  position:relative}
.login-intro .brand {
  padding:0;
  margin-bottom:65px}
.login-intro h1 {
  font-size:42px;
  line-height:1.2;
  margin-bottom:23px}
.login-intro>p {
  max-width:330px;
  color:#7e9271;
  font-size:13px}
.login-intro>small {
  position:absolute;
  bottom:30px;
  color:#8ea17e;
  font-size:10px}
.login-form {
  padding:65px 50px;
  display:flex;
  align-items:center}
.login-form>div {
  width:100%}
.login-form h2 {
  font-size:27px;
  margin:0 0 10px}
.login-form .muted {
  font-size:12px;
  margin-bottom:30px}
.login-form .button {
  width:100%;
  height:45px;
  margin:8px 0 20px}
.login-form .field {
  margin-bottom:20px}
.login-art {
  height:210px;
  position:relative;
  margin-top:33px;
  display:flex;
  align-items:flex-end;
  gap:7px;
  padding-left:27px}
.house {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:17px;
  padding:20px;
  background:#d8e4cd;
  border-radius:3px 3px 0 0;
  border:1px solid #cadbbd}
.house i {
  background:#edf3e6;
  border:1px solid #c2d6b1;
  width:23px;
  height:28px}
.house-a {
  height:150px;
  transform:skewY(-4deg)}
.house-b {
  height:120px;
  background:#c5d8b6;
  transform:skewY(4deg)}
.house-c {
  height:180px;
  transform:skewY(-4deg);
  background:#bfd4ae}

@media(min-width:1500px) {
  .stat h2 {
  font-size:29px}
.nav-link {
  font-size:13px}
.sidebar {
  width:260px}
.app-shell {
  margin-left:260px}
main {
  padding:40px 46px}
.topbar {
  padding:0 46px}
}

@media(max-width:1200px) {
  main {
  padding:28px 24px}
.topbar {
  padding:0 24px}
.stats-grid {
  gap:12px}
.stat {
  padding:19px 16px}
.stat h2 {
  font-size:22px}
.stat-icon {
  display:none}
.dashboard-grid {
  grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr)}
.panel {
  padding:20px}
.sidebar {
  width:220px}
.app-shell {
  margin-left:220px}
.brand {
  padding-left:21px}
}

@media(max-width:1000px) {
  .stats-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-grid {
  grid-template-columns:1fr}
.two-columns {
  grid-template-columns:1fr;
  gap:0}
.login-shell {
  grid-template-columns:1fr 1fr}
.login-intro {
  padding:35px}
.login-intro h1 {
  font-size:34px}
.login-form {
  padding:40px 30px}
.login-art {
  padding-left:0;
  gap:4px}
.house {
  padding:15px;
  gap:12px}
}

@media(max-width:760px) {
  .sidebar {
  transform:translateX(-100%);
  transition:transform .2s;
  width:246px;
  box-shadow:8px 0 30px #15291415}
.sidebar.is-open {
  transform:translateX(0)}
.app-shell {
  margin-left:0}
.mobile-toggle {
  display:inline-flex}
.topbar {
  height:60px;
  padding:0 18px}
.breadcrumb {
  gap:9px;
  font-size:10px}
.top-actions>span {
  display:none}
main {
  padding:26px 18px}
.page-heading {
  align-items:flex-end}
.page-heading h1 {
  font-size:25px}
.heading-actions .button {
  font-size:10px;
  padding:7px 9px;
  min-height:32px}
.welcome-strip {
  padding:20px;
  align-items:flex-start;
  flex-direction:column}
.welcome-strip h2 {
  font-size:21px}
.stats-grid {
  gap:12px}
.stat {
  padding:18px}
.stat h2 {
  font-size:23px}
.stat small {
  font-size:9px}
.stat-unit {
  font-size:10px}
.panel {
  padding:18px}
.form-grid,.detail-grid {
  grid-template-columns:1fr}
.detail-grid {
  gap:19px}
.section-heading {
  align-items:flex-start}
.search-row {
  width:100%;
  max-width:none}
.search-row input {
  min-width:0}
.filter-row {
  align-items:stretch}
.filter-row .field {
  min-width:calc(50% - 15px);
  max-width:100%}
.filter-row .button {
  align-self:flex-end}
.summary-band {
  flex-direction:column;
  gap:7px}
.footer {
  flex-direction:column;
  gap:5px;
  font-size:8px}
.login-page {
  padding:16px}
.login-shell {
  display:block;
  min-height:auto}
.login-intro {
  padding:25px}
.login-intro .brand {
  margin:0 0 30px}
.login-intro h1 {
  font-size:31px}
.login-intro>small,.login-art {
  display:none}
.login-intro>p {
  max-width:none;
  margin:0}
.login-form {
  padding:35px 25px}
.login-form h2 {
  font-size:25px}
.letter {
  padding:25px}
}

@media print {
  @page {
  size:A4;
  margin:17mm}
body {
  background:white;
  color:#111;
  font-size:10pt}
.sidebar,.topbar,.footer,.heading-actions,.no-print,form,.button,.skip-link {
  display:none!important}
.app-shell {
  margin:0}
main {
  padding:0;
  max-width:none}
.page-heading {
  margin-bottom:18px}
h1 {
  font-size:23pt}
h2 {
  font-size:15pt}
h3 {
  font-size:12pt}
.panel {
  box-shadow:none;
  border:0;
  padding:0;
  margin-bottom:22px;
  break-inside:auto}
.panel>h2,summary {
  break-after:avoid}
.table-wrap {
  overflow:visible}
table {
  font-size:9pt}
thead {
  display:table-header-group}
td,th {
  padding:7px 6px}
tr {
  break-inside:avoid}
th {
  background:#f3f3f3}
.print-only {
  display:block}
.print-expand {
  break-before:page}
.print-expand>summary {
  list-style:none;
  font-size:17pt;
  margin-bottom:15px}
.two-columns,.dashboard-grid,.stats-grid {
  display:block}
.letter {
  max-width:none;
  padding:0}
.detail-grid {
  grid-template-columns:1fr 1fr}
a {
  color:inherit;
  text-decoration:none}
.notice {
  padding:8px;
  border:1px solid #ccc}
.summary-band {
  background:#f4f4f4}
.badge {
  border:1px solid #bbb}
.welcome-strip {
  background:white}
.stat {
  display:inline-block;
  width:48%;
  margin-bottom:15px}
.chart {
  max-width:150mm}
}


/* Rental accounting */
.toolbar { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 24px; }
.cost-explanation { border-bottom:1px solid #e4e9e6; padding:12px 0; }
.cost-explanation p { margin-bottom:0; }
input[type=checkbox] { width:auto; min-height:0; accent-color:#265a43; }
@media print {
  .statement .cost-explanation { break-inside:avoid; }
  .statement table { font-size:9pt; }
  .statement td, .statement th { padding:6px; }
}

@media print {
  .statement th { white-space:normal; }
  .statement td.num { white-space:nowrap; }
}

/* Freigabeseite für Claude (OAuth) */
.oauth-agent { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; padding:8px 0; cursor:pointer; }
.oauth-agent input[type=radio] { width:16px; min-height:16px; padding:0; margin:0; flex:none; accent-color:var(--green); }
fieldset.field { border:1px solid #dce4db; border-radius:6px; padding:8px 14px; }
fieldset.field legend { padding:0 6px; }

/* Wirtschaftsplan: Einzelwirtschaftspläne als Schreiben an die Eigentümer */
.budget-status { color:var(--muted); }
.letterhead { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; border-bottom:2px solid var(--green); padding-bottom:10px; margin:6px 0 26px; }
.letterhead-brand strong { display:block; font-size:18px; letter-spacing:.01em; color:var(--ink); }
.letterhead-brand span { display:block; color:var(--muted); font-size:12px; margin-top:2px; }
.letterhead-contact { text-align:right; font-size:11px; line-height:1.5; color:var(--muted); }
.letter-top { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,260px); gap:32px; align-items:start; margin-bottom:26px; }
.letter-return { display:inline-block; font-size:9px; color:var(--muted); border-bottom:1px solid var(--line); padding-bottom:2px; margin:0 0 8px; }
.letter-recipient { margin:0; line-height:1.45; min-height:6.2em; }
.letter-facts { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; margin:0; font-size:12px; }
.letter-facts dt { color:var(--muted); white-space:nowrap; }
.letter-facts dd { margin:0; font-weight:600; }
.letter-subject { font-size:20px; margin:0 0 8px; }
.letter-closing { margin-top:18px; }
.budget-rate .muted.small { display:block; margin-top:2px; }
@media(max-width:760px) { .letterhead { flex-direction:column; align-items:flex-start; } .letterhead-contact { text-align:left; } .letter-top { grid-template-columns:1fr; gap:16px; } }
.budget-head { display:grid; grid-template-columns:1fr auto; gap:24px; align-items:start; }
.budget-recipient { margin:0; min-height:5em; }
.budget-facts { display:grid; grid-template-columns:auto auto; gap:3px 16px; margin:0; font-size:12px; }
.budget-facts dt { color:var(--muted); }
.budget-facts dd { margin:0; text-align:right; }
.budget-rate { display:grid; grid-template-columns:auto 1fr auto; gap:10px 36px; align-items:end; border:1px solid var(--line); border-left:4px solid var(--green); border-radius:6px; padding:14px 18px; margin:18px 0 24px; }
.budget-rate small { display:block; color:var(--muted); }
.budget-rate strong { font-size:24px; color:var(--ink); }
.pay-table td:first-child { width:170px; color:var(--muted); }
.budget-before td { color:var(--muted); }
.grand-total td { border-top:2px solid var(--ink); }
.budget-notes { padding-left:18px; }
.budget-notes li { margin-bottom:4px; }
@media(max-width:760px) { .budget-head, .budget-rate { grid-template-columns:1fr; } .budget-facts dd { text-align:left; } }
@media print {
  .budget-unit>summary { display:none; }
  .budget-unit .letter-sender { margin-bottom:20px; }
  .letterhead { margin-top:0; border-bottom-color:#333; }
  .letterhead-brand strong { font-size:14pt; }
  .letterhead-contact, .letter-facts { font-size:8.5pt; }
  .letter-top { grid-template-columns:85mm 1fr; gap:10mm; margin-bottom:8mm; }
  .letter-recipient { min-height:27mm; font-size:10.5pt; }
  .letter-return { font-size:6.5pt; }
  .letter-subject { font-size:13pt; }
  .budget-rate { border-color:#999; border-left-color:#333; padding:8px 12px; margin:10px 0 14px; break-inside:avoid; }
  .budget-rate strong { font-size:15pt; }
  .budget-unit h3 { margin:14px 0 6px; break-after:avoid; }
  .budget-unit td, .budget-unit th { padding:4px 6px; }
  .pay-table, .budget-notes { break-inside:avoid; }
}

/* Tags */
.tags { display:inline-flex; flex-wrap:wrap; gap:4px; margin-left:6px; vertical-align:middle; }
.tag { display:inline-flex; align-items:center; gap:4px; font-size:11px; line-height:1; padding:4px 8px; border-radius:999px; background:var(--mint); color:var(--green-dark); border:1px solid #cfe2d6; text-decoration:none; cursor:pointer; font-family:inherit; }
.tag small { color:var(--muted); font-size:10px; }
.tag.active { background:var(--green); color:#fff; border-color:var(--green); }
.tag.active small { color:#dfeee5; }
.tag-filter { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 0 16px; }
.tag-filter .button { min-height:0; padding:4px 10px; font-size:12px; }
.tag-suggestions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:4px 0 12px; }
.tag-form .field { margin-bottom:6px; }
.tag-summary { margin:0 0 14px; }
.badge.red { background:#fbe5e1; color:#a4463a; }
.negative { color:#a4463a; }
.contract-auto p { margin:0 0 8px; }
.contract-auto details { margin:0 0 10px; }
.plain-list { margin:8px 0 0; padding-left:18px; }
.stacked-heading { margin-top:32px; }
.resolution-proposal { margin-top:18px; padding:12px 16px; border:1px solid #d9e2d6; border-left:4px solid #6d826e; border-radius:8px; break-inside:avoid; }
.resolution-proposal h3 { margin:0 0 6px; }
.resolution-proposal p { margin:0 0 6px; }
.plan-hint { display:block; color:#6d826e; font-size:.85em; margin-top:4px; }
.plan-hint button { font:inherit; color:inherit; text-decoration:underline; background:none; border:0; padding:0; cursor:pointer; }
@media print { .tag-filter, .tag-form { display:none; } .tag { border:1px solid #999; background:none; color:#333; } }
.group-row td { background:var(--canvas); }
.signature { margin-top:36px; }

/* Anhänge an Handwerkeraufträgen */
.media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; margin:12px 0 22px; }
.media-item { margin:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--white); display:flex; flex-direction:column; }
.media-item img, .media-item video { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; background:#111; }
.media-file { display:grid; place-items:center; aspect-ratio:4/3; background:var(--canvas); color:var(--green-dark); font-weight:700; text-decoration:none; letter-spacing:1px; }
.media-item figcaption { padding:10px 12px; display:flex; flex-direction:column; gap:4px; font-size:12px; }
.media-item figcaption small { color:var(--muted); }
.media-actions { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; margin-top:4px; }
.inline-form { display:inline; margin:0; }
.link-button { background:none!important; border:0!important; padding:0!important; min-height:0!important; color:var(--green)!important; text-decoration:underline; font-size:12px; cursor:pointer; box-shadow:none!important; }
.upload-form .checkbox { margin:4px 0 12px; display:block; }
@media print { .upload-form { display:none; } .media-item video { display:none; } }

/* Eigentümerportal */
.portal-weg { margin:6px 0 18px; padding:0 24px; font-weight:600; color:var(--ink); }
.portal .brand { font-size:18px; }
.plain-list { list-style:none; padding:0; margin:0 0 12px; }
.plain-list li { padding:8px 0; border-bottom:1px solid var(--line); }
.plain-list li:last-child { border-bottom:0; }
tr.unread td { font-weight:600; }
.warning-text { color:var(--amber); font-weight:600; }
details.resolution { border-bottom:1px solid var(--line); padding:12px 0; }
details.resolution summary { cursor:pointer; }
.fints-dialog .checkbox { display:block; margin:6px 0; }
.fints-challenge { max-width:260px; height:auto; background:#fff; padding:8px; border:1px solid var(--line); }
.fints-start { border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:12px; }
.fints-start:last-of-type { border-bottom:0; }
