.member-portal {
  padding: 32px 0 85px;
  font-size: 15px;
}

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

.member-portal .mp-intro {
  padding-bottom: 39px;
}

.member-portal .breadcrumb {
  margin-bottom: 25px;
}

.mp-intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.member-portal .mp-intro .eyebrow {
  margin-bottom: 13px;
}

.member-portal h1 {
  font-size: clamp(46px, 5.2vw, 72px);
}

.mp-intro-row > p {
  font-size: 14px;
  line-height: 1.8;
  padding-bottom: 5px;
}

.member-portal h2 {
  font-size: 34px;
  letter-spacing: -0.8px;
}

.member-portal h3 {
  font-size: 24px;
}

.member-portal h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.member-portal p {
  line-height: 1.75;
}

.member-portal p + p {
  margin-top: 13px;
}

.member-portal button,
.member-portal input,
.member-portal select,
.member-portal textarea {
  font-family: var(--sans);
  font-size: 14px;
}

.member-portal button {
  cursor: pointer;
}

.member-portal button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.member-portal :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.member-portal input,
.member-portal select,
.member-portal textarea {
  max-width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c7d1;
  border-radius: 5px;
  padding: 11px 13px;
  min-height: 46px;
  line-height: 1.5;
}

.member-portal input[type="checkbox"],
.member-portal input[type="radio"] {
  min-height: 20px;
  width: 19px;
  height: 19px;
  padding: 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.member-portal textarea {
  resize: vertical;
  min-height: 100px;
}

.member-portal input:read-only {
  background: var(--pale-blue);
}

.member-portal input[type="date"],
.member-portal input[type="time"] {
  min-width: 0;
}

.mp-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 19px;
  min-width: 0;
}

.mp-field > label,
.mp-field > span:first-child,
.mp-field > legend {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

.mp-field small,
.mp-helper {
  font-size: 12px;
  color: var(--body);
  font-weight: 400;
  line-height: 1.7;
}

.mp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.mp-form-grid .mp-span {
  grid-column: 1/-1;
}

.member-portal fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}

.member-portal legend {
  padding: 0;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 13px;
}

.mp-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
}

.mp-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  min-height: 36px;
}

.mp-checkboxes input {
  margin: 0;
}

.mp-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  transition: background 0.15s;
}

.mp-btn:hover {
  background: #1c3b57;
}

.mp-btn svg,
.mp-nav svg,
.mp-icon svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.mp-btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: #b7c8d6;
}

.mp-btn-secondary:hover {
  background: var(--pale-blue);
}

.mp-btn-light {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.mp-btn-light:hover {
  background: #e9eff5;
}

.mp-btn-small {
  min-height: 39px;
  padding: 8px 12px;
  font-size: 12px;
}

.mp-btn-danger {
  color: #933d32;
  border-color: #dcb7b0;
  background: #fff;
}

.mp-btn-danger:hover {
  background: #fcf0ee;
}

.mp-text-btn {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
  min-height: 36px;
}

.mp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mp-notice {
  padding: 15px 19px;
  margin: 0 0 23px;
  border: 1px solid #b6d0c2;
  border-radius: 6px;
  background: #eaf4ef;
  color: #245841;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mp-notice[data-kind="error"] {
  background: #fff0ee;
  border-color: #e4b8af;
  color: #853728;
}

.mp-loading {
  min-height: 290px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
}

.mp-loading-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: mp-pulse 1.2s infinite alternate;
}

@keyframes mp-pulse {
  to {
    opacity: 0.3;
  }
}

.mp-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  min-height: 510px;
}

.mp-login-story {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--paper);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.mp-login-story .eyebrow {
  color: #cedde9;
  font-size: 10px;
  margin: 26px 0 17px;
}

.mp-login-story h2 {
  font-size: 45px;
  line-height: 1.15;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.mp-login-story h2 em {
  color: #edb69d;
}

.mp-login-story p {
  color: #e1eaf2;
  font-size: 14px;
  max-width: 310px;
  position: relative;
  z-index: 1;
}

.mp-login-story::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -195px;
  width: 360px;
  height: 480px;
  border: 1px solid #ffffff20;
  border-radius: 180px 180px 0 0;
  transform: rotate(25deg);
}

