/*
 * MP NEXA standalone UI system
 * ----------------------------
 * A self-contained, framework-free application skin. The visual language is
 * mineral canvas,
 * graphite navigation and a disciplined Bordeaux accent.
 */

/* Dynamic form sections use the semantic hidden attribute. It must override
   component layout declarations such as .mp-activity { display: grid }. */
[hidden] {
  display: none !important;
}

:root {
  color-scheme: light dark;
  --mp-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mp-ink-950: #121a1e;
  --mp-ink-900: #172126;
  --mp-ink-800: #243037;
  --mp-ink-700: #37444b;
  --mp-ink-600: #536068;
  --mp-ink-500: #758087;
  --mp-ink-400: #9ba3a8;
  --mp-ink-300: #c2c8cb;
  --mp-ink-200: #dce0e2;
  --mp-ink-100: #edf0f1;
  --mp-ink-50: #f6f7f7;
  --mp-canvas: #f3f1ed;
  --mp-canvas-deep: #ebe8e2;
  --mp-surface: #ffffff;
  --mp-surface-soft: #faf9f7;
  --mp-bordeaux-900: #6e071e;
  --mp-bordeaux-800: #850a25;
  --mp-bordeaux-700: #a20d2f;
  --mp-bordeaux-600: #bb1439;
  --mp-bordeaux-100: #f7e6eb;
  --mp-bordeaux-50: #fdf5f7;
  --mp-green-700: #257059;
  --mp-green-100: #ddf1e8;
  --mp-amber-700: #95600e;
  --mp-amber-100: #fff0ce;
  --mp-blue-700: #315f91;
  --mp-blue-100: #e2edf8;
  --mp-violet-700: #665394;
  --mp-violet-100: #eee9f8;
  --mp-red-700: #a93838;
  --mp-red-100: #f8e4e4;
  --mp-line: rgba(23, 33, 38, 0.11);
  --mp-line-strong: rgba(23, 33, 38, 0.18);
  --mp-shadow-xs: 0 1px 2px rgba(18, 26, 30, 0.05);
  --mp-shadow-sm: 0 4px 14px rgba(18, 26, 30, 0.07);
  --mp-shadow-md: 0 14px 38px rgba(18, 26, 30, 0.10);
  --mp-shadow-lg: 0 24px 64px rgba(18, 26, 30, 0.16);
  --mp-radius-xs: 8px;
  --mp-radius-sm: 12px;
  --mp-radius-md: 16px;
  --mp-radius-lg: 22px;
  --mp-radius-xl: 30px;
  --mp-sidebar-wide: 264px;
  --mp-sidebar-narrow: 84px;
  --mp-topbar-height: 76px;
  --mp-content-max: 1640px;
  --mp-ease: cubic-bezier(.22, .8, .24, 1);
}

body.mp-theme--light {
  color-scheme: light;
}

body.mp-theme--dark {
  color-scheme: dark;
  --mp-ink-950: #fbfcfc;
  --mp-ink-900: #f3f5f6;
  --mp-ink-800: #e1e6e8;
  --mp-ink-700: #cad1d4;
  --mp-ink-600: #aeb8bc;
  --mp-ink-500: #919ca1;
  --mp-ink-400: #748087;
  --mp-ink-300: #59656b;
  --mp-ink-200: #3f4b51;
  --mp-ink-100: #2c373d;
  --mp-ink-50: #222d32;
  --mp-canvas: #10171b;
  --mp-canvas-deep: #0b1114;
  --mp-surface: #182126;
  --mp-surface-soft: #202a2f;
  --mp-bordeaux-100: #48202d;
  --mp-bordeaux-50: #321923;
  --mp-green-100: #163a30;
  --mp-amber-100: #3f3018;
  --mp-blue-100: #1c3248;
  --mp-violet-100: #312a47;
  --mp-red-100: #472426;
  --mp-line: rgba(255, 255, 255, 0.11);
  --mp-line-strong: rgba(255, 255, 255, 0.19);
  --mp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --mp-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --mp-shadow-md: 0 14px 38px rgba(0, 0, 0, 0.32);
  --mp-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.42);
}

@media (prefers-color-scheme: dark) {
  body.mp-theme--system {
    color-scheme: dark;
    --mp-ink-950: #fbfcfc;
    --mp-ink-900: #f3f5f6;
    --mp-ink-800: #e1e6e8;
    --mp-ink-700: #cad1d4;
    --mp-ink-600: #aeb8bc;
    --mp-ink-500: #919ca1;
    --mp-ink-400: #748087;
    --mp-ink-300: #59656b;
    --mp-ink-200: #3f4b51;
    --mp-ink-100: #2c373d;
    --mp-ink-50: #222d32;
    --mp-canvas: #10171b;
    --mp-canvas-deep: #0b1114;
    --mp-surface: #182126;
    --mp-surface-soft: #202a2f;
    --mp-bordeaux-100: #48202d;
    --mp-bordeaux-50: #321923;
    --mp-green-100: #163a30;
    --mp-amber-100: #3f3018;
    --mp-blue-100: #1c3248;
    --mp-violet-100: #312a47;
    --mp-red-100: #472426;
    --mp-line: rgba(255, 255, 255, 0.11);
    --mp-line-strong: rgba(255, 255, 255, 0.19);
    --mp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --mp-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --mp-shadow-md: 0 14px 38px rgba(0, 0, 0, 0.32);
    --mp-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.42);
  }
}

/* Native project dossier and offer/order pipeline. */
.mp-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.8rem;
  margin: 0 0 1rem;
  scrollbar-width: thin;
}

.mp-tabs .mp-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mp-pipeline-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 1fr);
  gap: 1rem;
  align-items: start;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.75rem;
  scroll-snap-type: x proximity;
}

.mp-pipeline-board > .mp-panel {
  scroll-snap-align: start;
  background: color-mix(in srgb, var(--mp-surface) 94%, var(--mp-bordeaux-100) 6%);
}

.mp-pipeline-board .mp-project-card + .mp-project-card {
  margin-top: 0.65rem;
}

@media (max-width: 760px) {
  .mp-tabs {
    margin-inline: -0.35rem;
    padding-inline: 0.35rem;
  }

  .mp-pipeline-board {
    grid-auto-columns: minmax(82vw, 1fr);
    margin-inline: -0.35rem;
    padding-inline: 0.35rem;
  }
}

/* Native mail account administration. */
.mp-settings-mail-grid {
  display: grid;
  grid-template-columns: minmax(18rem, .85fr) minmax(22rem, 1.15fr);
  gap: 1rem;
  align-items: start;
}
.mp-settings-mail-grid .mp-form { padding: 1rem 1.25rem 1.35rem; }
.mp-settings-mail-grid .mp-activity { gap: .85rem; }
.mp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mp-form > label {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  color: var(--mp-ink-800);
  font-size: 12px;
  font-weight: 730;
}
.mp-form > label > small {
  color: var(--mp-ink-500);
  font-size: 10px;
  font-weight: 600;
}
.mp-form > label > :where(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 12px;
  outline: 0;
  color: var(--mp-ink-900);
  background: var(--mp-ink-50);
  box-shadow: inset 0 1px 2px rgba(18, 26, 30, .025);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.mp-form > label > textarea {
  min-height: 132px;
  resize: vertical;
}
.mp-form > label > :where(input, select, textarea):focus {
  border-color: rgba(162, 13, 47, .52);
  background: var(--mp-surface);
  box-shadow: 0 0 0 4px rgba(162, 13, 47, .08);
}
.mp-form > label > :where(input, textarea)::placeholder { color: var(--mp-ink-400); }
.mp-form__full { grid-column: 1 / -1; }
.mp-form > .mp-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 140px;
}
.mp-check { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }
.mp-check input { width: 1.2rem; height: 1.2rem; accent-color: var(--mp-red, #b80d2f); }
@media (max-width: 900px) {
  .mp-settings-mail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mp-form { grid-template-columns: 1fr; }
  .mp-form__full,
  .mp-form > .mp-button { grid-column: 1; }
  .mp-form > .mp-button { width: 100%; }
}

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

html {
  min-width: 320px;
  background: var(--mp-canvas);
  scroll-behavior: smooth;
}

body.mp-app {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 4%, rgba(162, 13, 47, 0.055), transparent 25rem),
    linear-gradient(145deg, color-mix(in srgb, var(--mp-canvas) 84%, var(--mp-surface) 16%) 0%, var(--mp-canvas) 48%, var(--mp-canvas-deep) 100%);
  color: var(--mp-ink-900);
  font-family: var(--mp-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

svg {
  display: block;
}

.mp-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mp-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mp-icon--sm {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.mp-icon--lg {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

/* Shell */
.mp-app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--mp-sidebar-wide) minmax(0, 1fr);
  transition: grid-template-columns 260ms var(--mp-ease);
}

.mp-sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--mp-sidebar-wide);
  min-height: 100dvh;
  flex-direction: column;
  overflow: visible;
  color: #eff3f3;
  background:
    radial-gradient(circle at 18% 2%, rgba(255, 255, 255, 0.07), transparent 19rem),
    linear-gradient(180deg, #1d282e 0%, #151d21 100%);
  box-shadow: 12px 0 40px rgba(18, 26, 30, 0.08);
  transition: width 260ms var(--mp-ease), transform 280ms var(--mp-ease);
}

.mp-sidebar__edge-toggle {
  position: absolute;
  z-index: 3;
  top: 23px;
  right: -16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(23, 33, 38, .12);
  border-radius: 10px;
  color: var(--mp-ink-700);
  background: color-mix(in srgb, var(--mp-surface) 96%, transparent);
  box-shadow: 0 7px 18px rgba(18, 26, 30, .14);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 260ms var(--mp-ease);
}

.mp-sidebar__edge-toggle:hover {
  color: var(--mp-bordeaux-700);
  background: var(--mp-surface);
}

.mp-sidebar__edge-toggle .mp-icon {
  width: 17px;
  height: 17px;
  transition: transform 260ms var(--mp-ease);
}

.mp-sidebar::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.06);
}

.mp-brand {
  display: flex;
  min-height: var(--mp-topbar-height);
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-brand__mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--mp-bordeaux-600), var(--mp-bordeaux-900));
  box-shadow: 0 8px 22px rgba(162, 13, 47, 0.28), inset 0 1px 0 rgba(255,255,255,.18);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mp-brand__mark::after {
  position: absolute;
  inset: auto -12px -17px auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  content: "";
}

.mp-brand__copy {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 150ms ease, transform 200ms var(--mp-ease);
}

.mp-brand__name {
  display: block;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.mp-brand__sub {
  display: block;
  margin-top: 1px;
  color: rgba(239, 243, 243, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mp-sidebar__body {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255,255,255,.16) transparent;
  scrollbar-width: thin;
}

.mp-nav {
  padding: 18px 12px 22px;
}

.mp-nav__group + .mp-nav__group {
  margin-top: 22px;
}

.mp-nav__label {
  display: block;
  padding: 0 12px 8px;
  overflow: hidden;
  color: rgba(239, 243, 243, 0.4);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

.mp-nav__item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 13px;
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(239, 243, 243, 0.71);
  cursor: pointer;
  background: transparent;
  font-size: 14px;
  font-weight: 580;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.mp-nav__item:hover {
  color: #fff;
  background: rgba(255,255,255,.065);
}

.mp-nav__item:active {
  transform: scale(.985);
}

.mp-nav__item[aria-current="page"] {
  color: #fff;
  background: linear-gradient(100deg, rgba(187, 20, 57, .97), rgba(133, 10, 37, .94));
  box-shadow: 0 8px 20px rgba(99, 7, 28, .23), inset 0 1px 0 rgba(255,255,255,.11);
}

.mp-nav__item[aria-current="page"]::before {
  position: absolute;
  inset: 9px auto 9px -12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  content: "";
  background: #fff;
}

.mp-nav__item .mp-icon {
  opacity: .9;
}

.mp-nav__text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-nav__badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.13);
  font-size: 11px;
  font-weight: 750;
}

.mp-sidebar__footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.mp-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-radius: 13px;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,.055);
  transition: background 150ms ease;
}

