:root {
  --mbm-black: #0b0c0c;
  --mbm-coal: #151717;
  --mbm-paper: #f3f2ee;
  --mbm-white: #ffffff;
  --mbm-ink: #171918;
  --mbm-muted: #686e6a;
  --mbm-line: #d7d9d6;
  --mbm-orange: #f7941d;
  --mbm-orange-light: #fff0dc;
  --mbm-green: #2f7b58;
  --mbm-red: #a3402e;
  --mbm-max: 1240px;
}

.mbm-portal,
.mbm-portal *,
.mbm-login,
.mbm-login * {
  box-sizing: border-box;
}

.mbm-portal,
.mbm-login {
  min-height: 100vh;
  margin: 0;
  background: var(--mbm-paper);
  color: var(--mbm-ink);
  font-family: "Instrument Sans", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.mbm-portal button,
.mbm-portal input,
.mbm-portal select,
.mbm-portal textarea,
.mbm-login input {
  font: inherit;
}

.mbm-portal a,
.mbm-login a {
  text-decoration: none;
}

.mbm-portal [hidden] {
  display: none !important;
}

.mbm-portal__shell {
  width: min(var(--mbm-max), calc(100% - 40px));
  margin: 0 auto;
}

.mbm-portal__header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 72px;
  background: rgba(11, 12, 12, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.mbm-portal__nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mbm-portal__brand img {
  display: block;
  width: 164px;
  height: auto;
}

.mbm-portal__account {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #f2f3f2;
  font-size: 14px;
  font-weight: 700;
}

.mbm-portal__account a {
  color: #ffbe6d;
}

.mbm-notifications {
  position: relative;
}

.mbm-notifications > summary {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  list-style: none;
}

.mbm-notifications > summary::-webkit-details-marker {
  display: none;
}

.mbm-notifications[open] > summary,
.mbm-notifications > summary:hover {
  border-color: rgba(247, 148, 29, 0.7);
  background: rgba(247, 148, 29, 0.14);
}

.mbm-notifications__bell {
  position: relative;
  width: 15px;
  height: 16px;
  display: block;
  border: 2px solid #f4f5f4;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 0;
}

.mbm-notifications__bell::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: #f4f5f4;
}

.mbm-notifications__bell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f4f5f4;
  transform: translateX(-50%);
}

.mbm-notifications__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--mbm-black);
  border-radius: 10px;
  background: var(--mbm-orange);
  color: #191008;
  font-size: 10px;
  font-weight: 900;
}

.mbm-notifications__panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  border: 1px solid #343736;
  border-radius: 6px;
  background: #ffffff;
  color: var(--mbm-ink);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.mbm-notifications__head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mbm-line);
}

.mbm-notifications__head strong {
  font-size: 15px;
}

.mbm-notifications__head form {
  margin: 0;
}

.mbm-notifications__head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8d4800;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.mbm-notifications__list {
  max-height: 420px;
  overflow-y: auto;
}

.mbm-notification {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e7e8e6;
  color: var(--mbm-ink) !important;
}

.mbm-notification > span {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #c5c8c5;
}

.mbm-notification.is-unread {
  background: #fff8ee;
}

.mbm-notification.is-unread > span {
  background: var(--mbm-orange);
}

.mbm-notification strong,
.mbm-notification p,
.mbm-notification time {
  display: block;
}

.mbm-notification strong {
  font-size: 13px;
}

.mbm-notification p {
  margin: 4px 0 5px;
  color: #555b57;
  font-size: 12px;
  line-height: 1.4;
}

.mbm-notification time {
  color: #858a86;
  font-size: 10px;
}

.mbm-notifications__empty {
  margin: 0;
  padding: 28px 18px;
  color: var(--mbm-muted);
  font-size: 13px;
  text-align: center;
}

.mbm-portal__role {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(247, 148, 29, 0.55);
  border-radius: 4px;
  background: rgba(247, 148, 29, 0.12);
  color: #ffbe6d;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.mbm-portal__main {
  padding: 58px 0 90px;
}

