/* Only ordinary-member surfaces use these layouts. Manager pages keep their layout. */
.mp-activity-groups {
  display: grid;
  gap: 18px;
}
@media (min-width: 1101px) {
  .mp-activity-groups--overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mp-activity-group {
  min-width: 0;
  border: 1px solid #d9dfd8;
}
.mp-activity-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #edf0e6;
}
.mp-activity-group > header h3 {
  margin: 0;
  font-size: 17px;
}
.mp-activity-group > header span {
  font-size: 12px;
  flex-shrink: 0;
}
.mp-activity-group.is-debate > header {
  background: #283026;
  color: #f2f4e8;
  border-top: 3px solid #dce94c;
}
.mp-activity-group > .mp-activity-list {
  padding: 0 16px;
}
.mp-activity-group .mp-activity {
  min-width: 0;
}
.mp-ranking-head,
.mp-ranking-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid #e3e8df;
  font-size: 13px;
}
.mp-ranking-head {
  color: #6c786d;
  font-size: 12px;
  background: #f3f5ed;
}
.mp-ranking-row.is-self {
  background: #eaf2df;
  border-left: 3px solid #32735d;
}
.mp-ranking-row > div {
  display: grid;
  gap: 6px;
}
.mp-ranking-row small {
  color: #6c786d;
  font-size: 12px;
}
.mp-ranking-row > span {
  text-align: right;
}
.mp-attendance-record {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #e3e8df;
}
.mp-attendance-record h3 {
  font-size: 15px;
  margin: 0;
}
.mp-attendance-record p {
  font-size: 12px;
  margin: 8px 0 0;
}
.mp-attendance-record > div:last-child {
  display: grid;
  gap: 10px;
  text-align: right;
  flex-shrink: 0;
}
.mp-page > .sr-module {
  margin: 0;
}
.mp-page > .sr-module .sr-groups {
  display: grid;
}
.mp-page > .sr-module .sr-expand {
  display: none;
}
.mp-page {
  display: grid;
  gap: 24px;
  padding-bottom: 28px;
  color: #202d29;
}
.mp-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0 8px;
}
.mp-welcome h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
  letter-spacing: -1.5px;
  margin: 12px 0;
}
.mp-welcome h2 > span {
  color: #1b745e;
}
.mp-welcome p,
.mp-page p {
  color: #67746e;
  line-height: 1.7;
}
.mp-welcome p {
  margin: 0;
}
.mp-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mp-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 12px;
  color: #53705b;
}
.mp-identity span + span {
  border-left: 1px solid #cbd4c8;
  padding-left: 16px;
}
.mp-shortcuts .t-button:first-child {
  background: #e8efb5;
}
.mp-shortcuts .t-button {
  min-height: 44px;
}
.mp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #d9dfd8;
  background: #fff;
}
.mp-stats > div {
  padding: 24px;
  display: grid;
  gap: 10px;
}
.mp-stats > div + div {
  border-left: 1px solid #e1e5df;
}
.mp-stats small {
  color: #64736a;
}
.mp-stats b {
  font-size: 36px;
  line-height: 1.2;
}
.mp-stats em {
  font-size: 13px;
  font-style: normal;
  margin-left: 7px;
  font-weight: 400;
}
.mp-stats span {
  font-size: 12px;
  color: #6b7770;
}
.mp-duty,
.mp-panel {
  border: 1px solid #d9dfd8;
  background: #fff;
  padding: 24px;
  min-width: 0;
}
.mp-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.mp-section-heading h2 {
  font-size: 21px;
  margin: 7px 0 0;
}
.mp-section-heading .t-button {
  font-size: 12px;
  flex-shrink: 0;
}
.mp-duty {
  border-top: 3px solid #27745f;
}
.mp-duty-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  background: #f0f5ef;
  padding: 24px;
}
.mp-next-duty {
  display: grid;
  gap: 10px;
}
.mp-next-duty > strong {
  font-size: 30px;
  letter-spacing: -1px;
}
.mp-next-duty p {
  margin: 0;
  font-size: 14px;
}
.mp-duty-counts {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 0 16px;
}
.mp-duty-counts > div {
  display: grid;
  gap: 8px;
  text-align: center;
}
.mp-duty-counts b {
  font-size: 34px;
}
.mp-duty-counts span {
  font-size: 13px;
  color: #64736a;
}
.mp-dot-label {
  font-size: 12px;
  color: #67766c;
}
.mp-page .mp-footnote {
  font-size: 12px;
  margin: 14px 0;
  color: #768279;
}
.mp-duty summary {
  cursor: pointer;
  font-size: 13px;
  padding: 16px 0;
  min-height: 44px;
}
.mp-duty details {
  border-top: 1px solid #e0e5df;
}
.mp-history-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #edf0ec;
  font-size: 12px;
  align-items: center;
}
.mp-history-row b {
  font-weight: 500;
  line-height: 1.7;
}
.mp-history-row small {
  color: #637569;
}
.mp-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}
.mp-activity-list {
  display: grid;
  gap: 12px;
}
.mp-activity {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid #e4e9e1;
  background: #fff;
  cursor: pointer;
  color: inherit;
}
.mp-activity:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mp-activity h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.mp-activity p {
  font-size: 12px;
  margin: 0 0 5px;
}
.mp-activity small {
  font-size: 11px;
  color: #526a5a;
}
.mp-date {
  display: grid;
  gap: 4px;
  text-align: center;
  background: #f3f4ed;
  padding: 12px 2px;
}
.mp-date b {
  font-size: 27px;
  line-height: 1;
}
.mp-date span {
  font-size: 10px;
  color: #69756c;
}
.mp-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #637565;
}
.mp-badge {
  display: inline-block;
  font-size: 11px;
  white-space: nowrap;
  background: #edf2ec;
  color: #52715b;
  padding: 4px 8px;
  border-radius: 3px;
}
.mp-status-pending {
  background: #f5efcc;
  color: #716229;
}
.mp-status-rejected,
.mp-status-returned {
  background: #fae8df;
  color: #985136;
}
.mp-request {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 0;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid #e4e9e1;
  color: inherit;
  cursor: pointer;
}
.mp-request > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.mp-request small {
  color: #6a786d;
  font-size: 11px;
}
.mp-request b {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.mp-empty {
  padding: 30px 12px;
  text-align: center;
  background: #f7f8f4;
}
.mp-empty strong {
  font-size: 14px;
  font-weight: 500;
}
.mp-empty p {
  font-size: 12px;
  margin-bottom: 0;
}
.mp-notice {
  padding: 15px 20px;
  border-left: 3px solid #b6b763;
  background: #f6f2d9;
  font-size: 13px;
  line-height: 1.7;
}
.mp-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mp-filters button {
  font: inherit;
  font-size: 13px;
  background: #f5f6f0;
  border: 1px solid #dfe4dc;
  padding: 11px 16px;
  cursor: pointer;
}
.mp-filters button[aria-pressed='true'] {
  background: #234e3f;
  color: #fff;
  border-color: #234e3f;
}
.mp-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mp-service {
  position: relative;
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 26px;
  text-align: left;
  min-height: 190px;
  background: #fff;
  border: 1px solid #d9dfd8;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.mp-service:hover {
  border-color: #28725c;
  background: #fafcf5;
}
.mp-service b {
  font-size: 20px;
  padding-right: 24px;
}
.mp-service p {
  font-size: 13px;
  margin: 0;
}
.mp-service-arrow {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 22px;
  color: #387660;
}
.mp-profile-list {
  margin: 0;
}
.mp-profile-list > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  font-size: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0e8;
}
.mp-profile-list dt {
  color: #6c786d;
}
.mp-profile-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.mp-personal-score {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.mp-personal-score b {
  font-size: 52px;
  line-height: 1;
}
.mp-personal-score span {
  font-size: 13px;
  color: #6b786b;
}
.mp-account {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
}
.mp-account > span {
  margin-right: auto;
  font-size: 13px;
  color: #6b786b;
}
.member-shell .main {
  min-width: 0;
}
.member-shell .mp-page button:focus-visible,
.member-shell .mp-page summary:focus-visible {
  outline: 2px solid #1c715b;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .mp-home-grid {
    grid-template-columns: 1fr;
  }
  .mp-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .mp-page {
    gap: 18px;
  }
  .mp-welcome {
    gap: 12px;
  }
  .mp-welcome h2 {
    font-size: 28px;
  }
  .mp-welcome p {
    font-size: 12px;
  }
  .mp-welcome .t-button {
    font-size: 12px;
    padding: 9px 12px;
  }
  .mp-stats {
    grid-template-columns: 1fr;
  }
  .mp-stats > div {
    padding: 18px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 7px;
  }
  .mp-stats > div + div {
    border-left: 0;
    border-top: 1px solid #e1e5df;
  }
  .mp-stats span {
    grid-column: 1 / -1;
  }
  .mp-stats b {
    font-size: 28px;
  }
  .mp-panel,
  .mp-duty {
    padding: 18px;
  }
  .mp-section-heading {
    margin-bottom: 18px;
  }
  .mp-section-heading h2 {
    font-size: 19px;
  }
  .mp-dot-label {
    display: none;
  }
  .mp-duty-body {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }
  .mp-duty-counts {
    justify-content: flex-start;
    padding: 16px 0 0;
    border-top: 1px solid #dce5d8;
    gap: 36px;
  }
  .mp-duty-counts > div {
    text-align: left;
  }
  .mp-duty-counts b {
    font-size: 27px;
  }
  .mp-next-duty > strong {
    font-size: 28px;
  }
  .mp-services {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mp-service {
    min-height: 160px;
    padding: 22px;
    gap: 16px;
  }
  .mp-activity {
    grid-template-columns: 46px minmax(0, 1fr) 12px;
    gap: 12px;
  }
  .mp-activity h3 {
    font-size: 14px;
  }
  .mp-date b {
    font-size: 23px;
  }
  .mp-history-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .mp-history-row b {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .mp-shortcuts {
    gap: 8px;
  }
  .mp-shortcuts .t-button {
    font-size: 12px;
    padding: 11px;
  }
  .mp-filters button {
    font-size: 12px;
    padding: 10px;
  }
}