.mp-profile:hover {
  background: rgba(255,255,255,.09);
}

.mp-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--mp-bordeaux-800);
  background: #f8e7ec;
  font-size: 13px;
  font-weight: 800;
}

.mp-profile__copy {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.mp-profile__name,
.mp-profile__role {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-profile__name {
  font-size: 13px;
  font-weight: 700;
}

.mp-profile__role {
  color: rgba(239,243,243,.48);
  font-size: 11px;
}

.mp-sidebar__logout {
  margin-top: 7px;
}

.mp-sidebar__logout button {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: rgba(255,255,255,.64);
  cursor: pointer;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 760;
}

.mp-sidebar__logout button:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.mp-main {
  min-width: 0;
  grid-column: 2;
}

.mp-appbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  height: var(--mp-topbar-height);
  align-items: center;
  gap: 18px;
  padding: 0 clamp(20px, 3vw, 42px);
  border-bottom: 1px solid var(--mp-line);
  background: color-mix(in srgb, var(--mp-canvas) 86%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--mp-surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.mp-icon-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  color: var(--mp-ink-700);
  cursor: pointer;
  background: color-mix(in srgb, var(--mp-surface) 73%, transparent);
  box-shadow: var(--mp-shadow-xs);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.mp-icon-button:hover {
  border-color: var(--mp-line-strong);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-sm);
  transform: translateY(-1px);
}

.mp-icon-button--dark {
  border-color: rgba(255,255,255,.12);
  color: #fff;
  background: rgba(255,255,255,.07);
  box-shadow: none;
}

.mp-icon-button--dark:hover {
  background: rgba(255,255,255,.12);
}

.mp-icon-button__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid #f5f3ef;
  border-radius: 50%;
  background: var(--mp-bordeaux-600);
}

.mp-appbar__menu {
  display: inline-grid;
}

.mp-breadcrumb {
  min-width: 0;
  flex: 1;
}

.mp-breadcrumb__eyebrow {
  display: block;
  color: var(--mp-ink-500);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mp-breadcrumb__title {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--mp-ink-900);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-command-search {
  display: flex;
  width: min(32vw, 430px);
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--mp-line);
  border-radius: 13px;
  color: var(--mp-ink-500);
  background: color-mix(in srgb, var(--mp-surface) 72%, transparent);
  box-shadow: var(--mp-shadow-xs);
}

.mp-command-search:focus-within {
  border-color: rgba(162, 13, 47, .35);
  background: var(--mp-surface);
  box-shadow: 0 0 0 3px rgba(162, 13, 47, .08);
}

.mp-command-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.mp-command-search input::placeholder {
  color: var(--mp-ink-400);
}

.mp-shortcut {
  display: inline-flex;
  min-width: 30px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid var(--mp-line);
  border-radius: 7px;
  color: var(--mp-ink-500);
  background: var(--mp-surface-soft);
  font-size: 11px;
  font-weight: 700;
}

.mp-appbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-appbar__avatar {
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 13px;
  box-shadow: 0 0 0 1px var(--mp-line), var(--mp-shadow-sm);
}

.mp-content {
  width: min(100%, var(--mp-content-max));
  margin: 0 auto;
  padding: 30px clamp(20px, 3vw, 42px) 72px;
}

.mp-role-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(162, 13, 47, .18);
  border-radius: var(--mp-radius-md);
  color: #fff;
  background: linear-gradient(120deg, var(--mp-bordeaux-800), var(--mp-bordeaux-600));
  box-shadow: var(--mp-shadow-sm);
}

.mp-role-preview form { flex: 0 0 auto; }
.mp-role-preview .mp-button { min-height: 38px; }
.mp-action-card.is-active { border-color: rgba(162, 13, 47, .35); box-shadow: 0 0 0 3px rgba(162, 13, 47, .08); }

/* Collapsed desktop shell */
body.is-sidebar-collapsed .mp-app-shell {
  grid-template-columns: var(--mp-sidebar-narrow) minmax(0, 1fr);
}

body.is-sidebar-collapsed .mp-sidebar {
  width: var(--mp-sidebar-narrow);
}

body.is-sidebar-collapsed .mp-brand {
  justify-content: center;
  padding-inline: 14px;
}

body.is-sidebar-collapsed .mp-brand__copy,
body.is-sidebar-collapsed .mp-nav__label,
body.is-sidebar-collapsed .mp-nav__text,
body.is-sidebar-collapsed .mp-nav__badge,
body.is-sidebar-collapsed .mp-profile__copy,
body.is-sidebar-collapsed .mp-profile > .mp-icon {
  width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-7px);
}

body.is-sidebar-collapsed .mp-nav__group + .mp-nav__group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}

body.is-sidebar-collapsed .mp-nav__item {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
}

body.is-sidebar-collapsed .mp-nav__item[aria-current="page"]::before {
  left: -12px;
}

body.is-sidebar-collapsed .mp-profile {
  justify-content: center;
}

body.is-sidebar-collapsed .mp-sidebar__edge-toggle .mp-icon {
  transform: rotate(180deg);
}

/* Dashboard hero */
.mp-hero {
  position: relative;
  display: grid;
  min-height: 178px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--mp-radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 88% 23%, rgba(187,20,57,.7), transparent 21rem),
    radial-gradient(circle at 67% 120%, rgba(255,255,255,.09), transparent 20rem),
    linear-gradient(120deg, #172126 0%, #202b31 58%, #3a1822 100%);
  box-shadow: 0 20px 52px rgba(18,26,30,.16), inset 0 1px 0 rgba(255,255,255,.08);
}

.mp-hero::before,
.mp-hero::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.mp-hero::before {
  width: 280px;
  height: 280px;
  top: -170px;
  right: 8%;
}

.mp-hero::after {
  width: 160px;
  height: 160px;
  right: -70px;
  bottom: -98px;
}

.mp-hero__copy,
.mp-hero__actions {
  position: relative;
  z-index: 1;
}

.mp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mp-hero__eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #5dd5a7;
  box-shadow: 0 0 0 4px rgba(93,213,167,.13);
}

.mp-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.mp-hero p {
  max-width: 660px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.67);
  font-size: 14px;
}

.mp-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.mp-button:hover {
  transform: translateY(-1px);
}

.mp-button:active {
  transform: translateY(0) scale(.985);
}

.mp-button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--mp-bordeaux-600), var(--mp-bordeaux-800));
  box-shadow: 0 9px 20px rgba(162,13,47,.20), inset 0 1px 0 rgba(255,255,255,.15);
}

.mp-button--primary:hover {
  box-shadow: 0 12px 25px rgba(162,13,47,.26), inset 0 1px 0 rgba(255,255,255,.15);
}

.mp-button--surface {
  border-color: var(--mp-line);
  color: var(--mp-ink-800);
  background: color-mix(in srgb, var(--mp-surface) 90%, transparent);
  box-shadow: var(--mp-shadow-xs);
}

.mp-button--surface:hover {
  border-color: var(--mp-line-strong);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-sm);
}

.mp-button--hero {
  border-color: rgba(255,255,255,.13);
  color: #fff;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}

.mp-button--hero:hover {
  background: rgba(255,255,255,.15);
}

.mp-button--hero-primary {
  color: var(--mp-bordeaux-800);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

/* Sections and cards */
.mp-section {
  margin-top: 28px;
}

.mp-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.mp-section__title {
  margin: 0;
  color: var(--mp-ink-900);
  font-size: 18px;
  font-weight: 770;
  letter-spacing: -.025em;
}

.mp-section__hint {
  margin: 3px 0 0;
  color: var(--mp-ink-500);
  font-size: 12px;
}

.mp-readonly-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #e6cf91;
  border-radius: 14px;
  background: #fff9e9;
  color: #624d19;
  box-shadow: 0 8px 22px rgb(74 55 12 / 7%);
}

.mp-readonly-banner strong {
  color: #46360e;
}

.mp-preview-banner {
  border-color: #add9ca;
  background: #effaf6;
  color: #285e50;
  box-shadow: 0 8px 22px rgb(22 92 72 / 7%);
}

.mp-preview-banner strong {
  color: #17483b;
}

.mp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mp-bordeaux-700);
  font-size: 12px;
  font-weight: 740;
}

.mp-link:hover {
  color: var(--mp-bordeaux-900);
}

.mp-card {
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-md);
  background: color-mix(in srgb, var(--mp-surface) 91%, transparent);
  box-shadow: var(--mp-shadow-sm), inset 0 1px 0 color-mix(in srgb, var(--mp-ink-950) 7%, transparent);
}

.mp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mp-kpi {
  position: relative;
  display: block;
  min-height: 142px;
  overflow: hidden;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms var(--mp-ease), box-shadow 180ms ease;
}

.mp-kpi:hover {
  border-color: rgba(23,33,38,.15);
  box-shadow: var(--mp-shadow-md);
  transform: translateY(-2px);
}

a.mp-kpi:focus-visible {
  border-color: rgba(162,13,47,.52);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(162,13,47,.10), var(--mp-shadow-md);
}

.mp-kpi::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border: 17px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .035;
}

.mp-kpi__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mp-kpi__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
}

.mp-kpi--bordeaux .mp-kpi__icon { color: var(--mp-bordeaux-700); background: var(--mp-bordeaux-100); }
.mp-kpi--green .mp-kpi__icon { color: var(--mp-green-700); background: var(--mp-green-100); }
.mp-kpi--blue .mp-kpi__icon { color: var(--mp-blue-700); background: var(--mp-blue-100); }
.mp-kpi--amber .mp-kpi__icon { color: var(--mp-amber-700); background: var(--mp-amber-100); }

.mp-kpi__trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--mp-green-700);
  font-size: 11px;
  font-weight: 750;
}

.mp-kpi__value {
  display: block;
  margin-top: 14px;
  color: var(--mp-ink-950);
  font-size: 29px;
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1;
}

.mp-kpi__label {
  display: block;
  margin-top: 7px;
  color: var(--mp-ink-500);
  font-size: 12px;
  font-weight: 580;
}

.mp-kpi--with-breakdown {
  min-height: 188px;
}

.mp-kpi__breakdown {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--mp-line);
  color: var(--mp-ink-500);
  font-size: 11px;
}

.mp-kpi__breakdown-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-kpi__breakdown-row strong {
  color: var(--mp-ink-950);
  font-weight: 750;
  white-space: nowrap;
}

.mp-kpi__breakdown-row .mp-kpi__breakdown-warning {
  color: var(--mp-red-700);
}

.mp-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mp-action-card {
    display: flex;
  min-width: 0;
  min-height: 96px;
  align-items: center;
  gap: 14px;
    padding: 17px;
    color: inherit;
    text-decoration: none;
  transition: border-color 180ms ease, transform 180ms var(--mp-ease), box-shadow 180ms ease;
}

.mp-action-card:hover {
  border-color: rgba(162,13,47,.18);
  box-shadow: var(--mp-shadow-md);
  transform: translateY(-1px);
}

.mp-action-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--mp-bordeaux-700);
  background: linear-gradient(145deg, var(--mp-bordeaux-50), var(--mp-bordeaux-100));
}

.mp-action-card__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.mp-action-card__copy strong,
.mp-action-card__copy small {
  display: block;
}

.mp-action-card__copy strong {
  color: var(--mp-ink-900);
  font-size: 13px;
  font-weight: 750;
}

.mp-action-card__copy small {
  margin-top: 4px;
  color: var(--mp-ink-500);
  font-size: 11px;
  line-height: 1.45;
}

.mp-action-card > form,
.mp-action-card > .mp-chip {
  flex: 0 0 auto;
  margin-left: auto;
}