.mbm-portal__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.mbm-portal__eyebrow {
  margin: 0 0 9px;
  color: #9d5200;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.mbm-portal h1,
.mbm-portal h2,
.mbm-portal h3,
.mbm-login h1 {
  margin: 0;
  color: var(--mbm-ink);
  font-weight: 820;
}

.mbm-portal h1 {
  font-size: 48px;
  line-height: 1.02;
}

.mbm-portal__intro p:last-child {
  max-width: 720px;
  margin: 15px 0 0;
  color: var(--mbm-muted);
  font-size: 17px;
  line-height: 1.6;
}

.mbm-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mbm-button:hover {
  transform: translateY(-2px);
}

.mbm-button--primary {
  background: var(--mbm-orange);
  border-color: var(--mbm-orange);
  color: #1e150a;
}

.mbm-button--primary:hover {
  background: #ffad3e;
  border-color: #ffad3e;
}

.mbm-button--ghost {
  background: transparent;
  border-color: #b8bcb9;
  color: var(--mbm-ink);
}

.mbm-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 44px 0 52px;
  border: 1px solid var(--mbm-line);
  border-radius: 6px;
  background: var(--mbm-white);
  overflow: hidden;
}

.mbm-summary > div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 26px;
}

.mbm-summary > div + div {
  border-left: 1px solid var(--mbm-line);
}

.mbm-summary span {
  color: var(--mbm-ink);
  font-size: 34px;
  font-weight: 850;
}

.mbm-summary small {
  margin-top: 5px;
  color: var(--mbm-muted);
  font-size: 13px;
  font-weight: 700;
}

.mbm-notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
}

.mbm-notice--success {
  background: #dff2e7;
  border: 1px solid #a7d4b9;
  color: #185137;
}

.mbm-notice--error {
  background: #f9e3df;
  border: 1px solid #e0ada3;
  color: #722719;
}

.mbm-request-form {
  margin: 0 0 56px;
  padding: 34px;
  border: 1px solid #2b2e2c;
  border-radius: 6px;
  background: var(--mbm-coal);
  color: #f5f6f5;
}

.mbm-request-form__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.mbm-request-form .mbm-portal__eyebrow {
  color: #ffb65b;
}

.mbm-request-form h2 {
  color: var(--mbm-white);
  font-size: 30px;
}

.mbm-icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: transparent;
  color: var(--mbm-white);
  font-size: 26px;
  cursor: pointer;
}

.mbm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.mbm-form-grid label,
.mbm-inline-form label {
  display: block;
  color: #e4e7e5;
  font-size: 13px;
  font-weight: 780;
}

.mbm-form-grid label > span:first-of-type {
  color: #ffb65b;
}

.mbm-form-grid input,
.mbm-form-grid select,
.mbm-form-grid textarea {
  width: 100%;
  min-height: 50px;
  display: block;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid #505552;
  border-radius: 4px;
  background: #222523;
  color: #ffffff;
  outline: none;
}

.mbm-form-grid textarea {
  min-height: 108px;
  resize: vertical;
}

.mbm-form-grid input:focus,
.mbm-form-grid select:focus,
.mbm-form-grid textarea:focus {
  border-color: var(--mbm-orange);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.13);
}

.mbm-span-2 {
  grid-column: 1 / -1;
}

.mbm-file-field {
  padding: 18px;
  border: 1px dashed #666b68;
  border-radius: 4px;
}

.mbm-file-field small,
.mbm-file-field > span:last-child {
  display: block;
  margin-top: 5px;
  color: #aeb4b0;
  font-size: 12px;
  font-weight: 500;
}

.mbm-file-field input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.mbm-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.mbm-request-form .mbm-button--ghost {
  border-color: #595e5b;
  color: #ffffff;
}

.mbm-list-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.mbm-list-section h2 {
  font-size: 32px;
}

.mbm-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mbm-filters button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c6c9c6;
  border-radius: 4px;
  background: transparent;
  color: #555b57;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.mbm-filters button:hover,
.mbm-filters button.is-active {
  background: var(--mbm-ink);
  border-color: var(--mbm-ink);
  color: var(--mbm-white);
}

.mbm-request-list {
  display: grid;
  gap: 10px;
}

.mbm-request {
  border: 1px solid var(--mbm-line);
  border-radius: 6px;
  background: var(--mbm-white);
  overflow: hidden;
}

