:root {
  --brand-blue: #002b9e;
  --brand-deep: #062174;
  --brand-ink: #152542;
  --brand-muted: #4f6079;
  --brand-focus: #235bd4;
  --brand-page: #f1f5fc;
  --brand-wash: #e7efff;
  --brand-line: #d9e3f3;
}

.brand-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #fff;
}

.brand-logo img { display: block; width: 108px; height: auto; }

.project-region-control { display: grid; min-width: 0; gap: 6px; }
.project-region-control :is(input, select) { box-sizing: border-box; max-width: 100%; }
.project-region-control [role="status"] { font-size: .875em; }

.project-note-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 0;
}
.project-note-thread .project-note-entry {
  box-sizing: border-box;
  align-self: flex-start;
  max-inline-size: min(100%, 52rem);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--portal-border, var(--brand-line));
  border-radius: 10px;
  background: var(--portal-surface, var(--brand-page));
  list-style: none;
  overflow-wrap: anywhere;
}
.project-note-entry[data-note-role="staff"] {
  align-self: flex-end;
  background: var(--portal-soft, var(--brand-wash));
}
.project-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  color: var(--portal-muted, var(--brand-muted));
  font-size: .85rem;
}
.project-note-thread .project-note-entry p { margin: 4px 0 0; padding: 0; }

[data-status="Eingegangen"] { --status-ink: #163d91; --status-tint: #e7efff; }
[data-status="In Prüfung"] { --status-ink: #3451a1; --status-tint: #edf0ff; }
[data-status="In Planung"] { --status-ink: #43467c; --status-tint: #eeeff8; }
[data-status="Aufmaß"] { --status-ink: #6b4c17; --status-tint: #f9efd9; }
[data-status="Druckdaten Überprüfung/Erstellung"] { --status-ink: #634477; --status-tint: #f2e9f8; overflow-wrap: anywhere; }
[data-status="Produktion"] { --status-ink: #07567d; --status-tint: #e2f3fc; }
[data-status="Montage"] { --status-ink: #064f5e; --status-tint: #e2f3f6; }
[data-status="Montage in Planung"] { --status-ink: #2b5c4b; --status-tint: #e2f3ea; }
[data-status="Rückfragen"] { --status-ink: #593e8b; --status-tint: #f1ebfb; }
[data-status="Abgeschlossen"] { --status-ink: #425973; --status-tint: #eaf0f6; }