.mp-quick-action {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-md);
  color: var(--mp-ink-900);
  cursor: pointer;
  background: color-mix(in srgb, var(--mp-surface) 82%, transparent);
  box-shadow: var(--mp-shadow-xs);
  text-align: left;
  transition: transform 180ms var(--mp-ease), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mp-quick-action:hover {
  border-color: rgba(162,13,47,.18);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-sm);
  transform: translateY(-2px);
}

.mp-quick-action__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 13px;
  color: var(--mp-bordeaux-700);
  background: linear-gradient(145deg, var(--mp-bordeaux-50), var(--mp-bordeaux-100));
}

.mp-quick-action__copy {
  min-width: 0;
  flex: 1;
}

.mp-quick-action__title {
  display: block;
  font-size: 13px;
  font-weight: 740;
}

.mp-quick-action__hint {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--mp-ink-500);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-quick-action > .mp-icon {
  color: var(--mp-ink-400);
  transition: color 150ms ease, transform 180ms var(--mp-ease);
}

.mp-quick-action:hover > .mp-icon {
  color: var(--mp-bordeaux-700);
  transform: translateX(3px);
}

/* Pipeline */
.mp-pipeline-wrap {
  position: relative;
}

.mp-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(254px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--mp-ink-300) transparent;
  scrollbar-width: thin;
}

.mp-pipeline__lane {
  min-height: 276px;
  padding: 12px;
  border: 1px solid rgba(23,33,38,.075);
  border-radius: var(--mp-radius-md);
  background: rgba(228,226,221,.48);
  scroll-snap-align: start;
}

.mp-pipeline__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 3px 4px 11px;
}

.mp-pipeline__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lane-color, var(--mp-ink-500));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lane-color, var(--mp-ink-500)) 13%, transparent);
}

.mp-pipeline__name {
  color: var(--mp-ink-800);
  font-size: 12px;
  font-weight: 760;
}

.mp-pipeline__count {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  color: var(--mp-ink-500);
  background: color-mix(in srgb, var(--mp-surface) 70%, transparent);
  font-size: 10px;
  font-weight: 740;
}

.mp-project-card {
  position: relative;
  padding: 15px;
  border: 1px solid var(--mp-line);
  border-radius: 13px;
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-xs);
  transition: border-color 160ms ease, transform 180ms var(--mp-ease), box-shadow 180ms ease;
}

.mp-project-card + .mp-project-card {
  margin-top: 9px;
}

.mp-project-card:hover {
  border-color: rgba(23,33,38,.15);
  box-shadow: var(--mp-shadow-sm);
  transform: translateY(-1px);
}

.mp-project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--mp-ink-500);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mp-project-card__title {
  display: block;
  margin-top: 8px;
  color: var(--mp-ink-900);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.35;
}

.mp-project-card__place {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--mp-ink-500);
  font-size: 11px;
}

.mp-project-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--mp-line);
}

.mp-avatar-stack {
  display: flex;
}

.mp-avatar-stack .mp-avatar {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  border: 2px solid #fff;
  border-radius: 9px;
  font-size: 9px;
}

.mp-avatar-stack .mp-avatar + .mp-avatar {
  margin-left: -7px;
}

.mp-project-card__deadline {
  margin-left: auto;
  color: var(--mp-ink-500);
  font-size: 10px;
  font-weight: 660;
}

/* Lower dashboard */
.mp-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .82fr);
  gap: 16px;
}

.mp-panel {
  overflow: hidden;
}

.mp-panel__head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--mp-line);
}

.mp-panel__head > .mp-auth-field {
  min-width: 0;
  flex: 1 1 420px;
}

.mp-panel__title {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.015em;
}

.mp-panel__sub {
  margin: 2px 0 0;
  color: var(--mp-ink-500);
  font-size: 11px;
}

.mp-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mp-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  color: var(--mp-ink-800);
  font-size: 11px;
  font-weight: 730;
}

.mp-field > span:first-child {
  color: var(--mp-ink-600);
  letter-spacing: .015em;
}

.mp-field > :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 11px;
  outline: 0;
  color: var(--mp-ink-900);
  background: var(--mp-surface);
  box-shadow: inset 0 1px 2px rgba(18, 26, 30, .025);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.mp-field > :where(input:not([type="file"]), select, textarea):focus {
  border-color: rgba(162, 13, 47, .52);
  box-shadow: 0 0 0 4px rgba(162, 13, 47, .08);
}

.mp-field > select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mp-ink-500) 50%),
    linear-gradient(135deg, var(--mp-ink-500) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.mp-field > input[type="file"] {
  padding: 5px 6px;
  cursor: pointer;
  color: var(--mp-ink-600);
  background: var(--mp-ink-50);
}

.mp-field > input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 11px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--mp-red-800);
  background: var(--mp-red-50);
  cursor: pointer;
  font-weight: 760;
}

.mp-field--wide { grid-column: span 2; }

.mp-form-grid--padded {
  padding: 18px 19px;
}

.mp-panel__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 19px 19px;
}

/* Design fallback for legacy and rarely used forms. */
.mp-content label:not(.mp-field):not(.mp-auth-field):not(.mp-toggle):not(.mp-check) > :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea),
.mp-content form > :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 11px;
  outline: 0;
  color: var(--mp-ink-900);
  background: var(--mp-surface);
  box-shadow: inset 0 1px 2px rgba(18, 26, 30, .025);
}

.mp-content label:not(.mp-field):not(.mp-auth-field):not(.mp-toggle):not(.mp-check) > textarea,
.mp-content form > textarea {
  min-height: 110px;
  resize: vertical;
}

.mp-content button:not([class]) {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--mp-line);
  border-radius: 11px;
  color: var(--mp-ink-800);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-xs);
  cursor: pointer;
  font-weight: 720;
}

.mp-settings-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 19px 18px;
  padding: 13px 14px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  color: var(--mp-ink-600);
  background: var(--mp-ink-50);
  font-size: 11px;
  line-height: 1.5;
}

.mp-settings-note .mp-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--mp-green-700);
}

.mp-settings-note strong {
  color: var(--mp-ink-800);
}

.mp-alert {
  margin: 0 19px 18px;
  padding: 12px 14px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 12px;
  color: var(--mp-ink-800);
  background: var(--mp-ink-50);
  font-size: 11px;
  line-height: 1.5;
}

.mp-alert--success {
  border-color: var(--mp-green-700);
  color: var(--mp-green-700);
  background: var(--mp-green-100);
}

.mp-alert--warning {
  border-color: var(--mp-amber-700);
  color: var(--mp-amber-700);
  background: var(--mp-amber-100);
}

.mp-alert--danger {
  border-color: var(--mp-red-700);
  color: var(--mp-red-700);
  background: var(--mp-red-100);
}

.mp-filter-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: var(--mp-ink-50);
}

.mp-filter-pill {
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--mp-ink-500);
  cursor: pointer;
  background: transparent;
  font-size: 10px;
  font-weight: 720;
}

.mp-filter-pill[aria-pressed="true"] {
  color: var(--mp-ink-900);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-xs);
}

.mp-task-list,
.mp-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 19px;
  transition: background 150ms ease;
}

.mp-task + .mp-task {
  border-top: 1px solid var(--mp-line);
}

.mp-task:hover {
  background: var(--mp-bordeaux-50);
}

.mp-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1.5px solid var(--mp-ink-300);
  border-radius: 7px;
  color: transparent;
  cursor: pointer;
  background: var(--mp-surface);
  transition: all 150ms ease;
}

.mp-check:hover {
  border-color: var(--mp-bordeaux-600);
}

.mp-task.is-done .mp-check {
  border-color: var(--mp-green-700);
  color: #fff;
  background: var(--mp-green-700);
}

.mp-task.is-done .mp-task__title {
  color: var(--mp-ink-400);
  text-decoration: line-through;
}

.mp-task__copy {
  min-width: 0;
}

.mp-task__title {
  display: block;
  overflow: hidden;
  color: var(--mp-ink-800);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-task__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--mp-ink-500);
  font-size: 10px;
  white-space: nowrap;
}

.mp-task__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .02em;
}

.mp-chip--urgent { color: var(--mp-red-700); background: var(--mp-red-100); }
.mp-chip--today { color: var(--mp-amber-700); background: var(--mp-amber-100); }
.mp-chip--open { color: var(--mp-bordeaux-700); background: var(--mp-bordeaux-100); }
.mp-chip--success { color: var(--mp-green-700); background: var(--mp-green-100); }
.mp-chip--info { color: var(--mp-blue-700); background: var(--mp-blue-100); }

.mp-activity {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 11px;
  padding: 15px 19px;
}

.mp-activity > :only-child {
  grid-column: 1 / -1;
}

.mp-activity > .mp-chip,
.mp-activity > .mp-link {
  align-self: center;
  justify-self: end;
}

.mp-activity + .mp-activity {
  border-top: 1px solid var(--mp-line);
}

.mp-dunning-automation .mp-activity {
  grid-template-columns: minmax(0,1fr) minmax(0,auto);
}

.mp-dunning-automation .mp-activity > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mp-dunning-automation .mp-activity > .mp-panel__actions {
  min-width: 0;
  max-width: 100%;
  align-self: center;
  flex-wrap: wrap;
  padding: 0;
}

.mp-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.mp-row-actions form {
  margin: 0;
}

.mp-activity__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--mp-bordeaux-700);
  background: var(--mp-bordeaux-50);
}

.mp-activity__text {
  margin: 0;
  color: var(--mp-ink-700);
  font-size: 11px;
  line-height: 1.45;
}

.mp-activity__text strong {
  color: var(--mp-ink-900);
  font-weight: 730;
}

.mp-activity__time {
  display: block;
  margin-top: 4px;
  color: var(--mp-ink-400);
  font-size: 9px;
  font-weight: 650;
}

.mp-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 30px;
  color: var(--mp-ink-500);
  text-align: center;
}

/* Authentication and public error states */
body.mp-app--auth {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 16%, rgba(187, 20, 57, .13), transparent 23rem),
    radial-gradient(circle at 84% 82%, rgba(49, 95, 145, .08), transparent 25rem),
    linear-gradient(145deg, #edeae4 0%, #f7f6f3 47%, #eeece7 100%);
}

body.mp-app--auth::before,
body.mp-app--auth::after {
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(23, 33, 38, .055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body.mp-app--auth::before {
  width: 460px;
  height: 460px;
  top: -260px;
  right: -110px;
}

body.mp-app--auth::after {
  width: 330px;
  height: 330px;
  bottom: -210px;
  left: -90px;
}

.mp-auth-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.mp-auth {
  display: grid;
  width: min(100%, 456px);
  margin: 0 auto;
  justify-items: center;
  gap: 24px;
}

.mp-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-radius: 16px;
}

.mp-auth-brand .mp-brand__mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 15px;
  font-size: 18px;
}

.mp-auth-brand__copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.mp-auth-brand__copy strong {
  color: var(--mp-ink-900);
  font-size: 19px;
  font-weight: 790;
  letter-spacing: -.035em;
}

.mp-auth-brand__copy span {
  color: var(--mp-ink-500);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mp-auth-card {
  width: 100%;
  padding: clamp(27px, 5vw, 38px);
  border: 1px solid rgba(23, 33, 38, .10);
  border-radius: 25px;
  background: color-mix(in srgb, var(--mp-surface) 94%, transparent);
  box-shadow: 0 25px 70px rgba(18, 26, 30, .13), inset 0 1px 0 color-mix(in srgb, var(--mp-surface) 90%, transparent);
  backdrop-filter: blur(18px);
}

.mp-auth-card__head {
  margin-bottom: 28px;
}

.mp-auth-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--mp-bordeaux-700);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mp-auth-card__eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mp-green-700);
  box-shadow: 0 0 0 4px var(--mp-green-100);
}

.mp-auth-card__head h1 {
  margin: 0;
  color: var(--mp-ink-950);
  font-size: clamp(29px, 7vw, 37px);
  font-weight: 790;
  letter-spacing: -.05em;
  line-height: 1.08;
}

.mp-auth-card__head > p:last-child {
  margin: 12px 0 0;
  color: var(--mp-ink-600);
  font-size: 14px;
}