.mbm-request summary {
  min-height: 102px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 19px 22px;
  list-style: none;
  cursor: pointer;
}

.mbm-request summary::-webkit-details-marker {
  display: none;
}

.mbm-request[open] summary {
  border-bottom: 1px solid var(--mbm-line);
  background: #faf9f6;
}

.mbm-request__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mbm-request__ticket {
  margin-bottom: 6px;
  color: #a65300;
  font-size: 11px;
  font-weight: 850;
}

.mbm-request__main strong {
  color: var(--mbm-ink);
  font-size: 20px;
  line-height: 1.2;
}

.mbm-request__main > span:last-child {
  margin-top: 7px;
  color: var(--mbm-muted);
  font-size: 14px;
}

.mbm-request__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mbm-status,
.mbm-priority {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.mbm-status--received,
.mbm-status--to_coordinate {
  background: #ffe3bf;
  color: #713900;
}

.mbm-status--scheduled {
  background: #e2e4e2;
  color: #303431;
}

.mbm-status--in_progress {
  background: #d8e5f5;
  color: #244f81;
}

.mbm-status--waiting {
  background: #f4e7c8;
  color: #6b5114;
}

.mbm-status--completed {
  background: #dceee4;
  color: #235b3d;
}

.mbm-status--cancelled {
  background: #f2deda;
  color: #7b3022;
}

.mbm-priority {
  background: #f0f1ef;
  color: #5a5f5b;
}

.mbm-priority--urgent {
  background: #f4dcd7;
  color: #8a3020;
}

.mbm-request__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d3d6d3;
  border-radius: 50%;
  color: #555b57;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.mbm-request[open] .mbm-request__chevron {
  transform: rotate(180deg);
}

.mbm-request__details {
  padding: 26px 22px 30px;
}

.mbm-request__info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mbm-request__info > div {
  min-height: 100px;
  padding: 15px;
  border: 1px solid #e0e2df;
  border-radius: 4px;
  background: #fafaf8;
}

.mbm-request__info small,
.mbm-files > small {
  display: block;
  color: #777d79;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mbm-request__info p {
  margin: 9px 0 0;
  color: #303432;
  font-size: 14px;
  line-height: 1.55;
}

.mbm-files {
  margin-top: 22px;
}

.mbm-files > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.mbm-files a {
  width: 112px;
  height: 88px;
  display: block;
  border: 1px solid #d7d9d6;
  border-radius: 4px;
  overflow: hidden;
}

.mbm-files img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mbm-request__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--mbm-line);
}

.mbm-request__columns h3 {
  margin-bottom: 18px;
  font-size: 19px;
}

.mbm-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbm-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  padding-bottom: 18px;
}

.mbm-timeline li > span {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--mbm-orange);
}

.mbm-timeline li:not(:last-child):before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #d5d8d5;
}

.mbm-timeline strong,
.mbm-timeline small,
.mbm-timeline p {
  display: block;
}

.mbm-timeline strong {
  font-size: 14px;
}

.mbm-timeline small {
  margin-top: 3px;
  color: #7a807c;
  font-size: 11px;
}

.mbm-timeline p {
  margin: 6px 0 0;
  color: #4f5551;
  font-size: 13px;
}

.mbm-inline-form {
  display: grid;
  gap: 13px;
}

.mbm-inline-form label {
  color: #3d423f;
}

.mbm-inline-form input,
.mbm-inline-form select,
.mbm-inline-form textarea {
  width: 100%;
  min-height: 44px;
  display: block;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid #cdd0cd;
  border-radius: 4px;
  background: #ffffff;
  color: var(--mbm-ink);
}

.mbm-inline-form textarea {
  min-height: 82px;
}

.mbm-inline-form .mbm-button {
  justify-self: start;
}

.mbm-empty {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px dashed #bfc3c0;
  border-radius: 6px;
  color: var(--mbm-muted);
  text-align: center;
}

.mbm-empty strong {
  color: var(--mbm-ink);
  font-size: 18px;
}

.mbm-empty span {
  margin-top: 7px;
  font-size: 14px;
}

.mbm-login {
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--mbm-black);
}