.mp-sun {
  color: var(--pale-clay);
  font-size: 47px;
  line-height: 1;
}

.mp-login-form {
  padding: 49px 48px;
  align-self: center;
}

.mp-login-form h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.mp-login-form > p {
  margin-bottom: 26px;
  font-size: 14px;
}

.mp-login-form .mp-btn {
  width: 100%;
  margin-top: 3px;
}

.mp-login-help {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
  font-size: 12px;
}

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

.mp-password-row {
  position: relative;
}

.mp-password-row input {
  width: 100%;
  padding-right: 80px;
}

.mp-password-toggle {
  position: absolute;
  right: 9px;
  top: 5px;
  bottom: 5px;
  background: none;
  border: 0;
  color: var(--primary);
  padding: 5px;
  font-size: 12px !important;
}

.mp-shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  min-height: 620px;
}

.mp-sidebar {
  background: #f1f4f6;
  border-right: 1px solid var(--line);
  padding: 25px 17px;
  display: flex;
  flex-direction: column;
}

.mp-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 23px;
  border-bottom: 1px solid #d5dfe6;
  margin-bottom: 19px;
}

.mp-avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #dfb9a7;
  color: #5a392d;
  font-size: 13px;
  font-weight: 700;
}

.mp-sidebar-heading strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}

.mp-sidebar-heading small {
  font-size: 10px;
  color: #526674;
}

.mp-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mp-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 12px 11px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: #4c6173;
  font-size: 12px;
  min-height: 45px;
  line-height: 1.4;
}

.mp-nav button:hover {
  background: #e4ebf1;
}

.mp-nav button[aria-current="page"] {
  color: #fff;
  background: var(--primary);
  font-weight: 500;
}

.mp-nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #526674;
  padding: 18px 11px 7px;
}

.mp-sidebar-footer {
  margin-top: auto;
  padding: 28px 8px 0;
}

.mp-sidebar-footer p {
  font-size: 11px;
  color: #526674;
  line-height: 1.6;
  margin-bottom: 10px;
}

.mp-sidebar-footer button {
  font-size: 12px;
}

.mp-workspace {
  padding: 30px;
  min-width: 0;
}

.mp-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 27px;
}

.mp-page-head h2 {
  margin-bottom: 8px;
}

.mp-page-head p {
  font-size: 13px;
  max-width: 535px;
}

.mp-kicker {
  display: block;
  color: #526674;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}

.mp-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 25px 27px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  margin-bottom: 24px;
}

.mp-banner h3 {
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.mp-banner p {
  font-size: 13px;
  color: #e1eaf2;
  margin: 0;
}

.mp-banner .mp-kicker {
  color: #c9dce9;
}

.mp-banner .mp-btn {
  font-size: 12px;
  white-space: nowrap;
}

.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}

.mp-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}

.mp-card-clay {
  background: #f6ede8;
  border-color: #ecdcd2;
}

.mp-card-blue {
  background: #edf3f7;
  border-color: #dce6ed;
}

.mp-card h3 {
  margin-bottom: 12px;
}

.mp-card > p {
  font-size: 13px;
  margin-bottom: 16px;
}

.mp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
}

.mp-card-head h3 {
  margin: 0;
  font-size: 23px;
}

.mp-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  background: #e7edf2;
  color: var(--primary);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}

.mp-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.mp-section-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 17px;
}

.mp-section-head h3 {
  font-size: 25px;
}

.mp-inline-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.mp-inline-link:hover {
  text-decoration: underline;
}

.mp-empty {
  padding: 31px 24px;
  text-align: center;
  background: #f6f8fa;
  border: 1px dashed #c9d5de;
  border-radius: 6px;
}

.mp-empty .mp-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: #758da1;
}

.mp-empty .mp-icon svg {
  width: 31px;
  height: 31px;
}

.mp-empty h3 {
  font-size: 24px;
  margin-bottom: 9px;
}