.mp-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -7px 0 21px;
  padding: 12px 13px;
  border: 1px solid rgba(169, 56, 56, .18);
  border-radius: 12px;
  color: var(--mp-red-700);
  background: var(--mp-red-100);
  font-size: 12px;
  font-weight: 650;
}

.mp-auth-alert__mark {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--mp-red-700);
  font-size: 11px;
  font-weight: 800;
}

.mp-auth-form {
  display: grid;
  gap: 18px;
}

.mp-auth-field {
  display: grid;
  gap: 7px;
}

.mp-auth-field__label {
  color: var(--mp-ink-800);
  font-size: 12px;
  font-weight: 730;
}

.mp-auth-field__control {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 13px;
  background: var(--mp-ink-50);
  box-shadow: inset 0 1px 2px rgba(18, 26, 30, .025);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.mp-auth-field__control:focus-within {
  border-color: rgba(162, 13, 47, .52);
  background: var(--mp-surface);
  box-shadow: 0 0 0 4px rgba(162, 13, 47, .08);
}

.mp-auth-field__control input,
.mp-auth-field__control select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--mp-ink-900);
  background: transparent;
  font-size: 14px;
}

.mp-auth-field__control select {
  min-height: 50px;
  cursor: pointer;
}

.mp-auth-field__control input::placeholder {
  color: var(--mp-ink-400);
}

.mp-auth-field__control--searchable {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px;
}

.mp-auth-field__control--searchable .mp-select-search,
.mp-select-search {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 10px;
  outline: 0;
  color: var(--mp-ink-900);
  background: var(--mp-surface);
}

.mp-select-search:focus {
  border-color: rgba(162, 13, 47, .52);
  box-shadow: 0 0 0 3px rgba(162, 13, 47, .08);
}

.mp-select-search__status {
  color: var(--mp-ink-500);
  font-size: 10px;
  line-height: 1.35;
}

.mp-activity > label {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 7px;
}

.mp-activity > label > input:not([type="checkbox"]),
.mp-activity > label > select,
.mp-activity > label > textarea,
.mp-task input,
.mp-task select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 11px;
  outline: 0;
  color: var(--mp-ink-900);
  background: var(--mp-ink-50);
  box-shadow: inset 0 1px 2px rgba(18,26,30,.025);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.mp-activity > label > textarea {
  min-height: 110px;
  resize: vertical;
}

.mp-activity > label > :where(input:not([type="checkbox"]), select, textarea):focus,
.mp-task :where(input, select):focus {
  border-color: rgba(162,13,47,.52);
  background: var(--mp-surface);
  box-shadow: 0 0 0 4px rgba(162,13,47,.08);
}

.mp-toggle {
  display: flex !important;
  min-height: 62px;
  align-items: center !important;
  justify-content: space-between;
  gap: 16px !important;
  padding: 10px 4px;
  color: var(--mp-ink-800);
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
}

.mp-toggle input[type="checkbox"] {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--mp-line-strong);
  border-radius: 999px;
  outline: 0;
  background: var(--mp-ink-200);
  box-shadow: inset 0 1px 3px rgba(18, 26, 30, .12);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.mp-toggle input[type="checkbox"]::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 2px 6px rgba(18, 26, 30, .22);
  transition: transform 180ms var(--mp-ease);
}

.mp-toggle input[type="checkbox"]:checked {
  border-color: var(--mp-bordeaux-700);
  background: linear-gradient(135deg, var(--mp-bordeaux-600), var(--mp-bordeaux-800));
}

.mp-toggle input[type="checkbox"]:checked::after { transform: translateX(20px); }
.mp-toggle input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 4px rgba(162, 13, 47, .12); }

.mp-panel > textarea {
  display: block;
  width: calc(100% - 32px);
  min-height: 150px;
  margin: 0 16px 16px;
  padding: 13px 14px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 13px;
  outline: 0;
  color: var(--mp-ink-900);
  background: var(--mp-ink-50);
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(18, 26, 30, .025);
}

.mp-panel > textarea:focus {
  border-color: rgba(162, 13, 47, .52);
  background: var(--mp-surface);
  box-shadow: 0 0 0 4px rgba(162, 13, 47, .08);
}

.mp-activity small,
.mp-auth-field small {
  color: var(--mp-red-700);
  font-size: 10px;
  font-weight: 650;
}

.mp-auth-form__submit {
  width: 100%;
  min-height: 52px;
  justify-content: space-between;
  margin-top: 3px;
  padding-inline: 17px;
  border-radius: 13px;
  font-size: 14px;
}

.mp-auth-form__submit > span {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  transition: transform 150ms ease;
}

.mp-auth-form__submit:hover > span {
  transform: translateX(3px);
}

.mp-auth-card__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px -8px -6px;
  padding-top: 19px;
  border-top: 1px solid var(--mp-line);
  color: var(--mp-ink-500);
  font-size: 10px;
  font-weight: 640;
  text-align: center;
}

.mp-auth-card__security-mark {
  position: relative;
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: var(--mp-green-700);
}

.mp-auth-card__security-mark::before {
  position: absolute;
  width: 6px;
  height: 6px;
  top: -5px;
  left: 2px;
  border: 1.5px solid var(--mp-green-700);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.mp-auth__footer {
  margin: -5px 0 0;
  color: var(--mp-ink-500);
  font-size: 10px;
  font-weight: 670;
  letter-spacing: .04em;
  text-align: center;
}

.mp-auth--error {
  max-width: 476px;
}

.mp-error-card {
  text-align: center;
}

.mp-error-card__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(162, 13, 47, .13);
  border-radius: 16px;
  color: var(--mp-bordeaux-700);
  background: var(--mp-bordeaux-50);
  font-size: 24px;
  font-weight: 790;
}

.mp-error-card .mp-auth-card__head {
  margin-bottom: 22px;
}

.mp-error-card .mp-auth-card__eyebrow {
  justify-content: center;
}

.mp-error-card .mp-auth-card__head h1 {
  font-size: clamp(27px, 6vw, 34px);
}

.mp-error-card__reference {
  margin: -5px 0 21px;
  color: var(--mp-ink-500);
  font-size: 10px;
}

.mp-error-card__reference code {
  color: var(--mp-ink-700);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: inherit;
}

/* Feedback and mobile controls */
.mp-sidebar-scrim {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  opacity: 0;
  cursor: pointer;
  background: rgba(10,15,18,.52);
  backdrop-filter: blur(2px);
  transition: opacity 180ms ease;
}

.mp-toast-region {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.mp-toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  color: #fff;
  background: rgba(23,33,38,.96);
  box-shadow: var(--mp-shadow-lg);
  animation: mp-toast-in 260ms var(--mp-ease) both;
  pointer-events: auto;
}

.mp-toast__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--mp-green-700);
}

.mp-toast__text {
  font-size: 12px;
  font-weight: 650;
}

.mp-toast.is-leaving {
  animation: mp-toast-out 180ms ease both;
}

@keyframes mp-toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mp-toast-out {
  to { opacity: 0; transform: translateY(8px) scale(.98); }
}

.mp-mobile-nav {
  display: none;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(162,13,47,.23);
  outline-offset: 2px;
}

/* Large tablet */
.mp-hero--compact {
  min-height: 0;
}

.mp-chip--safe {
  color: var(--mp-green-700);
  background: var(--mp-green-100);
}

.mp-notice {
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-sm);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-xs);
}

.mp-notice--success {
  color: var(--mp-green-700);
  border-color: rgba(37,112,89,.24);
  background: var(--mp-green-100);
}

.mp-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--mp-ink-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mp-count-badge {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--mp-bordeaux-700);
  background: var(--mp-bordeaux-100);
  font-size: 12px;
  font-weight: 800;
}

.mp-field-error {
  color: var(--mp-red-700) !important;
  font-weight: 700;
}

.mp-whatsapp {
  display: grid;
  min-height: 650px;
  height: min(720px, calc(100vh - 245px));
  margin-top: 18px;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-lg);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-sm);
}

.mp-whatsapp > .mp-card {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mp-whatsapp__sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--mp-line) !important;
  background: var(--mp-surface-soft);
}

.mp-whatsapp__sidebar-head,
.mp-whatsapp__thread-head {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--mp-line);
  background: color-mix(in srgb, var(--mp-surface) 88%, transparent);
}

.mp-whatsapp__sidebar-head > div,
.mp-whatsapp__thread-head > div {
  min-width: 0;
  flex: 1;
}

.mp-whatsapp__sidebar-head h2,
.mp-whatsapp__thread-head h2 {
  margin: 0;
  color: var(--mp-ink-900);
  font-size: 17px;
  line-height: 1.25;
}

.mp-whatsapp__thread-head p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--mp-ink-500);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-whatsapp__search {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--mp-line);
}

.mp-whatsapp__search label {
  display: flex;
  min-width: 0;
  height: 43px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 12px;
  background: var(--mp-surface);
}

.mp-whatsapp__search label:focus-within {
  border-color: rgba(162,13,47,.42);
  box-shadow: 0 0 0 3px rgba(162,13,47,.09);
}

.mp-whatsapp__search .mp-icon {
  flex: 0 0 auto;
  color: var(--mp-ink-400);
}

.mp-whatsapp__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.mp-whatsapp__search .mp-button {
  min-height: 43px;
  padding-inline: 13px;
}

.mp-whatsapp__chat-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.mp-whatsapp__chat {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--mp-line);
  transition: background .18s var(--mp-ease), box-shadow .18s var(--mp-ease);
}

.mp-whatsapp__chat:hover {
  background: var(--mp-surface);
}

.mp-whatsapp__chat.is-active {
  background: var(--mp-bordeaux-50);
  box-shadow: inset 3px 0 0 var(--mp-bordeaux-700);
}

.mp-whatsapp__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 15px;
  color: var(--mp-bordeaux-700);
  background: linear-gradient(145deg, var(--mp-bordeaux-100), #fff);
  box-shadow: inset 0 0 0 1px rgba(162,13,47,.08);
  font-size: 14px;
  font-weight: 850;
}

.mp-whatsapp__avatar--large {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.mp-whatsapp__chat-copy,
.mp-whatsapp__chat-line {
  min-width: 0;
}

.mp-whatsapp__chat-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mp-whatsapp__chat-line strong {
  overflow: hidden;
  color: var(--mp-ink-900);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-whatsapp__chat-line time {
  flex: 0 0 auto;
  color: var(--mp-ink-400);
  font-size: 9px;
}

.mp-whatsapp__preview {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--mp-ink-500);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-whatsapp__unread {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--mp-bordeaux-700);
  font-size: 10px;
  font-weight: 800;
}

.mp-whatsapp__thread {
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: #f5f2ed;
}

.mp-whatsapp__thread-head {
  flex: 0 0 auto;
  padding-inline: 20px;
}

.mp-whatsapp__messages {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 24px clamp(16px,3vw,38px);
  overscroll-behavior: contain;
  background-color: #f5f2ed;
  background-image: radial-gradient(rgba(23,33,38,.055) .7px, transparent .7px);
  background-size: 12px 12px;
}

.mp-whatsapp__message-row {
  display: flex;
  margin: 0 0 10px;
}

.mp-whatsapp__message-row.is-outgoing {
  justify-content: flex-end;
}

.mp-whatsapp__bubble {
  max-width: min(620px, 78%);
  padding: 11px 13px 8px;
  border: 1px solid var(--mp-line);
  border-radius: 5px 16px 16px;
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow-xs);
}

.mp-whatsapp__message-row.is-outgoing .mp-whatsapp__bubble {
  border-color: rgba(162,13,47,.12);
  border-radius: 16px 5px 16px 16px;
  background: var(--mp-bordeaux-100);
}

.mp-whatsapp__bubble strong {
  display: block;
  margin-bottom: 3px;
  color: var(--mp-bordeaux-700);
  font-size: 10px;
  letter-spacing: .02em;
}

.mp-whatsapp__bubble p {
  margin: 0;
  color: var(--mp-ink-800);
  font-size: 13px;
  line-height: 1.5;
}