.mbm-login__panel {
  width: min(500px, 100%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #151717;
  color: #d9ddda;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.mbm-login__panel > img {
  width: 172px;
  height: auto;
  display: block;
  margin-bottom: 40px;
}

.mbm-login .mbm-portal__eyebrow {
  color: #ffb65b;
}

.mbm-login h1 {
  color: #ffffff;
  font-size: 38px;
  line-height: 1.06;
}

.mbm-login__panel > p:not(.mbm-portal__eyebrow):not(.mbm-login__help) {
  margin: 17px 0 28px;
  color: #adb4b0;
  font-size: 16px;
  line-height: 1.6;
}

.mbm-login form p {
  margin: 0 0 15px;
}

.mbm-login label {
  color: #e1e4e2;
  font-size: 13px;
  font-weight: 750;
}

.mbm-login input[type="text"],
.mbm-login input[type="password"] {
  width: 100%;
  min-height: 50px;
  display: block;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #505552;
  border-radius: 4px;
  background: #222523;
  color: #ffffff;
}

.mbm-login input[type="submit"] {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 4px;
  background: var(--mbm-orange);
  color: #1e150a;
  font-weight: 850;
  cursor: pointer;
}

.mbm-login__help {
  margin: 24px 0 0;
  color: #949b97;
  font-size: 12px;
  text-align: center;
}

.mbm-login__help a {
  color: #ffb65b;
}

@media (max-width: 900px) {
  .mbm-summary {
    grid-template-columns: 1fr 1fr;
  }

  .mbm-summary > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--mbm-line);
  }

  .mbm-summary > div:nth-child(4) {
    border-top: 1px solid var(--mbm-line);
  }

  .mbm-list-section__head {
    align-items: start;
    flex-direction: column;
  }

  .mbm-filters {
    justify-content: flex-start;
  }

  .mbm-request__info {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .mbm-portal__shell {
    width: calc(100% - 24px);
  }

  .mbm-portal__header,
  .mbm-portal__nav {
    min-height: 64px;
  }

  .mbm-portal__brand img {
    width: 138px;
  }

  .mbm-portal__account > .mbm-portal__user {
    display: none;
  }

  .mbm-portal__main {
    padding: 38px 0 64px;
  }

  .mbm-portal__intro {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .mbm-portal h1 {
    font-size: 37px;
  }

  .mbm-portal__intro .mbm-button {
    width: 100%;
  }

  .mbm-summary {
    margin: 30px 0 40px;
  }

  .mbm-summary > div {
    min-height: 92px;
    padding: 16px;
  }

  .mbm-summary span {
    font-size: 29px;
  }

  .mbm-request-form {
    margin-left: -12px;
    margin-right: -12px;
    padding: 26px 18px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .mbm-form-grid {
    grid-template-columns: 1fr;
  }

  .mbm-span-2 {
    grid-column: auto;
  }

  .mbm-form-actions {
    display: grid;
  }

  .mbm-filters {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mbm-request summary {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
  }

  .mbm-request__meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mbm-request__chevron {
    margin-left: auto;
  }

  .mbm-request__details {
    padding: 20px 17px 26px;
  }

  .mbm-request__info,
  .mbm-request__columns {
    grid-template-columns: 1fr;
  }

  .mbm-request__columns {
    gap: 28px;
  }

  .mbm-login {
    padding: 15px;
  }

  .mbm-login__panel {
    padding: 30px 22px;
  }

  .mbm-login h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mbm-portal *,
  .mbm-login * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Portfolio navigation and management views. */
.mbm-portal__links {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 6px;
}

.mbm-portal__links a {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 3px solid transparent;
  color: #c9cecb;
  font-size: 13px;
  font-weight: 780;
}

.mbm-portal__links a:hover,
.mbm-portal__links a.is-active {
  border-bottom-color: var(--mbm-orange);
  color: #ffffff;
}

.mbm-notice--neutral {
  background: #e8eae8;
  border: 1px solid #c8ccc9;
  color: #424844;
}

.mbm-button--compact {
  min-height: 38px;
  padding: 0 14px;
  border-color: #c7cbc8;
  background: #ffffff;
  color: var(--mbm-ink);
  font-size: 12px;
}

.mbm-button--compact:hover {
  border-color: #8d938f;
  background: #f5f5f2;
}

.mbm-onboarding {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: -12px 0 52px;
  padding: 24px 28px;
  border: 1px solid #ddc39f;
  border-radius: 6px;
  background: #fff8ed;
}

.mbm-onboarding > div {
  display: flex;
  align-items: start;
  gap: 17px;
}

.mbm-onboarding > div > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mbm-orange);
  color: #211508;
  font-weight: 850;
}

.mbm-onboarding strong {
  display: block;
  font-size: 18px;
}

.mbm-onboarding p {
  max-width: 700px;
  margin: 6px 0 0;
  color: var(--mbm-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mbm-management-form {
  margin: 0 0 42px;
  padding: 30px;
  border: 1px solid #cfd2cf;
  border-radius: 6px;
  background: #ffffff;
}

.mbm-management-form--compact {
  margin-top: 28px;
}

.mbm-management-form__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.mbm-management-form h2 {
  font-size: 28px;
}

.mbm-icon-button--light {
  border-color: #c7cbc8;
  color: var(--mbm-ink);
}

.mbm-management-form .mbm-form-grid label,
.mbm-inline-editor .mbm-form-grid label,
.mbm-inline-editor > form > label {
  color: #3e4440;
}

.mbm-management-form .mbm-form-grid label > span:first-of-type,
.mbm-inline-editor .mbm-form-grid label > span:first-of-type {
  color: #a95400;
}

.mbm-management-form .mbm-form-grid input,
.mbm-management-form .mbm-form-grid select,
.mbm-management-form .mbm-form-grid textarea,
.mbm-inline-editor .mbm-form-grid input,
.mbm-inline-editor .mbm-form-grid select,
.mbm-inline-editor .mbm-form-grid textarea,
.mbm-inline-editor > form > label textarea {
  border-color: #c9cdca;
  background: #ffffff;
  color: var(--mbm-ink);
}

.mbm-management-form .mbm-form-grid input:focus,
.mbm-management-form .mbm-form-grid select:focus,
.mbm-management-form .mbm-form-grid textarea:focus,
.mbm-inline-editor .mbm-form-grid input:focus,
.mbm-inline-editor .mbm-form-grid select:focus,
.mbm-inline-editor .mbm-form-grid textarea:focus {
  border-color: #ca6800;
  box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.14);
}

.mbm-directory {
  margin-top: 8px;
}

.mbm-directory__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.mbm-directory__head h2 {
  font-size: 32px;
}

.mbm-directory__head > span {
  color: var(--mbm-muted);
  font-size: 13px;
  font-weight: 700;
}

.mbm-directory__list {
  border-top: 1px solid var(--mbm-line);
}

.mbm-client-parks {
  display: grid;
  gap: 24px;
}

.mbm-client-park {
  border: 1px solid var(--mbm-line);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.mbm-client-park__head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  background: #171918;
  color: #ffffff;
}

.mbm-client-park__head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mbm-client-park__initial {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--mbm-orange);
  color: #211406;
  font-size: 18px;
  font-weight: 900;
}

.mbm-client-park__head h3 {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 19px;
}

.mbm-client-park__head p {
  margin: 5px 0 0;
  color: #bfc3c0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mbm-client-park__head > span:last-child {
  flex: 0 0 auto;
  color: #ffbd6b;
  font-size: 12px;
  font-weight: 800;
}

.mbm-client-park--unassigned .mbm-client-park__head {
  background: #3a332b;
}

.mbm-client-park .mbm-directory__list {
  border-top: 0;
}

.mbm-client-park .mbm-directory__row {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.mbm-directory__row {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) minmax(230px, 1.25fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 18px 20px;
  border: 1px solid var(--mbm-line);
  border-top: 0;
  background: #ffffff;
}

.mbm-directory__row.is-archived,
.mbm-unit-table__row.is-archived {
  background: #f1f2f0;
  color: #747a76;
}

.mbm-directory__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.mbm-directory__identity > div,
.mbm-directory__row > div:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mbm-directory__identity strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.mbm-directory__identity small,
.mbm-directory__row > div:nth-child(2) small {
  margin-bottom: 4px;
  color: var(--mbm-muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.mbm-directory__row > div:nth-child(2) span {
  overflow-wrap: anywhere;
  color: #3f4541;
  font-size: 13px;
}

.mbm-building-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-auto-rows: 5px;
  justify-content: center;
  align-content: center;
  gap: 5px;
  border: 1px solid #d9b27f;
  border-radius: 4px;
  background: #fff3e3;
}

.mbm-building-mark::before,
.mbm-building-mark i {
  content: "";
  width: 5px;
  height: 5px;
  display: block;
  background: #c56700;
}

.mbm-directory__numbers {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}

.mbm-directory__numbers span {
  color: var(--mbm-muted);
  font-size: 12px;
}

.mbm-directory__numbers strong {
  display: block;
  color: var(--mbm-ink);
  font-size: 18px;
}

.mbm-directory__actions,
.mbm-property-head__actions,
.mbm-address__actions,
.mbm-unit-table__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.mbm-entity-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 3px;
  background: #e7e9e7;
  color: #555b57;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.mbm-entity-status--publish {
  background: #dceee4;
  color: #235b3d;
}

.mbm-status-form {
  display: inline-flex;
  margin: 0;
}

.mbm-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: #8e4900;
  font-size: 13px;
  font-weight: 800;
}

.mbm-property-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.mbm-property-head h1 {
  overflow-wrap: anywhere;
}

.mbm-property-head p:last-child {
  margin: 10px 0 0;
  color: var(--mbm-muted);
}

.mbm-summary--three {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.mbm-addresses {
  margin-top: 48px;
}

.mbm-address {
  margin-top: 14px;
  border: 1px solid var(--mbm-line);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.mbm-address.is-archived {
  background: #f1f2f0;
}

.mbm-address__head {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 24px;
}

.mbm-address__head h3 {
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 21px;
}

.mbm-address__head p {
  margin: 7px 0 0;
  color: var(--mbm-muted);
  font-size: 13px;
}

.mbm-units {
  padding: 22px 24px 26px;
  border-top: 1px solid var(--mbm-line);
  background: #fafaf8;
}

.mbm-units__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.mbm-units__head > div:first-child {
  display: flex;
  flex-direction: column;
}

.mbm-units__head small {
  margin-top: 4px;
  color: var(--mbm-muted);
  font-size: 12px;
}

.mbm-units__head > div:last-child {
  display: flex;
  gap: 7px;
}

.mbm-inline-editor {
  padding: 24px;
  border-top: 1px solid var(--mbm-line);
  background: #f5f5f2;
}

.mbm-units .mbm-inline-editor {
  margin: 14px 0;
  border: 1px solid #d5d8d5;
  border-radius: 4px;
  background: #ffffff;
}

.mbm-inline-editor--unit {
  margin: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
}

.mbm-inline-editor__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.mbm-inline-editor__head > div {
  display: flex;
  flex-direction: column;
}

.mbm-inline-editor__head small {
  margin-top: 4px;
  color: var(--mbm-muted);
}

.mbm-inline-editor > form > label {
  display: block;
  font-size: 13px;
  font-weight: 780;
}

.mbm-inline-editor > form > label textarea {
  width: 100%;
  min-height: 120px;
  display: block;
  margin-top: 8px;
  padding: 12px 13px;
  resize: vertical;
}

.mbm-text-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8d4800;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.mbm-text-button:hover {
  color: #4d2800;
  text-decoration: underline;
}

.mbm-unit-table {
  border: 1px solid #d7dad7;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}

.mbm-unit-table__header,
.mbm-unit-table__row {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(150px, 1.2fr) minmax(150px, 1.1fr) 80px 130px;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
}

.mbm-unit-table__header {
  min-height: 42px;
  background: #eff0ee;
  color: #6d736f;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.mbm-unit-table__row {
  min-height: 62px;
  border-top: 1px solid #e0e2df;
  font-size: 13px;
}

.mbm-unit-table__row > span:not(.mbm-entity-status) {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #555b57;
}

.mbm-empty--small {
  min-height: 120px;
  background: #ffffff;
}

.mbm-empty .mbm-button {
  margin-top: 18px;
}

.mbm-request__main b {
  color: #343936;
  font-weight: 760;
}

.mbm-appointment {
  display: flex;
  gap: 22px;
}

.mbm-appointment span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mbm-appointment b {
  color: var(--mbm-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mbm-appointment-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mbm-checkbox {
  min-height: 48px;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #d7dad7;
  border-radius: 4px;
  background: #ffffff;
  color: var(--mbm-ink) !important;
}

.mbm-portal .mbm-checkbox input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--mbm-orange);
}

.mbm-portal .mbm-checkbox span {
  min-width: 0;
  color: var(--mbm-ink) !important;
}

.mbm-credentials {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1fr);
  gap: 34px;
  margin: 34px 0;
  padding: 26px;
  border: 1px solid #e3aa5d;
  border-radius: 6px;
  background: #fff4e4;
}

.mbm-credentials h2 {
  font-size: 24px;
}

.mbm-credentials p:last-child,
.mbm-settings-note {
  margin: 8px 0 0;
  color: var(--mbm-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mbm-credentials dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mbm-credentials dl > div {
  padding: 11px 14px;
  border: 1px solid #e6c99f;
  border-radius: 4px;
  background: #ffffff;
}

.mbm-credentials dt {
  color: var(--mbm-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mbm-credentials dd {
  margin: 4px 0 0;
  color: var(--mbm-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.mbm-client-list {
  display: grid;
  gap: 10px;
}

.mbm-client-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 18px 20px;
  border: 1px solid var(--mbm-line);
  border-radius: 5px;
  background: #ffffff;
}

.mbm-client-row.is-suspended {
  background: #f4f3f0;
  opacity: 0.78;
}

.mbm-client-row__identity,
.mbm-client-row__counts {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mbm-client-row__identity strong {
  color: var(--mbm-ink);
  font-size: 17px;
}

.mbm-client-row__identity span,
.mbm-client-row__counts span {
  margin-top: 5px;
  color: var(--mbm-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mbm-client-row__counts {
  flex-direction: row;
  gap: 22px;
}

.mbm-client-row__counts strong {
  color: var(--mbm-ink);
  font-size: 16px;
}

.mbm-client-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.mbm-settings-grid {
  width: min(100%, 920px);
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.mbm-settings-panel {
  width: 100%;
  margin: 0;
}

.mbm-settings-note {
  padding: 14px 16px;
  border-left: 3px solid var(--mbm-orange);
  background: #f7f6f2;
}

.mbm-settings-note--error {
  border-left-color: #b4472d;
  background: #fff1ed;
  color: #732714;
}

.mbm-integration-status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #cbd0cc;
  border-radius: 4px;
  background: #f1f2f0;
  color: #555c57;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.mbm-integration-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #858d87;
}

.mbm-integration-status.is-connected {
  border-color: #b7d8c3;
  background: #e9f5ed;
  color: #28603d;
}

.mbm-integration-status.is-connected i {
  background: #2f8250;
}

.mbm-integration-status.has-error {
  border-color: #e0b1a4;
  background: #fff1ed;
  color: #8c351f;
}

.mbm-integration-status.has-error i {
  background: #b4472d;
}

.mbm-clickup-actions {
  align-items: center;
  gap: 10px;
}

.mbm-clickup-sync-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--mbm-line);
}

.mbm-clickup-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid #c9d9ce;
  border-radius: 4px;
  background: #edf6f0;
  color: #315c40;
  font-size: 12px;
  font-weight: 750;
}

.mbm-clickup-link a {
  color: #174c2d;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mbm-clickup-warning {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-left: 3px solid #b4472d;
  background: #fff1ed;
  color: #732714;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .mbm-directory__row {
    grid-template-columns: minmax(230px, 1.3fr) minmax(210px, 1fr) auto;
  }

  .mbm-directory__numbers {
    display: none;
  }

  .mbm-unit-table__header,
  .mbm-unit-table__row {
    grid-template-columns: 90px minmax(140px, 1fr) minmax(140px, 1fr) 80px 110px;
  }
}

@media (max-width: 800px) {
  .mbm-portal__nav {
    flex-wrap: wrap;
    gap: 0 20px;
    padding: 10px 0 0;
  }

  .mbm-portal__links {
    width: 100%;
    order: 3;
  }

  .mbm-portal__links a {
    min-height: 44px;
    flex: 1;
    justify-content: center;
  }

  .mbm-onboarding,
  .mbm-property-head,
  .mbm-address__head,
  .mbm-units__head {
    align-items: stretch;
    flex-direction: column;
  }

  .mbm-directory__row {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .mbm-directory__row > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mbm-directory__actions {
    grid-column: 2;
    grid-row: 1;
  }

  .mbm-property-head__actions,
  .mbm-address__actions {
    justify-content: flex-start;
  }

  .mbm-unit-table__header {
    display: none;
  }

  .mbm-unit-table__row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 16px;
  }

  .mbm-unit-table__row > strong {
    font-size: 16px;
  }

  .mbm-unit-table__row > span:not(.mbm-entity-status) {
    grid-column: 1;
  }

  .mbm-unit-table__row > .mbm-entity-status {
    grid-column: 2;
    grid-row: 1;
  }

  .mbm-unit-table__actions {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-items: flex-end;
    flex-direction: column;
  }

  .mbm-client-row {
    grid-template-columns: 1fr auto;
  }

  .mbm-client-row__counts {
    grid-column: 1;
    grid-row: 2;
  }

  .mbm-client-row__actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-items: flex-end;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .mbm-portal__header,
  .mbm-portal__nav {
    min-height: 0;
  }

  .mbm-portal__brand img {
    width: 126px;
  }

  .mbm-portal__account {
    margin-left: auto;
  }

  .mbm-portal__account .mbm-portal__user {
    display: none;
  }

  .mbm-portal__account {
    gap: 7px;
  }

  .mbm-portal__account > a {
    font-size: 11px;
  }

  .mbm-portal__role {
    padding: 0 6px;
    font-size: 9px;
  }

  .mbm-notifications > summary {
    width: 34px;
    height: 34px;
  }

  .mbm-portal__links a {
    padding: 0 8px;
    font-size: 12px;
  }

  .mbm-onboarding,
  .mbm-management-form,
  .mbm-inline-editor,
  .mbm-address__head,
  .mbm-units {
    padding: 20px 17px;
  }

  .mbm-onboarding {
    margin-top: -8px;
  }

  .mbm-onboarding .mbm-button,
  .mbm-property-head__actions .mbm-button,
  .mbm-addresses .mbm-directory__head .mbm-button {
    width: 100%;
  }

  .mbm-directory__head {
    align-items: stretch;
    flex-direction: column;
  }

  .mbm-client-park__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 17px;
  }

  .mbm-client-park__head > span:last-child {
    margin-left: 56px;
  }

  .mbm-appointment-fields {
    grid-template-columns: 1fr;
  }

  .mbm-directory__row {
    grid-template-columns: 1fr;
    padding: 18px 15px;
  }

  .mbm-directory__actions,
  .mbm-directory__row > div:nth-child(2) {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .mbm-directory__actions {
    flex-wrap: wrap;
  }

  .mbm-summary--three {
    grid-template-columns: 1fr 1fr;
  }

  .mbm-summary--three > div:last-child {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--mbm-line);
  }

  .mbm-property-head__actions,
  .mbm-address__actions,
  .mbm-units__head > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mbm-property-head__actions .mbm-status-form,
  .mbm-address__actions .mbm-status-form {
    display: flex;
  }

  .mbm-property-head__actions .mbm-status-form .mbm-button,
  .mbm-address__actions .mbm-status-form .mbm-button {
    width: 100%;
  }

  .mbm-credentials {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 17px;
  }

  .mbm-client-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 17px;
  }

  .mbm-client-row__counts,
  .mbm-client-row__actions {
    grid-column: 1;
    grid-row: auto;
  }

  .mbm-client-row__actions {
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mbm-clickup-panel .mbm-management-form__head,
  .mbm-clickup-actions,
  .mbm-clickup-link {
    align-items: stretch;
    flex-direction: column;
  }

  .mbm-clickup-actions .mbm-button {
    width: 100%;
  }
}
