@font-face {
  font-family: Inter;
  src: url("/brand/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/brand/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #332b4d;
  --muted: #6b6875;
  --brand: #4b3f72;
  --accent: #f2c879;
  --surface: #fff;
  --bg: #fbf7f0;
  --line: #e6dfe9;
  --danger: #a43b35;
  --radius: 16px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
a {
  cursor: pointer;
}
button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  font-weight: 600;
}
button:hover {
  background: #f3edf7;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #4b3f72;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9478b1;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1.2px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.primary:hover {
  background: #332b4d;
}
.subtle {
  background: transparent;
  border-color: transparent;
}
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 26px 15px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.logo img {
  width: 39px;
  height: 39px;
}
.sidebar .logo {
  padding: 0 10px;
}
.workspace {
  margin: 0 8px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
.workspace small {
  display: block;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
}
.nav a.active {
  color: var(--brand);
  background: #eee8f4;
  font-weight: 700;
}
.nav a:hover {
  background: var(--bg);
}
.nav-label {
  font-size: 11px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin: 18px 12px 7px;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-label:first-child {
  margin-top: 0;
}
.side-bottom {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
}
.side-bottom p {
  font-size: 13px;
}
.content {
  min-width: 0;
}
.topbar {
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  gap: 12px;
}
.topbar .date {
  font-size: 14px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee8f4;
  font-size: 13px;
  font-weight: 700;
}
.demo-tag {
  font-size: 12px;
  border: 1px solid #b6ce92;
  color: #40552d;
  border-radius: 20px;
  background: #f2f8e8;
  padding: 5px 10px;
  white-space: nowrap;
}
.main {
  max-width: 1500px;
  padding: 32px 36px 48px;
  margin: auto;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.pagehead p {
  color: var(--muted);
  margin-top: 7px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 10px;
}
.welcome {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background: var(--brand);
  color: white;
  padding: 28px 30px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.welcome h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
}
.welcome p {
  color: #e6dfed;
  margin-top: 8px;
  max-width: 530px;
}
.welcome .eyebrow {
  color: #f2c879;
}
.welcome button {
  background: var(--accent);
  color: var(--brand);
  border: 0;
  align-self: center;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  display: block;
}
.stat:hover {
  border-color: #b3a0c8;
  color: var(--ink);
}
.stat label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 8px 0;
}
.stat small {
  display: block;
  font-size: 12px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panelhead a {
  font-size: 13px;
  font-weight: 650;
  color: #4b3f72;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #ede7ef;
  min-width: 0;
}
.row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.row:first-child {
  padding-top: 0;
}
.row .grow {
  flex: 1;
  min-width: 0;
}
.row p,
.row strong,
.record h3 {
  overflow-wrap: anywhere;
}
.row small {
  display: block;
  margin-top: 3px;
}
.row .badge {
  flex-shrink: 0;
}
.initial {
  display: grid;
  place-items: center;
  background: #f1eaf5;
  border-radius: 11px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}
.time {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  width: 52px;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 6px;
  padding: 4px 8px;
  background: #edf3e7;
  color: #465b32;
  font-size: 12px;
  font-weight: 650;
  white-space: normal;
}
.badge.warn {
  background: #fff1da;
  color: #7b540a;
}
.badge.neutral {
  background: #edf1f5;
  color: #4d6470;
}
.badge.danger {
  background: #fbe7e4;
  color: #913b32;
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quick button {
  font-size: 13px;
  text-align: left;
  background: var(--bg);
  padding: 13px 12px;
}
.quick button span {
  display: block;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
input,
select,
textarea {
  border: 1px solid #c6b9d1;
  border-radius: 9px;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  max-width: 100%;
  width: 100%;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.toolbar input {
  flex: 1;
  min-width: 140px;
}
.toolbar select {
  width: auto;
}
.records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.record {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.record h3 {
  font-size: 18px;
  margin: 10px 0 7px;
}
.record p {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
}
.record .actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.record .actions button {
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  border: 1px dashed #c6b9d1;
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
}
.notice {
  background: #eef3e6;
  border: 1px solid #d4e0c3;
  color: #425531;
  border-radius: 11px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.notice.error {
  background: #fff0ed;
  border-color: #ecc8c0;
  color: #913b32;
}
.stack {
  display: grid;
  gap: 16px;
}
.settings {
  max-width: 760px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}
.field small {
  font-weight: 400;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field.wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.mobilebar,
.mobile-menu {
  display: none;
}
dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 30px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 25px 100px #092f4833;
}
dialog::backdrop {
  background: #12313b66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 8px;
}
dialog .intro {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #eee6f4, #fbf7f0 50%, #f9efd9);
}
.login-card {
  width: 100%;
  max-width: 450px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}
.login-card h1 {
  margin: 34px 0 12px;
}
.login-card form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.login-card .primary {
  width: 100%;
}
.login-card small {
  display: block;
  margin-top: 24px;
}
.login-card .demo-tag {
  display: inline-block;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  z-index: 20;
  box-shadow: 0 8px 35px #4b3f7225;
  max-width: calc(100vw - 32px);
  display: none;
}
#toast.visible {
  display: block;
}
.chat {
  max-width: 850px;
}
.chat-message {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.chat-message.mine {
  background: #f3edf7;
  margin-left: 30px;
}
.chat form {
  display: flex;
  gap: 10px;
}
.chat button {
  flex-shrink: 0;
}
.mini-list {
  margin-top: 12px;
}
.mini-list p {
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 14px;
}
.loading {
  padding: 40px;
}
.totals {
  background: var(--bg);
  padding: 16px;
  border-radius: 10px;
  margin-top: 14px;
}
.link-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.link-list a {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.footer-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
}
.overflow-anywhere {
  overflow-wrap: anywhere;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
}
.detail-grid dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.pillbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.pillbar a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
}
.pillbar a.selected {
  background: var(--brand);
  color: white;
}
.photo {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}
.lock {
  padding: 32px;
}
.record-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.audit {
  white-space: pre-wrap;
  font-size: 12px;
  overflow-wrap: anywhere;
  background: var(--bg);
  padding: 12px;
  border-radius: 8px;
}
.error-text {
  color: var(--danger);
  font-size: 14px;
  min-height: 21px;
}
.offline-banner {
  margin: 0;
  border-radius: 0;
  background: #fff1da;
  border: 0;
  color: #7b540a;
}
.install-help {
  font-size: 14px;
}
.section-gap {
  margin-top: 25px;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 40px;
  }
  .stats {
    gap: 22px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .main {
    padding: 25px;
  }
  .topbar {
    padding: 14px 25px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .welcome {
    flex-wrap: wrap;
  }
  .sidebar {
    padding: 22px 10px;
  }
  .nav a {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    min-height: 66px;
    padding: 12px 18px;
  }
  .topbar .date {
    display: none;
  }
  .topbar .mobile-logo {
    display: flex;
  }
  .mobile-logo {
    font-weight: 750;
    font-size: 20px;
  }
  .main {
    padding: 24px 18px 110px;
  }
  .pagehead {
    align-items: flex-start;
    gap: 12px;
  }
  .pagehead p {
    font-size: 14px;
  }
  .pagehead button {
    font-size: 13px;
    padding: 9px 12px;
    flex-shrink: 0;
  }
  .welcome {
    padding: 22px;
  }
  .welcome h2 {
    font-size: 21px;
  }
  .welcome p {
    font-size: 14px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat label {
    font-size: 12px;
  }
  .columns {
    gap: 0;
  }
  .panel {
    padding: 20px;
  }
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .records {
    grid-template-columns: 1fr;
  }
  .record {
    padding: 20px;
  }
  .mobilebar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--line);
    z-index: 5;
    padding: 9px 4px max(9px, env(safe-area-inset-bottom));
  }
  .mobilebar a {
    min-height: 48px;
    font-size: 10px;
    text-align: center;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    color: var(--muted);
    border-radius: 8px;
  }
  .mobilebar a.active {
    color: var(--brand);
    background: #eee8f4;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu .nav {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-menu .nav-label {
    grid-column: 1/-1;
  }
  .formgrid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .formgrid .wide {
    grid-column: auto;
  }
  .chat form {
    flex-wrap: wrap;
  }
  .chat input {
    flex: 1;
    min-width: 160px;
  }
  .login-card {
    padding: 26px;
  }
  .row {
    gap: 10px;
  }
  .row .badge {
    max-width: 90px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .install-label {
    display: none;
  }
  dialog {
    padding: 22px 18px;
  }
  .link-list {
    grid-template-columns: 1fr;
  }
  #toast {
    bottom: 95px;
  }
  .avatar {
    display: none;
  }
  .welcome button {
    width: 100%;
  }
  .panelhead h2 {
    font-size: 18px;
  }
  .panelhead a {
    font-size: 12px;
  }
}
@media (min-width: 721px) {
  .mobile-logo {
    display: none;
  }
}
@media (max-width: 350px) {
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    padding: 12px;
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 23px;
  }
  .pagehead {
    flex-wrap: wrap;
  }
  .top-actions button {
    font-size: 12px;
    padding: 8px;
  }
  .mobile-menu .nav {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  .row .grow {
    min-width: 120px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.16s ease,
      border-color 0.16s ease;
  }
}
.pagehead > div {
  min-width: 0;
}
h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .pagehead {
    flex-wrap: wrap;
  }
}
.mobile-menu {
  display: block;
}
.mobile-menu .nav a {
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width: 720px) {
  .mobile-menu .nav {
    grid-template-columns: 1fr;
  }
}
.file-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 15px;
  background: var(--brand);
  color: white;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* Original Mondbüro brand: logo-lockup, Fraunces, Inter, indigo and gold. */
h1,
.welcome h2,
.login-card h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 550;
  letter-spacing: -0.6px;
}
h1 {
  font-size: clamp(30px, 3vw, 40px);
}
.sidebar {
  background: #1d1830;
  border-right-color: #332b4d;
  color: #efebf7;
}
.sidebar .logo {
  padding: 0 8px;
}
.logo .brand-lockup {
  width: 190px;
  height: auto;
  max-width: 100%;
}
.sidebar .workspace {
  background: #29223e;
  border-color: #4b3f72;
  color: #efebf7;
}
.sidebar .workspace small {
  color: #c7c1d9;
}
.sidebar .nav a {
  color: #ddd6e8;
}
.sidebar .nav a:hover {
  background: #332b4d;
}
.sidebar .nav a.active {
  color: #f2c879;
  background: #3d3256;
}
.sidebar .nav-label {
  color: #b3acc7;
}
.sidebar .side-bottom {
  border-color: #4b3f72;
}
.sidebar .side-bottom small {
  color: #c7c1d9;
}
.sidebar .side-bottom p {
  color: #f2c879;
}
.welcome {
  background:
    radial-gradient(ellipse at top right, #6b537633, transparent 70%),
    linear-gradient(115deg, #332b4d, #4b3f72);
}
.welcome button {
  color: #2a2238;
  background: linear-gradient(135deg, #f5d99d, #f2c879);
  border: 1px solid #f5d99d;
}
.welcome .eyebrow {
  color: #f2c879;
}
.welcome h2 {
  font-size: 27px;
}
.login-card .logo .brand-lockup {
  width: 235px;
}
.login-card {
  box-shadow: 0 20px 70px #4b3f7212;
}
.mobile-logo img {
  width: 132px;
  height: 46px;
  object-fit: contain;
}
.topbar {
  background: #fffcf8;
}
.initial,
.avatar {
  color: #4b3f72;
}
.primary {
  box-shadow: 0 3px 8px #4b3f7210;
}
.stat strong {
  color: #332b4d;
}
.sidebar .logo img {
  border-radius: 0;
}
.topbar .demo-tag {
  background: #faf0d9;
  border-color: #e4cc99;
  color: #705522;
}
@media (max-width: 720px) {
  .topbar {
    padding: 8px 12px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions [data-install] {
    font-size: 12px;
    padding: 8px;
    min-height: 44px;
  }
  .mobile-logo img {
    width: 116px;
    height: 40px;
  }
  .welcome h2 {
    font-size: 25px;
  }
}
@media (max-width: 350px) {
  .topbar {
    gap: 4px;
  }
  .mobile-logo img {
    width: 99px;
    height: 36px;
  }
  .demo-tag {
    padding: 4px 7px;
    font-size: 11px;
  }
  .top-actions [data-install] {
    padding: 7px 5px;
    font-size: 11px;
  }
}
.rental-property,
.rental-unit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rental-property:last-child,
.rental-unit:last-child {
  border-bottom: 0;
}
.rental-property > div,
.rental-unit > div {
  min-width: 0;
}
.record-link {
  display: inline-block;
  color: var(--brand);
  font-weight: 650;
  min-height: 44px;
  align-content: center;
  overflow-wrap: anywhere;
}
.rental-file {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.rental-file > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.rental-file small {
  display: block;
}
.damage-photo {
  width: 140px;
  height: 105px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rental-video {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rental-property h3 {
  font-size: 20px;
}
.panelhead {
  flex-wrap: wrap;
}
h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .rental-property,
  .rental-unit {
    flex-wrap: wrap;
  }
  .rental-property .eyebrow {
    display: block;
  }
  .damage-photo {
    width: 100px;
    height: 80px;
  }
  .rental-file {
    gap: 10px;
  }
  .panelhead button {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .rental-file { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .rental-file > .record-link, .rental-file > button { grid-column: 1 / -1; justify-self: start; }
}
.invoice-line { border:1px solid var(--line); border-radius:12px; padding:16px; margin:12px 0; min-width:0; }
.invoice-line legend { padding:0 6px; font-weight:650; }
.invoice-line .formgrid { margin-top:12px; }
.invoice-preview { white-space:pre-wrap; overflow-wrap:anywhere; font-family:inherit; background:var(--bg); padding:18px; border-radius:12px; font-size:14px; line-height:1.6; }
.archive-drop{padding:28px;border:2px dashed var(--accent,#b89955);border-radius:12px;text-align:center;cursor:pointer;background:#faf8f2;overflow-wrap:anywhere}.archive-drop.dragging{background:#eee8d7;border-style:solid}.archive-drop input{max-width:100%;margin-top:14px}#archive-progress{overflow-wrap:anywhere}

.notification-bell{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:6px;background:var(--surface)}.notification-bell span{font-size:12px;font-weight:700;min-width:18px;text-align:center;color:var(--ink)}
/* Mieterservice, Mietzahlungen: Zeilen mit Aktionen brechen auf schmalen Bildschirmen um. */
.row.stackable { flex-wrap: wrap; }
.row.stackable .grow { min-width: 12rem; }
@media (max-width: 640px) {
  .row.stackable .grow { flex-basis: 100%; }
  .row.stackable .toolbar { width: 100%; }
}
/* Archiveingang: Ergebnis je Datei, Herkunft der Vorschläge, Verlauf */
.archive-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.archive-status [hidden]{display:none}
.archive-results{list-style:none;margin:12px 0 18px;padding:0;display:grid;gap:8px}
.archive-result{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:0;overflow-wrap:anywhere}
.archive-result strong{overflow-wrap:anywhere;min-width:0}
.archive-result-text{flex:1 1 100%;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.archive-result.error{border-color:#ecc8c0;background:#fff7f5}
.archive-result.warning{border-color:#f0dcb0;background:#fffaf0}
.archive-warning{color:#7b540a!important;overflow-wrap:anywhere}
.archive-source{margin:-6px 0 4px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.archive-year{margin:0;font-size:14px}
.archive-history{margin:8px 0 0;padding-left:20px;font-size:14px;overflow-wrap:anywhere}
.archive-history ul{margin:4px 0 8px;padding-left:18px}
.archive-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:13px}
#archive-ocr-notice{background:#fffaf0;border-color:#f0dcb0;color:#7b540a}
.archive-core{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:4px 0 8px;min-width:0}
.archive-core-text{flex:1 1 12rem;font-size:14px;color:var(--muted);overflow-wrap:anywhere;min-width:0}
.archive-core button,.archive-result button{font-size:13px}
.archive-result.core{border-color:#ecc8c0;background:#fff7f5}
#archive-core-notice{background:#fff7f5;border-color:#ecc8c0;color:#7a2a1d}
/* Mitarbeiter & Zeiterfassung (Pro): Erfassung am Einsatzort, Live-Teamübersicht,
   Mitarbeiteransicht und Baustellendashboard. Ab 320 px Breite nutzbar. */
.team-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.team-live,
.team-list,
.team-days {
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-live-row,
.team-list > li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.team-live-row:first-child,
.team-list > li:first-child {
  border-top: 0;
}
.team-live-name {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.team-live-row p,
.team-list p {
  margin: 4px 0 0;
  font-size: 14px;
}
.team-hint {
  margin-top: 8px;
  font-size: 14px;
}
.team-hint p {
  margin: 0;
}
.team-staff {
  display: grid;
  gap: 12px;
}
.team-person summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}
.team-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}
.team-facts dt {
  font-size: 13px;
  color: var(--muted);
}
.team-facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.team-days li {
  font-size: 14px;
  padding: 2px 0;
}
.team-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.team-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
  min-width: 0;
}
.team-tile span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.team-tile strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.team-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.team-photo {
  margin: 0;
  min-width: 0;
}
.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}
.team-photo figcaption {
  font-size: 13px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.team-actions button {
  min-height: 44px;
}
.team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.team-preview {
  max-width: 100%;
  max-height: 40vh;
  border-radius: 10px;
  display: block;
}
/* Arbeitszeitauswertung (PV-42) */
.team-report-list {
  display: grid;
  gap: 12px;
}
.team-report-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}
.team-report-days li {
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .team-actions button {
    flex: 1 1 100%;
  }
  .team-row {
    grid-template-columns: 1fr;
  }
}
/* Verweise auf Impressum und Datenschutz der Website (App, Anmeldung, Mieterseite). */
.legal-links {
  font-size: 13px;
  color: var(--muted);
}
.legal-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  padding: 6px 2px;
}
.app-legal {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
