:root {
  --s360mb-navy: #1e2e5f;
  --s360mb-green: #97bd3d;
  --s360mb-green-dark: #6f9624;
  --s360mb-bg: #f4f7fb;
  --s360mb-line: #dde5f1;
  --s360mb-text: #51607f;
}

html,
body.system360-my-base-page {
  margin: 0;
  min-height: 100%;
  background: var(--s360mb-bg);
}

body.system360-my-base-page {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  color: var(--s360mb-navy);
}

#system360-my-base {
  min-height: 100dvh;
}

.s360mb-shell {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 8% 12%, rgba(151, 189, 61, .16), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef3f9 54%, #f6f8fb 100%);
}

.s360mb-header {
  min-height: 76px;
  padding: 14px clamp(16px, 5vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(30, 46, 95, .08);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
}

.s360mb-brand,
.s360mb-back,
.s360mb-profile {
  display: inline-flex;
  align-items: center;
}

.s360mb-brand {
  gap: 12px;
  font-size: 18px;
  font-weight: 950;
}

.s360mb-brand img {
  width: min(168px, 42vw);
  height: auto;
  display: block;
}

.s360mb-back {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 46, 95, .14);
  background: #fff;
  color: var(--s360mb-navy);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.s360mb-profile {
  gap: 10px;
}

.s360mb-profile label {
  color: var(--s360mb-text);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.s360mb-profile select,
.s360mb-table-head input,
.s360mb-table select,
.s360mb-table input,
.s360mb-table textarea {
  border: 1px solid #cfdcf0;
  border-radius: 12px;
  background: #fff;
  color: var(--s360mb-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  outline: none;
}

.s360mb-profile select {
  min-height: 42px;
  padding: 0 36px 0 12px;
}

.s360mb-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px) 0;
}

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

.s360mb-hero p {
  margin: 0 0 10px;
  color: var(--s360mb-green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.s360mb-hero h1 {
  margin: 0;
  color: var(--s360mb-navy);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.s360mb-hero span {
  display: block;
  max-width: 700px;
  margin-top: 14px;
  color: #46557b;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 650;
}

.s360mb-hero button,
.s360mb-table button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--s360mb-navy);
  color: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(30, 46, 95, .16);
}

.s360mb-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.s360mb-summary article {
  min-height: 90px;
  padding: 18px;
  border: 1px solid var(--s360mb-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 36px rgba(30, 46, 95, .08);
}

.s360mb-summary strong {
  display: block;
  color: var(--s360mb-navy);
  font-size: 28px;
  line-height: 1;
}

.s360mb-summary span {
  display: block;
  margin-top: 8px;
  color: var(--s360mb-text);
  font-size: 12px;
  font-weight: 850;
}

.s360mb-card {
  background: #fff;
  border: 1px solid var(--s360mb-line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(30, 46, 95, .12);
  overflow: hidden;
}

.s360mb-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--s360mb-line);
}

.s360mb-table-head h2 {
  margin: 0;
  font-size: 22px;
}

.s360mb-table-head p {
  margin: 5px 0 0;
  color: var(--s360mb-text);
  font-size: 12px;
  font-weight: 800;
}

.s360mb-table-head p.is-error {
  color: #b42318;
}

.s360mb-table-head input {
  width: min(360px, 100%);
  min-height: 42px;
  padding: 0 14px;
}

.s360mb-table-wrap {
  overflow-x: auto;
}

.s360mb-table {
  width: 100%;
  border-collapse: collapse;
}

.s360mb-table th,
.s360mb-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2f8;
  vertical-align: top;
  text-align: left;
}

.s360mb-table th {
  color: #61708e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #f8fbff;
}

.s360mb-table td strong,
.s360mb-table td small {
  display: block;
}

.s360mb-table td strong {
  color: var(--s360mb-navy);
  font-size: 14px;
  line-height: 1.25;
}

.s360mb-table td small {
  margin-top: 5px;
  color: var(--s360mb-text);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.s360mb-table select,
.s360mb-table input,
.s360mb-table textarea {
  width: 100%;
  min-width: 150px;
  min-height: 40px;
  padding: 8px 10px;
  box-sizing: border-box;
}

.s360mb-table textarea {
  min-width: 210px;
  resize: vertical;
}

.s360mb-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(151, 189, 61, .14);
  color: var(--s360mb-green-dark);
  font-size: 11px;
  font-weight: 950;
}

.s360mb-row-msg {
  display: block;
  width: 130px;
  margin-top: 8px;
  color: var(--s360mb-text);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.s360mb-empty {
  padding: 28px !important;
  color: var(--s360mb-text);
  text-align: center !important;
  font-weight: 850;
}

@media (max-width: 900px) {
  .s360mb-header,
  .s360mb-hero,
  .s360mb-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .s360mb-brand {
    order: -1;
  }

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

@media (max-width: 680px) {
  .s360mb-main {
    width: min(100% - 20px, 1240px);
    padding-top: 20px;
  }

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

  .s360mb-table,
  .s360mb-table thead,
  .s360mb-table tbody,
  .s360mb-table tr,
  .s360mb-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .s360mb-table thead {
    display: none;
  }

  .s360mb-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--s360mb-line);
  }

  .s360mb-table td {
    padding: 8px 0;
    border: 0;
  }

  .s360mb-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #61708e;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .s360mb-table td:last-child::before {
    display: none;
  }

  .s360mb-table select,
  .s360mb-table input,
  .s360mb-table textarea {
    min-width: 0;
  }
}

@media (max-width: 460px) {
  .s360mb-header {
    padding-inline: 12px;
  }

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

  .s360mb-hero h1 {
    font-size: 34px;
  }
}