.mp-empty p {
  font-size: 13px;
  max-width: 430px;
  margin-inline: auto;
}

.mp-empty .mp-btn {
  margin-top: 17px;
}

.mp-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mp-mini-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mp-mini-item:first-child {
  padding-top: 0;
}

.mp-mini-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mp-mini-item p {
  font-size: 12px;
  line-height: 1.65;
  margin: 4px 0 0;
}

.mp-mini-item strong {
  font-weight: 600;
  font-size: 13px;
}

.mp-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 56px;
  border: 1px solid #d3dfe8;
  border-radius: 4px;
  background: #f7f9fb;
  color: var(--primary);
  line-height: 1.15;
  font-size: 22px;
  font-family: var(--serif);
}

.mp-date small {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 4px;
}

.mp-page-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s;
  width: 100%;
  font: inherit !important;
  color: inherit;
  cursor: pointer;
}

.mp-page-card:hover {
  background: #f4f7fa;
}

.mp-page-card .mp-icon {
  color: #9d543e;
  margin-bottom: 18px;
}

.mp-page-card h3 {
  font-size: 26px;
}

.mp-page-card p {
  font-size: 13px;
  margin-bottom: 21px;
  flex: 1;
}

.mp-page-card .mp-inline-link {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.mp-article {
  max-width: 690px;
}

.mp-article-body {
  font-size: 15px;
  line-height: 1.9;
}

.mp-article-body p {
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-bottom: 19px;
}

.mp-article-summary {
  font-size: 17px !important;
  line-height: 1.85;
  margin-bottom: 27px !important;
}

.mp-article-links {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
}

.mp-article-links a {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.mp-article-note {
  padding: 15px 18px;
  border-left: 2px solid var(--accent);
  background: #faf3ee;
  font-size: 12px;
  margin-top: 28px;
  color: var(--body);
}

.mp-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.mp-event-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mp-event-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 19px;
}

.mp-event-head h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.mp-event-head p {
  font-size: 12px;
  margin: 0;
}

.mp-event-head .mp-badge {
  margin-left: auto;
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 4px;
  background: #edf1f5;
  color: #536979;
  white-space: nowrap;
}

.mp-badge-available {
  color: #286349;
  background: #e6f2eb;
}

.mp-badge-maybe {
  color: #88631e;
  background: #fbf0d3;
}

.mp-badge-unavailable {
  color: #984d44;
  background: #fbe8e5;
}

.mp-badge-published {
  background: #e6f2eb;
  color: #286349;
}

.mp-badge-draft {
  background: #edf1f5;
  color: #536979;
}

.mp-status-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.mp-status-option {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 11px 10px;
  border: 1px solid #c9d5de;
  border-radius: 5px;
  font-size: 12px;
  min-height: 48px;
  cursor: pointer;
  background: #fff;
  line-height: 1.45;
}

.mp-status-option:has(input:checked) {
  background: #edf3f7;
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.mp-status-option:has(input[value="available"]:checked) {
  background: #edf7f1;
  border-color: #50836b;
  box-shadow: inset 0 0 0 1px #50836b;
}

.mp-status-option:has(input[value="maybe"]:checked) {
  background: #fff7e4;
  border-color: #af8434;
  box-shadow: inset 0 0 0 1px #af8434;
}

.mp-status-option:has(input[value="unavailable"]:checked) {
  background: #fcf0ee;
  border-color: #b56b60;
  box-shadow: inset 0 0 0 1px #b56b60;
}

.mp-status-option input {
  margin: 0;
}

.mp-availability-form .mp-field {
  margin-bottom: 13px;
}

.mp-availability-form .mp-actions {
  justify-content: space-between;
}

.mp-availability-form .mp-helper {
  max-width: 70%;
}

.mp-schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mp-schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid #e0e6ea;
}

.mp-schedule-list li:last-child {
  padding-bottom: 0;
}

.mp-schedule-list li > span {
  color: var(--body);
}

.mp-schedule-list li strong {
  text-align: right;
  font-weight: 500;
}

.mp-schedule-list li.mp-me strong {
  color: var(--accent);
  font-weight: 600;
}

.mp-filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 19px;
}