.mp-whatsapp__bubble time {
  display: block;
  margin-top: 4px;
  color: var(--mp-ink-400);
  font-size: 9px;
  text-align: right;
}

.mp-whatsapp__composer {
  flex: 0 0 auto;
  padding: 13px 16px 14px;
  border-top: 1px solid var(--mp-line);
  background: color-mix(in srgb, var(--mp-surface) 94%, transparent);
}

.mp-whatsapp__composer > label {
  display: block;
  margin-bottom: 6px;
  color: var(--mp-ink-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mp-whatsapp__compose-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 9px;
}

.mp-whatsapp__compose-row textarea {
  width: 100%;
  min-height: 48px;
  max-height: 150px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 14px;
  outline: 0;
  background: var(--mp-surface-soft);
}

.mp-whatsapp__compose-row textarea:focus {
  border-color: rgba(162,13,47,.42);
  box-shadow: 0 0 0 3px rgba(162,13,47,.09);
  background: var(--mp-surface);
}

.mp-whatsapp__composer > small {
  display: block;
  margin-top: 6px;
  color: var(--mp-ink-500);
  font-size: 10px;
}

.mp-whatsapp__empty-thread {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--mp-ink-500);
  text-align: center;
}

.mp-whatsapp__empty-thread h2 {
  margin: 14px 0 4px;
  color: var(--mp-ink-800);
}

.mp-whatsapp__empty-thread p {
  margin: 0;
}

.mp-whatsapp__empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  color: var(--mp-bordeaux-700);
  background: var(--mp-bordeaux-100);
}

/* Session-only density preference. Security banners and tap targets keep their safe size. */
body.mp-density--compact .mp-content {
  padding-top: 22px;
}

body.mp-density--compact .mp-section {
  margin-top: 20px;
}

body.mp-density--compact .mp-panel__head {
  min-height: 54px;
  padding: 12px 15px;
}

body.mp-density--compact .mp-form-grid--padded {
  padding: 14px 15px;
}

body.mp-density--compact .mp-panel__actions {
  padding: 0 15px 15px;
}

body.mp-density--compact .mp-action-card {
  min-height: 78px;
  padding: 12px 14px;
}

body.mp-density--compact .mp-action-card__icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

body.mp-density--compact .mp-kpi {
  min-height: 118px;
  padding: 16px;
}

body.mp-density--compact .mp-activity,
body.mp-density--compact .mp-task {
  padding-block: 10px;
}

@media (max-width: 1240px) {
  .mp-whatsapp {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .mp-kpi-grid,
  .mp-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-command-search {
    width: min(29vw, 360px);
  }

  .mp-dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .8fr);
  }

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

/* Tablet uses the same explicit expand/collapse control as desktop. */
@media (min-width: 761px) and (max-width: 1024px) {
  .mp-command-search {
    width: 270px;
  }

  .mp-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 760px) {
  :root {
    --mp-topbar-height: 64px;
  }

  body.mp-app {
    padding-bottom: 0;
  }

  body.mp-app.is-sidebar-open {
    overflow: hidden;
  }

  .mp-whatsapp {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .mp-whatsapp__sidebar {
    max-height: 370px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--mp-line) !important;
  }

  .mp-whatsapp__chat-list {
    max-height: 230px;
  }

  .mp-whatsapp__thread {
    min-height: 520px;
  }

  .mp-whatsapp__thread-head {
    padding-inline: 14px;
  }

  .mp-whatsapp__thread-head > .mp-chip {
    display: none;
  }

  .mp-whatsapp__messages {
    min-height: 300px;
    padding: 18px 12px;
  }

  .mp-whatsapp__bubble {
    max-width: 88%;
  }

  .mp-whatsapp__compose-row {
    grid-template-columns: 1fr;
  }

  .mp-app-shell,
  body.is-sidebar-collapsed .mp-app-shell {
    display: block;
  }

  .mp-main {
    width: 100%;
  }

  .mp-sidebar,
  body.is-sidebar-collapsed .mp-sidebar {
    z-index: 60;
    width: min(294px, calc(100vw - 46px));
    transform: translateX(-104%);
    box-shadow: var(--mp-shadow-lg);
  }

  .mp-sidebar__edge-toggle {
    display: none;
  }

  body.is-sidebar-open .mp-sidebar {
    transform: translateX(0);
  }

  body.is-sidebar-open .mp-sidebar-scrim {
    display: block;
    opacity: 1;
  }

  body.is-sidebar-collapsed .mp-brand {
    justify-content: flex-start;
    padding-inline: 18px;
  }

  body.is-sidebar-collapsed .mp-brand__copy,
  body.is-sidebar-collapsed .mp-nav__label,
  body.is-sidebar-collapsed .mp-nav__text,
  body.is-sidebar-collapsed .mp-nav__badge,
  body.is-sidebar-collapsed .mp-profile__copy,
  body.is-sidebar-collapsed .mp-profile > .mp-icon {
    width: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body.is-sidebar-collapsed .mp-nav__group + .mp-nav__group {
    margin-top: 22px;
    padding-top: 0;
    border-top: 0;
  }

  body.is-sidebar-collapsed .mp-nav__item,
  body.is-sidebar-collapsed .mp-profile {
    justify-content: flex-start;
    gap: 13px;
    padding-inline: 12px;
  }

  .mp-appbar {
    gap: 11px;
    padding: 0 15px;
  }

  .mp-appbar__menu {
    display: inline-grid;
  }

  .mp-breadcrumb__eyebrow,
  .mp-command-search,
  .mp-appbar__avatar,
  .mp-appbar__action--optional {
    display: none;
  }

  .mp-breadcrumb__title {
    font-size: 16px;
  }

  .mp-content {
    padding: 18px 14px 38px;
  }

  .mp-role-preview { align-items: stretch; flex-direction: column; }
  .mp-role-preview .mp-button { width: 100%; }

  .mp-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding: 23px;
    border-radius: 22px;
  }

  .mp-hero h1 {
    font-size: 27px;
  }

  .mp-hero p {
    font-size: 12px;
  }

  .mp-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mp-button {
    min-height: 45px;
  }

  .mp-section {
    margin-top: 23px;
  }

  .mp-kpi-grid,
  .mp-quick-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
  }

  .mp-form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .mp-field--wide { grid-column: 1; }

  .mp-form-grid--padded {
    padding: 15px;
  }

  .mp-panel__actions {
    padding: 0 15px 15px;
  }

  .mp-panel__actions .mp-button {
    width: 100%;
  }

  .mp-dunning-automation .mp-activity {
    grid-template-columns: minmax(0,1fr);
  }

  .mp-dunning-automation .mp-activity > .mp-panel__actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
  }

  .mp-dunning-automation .mp-activity > .mp-panel__actions .mp-button {
    flex: 1 1 100%;
    white-space: normal;
  }

  .mp-action-card {
    min-height: 0;
    flex-wrap: wrap;
    padding: 14px;
  }

  .mp-action-card__copy {
    flex-basis: calc(100% - 58px);
  }

  .mp-action-card > form,
  .mp-action-card > .mp-chip {
    margin-left: 58px;
  }

  .mp-action-card > form,
  .mp-action-card > form .mp-button {
    width: calc(100% - 58px);
  }

  .mp-settings-note {
    margin-inline: 15px;
  }

  .mp-kpi {
    min-height: 128px;
    padding: 15px;
  }

  .mp-kpi__value {
    font-size: 24px;
  }

  .mp-kpi__trend {
    display: none;
  }

  .mp-quick-action {
    min-height: 110px;
    flex-wrap: wrap;
    align-content: center;
    gap: 9px;
    padding: 14px;
  }

  .mp-quick-action__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .mp-quick-action__copy {
    width: calc(100% - 50px);
    flex: 0 0 calc(100% - 50px);
  }

  .mp-quick-action > .mp-icon {
    display: none;
  }

  .mp-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mp-panel__head {
    align-items: flex-start;
    padding: 15px;
  }

  .mp-filter-pills {
    overflow: auto;
  }

  .mp-task {
    gap: 10px;
    padding-inline: 15px;
  }

  .mp-toast-region {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 430px) {
  .mp-hero__actions {
    grid-template-columns: 1fr;
  }

  .mp-section__head {
    align-items: flex-start;
  }

  .mp-section__head > .mp-link {
    padding-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .mp-sidebar,
  .mp-appbar,
  .mp-sidebar-scrim,
  .mp-toast-region {
    display: none !important;
  }

  .mp-app-shell {
    display: block;
  }

  .mp-content {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .mp-card,
  .mp-hero {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Inventory catalog: services and stocked material are deliberately separate. */
.mp-inventory-kind-tabs .mp-filter-pills {
  width: min(100%, 720px);
  padding: 5px;
  border-radius: 14px;
}

.mp-inventory-kind-tabs .mp-filter-pill {
  display: inline-flex;
  min-height: 42px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  text-align: center;
}

.mp-inventory-kind-tabs .mp-filter-pill strong {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  padding-inline: 6px;
  border-radius: 999px;
  color: var(--mp-ink-700);
  background: color-mix(in srgb, var(--mp-ink-300) 22%, transparent);
  font-size: 9px;
}

.mp-inventory-kind-tabs .mp-filter-pill[aria-pressed="true"] strong {
  color: var(--mp-bordeaux-700);
  background: var(--mp-bordeaux-100);
}

.mp-item-kind {
  min-width: 0;
  margin: 0;
  padding-bottom: 18px;
}

.mp-item-kind__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 19px;
}

.mp-item-kind__option {
  position: relative;
  display: block;
  cursor: pointer;
}

.mp-item-kind__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mp-item-kind__option > span {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 14px;
  color: var(--mp-ink-700);
  background: var(--mp-surface);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.mp-item-kind__option strong {
  color: var(--mp-ink-900);
  font-size: 14px;
}

.mp-item-kind__option small {
  color: var(--mp-ink-500);
  font-size: 11px;
  line-height: 1.45;
}

.mp-item-kind__option input:checked + span {
  border-color: var(--mp-bordeaux-600);
  background: var(--mp-bordeaux-50);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mp-bordeaux-600) 12%, transparent);
}

.mp-item-kind__option input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--mp-blue-700) 28%, transparent);
  outline-offset: 2px;
}

.mp-item-kind__error {
  display: block;
  padding: 10px 19px 0;
  color: var(--mp-red-700);
}

.mp-item-kind__notice {
  display: block;
  margin: 12px 19px 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mp-amber-700);
  background: var(--mp-amber-100);
  font-size: 11px;
}

.mp-item-kind__option input:disabled + span {
  cursor: not-allowed;
  opacity: .58;
}

.mp-inventory-item__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mp-inventory-item__actions form {
  margin: 0;
}

.mp-inventory-empty {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 28px 20px;
  text-align: center;
}

.mp-inventory-empty strong {
  color: var(--mp-ink-900);
  font-size: 16px;
}

.mp-inventory-empty span {
  max-width: 520px;
  color: var(--mp-ink-500);
  font-size: 12px;
}