.mp-filter-bar .mp-field {
  margin: 0;
  min-width: 160px;
}

.mp-filter-bar .mp-actions {
  gap: 7px;
}

.mp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
  font-size: 11px;
}

.mp-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  overscroll-behavior-x: contain;
}

.member-portal table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 12px;
  text-align: left;
  line-height: 1.5;
}

.member-portal th {
  font-weight: 600;
  background: #edf3f7;
  color: var(--ink);
}

.member-portal td,
.member-portal th {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.member-portal tr:last-child td,
.member-portal tbody tr:last-child th {
  border-bottom: 0;
}

.mp-matrix th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 149px;
  max-width: 200px;
  border-right: 1px solid var(--line);
}

.mp-matrix tbody th {
  background: #fff;
}

.mp-matrix thead th {
  white-space: nowrap;
}

.mp-matrix thead th:first-child {
  z-index: 3;
}

.mp-matrix th small {
  display: block;
  color: #526674;
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}

.mp-matrix td {
  padding: 6px;
  border-right: 1px solid #e5ebf0;
  min-width: 130px;
}

.mp-matrix-cell {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  width: 100%;
  min-height: 59px;
  background: #f2f5f7;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10px !important;
  padding: 10px;
  color: #526674;
  text-align: left;
  line-height: 1.5;
}

.mp-matrix-cell:hover {
  border-color: var(--primary);
}

.mp-matrix-cell[data-status="available"] {
  background: #e8f3ed;
  color: #286349;
}

.mp-matrix-cell[data-status="maybe"] {
  background: #fff3d7;
  color: #89651f;
}

.mp-matrix-cell[data-status="unavailable"] {
  background: #fae9e6;
  color: #984d44;
}

.mp-matrix-cell[aria-pressed="true"] {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.mp-matrix-cell strong {
  font-size: 10px;
  font-weight: 600;
}

.mp-matrix-cell small {
  font-size: 9px;
  margin-top: 4px;
}

.mp-matrix-date {
  background: none;
  border: 0;
  padding: 0;
  font: inherit !important;
  color: var(--primary);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 32px;
}

.mp-planning-detail {
  margin-top: 25px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfd;
  scroll-margin-top: 135px;
}

.mp-planning-detail h3 {
  margin-bottom: 5px;
}

.mp-planning-detail > p {
  font-size: 12px;
}

.mp-assignment-form {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.mp-assignment-form:last-of-type {
  border-bottom: 0;
}

.mp-assignment-form label {
  font-size: 12px;
  font-weight: 600;
}

.mp-assignment-form select {
  font-size: 12px;
}

.mp-assignment-form .mp-helper {
  grid-column: 2/-1;
  margin-top: -7px;
}

.mp-publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 15px;
}

.mp-publish-row p {
  font-size: 12px;
  max-width: 330px;
}

.member-portal details {
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 23px 0 0;
  padding: 0 20px;
  background: #fff;
}

.member-portal summary {
  font-size: 13px;
  padding: 15px 0;
}

.member-portal details[open] summary {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mp-editor-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.mp-editor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
}

.mp-editor-row:last-child {
  border: 0;
}

.mp-editor-row h3 {
  font-size: 23px;
  margin-bottom: 7px;
}

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

.mp-editor-row .mp-actions {
  flex-shrink: 0;
}

.mp-editor-row .mp-badge {
  margin-right: 6px;
}

.mp-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 9px;
  gap: 15px;
}

.mp-editor-preview {
  padding: 25px;
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-top: 25px;
}

.mp-link-input {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 9px;
  align-items: end;
  margin-bottom: 10px;
}

.mp-link-input .mp-field {
  margin: 0;
}

.mp-link-input .mp-btn {
  min-height: 46px;
}

.mp-member-table td,
.mp-member-table th {
  padding: 15px 16px;
}

.mp-member-table td small {
  display: block;
  font-size: 11px;
  color: var(--body);
  margin-top: 4px;
}

.mp-member-table .mp-badge {
  margin: 2px;
}