@media (max-width: 760px) {
  .mp-inventory-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-inventory-kpis .mp-kpi {
    min-height: 84px;
    padding: 13px 14px;
  }

  .mp-inventory-kpis .mp-kpi__value {
    font-size: clamp(20px, 7vw, 26px);
  }

  .mp-inventory-kpis .mp-kpi__label {
    font-size: 10px;
    line-height: 1.3;
  }

  .mp-inventory-kind-tabs .mp-filter-pills {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .mp-inventory-kind-tabs .mp-filter-pill {
    min-width: 132px;
    flex: 1 0 132px;
    justify-content: center;
    padding-inline: 13px;
  }

  .mp-inventory-kind-tabs .mp-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .mp-inventory-filter .mp-panel__head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .mp-inventory-filter .mp-auth-field:first-of-type,
  .mp-inventory-filter .mp-button {
    grid-column: 1 / -1;
  }

  .mp-inventory-filter .mp-button {
    width: 100%;
  }

  .mp-item-kind__options {
    grid-template-columns: 1fr;
  }

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

  .mp-inventory-item__actions {
    grid-column: 2;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Every first-party browser print uses the same collision-free lower-left
   document mark as the native PDF renderers. It stays inside the existing
   page margin, so ordinary content keeps its established geometry. */
.print-identity {
  position: fixed;
  left: 11px;
  right: auto;
  top: auto;
  bottom: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.print-identity__code {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #58616a;
  font: 700 9px/1.1 Arial, sans-serif;
  white-space: nowrap;
}

.print-identity__qr {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  background: #fff;
}

.print-identity__page {
  display: none;
}

@media print {
  html,
  body {
    box-sizing: border-box;
  }

  .print-identity {
    left: 2.8mm;
    right: auto;
    top: auto;
    bottom: 12mm;
    gap: 3mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-identity__code {
    color: #434a50;
    font-size: 6pt;
    letter-spacing: .2px;
  }

  .print-identity__qr {
    width: 11.6mm;
    height: 11.6mm;
  }

  .print-identity__page {
    position: fixed;
    right: 25mm;
    bottom: 4mm;
    display: block;
    color: #596168;
    font: 400 7pt Arial, sans-serif;
  }

  .print-identity__page::after {
    content: "Seite " counter(page) " / " counter(pages);
  }
}

.mp-auth--form {
  width: min(100%, 840px);
}

.mp-public-form-card {
  width: 100%;
  max-width: none;
}

.mp-public-form-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 24px;
  padding: 5px;
  border: 1px solid var(--mp-line);
  border-radius: 15px;
  background: var(--mp-ink-50);
}

.mp-public-form-switch__item {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--mp-ink-600);
  font-size: 13px;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
}

.mp-public-form-switch__item.is-active {
  border-color: rgba(162, 13, 47, .16);
  color: var(--mp-bordeaux-700);
  background: #fff;
  box-shadow: 0 5px 16px rgba(18, 26, 30, .07);
}

.mp-form-document {
  overflow: hidden;
  border: 1px solid var(--mp-line-strong);
  border-radius: 17px;
  background: #fff;
}

.mp-form-document__head {
  padding: 24px;
  border-bottom: 1px solid var(--mp-line);
  background: linear-gradient(135deg, #fff 0%, var(--mp-bordeaux-50) 100%);
}

.mp-form-document__head > span {
  color: var(--mp-bordeaux-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mp-form-document__head h2 {
  margin: 8px 0 5px;
  color: var(--mp-ink-950);
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.12;
}

.mp-form-document__head p {
  margin: 0;
  color: var(--mp-ink-600);
  font-size: 13px;
  line-height: 1.55;
}

.mp-form-document__fields {
  margin: 0;
  padding: 8px 24px 20px;
}

.mp-form-document__row {
  display: grid;
  grid-template-columns: minmax(160px, 36%) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mp-line);
}

.mp-form-document__row dt,
.mp-form-document__row dd,
.mp-form-document__section dt,
.mp-form-document__section dd {
  margin: 0;
}

.mp-form-document__row dt {
  color: var(--mp-ink-700);
  font-size: 11px;
  font-weight: 760;
}

.mp-form-document__row dd {
  min-width: 0;
  color: var(--mp-ink-950);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mp-form-document__row dd span {
  color: var(--mp-ink-400);
  font-style: italic;
}

.mp-form-document__section {
  padding: 24px 0 7px;
  color: var(--mp-bordeaux-700);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mp-form-document__signature {
  display: grid;
  gap: 6px;
  min-height: 112px;
  margin: 0 24px 24px;
  padding: 18px;
  align-content: end;
  border: 1px dashed var(--mp-line-strong);
  border-radius: 13px;
  color: var(--mp-ink-800);
}

.mp-form-document__signature span {
  color: var(--mp-ink-500);
  font-size: 11px;
}

.mp-public-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mp-public-form-card .mp-auth-field__control textarea {
  width: 100%;
  min-width: 0;
  min-height: 130px;
  padding: 13px 0;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--mp-ink-900);
  background: transparent;
  font: inherit;
  line-height: 1.5;
}

.mp-public-form-card .mp-auth-field__control input[type="checkbox"] {
  width: 24px;
  min-width: 24px;
  height: 24px;
  accent-color: var(--mp-bordeaux-700);
}

.mp-signature {
  margin: 0;
  border-color: var(--mp-line-strong);
  background: var(--mp-ink-50);
}

.mp-signature canvas {
  max-width: none;
  height: clamp(190px, 34vw, 250px);
  cursor: crosshair;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: contain;
}

.mp-signature canvas.is-signed {
  border-color: var(--mp-green-700);
  box-shadow: 0 0 0 3px rgba(23, 124, 92, .08);
}
.mp-photo-report{display:grid;gap:10px}.mp-photo-report__help{color:var(--mp-muted,#66727e);font-size:.86rem;line-height:1.45}.mp-photo-report__item{display:grid;gap:7px;padding:12px;border:1px solid var(--mp-border,#d8dee5);border-radius:12px;background:var(--mp-surface-muted,#f6f7f8)}.mp-photo-report__item strong{font-size:.86rem}.mp-photo-report__item textarea{min-height:72px!important}.mp-photo-report__preview{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:9px;background:#fff}
.mp-inspection-capture{display:grid;gap:12px}.mp-inspection-capture>[data-inspection-list]{display:grid;gap:12px}.mp-inspection-capture__item{display:grid;gap:10px;padding:14px;border:1px solid var(--mp-border,#d8dee5);border-radius:14px;background:var(--mp-surface-muted,#f6f7f8)}.mp-inspection-capture__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mp-inspection-capture__previews{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.mp-inspection-capture__preview{display:grid;gap:5px;min-width:0}.mp-inspection-capture__preview img{display:block;width:100%;height:130px;object-fit:cover;border-radius:10px;background:#fff}.mp-inspection-capture__preview small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-form-inspection{display:grid;gap:12px;min-width:0}.mp-form-inspection__item{display:grid;gap:8px;padding:12px;border:1px solid var(--mp-border,#d8dee5);border-radius:12px;background:var(--mp-surface-muted,#f6f7f8)}.mp-form-inspection__item p{margin:0;white-space:normal}.mp-form-inspection__photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.mp-form-inspection__photo{display:grid;gap:6px;color:inherit;text-decoration:none}.mp-form-inspection__photo img{display:block;width:100%;height:150px;object-fit:cover;border-radius:10px;background:var(--mp-card,#fff)}.mp-form-inspection__photo span{font-size:.8rem;line-height:1.4}.mp-form-inspection__missing{display:grid;gap:5px;align-content:center;min-height:110px;padding:12px;border:1px solid var(--mp-danger,#b42318);border-radius:10px;color:var(--mp-danger,#b42318);background:var(--mp-accent-soft,#fff1f3)}.mp-form-inspection__missing span{font-size:.8rem;line-height:1.4}

.mp-signature__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mp-signature__status {
  color: var(--mp-ink-500);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 620px) {
  .mp-auth-shell {
    place-items: start center;
    padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .mp-public-form-card {
    padding: 20px 15px;
    border-radius: 18px;
  }

  .mp-public-form-card .mp-auth-card__head {
    margin-bottom: 20px;
  }

  .mp-public-form-switch {
    position: sticky;
    z-index: 4;
    top: max(6px, env(safe-area-inset-top));
  }

  .mp-form-document__head,
  .mp-form-document__fields {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mp-form-document__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mp-form-document__signature {
    margin-right: 16px;
    margin-left: 16px;
  }

  .mp-public-form-actions,
  .mp-public-form-actions .mp-button {
    width: 100%;
  }

  .mp-signature__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  .mp-public-form-card {
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .mp-public-form-card .mp-form-grid,
  .mp-public-form-card [data-print],
  .mp-public-form-switch,
  .mp-public-form-actions,
  .mp-auth-card__security {
    display: none !important;
  }

  body.mp-app--auth,
  .mp-auth-shell,
  .mp-auth-card {
    padding: 0;
    background: #fff;
  }

  .mp-form-document {
    border: 0;
  }
}

.mp-invoice-items input,
.mp-invoice-items select,
.mp-invoice-items textarea {
  width: 100%;
  min-width: 76px;
  box-sizing: border-box;
  border: 1px solid var(--mp-line, #d7dde0);
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  background: var(--mp-surface);
}

.mp-invoice-items textarea { min-width: 220px; resize: vertical; }
.mp-invoice-print { max-width: 900px; margin: 0 auto; padding: 42px; background: #fff; color: #172126; }
.mp-invoice-print__logo { display: block; width: auto; max-width: 220px; height: auto; max-height: 72px; object-fit: contain; object-position: left center; margin-bottom: 14px; }
.mp-invoice-print__sender { margin: -26px 0 22px; padding-bottom: 6px; border-bottom: 1px solid #d7dde0; color: #647078; font-size: .72rem; }
.mp-invoice-print > header { border-bottom: 3px solid #b8052d; padding-bottom: 16px; }
.mp-invoice-print > header h1 { color: #b8052d; }
.mp-invoice-print--navy > header { border-bottom-color: #123359; }
.mp-invoice-print--navy > header h1 { color: #123359; }
.mp-invoice-print--green > header { border-bottom-color: #0a6147; }
.mp-invoice-print--green > header h1 { color: #0a6147; }
.mp-invoice-print--charcoal > header { border-bottom-color: #172126; }
.mp-invoice-print--charcoal > header h1 { color: #172126; }
.mp-invoice-print--gold > header { border-bottom-color: #a66b0a; }
.mp-invoice-print--gold > header h1 { color: #a66b0a; }
.mp-invoice-print > header,
.mp-invoice-print__addresses { display: flex; justify-content: space-between; gap: 36px; margin-bottom: 42px; }
.mp-invoice-print > header > :last-child,
.mp-invoice-print__addresses > :last-child { text-align: right; }
.mp-invoice-print table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.mp-invoice-print th,
.mp-invoice-print td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid #d7dde0; }
.mp-invoice-print__totals { width: min(360px, 100%); margin: 20px 0 36px auto; }
.mp-invoice-print__totals p { display: flex; justify-content: space-between; margin: 8px 0; }
.mp-invoice-print__totals .total { padding-top: 10px; border-top: 2px solid #172126; font-size: 1.15rem; }
.mp-invoice-print, .mp-invoice-print * { box-sizing: border-box; min-width: 0; }
.mp-invoice-print td, .mp-invoice-print th, .mp-invoice-print p { overflow-wrap: anywhere; word-break: normal; }
.mp-dispatch-form { display: grid; grid-template-columns: minmax(190px,1fr) minmax(220px,1fr) auto; gap: 14px; align-items: end; padding: 18px 22px 22px; }
.mp-danger-panel { border-color: #efc7cf; }
@media (max-width: 760px) {
  .mp-invoice-print { width: 100%; padding: 20px 16px; overflow: hidden; }
  .mp-invoice-print > header, .mp-invoice-print__addresses { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 24px; }
  .mp-invoice-print > header > :last-child, .mp-invoice-print__addresses > :last-child { text-align: left; }
  .mp-invoice-print table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mp-invoice-print table table { display: table; }
  .mp-invoice-print th, .mp-invoice-print td { white-space: normal; min-width: 76px; }
  .mp-invoice-print th:nth-child(2), .mp-invoice-print td:nth-child(2) { min-width: 190px; }
  .mp-invoice-print__totals { width: 100%; margin-left: 0; }
  .mp-invoice-print__sender { margin-top: -10px; }
  .mp-dispatch-form { grid-template-columns: minmax(0,1fr); }
}

.mp-branding-grid { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(420px,1.22fr); gap: 20px; align-items: stretch; }
.mp-branding-upload { padding: 22px; display: grid; gap: 18px; }
.mp-branding-upload__current { min-height: 140px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px; border: 1px dashed #cbd3d8; border-radius: 18px; background: #f7f9fa; text-align: center; }
.mp-branding-upload__current img { display: block; width: auto; max-width: min(100%,280px); height: auto; max-height: 110px; object-fit: contain; }
.mp-branding-upload__current p { margin: 0; color: #647078; }
.mp-branding-upload__placeholder { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: #b8052d; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: .05em; }
.mp-branding-upload__form { display: grid; gap: 14px; }
.mp-branding-preview { min-height: 540px; padding: 16px; background: #e9eef1; }
.mp-branding-preview iframe { display: block; width: 100%; height: 540px; border: 0; border-radius: 12px; background: #fff; }
.mp-document-preview-actions { flex-wrap: wrap; max-width: 100%; padding: 0; }
.mp-document-preview-actions .mp-button { width: auto; }
@media (max-width: 980px) {
  .mp-branding-grid { grid-template-columns: minmax(0,1fr); }
  .mp-branding-preview, .mp-branding-preview iframe { min-height: 460px; height: 460px; }
}
@media (max-width: 760px) {
  .mp-document-preview-head { flex-direction: column; }
  .mp-document-preview-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .mp-document-preview-actions .mp-button { width: 100%; }
}

@media print {
  .mp-invoice-print { max-width: none; margin: 0; padding: 8mm; }
  .mp-invoice-print table { font-size: 9pt; }
  .mp-invoice-print tr { break-inside: avoid; }
  .mp-print-action,
  .mp-readonly-banner { display: none !important; }
}

/* Native vCard import: large address books remain usable without turning the
   customer page into a desktop-only spreadsheet. */
.mp-contact-import__notice {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--mp-blue-100);
  border-radius: 14px;
  color: var(--mp-blue-700);
  background: color-mix(in srgb, var(--mp-blue-100) 48%, #fff);
  line-height: 1.5;
}

.mp-contact-import__notice--danger {
  color: var(--mp-red-700);
  border-color: var(--mp-red-100);
  background: color-mix(in srgb, var(--mp-red-100) 55%, #fff);
}

.mp-contact-import__filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--mp-line);
  border-bottom: 1px solid var(--mp-line);
}

.mp-contact-import__table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.mp-contact-import__table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.mp-contact-import__table th,
.mp-contact-import__table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--mp-line);
  text-align: left;
  vertical-align: top;
}

.mp-contact-import__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--mp-ink-500);
  background: var(--mp-surface, #fff);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mp-contact-import__table td:first-child { width: 70px; text-align: center; }
.mp-contact-import__table td:last-child { min-width: 260px; }
.mp-contact-import__table .mp-auth-field + .mp-auth-field { margin-top: 8px; }

@media (max-width: 720px) {
  .mp-contact-import__filter { grid-template-columns: 1fr; }
  .mp-contact-import__filter .mp-button { width: 100%; }
}

.mp-notification-button {
  position: relative;
  color: var(--mp-ink-700);
  text-decoration: none;
}

.mp-notification-badge {
  position: absolute;
  inset: -5px -7px auto auto;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid var(--mp-surface, #fff);
  border-radius: 999px;
  color: #fff;
  background: var(--mp-red-700, #b0002b);
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

.mp-activity--unread {
  background: color-mix(in srgb, var(--mp-red-100, #f8dfe5) 38%, #fff);
}
.mp-form-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.mp-signature{border:1px solid var(--mp-border,#d8dee5);border-radius:16px;padding:16px;min-width:0}
.mp-signature legend{font-weight:750;padding:0 6px}.mp-signature p{color:var(--mp-muted,#66727e);margin:0 0 10px}
.mp-signature canvas{display:block;width:100%;background:#fff;border:1px dashed #aeb8c3;border-radius:12px;touch-action:none;margin-bottom:10px}

/* Project workspace: daily work and readable conversations. */
.mp-project-tabs{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mp-project-more summary,.mp-project-direct summary{cursor:pointer;padding:12px;font-weight:600}
.mp-project-more>div{display:flex;gap:16px;flex-wrap:wrap;padding:12px}
.mp-project-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mp-project-stats .mp-panel{display:flex;flex-direction:column;gap:8px;padding:18px}
.mp-project-stats strong{font-size:1.6rem}.mp-project-stats progress{width:100%;accent-color:var(--mp-primary,#a00832)}
.mp-chat-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.mp-chat-search label{flex:1;min-width:180px}
.mp-project-messages{display:flex;flex-direction:column;gap:14px;max-height:65vh;overflow:auto;padding:12px 0}
.mp-project-message{max-width:85%;padding:16px;border:1px solid #dedee3;border-radius:16px;background:#f5f5f7;align-self:flex-start;overflow-wrap:anywhere}
.mp-project-message--mine{align-self:flex-end;background:#fff4f7;border-color:#e9cbd5}
.mp-project-message header{display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap}.mp-project-message time{font-size:.8rem;color:#61616b}
.mp-project-message p{margin:10px 0;white-space:pre-wrap}.mp-project-attachment{display:block;padding:10px 0;overflow-wrap:anywhere}
.mp-project-composer{border-top:1px solid #dedee3;padding-top:16px;margin-top:12px}.mp-project-composer>div{display:flex;align-items:end;gap:12px;justify-content:space-between;flex-wrap:wrap}
.mp-project-composer textarea{width:100%;resize:vertical}.mp-project-composer input[type=file]{max-width:100%}
@media(max-width:700px){.mp-project-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mp-project-message{max-width:96%}.mp-project-composer>div{align-items:stretch;flex-direction:column}.mp-project-tabs .mp-button{flex:1;text-align:center}.mp-project-more{width:100%}}

/* MP NEXA public introduction */
body.mp-app--marketing {
  background: #f3f1ed;
}

.mp-site-shell {
  width: 100%;
  min-height: 100vh;
}

.mp-site {
  --site-pad: clamp(22px, 5vw, 72px);
  width: 100%;
  overflow: hidden;
  color: #172126;
}

.mp-site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(100%, 1540px);
  min-height: 94px;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 18px var(--site-pad);
}

.mp-site-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
}

.mp-site-brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #c61542, #850a25);
  box-shadow: 0 10px 24px rgba(133, 10, 37, .2);
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -.03em;
}

.mp-site-brand__copy { display: grid; line-height: 1.15; }
.mp-site-brand__copy strong { font-size: 17px; font-weight: 820; letter-spacing: -.035em; }
.mp-site-brand__copy span { margin-top: 3px; color: #758087; font-size: 8px; font-weight: 780; letter-spacing: .17em; text-transform: uppercase; }

.mp-site-nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 46px); }
.mp-site-nav a { color: #536068; font-size: 12px; font-weight: 700; transition: color 150ms ease; }
.mp-site-nav a:hover { color: #a20d2f; }

.mp-site-login {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: end;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid rgba(23, 33, 38, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 760;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.mp-site-login:hover { border-color: rgba(162, 13, 47, .35); background: #fff; transform: translateY(-1px); }

.mp-site-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  width: min(100%, 1540px);
  min-height: 690px;
  align-items: center;
  gap: clamp(38px, 6vw, 98px);
  margin: 0 auto;
  padding: 70px var(--site-pad) 110px;
}

.mp-site-hero::before {
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  top: -160px;
  right: -180px;
  border: 1px solid rgba(162, 13, 47, .1);
  border-radius: 50%;
  content: "";
}

.mp-site-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 19px;
  color: #a20d2f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .145em;
  text-transform: uppercase;
}
.mp-site-kicker > span { width: 22px; height: 2px; background: #a20d2f; }

.mp-site-hero h1,
.mp-site-section h2,
.mp-site-final h2 {
  margin: 0;
  color: #121a1e;
  font-weight: 800;
  letter-spacing: -.062em;
  line-height: .98;
}
.mp-site-hero h1 { max-width: 760px; font-size: clamp(48px, 6.4vw, 92px); }
.mp-site-hero h1 em { color: #a20d2f; font-style: normal; }
.mp-site-lead { max-width: 650px; margin: 28px 0 0; color: #536068; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; }

.mp-site-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.mp-site-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 21px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 780;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.mp-site-button:hover { transform: translateY(-2px); }
.mp-site-button--primary { color: #fff; background: #a20d2f; box-shadow: 0 14px 28px rgba(133, 10, 37, .2); }
.mp-site-button--primary:hover { background: #850a25; box-shadow: 0 18px 34px rgba(133, 10, 37, .27); }
.mp-site-button--quiet { border: 1px solid rgba(23, 33, 38, .13); background: rgba(255,255,255,.52); }
.mp-site-button--quiet:hover { background: #fff; }

.mp-site-product {
  position: relative;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 38, .13);
  border-radius: 28px;
  background: #f4f2ef;
  box-shadow: 0 38px 90px rgba(18, 26, 30, .25);
  transform: rotate(1.2deg);
}
.mp-site-product__sidebar { display: flex; min-width: 0; flex-direction: column; padding: 20px 12px; color: #fff; background: #172126; }
.mp-site-product__brand { display: flex; align-items: center; gap: 10px; padding: 0 3px 22px; }
.mp-site-product__brand > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #bf0d3a; font-size: 11px; font-weight: 850; }
.mp-site-product__brand strong { display: grid; font-size: 10px; line-height: 1.2; }
.mp-site-product__brand small { margin-top: 3px; color: rgba(255,255,255,.45); font-size: 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mp-site-product__nav { display: grid; gap: 3px; }
.mp-site-product__nav small { margin: 14px 8px 5px; color: rgba(255,255,255,.4); font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.mp-site-product__nav b { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; color: rgba(255,255,255,.68); font-size: 7px; font-weight: 650; white-space: nowrap; }
.mp-site-product__nav b.is-active { color: #fff; background: #a20d2f; }
.mp-site-product__nav i { width: 12px; color: rgba(255,255,255,.55); font-size: 9px; font-style: normal; text-align: center; }
.mp-site-product__workspace { position: relative; min-width: 0; }
.mp-site-product__topbar { display: flex; height: 62px; align-items: center; gap: 12px; padding: 0 17px; border-bottom: 1px solid rgba(23,33,38,.09); background: rgba(255,255,255,.78); }
.mp-site-product__topbar button { display: none; width: 30px; height: 30px; border: 1px solid rgba(23,33,38,.1); border-radius: 9px; color: #172126; background: #fff; }
.mp-site-product__title { display: grid; color: #172126; font-size: 11px; font-weight: 800; line-height: 1.15; }
.mp-site-product__title small { color: #879096; font-size: 5px; letter-spacing: .11em; }
.mp-site-product__search { overflow: hidden; min-width: 110px; max-width: 230px; margin-left: auto; padding: 9px 12px; border: 1px solid rgba(23,33,38,.1); border-radius: 10px; color: #9aa1a5; background: #fff; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.mp-site-product__status { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #6e777b; font-size: 6px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.mp-site-product__status i { width: 6px; height: 6px; border-radius: 50%; background: #3aa77e; box-shadow: 0 0 0 4px rgba(58,167,126,.12); }
.mp-site-product__body { position: relative; padding: 22px; }
.mp-site-product__welcome { position: relative; overflow: hidden; padding: 23px; border-radius: 19px; color: #fff; background: linear-gradient(115deg, #172126, #8e0b2a); }
.mp-site-product__welcome::after { position: absolute; width: 160px; height: 160px; top: -90px; right: -35px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; content: ""; }
.mp-site-product__welcome > span { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.62); font-size: 6px; font-weight: 800; letter-spacing: .14em; }
.mp-site-product__welcome > span i { width: 6px; height: 6px; border-radius: 50%; background: #53c69c; box-shadow: 0 0 0 4px rgba(83,198,156,.13); }
.mp-site-product__welcome strong { display: block; margin-top: 11px; font-size: clamp(17px, 2.1vw, 29px); letter-spacing: -.045em; }
.mp-site-product__welcome p { max-width: 420px; margin: 8px 0 0; color: rgba(255,255,255,.65); font-size: 8px; line-height: 1.5; }
.mp-site-product__numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.mp-site-product__numbers article { position: relative; display: grid; min-width: 0; gap: 3px; overflow: hidden; padding: 14px; border: 1px solid rgba(23,33,38,.08); border-radius: 14px; background: #fff; }
.mp-site-product__numbers article::after { position: absolute; width: 60px; height: 60px; right: -24px; bottom: -24px; border-radius: 50%; content: ""; background: rgba(23,33,38,.025); }
.mp-site-product__numbers span { color: #929a9e; font-size: 5px; font-weight: 800; letter-spacing: .09em; }
.mp-site-product__numbers strong { overflow: hidden; color: #172126; font-size: 18px; letter-spacing: -.05em; text-overflow: ellipsis; white-space: nowrap; }
.mp-site-product__numbers small { overflow: hidden; color: #727c81; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.mp-site-product__numbers .is-bordeaux { border-top: 3px solid #b70c37; }
.mp-site-product__numbers .is-green { border-top: 3px solid #a9ddca; }
.mp-site-product__numbers .is-blue { border-top: 3px solid #b9d6ef; }
.mp-site-product__numbers .is-amber { border-top: 3px solid #ebce86; }
.mp-site-product__activity { overflow: hidden; border: 1px solid rgba(23,33,38,.08); border-radius: 14px; background: #fff; }
.mp-site-product__activity > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 11px; padding: 15px 17px; border-bottom: 1px solid rgba(23,33,38,.08); }
.mp-site-product__activity > div:last-child { border-bottom: 0; }
.mp-site-product__activity span { display: grid; min-width: 0; }
.mp-site-product__activity strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mp-site-product__activity small { overflow: hidden; color: #758087; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.mp-site-product__activity b { color: #9ba3a8; font-size: 6px; font-weight: 680; }
.mp-site-dot { width: 7px; height: 7px; border-radius: 50%; }
.mp-site-dot--red { background: #bb1439; }.mp-site-dot--green { background: #257059; }.mp-site-dot--blue { background: #315f91; }

.mp-site-section { width: min(100%, 1540px); margin: 0 auto; padding: clamp(82px, 10vw, 148px) var(--site-pad); }
.mp-site-section__heading h2 { font-size: clamp(39px, 5vw, 72px); }
.mp-site-section__lead { max-width: 780px; margin: 35px 0 0 auto; color: #536068; font-size: clamp(16px, 1.65vw, 22px); line-height: 1.7; }
.mp-site-section--intro { border-top: 1px solid rgba(23,33,38,.1); }
.mp-site-capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 74px; border-top: 1px solid rgba(23,33,38,.13); }
.mp-site-capabilities article { min-height: 245px; padding: 27px 27px 20px 0; border-right: 1px solid rgba(23,33,38,.13); }
.mp-site-capabilities article + article { padding-left: 27px; }
.mp-site-capabilities article:last-child { border-right: 0; }
.mp-site-capabilities span { color: #a20d2f; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.mp-site-capabilities strong { display: block; margin-top: 54px; font-size: 18px; letter-spacing: -.025em; }
.mp-site-capabilities p { margin: 12px 0 0; color: #758087; font-size: 13px; line-height: 1.65; }

.mp-site-section--portals { width: 100%; max-width: none; color: #fff; background: #172126; }
.mp-site-section--portals > * { width: min(100%, calc(1540px - (2 * var(--site-pad)))); margin-right: auto; margin-left: auto; }
.mp-site-section--portals .mp-site-kicker { color: #e6a3b4; }
.mp-site-section--portals h2 { color: #fff; }
.mp-site-portals { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 64px; }
.mp-site-portal { position: relative; overflow: hidden; min-height: 500px; padding: clamp(28px, 4vw, 52px); border: 1px solid rgba(255,255,255,.11); border-radius: 27px; }
.mp-site-portal::after { position: absolute; width: 280px; height: 280px; right: -120px; bottom: -150px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.mp-site-portal--office { background: linear-gradient(145deg, #28353b, #1d292e); }
.mp-site-portal--field { background: linear-gradient(145deg, #8f0b2a, #69061b); }
.mp-site-portal__top { display: flex; align-items: center; justify-content: space-between; }
.mp-site-portal__top span { color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.mp-site-portal__top i { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: rgba(255,255,255,.5); font-size: 10px; font-style: normal; }
.mp-site-portal h3 { margin: 75px 0 16px; color: #fff; font-size: clamp(34px, 4.4vw, 62px); line-height: 1; letter-spacing: -.055em; }
.mp-site-portal p { max-width: 560px; margin: 0; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.65; }
.mp-site-portal ul { display: grid; gap: 9px; margin: 25px 0 34px; padding: 0; list-style: none; }
.mp-site-portal li { position: relative; padding-left: 20px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 650; }
.mp-site-portal li::before { position: absolute; top: .62em; left: 0; width: 8px; height: 2px; content: ""; background: #e6a3b4; }
.mp-site-portal > a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 24px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 12px; font-weight: 800; }

.mp-site-section--flow { padding-bottom: clamp(100px, 12vw, 180px); }
.mp-site-flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 70px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.mp-site-flow li { position: relative; min-height: 220px; padding: 25px 28px 25px 0; border-top: 2px solid #dce0e2; }
.mp-site-flow li::after { position: absolute; width: 12px; height: 12px; top: -7px; left: 0; border: 3px solid #f3f1ed; border-radius: 50%; content: ""; background: #a20d2f; box-shadow: 0 0 0 1px #a20d2f; }
.mp-site-flow span { color: #a20d2f; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.mp-site-flow strong { display: block; margin-top: 54px; font-size: 20px; letter-spacing: -.03em; }
.mp-site-flow p { margin: 9px 0 0; color: #758087; font-size: 13px; }

.mp-site-final { display: flex; width: min(calc(100% - (2 * var(--site-pad))), calc(1540px - (2 * var(--site-pad)))); min-height: 360px; align-items: end; justify-content: space-between; gap: 40px; margin: 0 auto 38px; padding: clamp(35px, 6vw, 75px); border-radius: 30px; color: #fff; background: linear-gradient(125deg, #8a0926, #b41137 65%, #6e071e); box-shadow: 0 30px 70px rgba(110,7,30,.18); }
.mp-site-final .mp-site-kicker { color: rgba(255,255,255,.65); }
.mp-site-final h2 { color: #fff; font-size: clamp(39px, 5vw, 72px); }
.mp-site-button--light { flex: 0 0 auto; color: #172126; background: #fff; }

.mp-site-footer { display: grid; grid-template-columns: 1fr auto 1fr; width: min(100%, 1540px); align-items: center; gap: 30px; margin: 0 auto; padding: 42px var(--site-pad) 54px; color: #758087; font-size: 10px; }
.mp-site-footer > p { margin: 0; text-align: center; }
.mp-site-footer > p:last-child { text-align: right; }

@media (max-width: 980px) {
  .mp-site-header { grid-template-columns: 1fr auto; }
  .mp-site-nav { display: none; }
  .mp-site-hero { grid-template-columns: 1fr; padding-top: 56px; }
  .mp-site-hero__copy { max-width: 760px; }
  .mp-site-product { width: min(100%, 720px); justify-self: center; transform: none; }
  .mp-site-capabilities { grid-template-columns: repeat(2, 1fr); }
  .mp-site-capabilities article:nth-child(2) { border-right: 0; }
  .mp-site-capabilities article:nth-child(n+3) { border-top: 1px solid rgba(23,33,38,.13); }
  .mp-site-capabilities article:nth-child(3) { padding-left: 0; }
  .mp-site-portals { grid-template-columns: 1fr; }
  .mp-site-flow { grid-template-columns: repeat(2, 1fr); }
  .mp-site-final { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .mp-site { --site-pad: 20px; }
  .mp-site-header { min-height: 82px; }
  .mp-site-brand__copy span { display: none; }
  .mp-site-login { min-height: 42px; padding: 0 14px; }
  .mp-site-hero { min-height: auto; padding-top: 48px; padding-bottom: 82px; }
  .mp-site-hero h1 { font-size: clamp(43px, 13vw, 64px); }
  .mp-site-lead { font-size: 16px; }
  .mp-site-actions, .mp-site-actions .mp-site-button { width: 100%; }
  .mp-site-product { grid-template-columns: minmax(0, 1fr); min-height: 620px; border-radius: 24px; }
  .mp-site-product__sidebar { display: none; }
  .mp-site-product__workspace { width: 100%; }
  .mp-site-product__body { padding: 18px; }
  .mp-site-product__topbar { height: 68px; padding: 0 14px; }
  .mp-site-product__topbar button { display: grid; flex: 0 0 auto; place-items: center; }
  .mp-site-product__search { display: grid; width: 34px; min-width: 34px; height: 34px; margin-left: auto; padding: 0; place-items: center; color: transparent; font-size: 0; }
  .mp-site-product__search::before { color: #172126; content: "⌕"; font-size: 18px; }
  .mp-site-product__status { width: 34px; height: 34px; justify-content: center; overflow: hidden; border: 1px solid rgba(23,33,38,.1); border-radius: 9px; color: transparent; background: #fff; }
  .mp-site-product__status i { flex: 0 0 auto; }
  .mp-site-product__welcome { min-height: 188px; padding: 25px 21px; }
  .mp-site-product__welcome strong { margin-top: 17px; font-size: 28px; }
  .mp-site-product__welcome p { font-size: 10px; }
  .mp-site-product__numbers { gap: 8px; }
  .mp-site-product__numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-site-product__numbers article { min-height: 108px; padding: 16px; }
  .mp-site-product__numbers strong { font-size: 25px; }
  .mp-site-product__numbers small { font-size: 8px; }
  .mp-site-product__activity b { display: none; }
  .mp-site-product__activity > div { grid-template-columns: 9px 1fr; }
  .mp-site-section { padding-top: 80px; padding-bottom: 80px; }
  .mp-site-section__heading h2, .mp-site-final h2 { font-size: 40px; }
  .mp-site-section__lead { margin-top: 25px; font-size: 16px; }
  .mp-site-capabilities { grid-template-columns: 1fr; margin-top: 48px; }
  .mp-site-capabilities article,
  .mp-site-capabilities article + article { min-height: 190px; padding: 24px 0; border-top: 1px solid rgba(23,33,38,.13); border-right: 0; }
  .mp-site-capabilities strong { margin-top: 34px; }
  .mp-site-section--portals > * { width: 100%; }
  .mp-site-portals { margin-top: 42px; }
  .mp-site-portal { min-height: 470px; padding: 28px 23px; }
  .mp-site-portal h3 { margin-top: 60px; }
  .mp-site-flow { grid-template-columns: 1fr; margin-top: 48px; }
  .mp-site-flow li { min-height: 155px; }
  .mp-site-flow strong { margin-top: 32px; }
  .mp-site-final { width: calc(100% - 28px); min-height: 420px; margin-bottom: 20px; padding: 34px 26px; border-radius: 24px; }
  .mp-site-final .mp-site-button { width: 100%; }
  .mp-site-footer { grid-template-columns: 1fr; justify-items: start; }
  .mp-site-footer > p, .mp-site-footer > p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-site *, .mp-site *::before, .mp-site *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.mp-note-drawing { padding: 18px; border-top: 1px solid var(--line, #dfe3e6); }
.mp-note-drawing__canvas { display: block; width: 100%; max-width: 920px; aspect-ratio: 2 / 1; margin-top: 12px; border: 1px solid var(--line, #cbd1d5); border-radius: 14px; background: #fff; box-shadow: inset 0 1px 2px rgba(23,33,42,.06); cursor: crosshair; touch-action: none; }
.mp-note-drawing__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mp-note-drawing__preview { display: block; width: 100%; max-width: 720px; max-height: 420px; margin-top: 16px; object-fit: contain; border: 1px solid var(--line, #dfe3e6); border-radius: 13px; background: #fff; }
@media (max-width: 640px) {
  .mp-note-drawing { padding: 14px; }
  .mp-note-drawing__actions .mp-button { flex: 1 1 100%; }
}