.mp-member-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.mp-member-table .mp-btn {
  font-size: 11px;
  padding: 8px 10px;
}

.mp-invitation {
  padding: 24px;
  background: #edf5f0;
  border: 1px solid #bcd5c7;
  border-radius: 6px;
  margin-bottom: 25px;
}

.mp-invitation h3 {
  font-size: 25px;
  margin-bottom: 8px;
}

.mp-invitation p {
  font-size: 13px;
  margin-bottom: 15px;
}

.mp-invitation .mp-field {
  margin-bottom: 13px;
}

.mp-invitation input {
  font-size: 12px !important;
}

.mp-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 22px;
}

.mp-account-meta .mp-badge {
  font-size: 11px;
}

.mp-muted {
  color: var(--body);
  font-size: 12px;
}

.mp-gap-top {
  margin-top: 18px;
}

.mp-count-line {
  font-size: 12px;
  color: var(--body);
  margin: 13px 0;
}

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

.mp-conflict {
  background: #fff0ed;
  border: 1px solid #e5c0b8;
  color: #8b4034;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 12px;
  margin: 15px 0;
}

.mp-account-card {
  max-width: 560px;
}

.mp-account-card .mp-btn {
  margin-top: 5px;
}

@media (min-width: 1500px) {
  .mp-workspace {
    padding: 37px;
  }

  .mp-shell {
    grid-template-columns: 238px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .mp-shell {
    grid-template-columns: 193px minmax(0, 1fr);
  }

  .mp-sidebar {
    padding: 22px 12px;
  }

  .mp-workspace {
    padding: 25px 22px;
  }

  .mp-nav button {
    font-size: 11px;
    gap: 9px;
  }

  .mp-login-story {
    padding: 36px;
  }

  .mp-login-form {
    padding: 37px;
  }

  .mp-banner {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .mp-banner .mp-btn {
    justify-self: start;
  }

  .mp-card {
    padding: 20px;
  }

  .mp-status-options {
    gap: 6px;
  }

  .mp-status-option {
    font-size: 11px;
    padding: 10px 7px;
    gap: 5px;
  }

  .mp-assignment-form {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .mp-assignment-form .mp-btn {
    padding-inline: 10px;
  }

  .mp-grid {
    gap: 14px;
  }

  .mp-page-head h2 {
    font-size: 31px;
  }
}

@media (max-width: 800px) {
  .member-portal {
    padding-top: 25px;
    padding-bottom: 55px;
  }

  .mp-intro-row > p {
    font-size: 12px;
  }

  .mp-login-story {
    padding: 32px;
  }

  .mp-login-story h2 {
    font-size: 36px;
  }

  .mp-login-form {
    padding: 31px;
  }

  .mp-shell {
    display: block;
  }

  .mp-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 17px 19px;
  }

  .mp-sidebar-heading {
    display: none;
  }

  .mp-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

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

  .mp-nav button {
    font-size: 12px;
    padding: 10px 12px;
    gap: 7px;
    min-height: 43px;
  }

  .mp-nav svg {
    width: 17px;
    height: 17px;
  }

  .mp-sidebar-footer {
    display: none;
  }

  .mp-workspace {
    padding: 27px;
  }

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

  .mp-mobile-hint {
    display: block;
    font-size: 11px;
    color: var(--body);
    margin-bottom: 12px;
  }

  .mp-status-option {
    font-size: 12px;
    padding: 12px;
    gap: 8px;
  }

  .mp-assignment-form {
    grid-template-columns: 100px minmax(0, 1fr) auto;
  }

  .mp-card {
    padding: 23px;
  }
}

@media (max-width: 600px) {
  .member-portal .mp-intro {
    padding-bottom: 27px;
  }

  .member-portal .breadcrumb {
    margin-bottom: 21px;
    font-size: 10px;
  }

  .member-portal .mp-intro .eyebrow {
    font-size: 9px;
    margin-bottom: 11px;
  }

  .member-portal h1 {
    font-size: 52px;
  }

  .mp-intro-row {
    display: block;
  }

  .mp-intro-row > p {
    font-size: 13px;
    margin-top: 18px;
  }

  .mp-intro-row > p br {
    display: none;
  }

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

  .mp-login-story {
    padding: 30px 27px;
  }

  .mp-login-story .mp-sun {
    font-size: 33px;
  }

  .mp-login-story .eyebrow {
    margin: 15px 0 12px;
  }

  .mp-login-story h2 {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .mp-login-story h2 br {
    display: none;
  }

  .mp-login-story p {
    font-size: 13px;
    max-width: 100%;
  }

  .mp-login-form {
    padding: 30px 25px;
  }

  .mp-login-form h2 {
    font-size: 30px;
  }

  .mp-shell {
    border-radius: 6px;
  }

  .mp-sidebar {
    padding: 13px;
  }

  .mp-nav {
    gap: 5px;
  }

  .mp-nav button {
    font-size: 11px;
    padding: 9px 10px;
    min-height: 42px;
    flex: 1 0 calc(33.33% - 5px);
    justify-content: center;
  }

  .mp-nav svg {
    display: none;
  }

  .mp-workspace {
    padding: 23px 17px;
  }

  .mp-page-head {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 23px;
  }

  .mp-page-head h2 {
    font-size: 31px;
  }

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

  .mp-banner {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .mp-banner h3 {
    font-size: 26px;
  }

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

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

  .mp-card {
    padding: 21px;
  }

  .mp-section-head {
    align-items: start;
  }

  .mp-section-head h3 {
    font-size: 23px;
  }

  .mp-section-head .mp-inline-link {
    font-size: 11px;
    padding-top: 4px;
  }

  .mp-event-card {
    padding: 17px;
  }

  .mp-event-head {
    gap: 12px;
    flex-wrap: wrap;
  }

  .mp-event-head h3 {
    font-size: 22px;
  }

  .mp-event-head .mp-badge {
    margin-left: 0;
  }

  .mp-status-options {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .mp-status-option {
    padding: 11px 12px;
  }

  .mp-availability-form .mp-helper {
    max-width: 100%;
    flex-basis: 100%;
  }

  .mp-availability-form .mp-actions {
    justify-content: start;
  }

  .mp-event-head .mp-date {
    min-width: 44px;
    height: 52px;
  }

  .mp-schedule-list li {
    font-size: 12px;
    gap: 10px;
  }

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

  .mp-filter-bar {
    align-items: start;
  }

  .mp-filter-bar .mp-field {
    flex: 1;
    min-width: 120px;
  }

  .mp-filter-bar .mp-actions {
    align-self: end;
  }

  .mp-filter-bar .mp-btn {
    padding-inline: 11px;
  }

  .mp-planning-detail {
    padding: 18px;
  }

  .mp-assignment-form {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .mp-assignment-form label {
    grid-column: 1/-1;
  }

  .mp-assignment-form .mp-helper {
    grid-column: 1/-1;
  }

  .mp-publish-row {
    align-items: start;
    flex-direction: column;
  }

  .mp-editor-row {
    padding: 17px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .mp-editor-row h3 {
    font-size: 22px;
  }

  .mp-editor-toolbar {
    align-items: start;
    flex-wrap: wrap;
  }

  .mp-link-input {
    grid-template-columns: 1fr auto;
  }

  .mp-link-input .mp-field:first-child {
    grid-column: 1/-1;
  }

  .mp-link-input .mp-btn {
    padding-inline: 12px;
  }

  .member-portal details {
    padding-inline: 16px;
  }

  .mp-article-body {
    font-size: 14px;
  }

  .mp-article-summary {
    font-size: 15px !important;
  }

  .mp-matrix th:first-child {
    min-width: 120px;
    max-width: 150px;
  }

  .mp-matrix td {
    min-width: 125px;
  }

  .member-portal td,
  .member-portal th {
    padding: 11px;
  }

  .mp-invitation {
    padding: 19px;
  }

  .mp-empty {
    padding: 25px 17px;
  }

  .mp-empty h3 {
    font-size: 22px;
  }

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

  .mp-account-meta {
    gap: 5px;
  }
}

@media print {
  .mp-intro {
    padding-bottom: 15px !important;
  }

  .mp-sidebar,
  .mp-actions,
  .mp-filter-bar,
  .mp-btn,
  .mp-back,
  .mp-notice,
  .mp-mobile-hint {
    display: none !important;
  }

  .member-portal {
    padding-block: 15px;
  }

  .mp-shell {
    display: block;
    border: 0;
  }

  .mp-workspace {
    padding: 0;
  }

  .mp-table-wrap {
    overflow: visible;
  }

  .mp-grid {
    display: block;
  }

  .mp-card,
  .mp-event-card {
    break-inside: avoid;
    margin-bottom: 20px;
  }

  .mp-banner {
    background: #edf3f7 !important;
    color: var(--ink);
  }

  .mp-banner p {
    color: var(--ink);
  }

  .mp-matrix th:first-child {
    position: static;
  }

  .mp-intro-row > p {
    display: none;
  }

  .member-portal h1 {
    font-size: 40px;
  }

  .mp-loading {
    display: none;
  }
}

.member-portal .mp-task-reminder {
  margin-bottom: 16px;
}

.member-portal .mp-selected-answer {
  padding: 14px 17px;
  margin-bottom: 15px;
}

.member-portal .mp-selected-answer p {
  margin: 0;
}

.member-portal .mp-source-note {
  margin-top: 7px;
}

.member-portal .mp-stack-small {
  gap: 7px;
}

.mp-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 12px 11px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: #4c6173;
  font-size: 12px;
  min-height: 45px;
  line-height: 1.4;
  text-decoration: none;
}

.mp-nav a:hover {
  background: #e4ebf1;
}

@media (max-width: 1100px) {
  .mp-nav a {
    font-size: 11px;
    gap: 9px;
  }
}

@media (max-width: 800px) {
  .mp-nav a {
    font-size: 12px;
    padding: 10px 12px;
    gap: 7px;
    min-height: 43px;
  }
}

@media (max-width: 600px) {
  .mp-nav a {
    font-size: 11px;
    padding: 9px 10px;
    min-height: 42px;
    flex: 1 0 calc(33.33% - 5px);
    justify-content: center;
  }

  .mp-nav a svg {
    display: none;
  }
}

/* Ideas board */

.mp-print-only {
  display: none;
}

.mp-idea-teaser p {
  max-width: 640px;
}

.mp-idea-compose {
  margin-bottom: 8px;
}

.mp-idea-compose h3 {
  margin-bottom: 16px;
}

.mp-idea-compose .mp-field {
  margin-bottom: 15px;
}

.mp-idea-compose .mp-helper {
  max-width: 440px;
}

.mp-idea-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mp-idea {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}

.mp-idea-mine {
  border-left: 3px solid var(--accent);
}

.mp-idea-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.member-portal .mp-idea-head h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.member-portal .mp-idea-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--body);
}

.mp-idea-text {
  margin-top: 12px;
  font-size: 14px;
}

.member-portal .mp-idea-text p {
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0;
}

.member-portal .mp-idea-text p + p {
  margin-top: 10px;
}

.mp-idea-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.member-portal .mp-idea-support {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.mp-idea-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-left: auto;
}

.mp-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #dcb7b0;
  border-radius: 20px;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  transition: background 0.15s;
}

.mp-support-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mp-support-btn:hover {
  background: #fcf0ee;
}

.mp-support-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mp-support-btn[aria-pressed="true"] svg {
  fill: currentColor;
}

.mp-support-btn[aria-pressed="true"]:hover {
  background: #873b29;
}

.mp-text-btn-danger {
  color: #933d32;
}

.mp-idea-edit {
  margin-top: 14px;
}

.mp-idea-edit .mp-field {
  margin-bottom: 14px;
}

.member-portal .mp-idea-conflict {
  margin: 0 0 16px;
}

.member-portal .mp-idea-conflict p {
  margin: 0 0 8px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.mp-ideas-discussed details {
  margin-top: 14px;
}

.mp-ideas-discussed .mp-idea-list {
  padding-bottom: 20px;
}

.mp-ideas-discussed .mp-idea {
  background: #f7f9fb;
}

@media (max-width: 600px) {
  .mp-idea {
    padding: 17px;
  }

  .member-portal .mp-idea-head h4 {
    font-size: 16px;
  }

  .mp-idea-actions {
    margin-left: 0;
    width: 100%;
  }
}

@media print {
  .mp-print-only {
    display: block !important;
    font-size: 12px;
    margin: 0 0 16px;
  }

  .mp-idea-compose,
  .mp-idea-edit,
  .mp-support-btn,
  .mp-idea-actions,
  .mp-ideas-discussed,
  .mp-no-print {
    display: none !important;
  }

  .mp-idea-list {
    gap: 10px;
  }

  .mp-idea {
    break-inside: avoid;
    border: 1px solid #8a959d;
    padding: 12px 14px;
  }

  .mp-idea-footer {
    margin-top: 8px;
    padding-top: 8px;
  }

  .member-portal .mp-idea-support {
    font-size: 13px;
  }
}

/* VEG Beamer product page */

.mp-beamer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.mp-beamer-download {
  padding: 27px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
}

.mp-beamer-download > h3 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 6px;
}

.mp-beamer-download > p {
  color: #e1eaf2;
  font-size: 13px;
  margin: 0 0 20px;
}

.mp-beamer-download .mp-kicker {
  color: #c9dce9;
}

.mp-beamer-download .mp-helper {
  color: #e1eaf2;
}

.mp-beamer-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.mp-beamer-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.mp-beamer-option-primary {
  box-shadow: inset 0 0 0 2px #f1b89f;
}

.mp-beamer-option-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.member-portal .mp-beamer-option h4 {
  margin: 0;
  font-size: 18px;
}

.member-portal .mp-beamer-option p {
  margin: 0;
  font-size: 13px;
}

.mp-beamer-option .mp-btn {
  margin-top: auto;
}

.member-portal .mp-beamer-meta {
  margin: 0;
  font-size: 12px;
  color: var(--body);
}

.member-portal .mp-beamer-name {
  margin: 0;
  font-size: 11px;
  color: var(--body);
  overflow-wrap: anywhere;
}

.mp-beamer-requirements {
  margin: 18px 0 0;
  font-size: 12px;
  color: #e1eaf2;
}

.mp-beamer-requirements .mp-text-btn {
  color: #fff;
}

.member-portal .mp-beamer-older {
  margin-top: 18px;
  color: var(--ink);
}

.mp-beamer-list {
  list-style: none;
  margin: 0;
  padding: 0 0 15px;
}

.mp-beamer-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.mp-beamer-file:first-child {
  border-top: 0;
}

.mp-beamer-file strong {
  font-size: 14px;
}

.mp-beamer-error {
  margin: 0 0 18px;
}

.mp-beamer-figure {
  margin: 0;
  min-width: 0;
}

.mp-beamer-figure a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.mp-beamer-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.mp-beamer-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--body);
}

.mp-beamer-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

.mp-beamer-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.mp-beamer-features li > div {
  min-width: 0;
}

.member-portal .mp-beamer-features p {
  margin: 0;
  font-size: 13px;
}

.mp-beamer-gallery {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 19px;
  align-items: start;
  margin-top: 19px;
}

.mp-beamer-together {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
}

.mp-beamer-together h4 {
  margin-top: 20px;
}

.mp-beamer-together p {
  font-size: 13px;
}

.mp-beamer-steps {
  margin: 12px 0 0;
  padding-left: 22px;
  font-size: 13px;
}

.mp-beamer-steps li + li {
  margin-top: 7px;
}

.mp-beamer-steps + .mp-helper {
  margin-top: 14px;
}

.mp-beamer-note {
  margin-top: 19px;
}

.mp-beamer-note ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
}

.mp-beamer-note li + li {
  margin-top: 6px;
}

@media (max-width: 800px) {
  .mp-beamer-gallery,
  .mp-beamer-together {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .mp-beamer-download {
    padding: 20px;
  }

  .mp-beamer-option .mp-btn {
    width: 100%;
  }

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