:root {
  --mg-primary: #173f35;
  --mg-primary-dark: #103129;
  --mg-primary-light: #eaf2ee;
  --mg-accent: #b59a62;
  --mg-bg: #f6f7f5;
  --mg-surface: #ffffff;
  --mg-text: #202521;
  --mg-muted: #6f756f;
  --mg-border: #e3e7e3;
  --mg-danger: #c94a4a;
  --mg-blue: #2364aa;
  --mg-orange: #d66b20;
  --mg-pink: #f66f9b;
  --mg-shadow: 0 16px 42px rgba(16, 49, 41, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--mg-bg);
  color: var(--mg-text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.migolf-user {
  min-height: 100vh;
  overflow-x: clip;
}

.mg-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(227, 231, 227, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.mg-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
}

.mg-logo {
  display: inline-flex;
  align-items: center;
  width: 144px;
  min-width: 144px;
}

.mg-logo img {
  display: block;
  width: 138px;
  height: auto;
}

.mg-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.mg-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--mg-text);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.mg-nav a.is-active {
  color: #fff;
  background: var(--mg-primary);
  box-shadow: 0 10px 24px rgba(23, 63, 53, 0.18);
}

.mg-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mg-pink);
  transform: translateX(-50%);
}

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

.mg-header-login,
.mg-header-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.mg-header-login {
  color: var(--mg-primary);
  border: 1px solid var(--mg-border);
  background: #fff;
}

.mg-header-join {
  color: #fff;
  background: var(--mg-primary);
}

.mg-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mg-border);
  border-radius: 15px;
  background: #fff;
}

.mg-menu-lines {
  display: grid;
  gap: 4px;
  width: 18px;
}

.mg-menu-lines i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--mg-text);
}

.mg-mobile-only {
  display: none;
}

.mg-bell {
  position: relative;
  width: 18px;
  height: 20px;
  border: 2px solid var(--mg-text);
  border-bottom: 0;
  border-radius: 12px 12px 8px 8px;
}

.mg-bell::before {
  content: "";
  position: absolute;
  right: -3px;
  top: -5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mg-pink);
}

.mg-bell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--mg-text);
  transform: translateX(-50%);
}

.mg-top-banner {
  border-bottom: 1px solid var(--mg-border);
  background: linear-gradient(135deg, var(--mg-primary-dark), var(--mg-primary));
}

.mg-top-banner a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  color: #fff;
}

.mg-top-banner span,
.mg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #2f2817;
  background: #f3ddb1;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mg-top-banner strong {
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-top-banner em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.mg-top-banner b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  white-space: nowrap;
}

.mg-top-banner--large a {
  min-height: 96px;
}

.mg-top-banner--large span {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.mg-top-banner--large strong {
  font-size: 25px;
}

.mg-top-banner--large em {
  font-size: 15px;
}

.mg-top-banner--large b {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.mg-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(390px, 100%);
  padding: 20px;
  background: #fff;
  box-shadow: -24px 0 60px rgba(16, 49, 41, 0.18);
  transform: translateX(104%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, visibility 0.22s ease;
}

.mg-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mg-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mg-drawer__head img {
  width: 118px;
}

.mg-drawer__head button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--mg-border);
  border-radius: 13px;
  background: var(--mg-bg);
  color: var(--mg-primary);
  font-weight: 800;
}

.mg-drawer__nav {
  display: grid;
  gap: 10px;
}

.mg-drawer__nav a {
  display: grid;
  gap: 5px;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: var(--mg-bg);
}

.mg-drawer__nav strong {
  color: var(--mg-primary-dark);
  font-size: 17px;
}

.mg-drawer__nav span {
  color: var(--mg-muted);
  font-size: 13px;
}

.mg-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
}

.mg-page-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mg-page-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  background: #fff;
  color: var(--mg-muted);
  font-size: 14px;
  font-weight: 850;
}

.mg-page-tabs a.is-active {
  color: #fff;
  border-color: var(--mg-primary);
  background: var(--mg-primary);
}

.mg-section {
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: var(--mg-surface);
  box-shadow: var(--mg-shadow);
}

.mg-section + .mg-section {
  margin-top: 16px;
}

.mg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
}

.mg-section-head p {
  margin: 0 0 6px;
  color: var(--mg-accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mg-section-head h1,
.mg-section-head h2 {
  margin: 0;
  color: var(--mg-primary-dark);
  line-height: 1.25;
}

.mg-section-head h1 {
  font-size: 28px;
}

.mg-section-head h2 {
  font-size: 24px;
}

.mg-section-head a,
.mg-section-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--mg-border);
  border-radius: 12px;
  background: #fff;
  color: var(--mg-primary);
  font-size: 14px;
  font-weight: 850;
}

.mg-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 160px;
  gap: 10px;
  padding: 0 24px 22px;
}

.mg-search-row label {
  display: grid;
  gap: 7px;
}

.mg-search-row span {
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 800;
}

.mg-search-row input,
.mg-search-row select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #fff;
  color: var(--mg-text);
  outline: none;
}

.mg-search-row button {
  align-self: end;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--mg-primary);
  color: #fff;
  font-weight: 900;
}

.mg-date-strip,
.mg-filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 24px 14px;
  scrollbar-width: none;
}

.mg-date-strip::-webkit-scrollbar,
.mg-filter-strip::-webkit-scrollbar,
.mg-service-row::-webkit-scrollbar,
.mg-join-counts::-webkit-scrollbar {
  display: none;
}

.mg-date-strip button,
.mg-filter-strip button {
  flex: 0 0 auto;
  border: 1px solid var(--mg-border);
  background: #fff;
  font-weight: 850;
}

.mg-date-strip button {
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 56px;
  border-radius: 14px;
  color: var(--mg-muted);
}

.mg-date-strip strong,
.mg-date-strip span {
  font-size: 14px;
}

.mg-date-strip .is-active,
.mg-filter-strip .is-active {
  color: #fff;
  border-color: var(--mg-primary);
  background: var(--mg-primary);
}

.mg-filter-strip button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--mg-muted);
}

.mg-booking-table-wrap {
  overflow-x: auto;
  margin: 0 24px 24px;
  border: 1px solid var(--mg-border);
  border-radius: 15px;
}

.mg-booking-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.mg-compact-grid .mg-booking-table {
  min-width: 100%;
}

.mg-calendar-board .mg-booking-table,
.mg-calendar-board .mg-count-table table {
  min-width: 100%;
}

.mg-booking-table th,
.mg-booking-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--mg-border);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.mg-booking-table th {
  color: var(--mg-muted);
  background: #fbfcfb;
  font-weight: 900;
}

.mg-booking-table tr:last-child td {
  border-bottom: 0;
}

.mg-booking-table td strong {
  color: var(--mg-text);
}

.mg-remain {
  color: var(--mg-danger);
  font-style: normal;
  font-weight: 900;
}

.mg-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--mg-primary);
  background: var(--mg-primary-light);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mg-status--hot {
  color: #8a5c08;
  background: #fff3d8;
}

.mg-status--join {
  color: var(--mg-blue);
  background: #eaf2ff;
}

.mg-status--transfer {
  color: #2f7a38;
  background: #e9f7eb;
}

.mg-status--invite {
  color: #a15b00;
  background: #fff0dc;
}

.mg-button-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 36px;
  border-radius: 10px;
  background: var(--mg-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mg-mobile-card-list {
  display: none;
}

.mg-join-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 24px 16px;
}

.mg-join-counts button {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.mg-join-counts .is-active {
  border-color: rgba(23, 63, 53, 0.25);
  background: var(--mg-primary-light);
}

.mg-join-counts span {
  color: var(--mg-text);
  font-size: 13px;
  font-weight: 900;
}

.mg-join-counts strong {
  color: var(--mg-blue);
  font-size: 14px;
}

.mg-join-counts em {
  color: var(--mg-orange);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.mg-board-list {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}

.mg-board-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #fff;
}

.mg-board-list strong {
  font-size: 16px;
}

.mg-board-list p {
  margin: 0;
  color: var(--mg-muted);
  font-size: 13px;
}

.mg-board-list em {
  color: var(--mg-primary);
  font-style: normal;
  font-weight: 900;
}

.mg-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.mg-compact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

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

.mg-service-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--mg-shadow);
}

.mg-service-card span {
  color: var(--mg-accent);
  font-size: 13px;
  font-weight: 900;
}

.mg-service-card strong {
  color: var(--mg-primary-dark);
  font-size: 19px;
}

.mg-service-card em {
  color: var(--mg-muted);
  font-size: 14px;
  font-style: normal;
}

.mg-mini-board {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}

.mg-mini-board article {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #fff;
}

.mg-mini-board strong {
  color: var(--mg-primary-dark);
  font-size: 17px;
}

.mg-mini-board p {
  margin: 0;
  color: var(--mg-muted);
  font-size: 13px;
}

.mg-mini-board em {
  color: var(--mg-primary);
  font-style: normal;
  font-weight: 900;
}

.mg-calendar-board {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 18px;
  align-items: start;
}

.mg-two-column > *,
.mg-compact-grid > *,
.mg-calendar-board > *,
.mg-section,
.mg-search-row > *,
.mg-mobile-card-list article > * {
  min-width: 0;
}

.mg-count-table {
  margin: 0 24px 24px;
  overflow-x: auto;
  border: 1px solid var(--mg-border);
  border-radius: 15px;
}

.mg-count-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.mg-count-table th,
.mg-count-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--mg-border);
  border-right: 1px solid var(--mg-border);
  text-align: center;
  font-size: 14px;
}

.mg-count-table th:last-child,
.mg-count-table td:last-child {
  border-right: 0;
}

.mg-count-table tr:last-child td {
  border-bottom: 0;
}

.mg-count-table th {
  color: var(--mg-muted);
  background: #fbfcfb;
  font-weight: 900;
}

.mg-count-table th:first-child,
.mg-count-table td:first-child {
  min-width: 72px;
  word-break: keep-all;
}

.mg-count-table .is-today {
  background: var(--mg-primary-light);
}

.mg-count-table strong {
  color: var(--mg-blue);
}

.mg-count-table em {
  display: block;
  margin-top: 3px;
  color: var(--mg-orange);
  font-style: normal;
  font-weight: 900;
}

.mg-footer {
  border-top: 1px solid var(--mg-border);
  background: #fff;
}

.mg-footer__inner {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px 34px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 24px;
}

.mg-footer__brand img {
  display: block;
  width: 104px;
  height: auto;
  margin-bottom: 8px;
}

.mg-footer__brand p {
  margin: 0;
  color: var(--mg-muted);
  font-size: 12px;
  font-weight: 700;
}

.mg-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 2px;
}

.mg-footer__links a {
  color: var(--mg-text);
  font-size: 13px;
  font-weight: 850;
}

.mg-footer__info {
  grid-column: 2;
  color: var(--mg-muted);
  font-size: 12px;
  line-height: 1.65;
}

.mg-footer__info p {
  margin: 0;
  overflow-wrap: anywhere;
}

.mg-footer__copy {
  margin-top: 6px !important;
  color: var(--mg-primary);
  font-weight: 900;
}

.mg-main--service {
  padding-top: 24px;
}

.mg-flow-layout {
  display: grid;
  gap: 18px;
}

.mg-section-head__text {
  display: grid;
  gap: 6px;
}

.mg-section-head__text span {
  color: var(--mg-muted);
  font-size: 14px;
  font-weight: 700;
}

.mg-inline-search {
  display: grid;
  grid-template-columns: 170px 180px 180px minmax(0, 1fr) 140px;
  gap: 10px;
  padding: 0 24px 18px;
}

.mg-inline-search label {
  display: grid;
  gap: 7px;
}

.mg-inline-search span {
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 850;
}

.mg-inline-search input,
.mg-inline-search select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--mg-border);
  border-radius: 13px;
  background: #fff;
  color: var(--mg-text);
  outline: none;
}

.mg-inline-search button {
  align-self: end;
  height: 48px;
  border: 0;
  border-radius: 13px;
  background: var(--mg-primary);
  color: #fff;
  font-weight: 900;
}

.mg-realtime-table .mg-booking-table {
  min-width: 100%;
}

.mg-realtime-table .mg-booking-table th,
.mg-realtime-table .mg-booking-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.mg-realtime-table .mg-booking-table td:nth-child(2) strong {
  color: var(--mg-primary-dark);
}

.mg-weekly-table {
  margin: 0 24px 20px;
  overflow-x: auto;
  border: 1px solid var(--mg-border);
  border-radius: 15px;
}

.mg-weekly-table table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.mg-weekly-table th,
.mg-weekly-table td {
  padding: 13px 12px;
  border-right: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

.mg-weekly-table th {
  color: var(--mg-muted);
  background: #fbfcfb;
  font-weight: 900;
}

.mg-weekly-table th:first-child,
.mg-weekly-table td:first-child {
  width: 118px;
  color: var(--mg-primary-dark);
  font-weight: 900;
  word-break: keep-all;
}

.mg-weekly-table tr:last-child td {
  border-bottom: 0;
}

.mg-weekly-table th:last-child,
.mg-weekly-table td:last-child {
  border-right: 0;
}

.mg-weekly-table .is-today {
  background: var(--mg-primary-light);
}

.mg-weekly-table strong,
.mg-weekly-table em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 26px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mg-weekly-table strong {
  color: var(--mg-blue);
  background: #edf4ff;
}

.mg-weekly-table em {
  margin-top: 5px;
  color: var(--mg-orange);
  background: #fff2e8;
}

.mg-join-table {
  overflow-x: auto;
  margin: 0 24px 24px;
  border: 1px solid var(--mg-border);
  border-radius: 15px;
}

.mg-join-table table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.mg-join-table th,
.mg-join-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--mg-border);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.mg-join-table th {
  color: var(--mg-muted);
  background: #fbfcfb;
  font-weight: 900;
}

.mg-join-table tr:last-child td {
  border-bottom: 0;
}

.mg-join-table strong {
  color: var(--mg-primary-dark);
}

.mg-join-table em {
  color: var(--mg-primary);
  font-style: normal;
  font-weight: 900;
}

.mg-stack-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 18px;
}

.mg-stack-note span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--mg-primary);
  background: var(--mg-primary-light);
  font-size: 13px;
  font-weight: 850;
}

.mg-mobile-join-list {
  display: none;
}

.mg-proposal-intro {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.mg-proposal-intro h1 {
  margin: 0;
  color: var(--mg-primary-dark);
  font-size: 28px;
}

.mg-proposal-intro p {
  margin: 0;
  color: var(--mg-muted);
  font-size: 15px;
  font-weight: 700;
}

.mg-proposal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.mg-proposal-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  background: #fff;
  color: var(--mg-primary);
  font-size: 14px;
  font-weight: 900;
}

.mg-concept {
  margin-bottom: 24px;
  border: 1px solid var(--mg-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--mg-shadow);
  overflow: hidden;
}

.mg-concept__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--mg-border);
  background: linear-gradient(180deg, #fff, #fbfcfb);
}

.mg-concept__head p {
  margin: 0 0 6px;
  color: var(--mg-accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mg-concept__head h2 {
  margin: 0;
  color: var(--mg-primary-dark);
  font-size: 25px;
}

.mg-concept__head span {
  display: block;
  margin-top: 6px;
  color: var(--mg-muted);
  font-size: 14px;
  font-weight: 700;
}

.mg-concept__head em {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--mg-primary-light);
  color: var(--mg-primary);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.mg-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 26px 0;
}

.mg-metric {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: #fbfcfb;
}

.mg-metric span {
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 850;
}

.mg-metric strong {
  color: var(--mg-primary-dark);
  font-size: 22px;
}

.mg-metric em {
  color: var(--mg-accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mg-unified-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  padding: 18px 26px 26px;
  align-items: start;
}

.mg-unified-main,
.mg-unified-side {
  min-width: 0;
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: #fff;
}

.mg-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

.mg-block-title h3 {
  margin: 0;
  color: var(--mg-primary-dark);
  font-size: 20px;
}

.mg-block-title a {
  color: var(--mg-primary);
  font-size: 13px;
  font-weight: 900;
}

.mg-time-list {
  display: grid;
  padding: 0 18px 18px;
}

.mg-time-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 110px 92px 72px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-top: 1px solid var(--mg-border);
}

.mg-time-row:first-child {
  border-top: 0;
}

.mg-time-row strong {
  color: var(--mg-primary-dark);
  font-size: 15px;
}

.mg-time-row p {
  margin: 3px 0 0;
  color: var(--mg-muted);
  font-size: 12px;
}

.mg-time-row b {
  color: var(--mg-primary-dark);
  font-size: 15px;
}

.mg-time-row em {
  color: var(--mg-danger);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mg-time-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  background: var(--mg-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mg-week-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 16px;
}

.mg-week-summary button {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #fbfcfb;
  text-align: left;
}

.mg-week-summary button.is-active {
  border-color: rgba(23, 63, 53, 0.25);
  background: var(--mg-primary-light);
}

.mg-week-summary span {
  color: var(--mg-primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.mg-week-summary strong {
  color: var(--mg-blue);
  font-size: 13px;
}

.mg-week-summary em {
  color: var(--mg-orange);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mg-join-card-list {
  display: grid;
  gap: 9px;
  padding: 0 18px 18px;
}

.mg-join-card-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px 10px;
  padding: 13px;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #fff;
}

.mg-join-card-list strong {
  color: var(--mg-primary-dark);
  font-size: 15px;
}

.mg-join-card-list p {
  grid-column: 2;
  margin: 0;
  color: var(--mg-muted);
  font-size: 12px;
}

.mg-join-card-list em {
  grid-column: 3;
  grid-row: 1;
  color: var(--mg-primary);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.mg-join-card-list--dense {
  gap: 7px;
}

.mg-join-card-list--dense article {
  min-height: 58px;
  padding: 10px 12px;
}

.mg-join-card-list--dense strong {
  font-size: 14px;
}

.mg-join-card-list--dense p {
  font-size: 11px;
  line-height: 1.35;
}

.mg-join-card-list--dense em {
  font-size: 13px;
}

.mg-dashboard-final .mg-unified-shell {
  grid-template-columns: minmax(0, 1.05fr) 430px;
}

.mg-dashboard-final .mg-week-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mg-dashboard-final .mg-week-summary--wide {
  grid-column: 1 / -1;
  padding: 0;
}

.mg-dashboard-final .mg-week-summary button {
  min-height: 70px;
  padding: 10px;
}

.mg-dashboard-final .mg-week-summary span,
.mg-dashboard-final .mg-week-summary strong,
.mg-dashboard-final .mg-week-summary em {
  font-size: 12px;
}

.mg-dashboard-final .mg-join-card-list--dense {
  gap: 6px;
}

.mg-dashboard-final .mg-join-card-list--dense article {
  min-height: 50px;
  padding: 8px 10px;
}

.mg-dashboard-final .mg-join-card-list--dense .mg-status {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.mg-final-actions {
  display: flex;
  justify-content: center;
  padding: 0 26px 26px;
}

.mg-final-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--mg-primary);
  color: #fff;
  font-weight: 900;
}

.mg-quick-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 26px 20px;
}

.mg-quick-banner-grid a {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(234, 242, 238, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 28px rgba(16, 49, 41, 0.05);
}

.mg-quick-banner-grid span {
  color: var(--mg-accent);
  font-size: 13px;
  font-weight: 900;
}

.mg-quick-banner-grid strong {
  color: var(--mg-primary-dark);
  font-size: 17px;
  line-height: 1.3;
}

.mg-quick-banner-grid em {
  color: var(--mg-primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mg-region-booking-final .mg-concept__head {
  align-items: center;
}

.mg-region-booking-final .mg-concept__head {
  border-bottom: 0;
  background:
    linear-gradient(135deg, rgba(234, 242, 238, 0.9), rgba(255, 255, 255, 0.98));
}

.mg-region-booking-final .mg-concept__head p {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 63, 53, 0.08);
  color: var(--mg-primary);
  font-size: 12px;
  letter-spacing: 0;
}

.mg-region-booking-final .mg-concept__head h2 {
  font-size: 29px;
}

.mg-region-booking-final .mg-concept__head span {
  font-size: 15px;
}

.mg-region-booking-final .mg-concept__head em {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(23, 63, 53, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 49, 41, 0.06);
}

.mg-region-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 26px 24px;
}

.mg-region-booking-card {
  min-width: 0;
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.mg-region-booking-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--mg-border);
  background: linear-gradient(180deg, #fbfcfb, #fff);
}

.mg-region-booking-card__head div {
  min-width: 0;
}

.mg-region-booking-card__head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--mg-primary);
  background: var(--mg-primary-light);
  font-size: 12px;
  font-weight: 900;
}

.mg-region-booking-card__head h3 {
  margin: 7px 0 3px;
  color: var(--mg-primary-dark);
  font-size: 22px;
}

.mg-region-booking-card__head p {
  margin: 0;
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 700;
}

.mg-region-booking-card__head strong {
  color: var(--mg-primary-dark);
  font-size: 28px;
  white-space: nowrap;
}

.mg-region-time-list {
  display: grid;
  padding: 0 18px 16px;
}

.mg-region-time-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 102px 72px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-top: 1px solid var(--mg-border);
}

.mg-region-time-item:first-child {
  border-top: 0;
}

.mg-region-time-item time {
  color: var(--mg-primary-dark);
  font-size: 17px;
  font-weight: 900;
}

.mg-region-time-item strong {
  display: block;
  color: var(--mg-text);
  font-size: 15px;
}

.mg-region-time-item span {
  display: block;
  margin-top: 3px;
  color: var(--mg-muted);
  font-size: 12px;
}

.mg-region-time-item b {
  color: var(--mg-primary-dark);
  font-size: 15px;
}

.mg-region-time-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  background: var(--mg-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mg-region-booking-more {
  display: flex;
  justify-content: center;
  padding: 0 18px 18px;
}

.mg-region-booking-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--mg-border);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--mg-primary);
  font-size: 14px;
  font-weight: 900;
}

.mg-join-lower-section {
  margin: 0 26px 24px;
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: #fff;
}

.mg-join-lower-section .mg-block-title {
  padding: 18px 18px 12px;
}

.mg-join-lower-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  padding: 0 18px 18px;
  align-items: start;
}

.mg-join-lower-grid .mg-week-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  align-self: start;
}

.mg-join-lower-grid .mg-week-summary button {
  min-height: 82px;
}

.mg-join-lower-grid .mg-join-card-list {
  padding: 0;
}

.mg-join-date-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 16px;
}

.mg-join-date-tabs button {
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #fbfcfb;
  text-align: left;
}

.mg-join-date-tabs button.is-active {
  border-color: rgba(23, 63, 53, 0.25);
  background: var(--mg-primary-light);
}

.mg-join-date-tabs span {
  color: var(--mg-primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.mg-join-date-tabs strong {
  color: var(--mg-blue);
  font-size: 12px;
}

.mg-join-date-tabs em {
  color: var(--mg-orange);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.mg-join-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 18px;
}

.mg-join-column {
  min-width: 0;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: #fff;
}

.mg-join-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--mg-border);
}

.mg-join-column__head h4 {
  margin: 0;
  color: var(--mg-primary-dark);
  font-size: 18px;
}

.mg-join-column__head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mg-primary-light);
  color: var(--mg-primary);
  font-size: 12px;
  font-weight: 900;
}

.mg-join-row-list {
  display: grid;
  padding: 4px 14px 14px;
}

.mg-join-row-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  border-top: 1px solid var(--mg-border);
}

.mg-join-row-list a:first-child {
  border-top: 0;
}

.mg-join-row-list strong {
  color: var(--mg-primary-dark);
  font-size: 15px;
}

.mg-join-row-list p {
  margin: 3px 0 0;
  color: var(--mg-muted);
  font-size: 12px;
}

.mg-join-row-list em {
  color: var(--mg-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.mg-quick-banner-grid--icon a {
  position: relative;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.mg-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--mg-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 49, 41, 0.14);
}

.mg-quick-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mg-quick-banner-grid--icon span,
.mg-quick-banner-grid--icon strong,
.mg-quick-banner-grid--icon em {
  grid-column: 2;
}

.mg-date-dashboard {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 26px;
}

.mg-date-dashboard button {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 13px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: #fbfcfb;
  text-align: left;
}

.mg-date-dashboard button.is-active {
  color: #fff;
  border-color: var(--mg-primary);
  background: var(--mg-primary);
}

.mg-date-dashboard span {
  font-weight: 900;
}

.mg-date-dashboard strong,
.mg-date-dashboard em,
.mg-date-dashboard small {
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mg-date-dashboard strong {
  color: var(--mg-primary-dark);
}

.mg-date-dashboard em {
  color: var(--mg-blue);
}

.mg-date-dashboard small {
  color: var(--mg-orange);
}

.mg-date-dashboard .is-active strong,
.mg-date-dashboard .is-active em,
.mg-date-dashboard .is-active small {
  color: #fff;
}

.mg-linked-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  padding: 0 26px 26px;
  align-items: start;
}

.mg-region-panel {
  padding: 0 18px 18px;
}

.mg-region-matrix {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  overflow: hidden;
}

.mg-region-matrix th,
.mg-region-matrix td {
  padding: 11px 9px;
  border-right: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
  text-align: center;
  font-size: 13px;
}

.mg-region-matrix th {
  color: var(--mg-muted);
  background: #fbfcfb;
  font-weight: 900;
}

.mg-region-matrix th:last-child,
.mg-region-matrix td:last-child {
  border-right: 0;
}

.mg-region-matrix tr:last-child td {
  border-bottom: 0;
}

.mg-region-matrix b {
  color: var(--mg-blue);
}

.mg-region-matrix em {
  display: block;
  margin-top: 3px;
  color: var(--mg-orange);
  font-style: normal;
  font-weight: 900;
}

.mg-strip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 18px 26px 26px;
  align-items: start;
}

.mg-side-sticky {
  position: sticky;
  top: 112px;
  align-self: start;
}

@media (max-width: 1120px) {
  .mg-header__bar {
    gap: 18px;
  }

  .mg-nav {
    gap: 4px;
  }

  .mg-nav a {
    padding: 0 11px;
    font-size: 15px;
  }

  .mg-search-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mg-search-row button {
    grid-column: 1 / -1;
  }

  .mg-two-column,
  .mg-compact-grid,
  .mg-calendar-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mg-desktop-only,
  .mg-nav {
    display: none;
  }

  .mg-mobile-only {
    display: inline-flex;
  }

  .mg-header__bar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: calc(100% - 28px);
    min-height: 66px;
    gap: 10px;
  }

  .mg-header__actions .mg-icon-button:not(.mg-mobile-only) {
    display: none;
  }

  .mg-logo {
    justify-self: center;
    width: auto;
    min-width: 0;
  }

  .mg-header__bar > .mg-logo:first-child {
    grid-column: 2;
  }

  .mg-header__bar > .mg-logo:first-child ~ .mg-header__actions {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .mg-header__bar:has(> .mg-logo:first-child)::before {
    content: none;
  }

  .mg-header__bar:has(> .mg-logo:first-child) .mg-header__actions .mg-icon-button:not(.mg-mobile-only) {
    display: inline-flex;
  }

  .mg-logo img {
    width: 112px;
  }

  .mg-header-login {
    display: none;
  }

  .mg-top-banner a {
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100% - 28px);
    min-height: 76px;
    gap: 8px 10px;
    padding: 12px 0;
  }

  .mg-top-banner strong {
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 16px;
  }

  .mg-top-banner em {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 13px;
  }

  .mg-top-banner b {
    display: none;
  }

  .mg-top-banner--large a {
    min-height: 92px;
    padding: 14px 0;
  }

  .mg-top-banner--large span {
    min-height: 32px;
    padding: 0 13px;
    font-size: 13px;
  }

  .mg-top-banner--large strong {
    font-size: 18px;
  }

  .mg-main {
    width: calc(100% - 28px);
    padding: 16px 0 24px;
  }

  .mg-page-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mg-page-tabs::-webkit-scrollbar {
    display: none;
  }

  .mg-page-tabs a {
    flex: 0 0 auto;
  }

  .mg-section {
    border-radius: 16px;
  }

  .mg-section + .mg-section {
    margin-top: 12px;
  }

  .mg-section-head {
    padding: 17px 16px 12px;
  }

  .mg-section-head h1,
  .mg-section-head h2 {
    font-size: 21px;
  }

  .mg-section-head a,
  .mg-section-head button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .mg-search-row {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }

  .mg-inline-search {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }

  .mg-search-row input,
  .mg-search-row select,
  .mg-search-row button,
  .mg-inline-search input,
  .mg-inline-search select,
  .mg-inline-search button {
    height: 48px;
  }

  .mg-date-strip,
  .mg-filter-strip {
    padding: 0 16px 12px;
  }

  .mg-booking-table-wrap {
    display: none;
  }

  .mg-mobile-card-list {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
  }

  .mg-mobile-card-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--mg-border);
    border-radius: 14px;
    background: #fff;
  }

  .mg-mobile-card-list strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--mg-primary-dark);
    font-size: 17px;
  }

  .mg-mobile-card-list p {
    margin: 0;
    color: var(--mg-muted);
    font-size: 13px;
  }

  .mg-mobile-card-list div:last-child {
    display: grid;
    justify-items: end;
    gap: 5px;
  }

  .mg-mobile-card-list b {
    color: var(--mg-primary);
    font-size: 15px;
  }

  .mg-mobile-card-list em {
    color: var(--mg-danger);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
  }

  .mg-mobile-card-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 38px;
    border-radius: 10px;
    background: var(--mg-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
  }

  .mg-join-counts {
    display: flex;
    overflow-x: auto;
    padding: 0 16px 14px;
    scrollbar-width: none;
  }

  .mg-join-counts button {
    flex: 0 0 118px;
    min-height: 76px;
  }

  .mg-board-list {
    padding: 0 16px 16px;
  }

  .mg-board-list a {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 13px;
  }

  .mg-board-list p {
    grid-column: 2 / -1;
  }

  .mg-service-row {
    display: flex;
    overflow-x: auto;
    margin-bottom: 12px;
    scrollbar-width: none;
  }

  .mg-service-row::-webkit-scrollbar {
    display: none;
  }

  .mg-service-card {
    flex: 0 0 142px;
    min-height: 104px;
    padding: 16px;
  }

  .mg-mini-board {
    padding: 0 16px 16px;
  }

  .mg-count-table {
    margin: 0 16px 16px;
  }

  .mg-weekly-table {
    margin: 0 16px 16px;
  }

  .mg-weekly-table table {
    min-width: 760px;
  }

  .mg-join-table {
    display: none;
  }

  .mg-mobile-join-list {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
  }

  .mg-mobile-join-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 14px;
    border: 1px solid var(--mg-border);
    border-radius: 14px;
    background: #fff;
  }

  .mg-mobile-join-list strong {
    color: var(--mg-primary-dark);
    font-size: 16px;
  }

  .mg-mobile-join-list p {
    grid-column: 2;
    margin: 0;
    color: var(--mg-muted);
    font-size: 13px;
  }

  .mg-mobile-join-list em {
    grid-column: 3;
    grid-row: 1;
    color: var(--mg-primary);
    font-style: normal;
    font-weight: 900;
  }

  .mg-mobile-join-list a {
    grid-column: 3;
    grid-row: 2;
  }

  .mg-stack-note {
    padding: 0 16px 14px;
  }

  .mg-proposal-intro h1 {
    font-size: 22px;
  }

  .mg-concept {
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .mg-concept__head {
    display: grid;
    padding: 18px 16px 14px;
  }

  .mg-concept__head h2 {
    font-size: 21px;
  }

  .mg-concept__head em {
    justify-self: start;
  }

  .mg-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 16px 0;
  }

  .mg-metric {
    min-height: 78px;
    padding: 13px;
  }

  .mg-unified-shell,
  .mg-linked-layout,
  .mg-strip-layout {
    grid-template-columns: 1fr;
    padding: 14px 16px 18px;
  }

  .mg-dashboard-final .mg-unified-shell {
    grid-template-columns: 1fr;
  }

  .mg-dashboard-final .mg-week-summary {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mg-dashboard-final .mg-week-summary::-webkit-scrollbar {
    display: none;
  }

  .mg-dashboard-final .mg-week-summary button {
    flex: 0 0 116px;
  }

  .mg-final-actions {
    padding: 0 16px 18px;
  }

  .mg-final-actions a {
    width: 100%;
  }

  .mg-quick-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
  }

  .mg-quick-banner-grid a {
    min-height: 106px;
    padding: 16px;
  }

  .mg-quick-banner-grid strong {
    font-size: 15px;
  }

  .mg-region-booking-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px 16px;
  }

  .mg-region-booking-card {
    border-radius: 16px;
  }

  .mg-region-booking-card__head {
    padding: 15px 14px 12px;
  }

  .mg-region-booking-card__head h3 {
    font-size: 20px;
  }

  .mg-region-booking-final .mg-concept__head h2 {
    font-size: 23px;
  }

  .mg-region-booking-card__head strong {
    font-size: 24px;
  }

  .mg-region-time-list {
    padding: 0 14px 14px;
  }

  .mg-region-time-item {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 72px;
    padding: 10px 0;
  }

  .mg-region-time-item b {
    grid-column: 2;
    grid-row: 2;
  }

  .mg-region-time-item a {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-width: 62px;
  }

  .mg-region-booking-more {
    padding: 0 14px 14px;
  }

  .mg-join-lower-section {
    margin: 0 16px 18px;
    border-radius: 16px;
  }

  .mg-join-lower-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 14px 14px;
  }

  .mg-join-lower-grid .mg-week-summary {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mg-join-lower-grid .mg-week-summary::-webkit-scrollbar {
    display: none;
  }

  .mg-join-lower-grid .mg-week-summary button {
    flex: 0 0 116px;
  }

  .mg-join-date-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0 14px 14px;
    scrollbar-width: none;
  }

  .mg-join-date-tabs::-webkit-scrollbar {
    display: none;
  }

  .mg-join-date-tabs button {
    flex: 0 0 112px;
  }

  .mg-join-split-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 14px 14px;
  }

  .mg-join-row-list a {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mg-quick-banner-grid--icon a {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
  }

  .mg-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .mg-quick-icon svg {
    width: 23px;
    height: 23px;
  }

  .mg-side-sticky {
    position: static;
  }

  .mg-block-title {
    padding: 15px 14px 10px;
  }

  .mg-block-title h3 {
    font-size: 18px;
  }

  .mg-time-list {
    padding: 0 14px 14px;
  }

  .mg-time-row {
    grid-template-columns: 1fr auto;
    gap: 7px 10px;
    min-height: 92px;
    padding: 12px 0;
  }

  .mg-time-row .mg-status {
    grid-column: 1;
    justify-self: start;
  }

  .mg-time-row div {
    grid-column: 1;
  }

  .mg-time-row b {
    grid-column: 1;
    grid-row: 3;
  }

  .mg-time-row em {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
  }

  .mg-time-row a {
    grid-column: 2;
    grid-row: 2;
    min-width: 64px;
  }

  .mg-week-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 14px 14px;
  }

  .mg-join-card-list {
    padding: 0 14px 14px;
  }

  .mg-join-card-list article {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mg-date-dashboard {
    display: flex;
    overflow-x: auto;
    padding: 14px 16px;
    scrollbar-width: none;
  }

  .mg-date-dashboard::-webkit-scrollbar {
    display: none;
  }

  .mg-date-dashboard button {
    flex: 0 0 122px;
    min-height: 102px;
  }

  .mg-region-panel {
    padding: 0 14px 14px;
    overflow-x: auto;
  }

  .mg-region-matrix {
    min-width: 520px;
  }

  .mg-footer__inner {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    padding: 20px 0 24px;
    text-align: center;
  }

  .mg-footer__brand img {
    width: 98px;
    margin: 0 auto 7px;
  }

  .mg-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: center;
    gap: 8px 16px;
  }

  .mg-footer__info {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .mg-header__bar,
  .mg-top-banner a,
  .mg-main,
  .mg-footer__inner {
    width: min(362px, calc(100vw - 28px));
    margin-left: 14px;
    margin-right: auto;
  }

  .mg-mobile-card-list article {
    grid-template-columns: 1fr;
  }

  .mg-mobile-card-list div:last-child {
    grid-template-columns: 1fr auto auto;
    justify-items: start;
    align-items: center;
  }

  .mg-board-list a {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mg-board-list p {
    grid-column: 2;
  }

  .mg-board-list em {
    grid-column: 3;
    grid-row: 1;
  }

  .mg-board-list .mg-button-sm {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 420px) {
  .mg-logo img {
    width: 104px;
  }

  .mg-icon-button {
    width: 42px;
    height: 42px;
  }

  .mg-board-list a {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mg-board-list em {
    grid-column: 3;
    grid-row: 1;
  }

  .mg-mobile-card-list article {
    grid-template-columns: 1fr;
  }

  .mg-mobile-card-list div:last-child {
    grid-template-columns: 1fr auto auto;
    justify-items: start;
    align-items: center;
  }
}

/* Region booking final refresh */
.migolf-user {
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8f6 270px, #f4f6f3 100%);
}

.mg-header {
  border-bottom: 1px solid rgba(224, 229, 224, 0.82);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(16, 49, 41, 0.04);
}

.mg-header__bar {
  min-height: 74px;
}

.mg-logo {
  width: 132px;
  min-width: 132px;
  background: transparent;
}

.mg-logo img {
  width: 126px;
  mix-blend-mode: multiply;
}

.mg-nav {
  gap: 6px;
}

.mg-nav a {
  min-height: 42px;
  padding: 0 14px;
  color: #222824;
  font-size: 15px;
  border-radius: 14px;
}

.mg-nav a.is-active {
  background: #173f35;
  box-shadow: 0 10px 22px rgba(23, 63, 53, 0.16);
}

.mg-header-login,
.mg-header-join,
.mg-icon-button {
  min-height: 42px;
  border-color: #e7ebe7;
  box-shadow: 0 6px 16px rgba(16, 49, 41, 0.04);
}

.mg-top-banner {
  padding: 18px 0 10px;
  background: transparent;
}

.mg-top-banner a,
.mg-top-banner--large a {
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(90deg, #123f35 0%, #0f352d 55%, #1d584b 100%);
  box-shadow: 0 18px 42px rgba(16, 49, 41, 0.16);
}

.mg-top-banner span,
.mg-top-banner--large span {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(181, 154, 98, 0.96);
  color: #fff;
  font-size: 13px;
}

.mg-top-banner strong,
.mg-top-banner--large strong {
  color: #fff;
  font-size: 25px;
  letter-spacing: 0;
}

.mg-top-banner em,
.mg-top-banner--large em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.mg-top-banner b,
.mg-top-banner--large b {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mg-region-booking-final {
  border: 1px solid rgba(224, 229, 224, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(16, 49, 41, 0.08);
  overflow: hidden;
}

.mg-section-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 14px;
  background: #fff;
}

.mg-section-strip h2 {
  margin: 0;
  color: #102f28;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

.mg-section-strip span {
  display: block;
  margin-top: 4px;
  color: #7a817b;
  font-size: 13px;
  font-weight: 700;
}

.mg-section-strip nav {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.mg-section-strip nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #e5e9e5;
  border-radius: 999px;
  background: #fff;
  color: #313832;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 49, 41, 0.035);
}

.mg-section-strip nav a.is-active {
  border-color: #173f35;
  background: #173f35;
  color: #fff;
}

.mg-region-booking-grid {
  gap: 14px;
  padding: 14px 28px 26px;
}

.mg-region-booking-card {
  border: 1px solid #e4e9e4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 49, 41, 0.045);
}

.mg-region-booking-card__head {
  padding: 18px 18px 12px;
  border-bottom: 1px solid #edf0ed;
  background: #fff;
}

.mg-region-booking-card__head span {
  min-height: 26px;
  padding: 0 10px;
  background: #edf5f1;
  color: #173f35;
  font-size: 12px;
}

.mg-region-booking-card__head h3 {
  margin-top: 9px;
  color: #102f28;
  font-size: 21px;
}

.mg-region-booking-card__head p {
  color: #7b837c;
  font-size: 13px;
}

.mg-region-booking-card__head strong {
  color: #102f28;
  font-size: 26px;
}

.mg-region-time-list {
  padding: 2px 18px 16px;
}

.mg-region-time-item {
  grid-template-columns: 66px minmax(0, 1fr) 104px 66px;
  min-height: 56px;
  border-top: 1px solid #edf0ed;
}

.mg-region-time-item time {
  color: #063d35;
  font-size: 17px;
}

.mg-region-time-item strong {
  color: #202521;
  font-size: 15px;
}

.mg-region-time-item span {
  color: #7b837c;
  font-size: 12px;
}

.mg-region-time-item b {
  color: #102f28;
  font-size: 15px;
}

.mg-region-time-item a {
  min-height: 36px;
  border-radius: 11px;
  background: #173f35;
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.12);
}

.mg-region-booking-more {
  padding: 0 18px 18px;
}

.mg-region-booking-more a {
  min-height: 42px;
  border-color: #e5e9e5;
  border-radius: 13px;
  background: #fff;
  color: #173f35;
}

.mg-join-lower-section {
  margin: 0 28px 26px;
  border-color: #e4e9e4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 49, 41, 0.045);
}

.mg-block-title {
  padding: 22px 22px 14px;
}

.mg-block-title h3 {
  color: #102f28;
  font-size: 22px;
}

.mg-block-title a {
  color: #173f35;
  font-size: 13px;
}

.mg-join-date-tabs {
  gap: 8px;
  padding: 0 22px 14px;
}

.mg-join-date-tabs button {
  min-height: 72px;
  border-color: #e5e9e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 49, 41, 0.035);
}

.mg-join-date-tabs button.is-active {
  border-color: rgba(23, 63, 53, 0.24);
  background: #eef6f2;
}

.mg-join-split-grid {
  gap: 14px;
  padding: 0 22px 22px;
}

.mg-join-column {
  border-color: #e5e9e5;
  border-radius: 18px;
}

.mg-join-column__head {
  min-height: 58px;
  padding: 0 16px;
}

.mg-join-row-list a {
  min-height: 60px;
  border-top-color: #edf0ed;
}

.mg-quick-banner-grid {
  gap: 14px;
  padding: 0 28px 28px;
}

.mg-quick-banner-grid--icon a {
  min-height: 132px;
  border: 1px solid #e4e9e4;
  border-radius: 20px;
  background: #fbfcfb;
  box-shadow: 0 12px 30px rgba(16, 49, 41, 0.045);
}

.mg-quick-icon {
  background: #173f35;
  box-shadow: 0 14px 28px rgba(23, 63, 53, 0.16);
}

.mg-quick-banner-grid span {
  color: #b59a62;
}

.mg-quick-banner-grid strong {
  color: #102f28;
  font-size: 18px;
}

.mg-footer {
  margin-top: 46px;
  border-top: 1px solid #e5e9e5;
  background: #fff;
}

.mg-footer__inner {
  padding: 34px 0 38px;
}

.mg-footer__brand img {
  width: 106px;
  mix-blend-mode: multiply;
}

.mg-footer__brand p {
  display: none;
}

.mg-footer__links a {
  color: #202521;
  font-weight: 800;
}

.mg-footer__info p {
  color: #737a74;
  font-size: 13px;
}

.mg-footer__copy {
  color: #173f35 !important;
}

@media (max-width: 767px) {
  .migolf-user {
    background: #f6f7f5;
  }

  .mg-header {
    box-shadow: none;
  }

  .mg-header__bar {
    min-height: 60px;
  }

  .mg-logo {
    width: 108px;
    min-width: 108px;
  }

  .mg-logo img {
    width: 104px;
  }

  .mg-top-banner {
    padding: 10px 0 8px;
  }

  .mg-top-banner a,
  .mg-top-banner--large a {
    min-height: 76px;
    padding: 12px 15px;
    border-radius: 18px;
  }

  .mg-top-banner strong,
  .mg-top-banner--large strong {
    font-size: 17px;
  }

  .mg-top-banner em,
  .mg-top-banner--large em {
    display: none;
  }

  .mg-region-booking-final {
    border-radius: 20px;
  }

  .mg-section-strip {
    display: block;
    padding: 18px 14px 8px;
  }

  .mg-section-strip h2 {
    font-size: 21px;
  }

  .mg-section-strip span {
    display: none;
  }

  .mg-section-strip nav {
    gap: 7px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .mg-section-strip nav::-webkit-scrollbar {
    display: none;
  }

  .mg-section-strip nav a {
    min-height: 36px;
    padding: 0 13px;
    font-size: 12px;
  }

  .mg-region-booking-grid {
    padding: 8px 14px 16px;
  }

  .mg-region-booking-card {
    border-radius: 18px;
  }

  .mg-region-booking-card__head {
    padding: 15px 14px 10px;
  }

  .mg-region-booking-card__head h3 {
    font-size: 19px;
  }

  .mg-region-booking-card__head strong {
    font-size: 23px;
  }

  .mg-region-time-list {
    padding: 0 14px 14px;
  }

  .mg-region-time-item {
    grid-template-columns: 58px minmax(0, 1fr) 60px;
    gap: 6px 8px;
    min-height: 72px;
  }

  .mg-region-time-item b {
    font-size: 13px;
  }

  .mg-region-time-item a {
    min-width: 58px;
    min-height: 36px;
  }

  .mg-join-lower-section {
    margin: 0 14px 16px;
    border-radius: 18px;
  }

  .mg-block-title {
    padding: 17px 14px 12px;
  }

  .mg-join-date-tabs {
    padding: 0 14px 12px;
  }

  .mg-join-date-tabs button {
    min-height: 68px;
  }

  .mg-join-split-grid {
    padding: 0 14px 14px;
  }

  .mg-quick-banner-grid {
    gap: 10px;
    padding: 0 14px 18px;
  }

  .mg-quick-banner-grid--icon a {
    min-height: 112px;
    border-radius: 16px;
  }

  .mg-quick-banner-grid strong {
    font-size: 15px;
  }

  .mg-footer {
    margin-top: 34px;
  }
}

/* Join-transfer final pass: compact hero, filters, status board, and inquiry modal. */
.mg-main--join-redesign .mg-join-hero {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  min-height: 158px;
  border-radius: 20px;
}

.mg-main--join-redesign .mg-join-hero__copy {
  padding: 20px 0 20px 28px;
}

.mg-main--join-redesign .mg-join-hero__copy span {
  min-height: 24px;
  padding: 0 10px;
  font-size: 10px;
}

.mg-main--join-redesign .mg-join-hero__copy h1 {
  margin: 7px 0 0;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.15;
}

.mg-main--join-redesign .mg-join-hero__copy p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
}

.mg-main--join-redesign .mg-join-hero__actions {
  gap: 7px;
  margin-top: 10px;
}

.mg-main--join-redesign .mg-join-hero__actions a {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
}

.mg-main--join-redesign .mg-join-hero__visual {
  min-height: 158px;
}

.mg-main--join-redesign .mg-join-overview {
  gap: 14px;
}

.mg-main--join-redesign .mg-join-filter,
.mg-main--join-redesign .mg-join-region-board,
.mg-main--join-redesign .mg-join-list-section {
  border-radius: 18px;
}

.mg-main--join-redesign .mg-join-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
  padding: 16px;
}

.mg-main--join-redesign .mg-join-filter h2,
.mg-main--join-redesign .mg-join-filter button {
  grid-column: 1 / -1;
}

.mg-main--join-redesign .mg-join-filter h2 {
  font-size: 18px;
}

.mg-main--join-redesign .mg-join-filter label {
  gap: 4px;
}

.mg-main--join-redesign .mg-join-filter label span {
  font-size: 11px;
}

.mg-main--join-redesign .mg-join-filter select,
.mg-main--join-redesign .mg-join-filter input {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

.mg-main--join-redesign .mg-join-filter button {
  min-height: 40px;
  border-radius: 11px;
  font-size: 13px;
}

.mg-main--join-redesign .mg-join-region-board__head,
.mg-main--join-redesign .mg-join-list-head {
  padding: 14px 16px 11px;
}

.mg-main--join-redesign .mg-join-region-board h2,
.mg-main--join-redesign .mg-join-list-head h2 {
  font-size: 18px;
}

.mg-main--join-redesign .mg-join-region-board__head p {
  margin-top: 3px;
  font-size: 11px;
}

.mg-main--join-redesign .mg-join-board-tabs,
.mg-main--join-redesign .mg-join-list-tools {
  gap: 5px;
}

.mg-main--join-redesign .mg-join-board-tabs button,
.mg-main--join-redesign .mg-join-list-tools button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
}

.mg-main--join-redesign .mg-join-matrix {
  padding: 0 16px 14px;
}

.mg-main--join-redesign .mg-join-matrix table {
  min-width: 700px;
  border-radius: 13px;
}

.mg-main--join-redesign .mg-join-matrix th,
.mg-main--join-redesign .mg-join-matrix td {
  padding: 7px 8px;
}

.mg-main--join-redesign .mg-join-matrix thead th {
  font-size: 11px;
}

.mg-main--join-redesign .mg-join-matrix tbody th {
  font-size: 12px;
}

.mg-main--join-redesign .mg-join-matrix td strong {
  font-size: 15px;
}

.mg-main--join-redesign .mg-join-matrix td span {
  margin-top: 2px;
  font-size: 9px;
}

.mg-main--join-redesign .mg-join-list-head span {
  margin-bottom: 3px;
  font-size: 11px;
}

.mg-main--join-redesign .mg-join-list-table th,
.mg-main--join-redesign .mg-join-list-table td {
  padding: 10px 12px;
  font-size: 12px;
}

.mg-main--join-redesign .mg-join-list-table td .mg-join-inquiry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--mg-primary);
  border-radius: 9px;
  background: var(--mg-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.mg-main--join-redesign .mg-join-list-table td .mg-join-inquiry-button:hover {
  background: var(--mg-primary-dark);
}

body.mg-modal-open {
  overflow: hidden;
}

.mg-join-modal[hidden] {
  display: none;
}

.mg-join-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.mg-join-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 31, 0.48);
  backdrop-filter: blur(3px);
}

.mg-join-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(23, 63, 53, 0.13);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(16, 49, 41, 0.25);
}

.mg-join-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mg-border);
}

.mg-join-modal__eyebrow {
  color: var(--mg-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mg-join-modal__head h2 {
  margin: 6px 0 0;
  color: var(--mg-primary-dark);
  font-size: 22px;
}

.mg-join-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--mg-border);
  border-radius: 10px;
  background: #fff;
  color: var(--mg-primary-dark);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.mg-join-modal__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #f8fbf9;
}

.mg-join-modal__summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
}

.mg-join-modal__summary div:nth-child(2n) {
  border-right: 0;
}

.mg-join-modal__summary div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.mg-join-modal__summary span,
.mg-join-modal__manager span {
  color: var(--mg-muted);
  font-size: 11px;
  font-weight: 800;
}

.mg-join-modal__summary strong {
  min-width: 0;
  color: var(--mg-primary-dark);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mg-join-modal__notice {
  margin: 15px 0;
  color: var(--mg-muted);
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

.mg-join-modal__manager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--mg-blue-light);
}

.mg-join-modal__manager div {
  display: grid;
  gap: 3px;
}

.mg-join-modal__manager strong,
.mg-join-modal__manager b {
  color: var(--mg-blue);
  font-size: 14px;
}

.mg-join-modal__actions {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.mg-join-modal__actions button {
  min-height: 46px;
  border-radius: 11px;
  font-weight: 900;
}

.mg-join-modal__feedback {
  margin: 11px 0 0;
  color: #237b51;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 991px) {
  .mg-main--join-redesign .mg-join-hero {
    min-height: 150px;
  }

  .mg-main--join-redesign .mg-join-hero__visual {
    min-height: 150px;
  }
}

@media (max-width: 767px) {
  .mg-main--join-redesign .mg-join-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(110px, 0.92fr);
    min-height: 132px;
    border-radius: 16px;
  }

  .mg-main--join-redesign .mg-join-hero__copy {
    padding: 16px 0 16px 16px;
  }

  .mg-main--join-redesign .mg-join-hero__copy h1 {
    font-size: 20px;
  }

  .mg-main--join-redesign .mg-join-hero__copy p {
    display: none;
  }

  .mg-main--join-redesign .mg-join-hero__actions {
    display: flex;
    width: auto;
    margin-top: 9px;
  }

  .mg-main--join-redesign .mg-join-hero__actions a {
    min-height: 29px;
    padding: 0 9px;
    font-size: 10px;
  }

  .mg-main--join-redesign .mg-join-hero__visual {
    min-height: 132px;
  }

  .mg-main--join-redesign .mg-join-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
  }

  .mg-main--join-redesign .mg-join-filter h2 {
    font-size: 16px;
  }

  .mg-main--join-redesign .mg-join-filter select,
  .mg-main--join-redesign .mg-join-filter input {
    min-height: 36px;
    font-size: 11px;
  }

  .mg-main--join-redesign .mg-join-filter button {
    min-height: 38px;
  }

  .mg-main--join-redesign .mg-join-region-board__head,
  .mg-main--join-redesign .mg-join-list-head {
    padding: 13px 14px 10px;
  }

  .mg-main--join-redesign .mg-join-matrix {
    padding: 0 12px 12px;
  }

  .mg-main--join-redesign .mg-join-matrix th,
  .mg-main--join-redesign .mg-join-matrix td {
    padding: 6px 7px;
  }

  .mg-main--join-redesign .mg-join-matrix td strong {
    font-size: 14px;
  }

  .mg-main--join-redesign .mg-join-list-table {
    padding: 10px;
  }

  .mg-main--join-redesign .mg-join-list-table tbody {
    gap: 6px;
  }

  .mg-main--join-redesign .mg-join-list-table tr {
    padding: 10px;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(16, 49, 41, 0.04);
  }

  .mg-main--join-redesign .mg-join-list-table td {
    font-size: 11px;
  }

  .mg-main--join-redesign .mg-join-list-table td:nth-child(4) {
    font-size: 14px;
  }

  .mg-main--join-redesign .mg-join-list-table td:nth-child(6) {
    font-size: 13px;
  }

  .mg-main--join-redesign .mg-join-list-table td .mg-join-inquiry-button {
    min-width: 55px;
    min-height: 34px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 10px;
  }

  .mg-join-modal {
    align-items: end;
    padding: 10px;
  }

  .mg-join-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 18px 18px 12px 12px;
  }

  .mg-join-modal__head h2 {
    font-size: 19px;
  }

  .mg-join-modal__summary div {
    padding: 10px;
  }

  .mg-join-modal__summary strong {
    font-size: 12px;
  }

  .mg-join-modal__manager {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .mg-join-modal__manager b {
    font-size: 13px;
  }

  .mg-join-modal__actions {
    grid-template-columns: 1fr;
  }
}

/* Mobile color polish */
.mg-drawer {
  background:
    radial-gradient(circle at 18% 10%, rgba(246, 111, 155, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7f9f6 100%);
}

.mg-drawer__head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(227, 231, 227, 0.9);
}

.mg-drawer__head button {
  border-color: rgba(23, 63, 53, 0.12);
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 49, 41, 0.06);
}

.mg-drawer__nav {
  gap: 9px;
  padding-top: 2px;
}

.mg-drawer__nav a {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 13px 16px;
  border-color: rgba(227, 231, 227, 0.95);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(16, 49, 41, 0.045);
  overflow: hidden;
}

.mg-drawer__nav a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(23, 63, 53, 0.44);
  border-right: 2px solid rgba(23, 63, 53, 0.44);
  transform: rotate(45deg);
}

.mg-drawer__nav a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}

.mg-drawer__nav a.is-active {
  border-color: rgba(23, 63, 53, 0.22);
  background: linear-gradient(135deg, #173f35, #0d5c4f);
}

.mg-drawer__nav a.is-active::before {
  background: #f66f9b;
}

.mg-drawer__nav a.is-active::after {
  border-color: rgba(255, 255, 255, 0.72);
}

.mg-drawer__nav a.is-active strong,
.mg-drawer__nav a.is-active span {
  color: #fff;
}

.mg-drawer__nav strong,
.mg-drawer__nav span {
  grid-column: 1;
  word-break: keep-all;
}

.mg-drawer__nav strong {
  font-size: 16px;
}

.mg-drawer__nav span {
  font-size: 12px;
}

.mg-status--join {
  background: #e8f2ff;
  color: #2364aa;
}

.mg-status--transfer {
  background: #eaf7ec;
  color: #248443;
}

.mg-status--invite {
  background: #fff1dc;
  color: #d66b20;
}

.mg-region-time-item a,
.mg-time-row a {
  background: linear-gradient(135deg, #173f35, #0c6657);
}

.mg-region-booking-card:nth-child(1) .mg-region-booking-card__head span {
  background: #eaf2ee;
  color: #173f35;
}

.mg-region-booking-card:nth-child(2) .mg-region-booking-card__head span {
  background: #eef3ff;
  color: #2364aa;
}

.mg-region-booking-card:nth-child(3) .mg-region-booking-card__head span {
  background: #fff4df;
  color: #b36a12;
}

.mg-region-booking-card:nth-child(4) .mg-region-booking-card__head span {
  background: #f3eefc;
  color: #6a4bb5;
}

.mg-quick-banner-grid--icon a:nth-child(1) .mg-quick-icon {
  background: linear-gradient(135deg, #173f35, #0b6758);
}

.mg-quick-banner-grid--icon a:nth-child(2) .mg-quick-icon {
  background: linear-gradient(135deg, #2364aa, #26a7b8);
}

.mg-quick-banner-grid--icon a:nth-child(3) .mg-quick-icon {
  background: linear-gradient(135deg, #9a6b1f, #d89d37);
}

.mg-quick-banner-grid--icon a:nth-child(4) .mg-quick-icon {
  background: linear-gradient(135deg, #f66f9b, #173f35);
}

.mg-quick-banner-grid--icon a:nth-child(1) {
  background: linear-gradient(135deg, #ffffff, #f1f7f4);
}

.mg-quick-banner-grid--icon a:nth-child(2) {
  background: linear-gradient(135deg, #ffffff, #f0f7ff);
}

.mg-quick-banner-grid--icon a:nth-child(3) {
  background: linear-gradient(135deg, #ffffff, #fff8eb);
}

.mg-quick-banner-grid--icon a:nth-child(4) {
  background: linear-gradient(135deg, #ffffff, #fff3f7);
}

@media (max-width: 767px) {
  .mg-drawer {
    width: min(360px, calc(100% - 28px));
    padding: 18px;
    border-radius: 22px 0 0 22px;
  }

  .mg-drawer__head img {
    width: 112px;
  }

  .mg-top-banner a,
  .mg-top-banner--large a {
    background:
      linear-gradient(110deg, rgba(246, 111, 155, 0.22), transparent 42%),
      linear-gradient(135deg, #143d34, #0b5e50);
  }

  .mg-section-strip nav a.is-active {
    background: linear-gradient(135deg, #173f35, #0b6658);
    box-shadow: 0 10px 18px rgba(23, 63, 53, 0.14);
  }

  .mg-join-row-list a {
    gap: 8px;
  }

  .mg-join-row-list b {
    color: #123f35;
  }

  .mg-quick-banner-grid {
    grid-template-columns: 1fr;
  }

  .mg-quick-banner-grid--icon a {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 82px;
    padding: 15px;
    gap: 12px;
    border-radius: 18px;
  }

  .mg-quick-banner-grid--icon a::after {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid rgba(23, 63, 53, 0.42);
    border-right: 2px solid rgba(23, 63, 53, 0.42);
    transform: rotate(45deg);
  }

  .mg-quick-icon {
    grid-row: 1 / span 3;
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .mg-quick-banner-grid--icon span,
  .mg-quick-banner-grid--icon strong,
  .mg-quick-banner-grid--icon em {
    grid-column: 2;
    word-break: keep-all;
  }

  .mg-quick-banner-grid--icon span {
    font-size: 12px;
  }

  .mg-quick-banner-grid--icon strong {
    font-size: 16px;
    line-height: 1.2;
  }

  .mg-quick-banner-grid--icon em {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .mg-drawer {
    width: min(338px, calc(100% - 20px));
    padding: 16px;
  }

  .mg-drawer__nav a {
    min-height: 58px;
    padding: 12px 14px;
  }

  .mg-quick-banner-grid--icon a {
    min-height: 78px;
  }
}

/* Premium color detail pass */
.migolf-user {
  background:
    radial-gradient(circle at 12% 120px, rgba(246, 111, 155, 0.08), transparent 260px),
    radial-gradient(circle at 88% 360px, rgba(35, 100, 170, 0.08), transparent 280px),
    linear-gradient(180deg, #ffffff 0, #f7f8f6 280px, #f4f7f4 100%);
}

.mg-section-strip {
  background:
    radial-gradient(circle at 94% 20%, rgba(246, 111, 155, 0.08), transparent 220px),
    linear-gradient(180deg, #ffffff, #fbfcfb);
}

.mg-section-strip h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mg-section-strip h2::before {
  content: "";
  width: 10px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f66f9b, #b59a62 48%, #173f35);
  box-shadow: 0 8px 18px rgba(246, 111, 155, 0.18);
}

.mg-section-strip nav a:nth-child(2) {
  background: #f1f8f4;
}

.mg-section-strip nav a:nth-child(3) {
  background: #f2f6ff;
}

.mg-section-strip nav a:nth-child(4) {
  background: #fff7e8;
}

.mg-section-strip nav a:nth-child(5) {
  background: #f5f1ff;
}

.mg-region-booking-card {
  position: relative;
}

.mg-region-booking-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: #173f35;
}

.mg-region-booking-card:nth-child(1) {
  border-color: rgba(23, 63, 53, 0.16);
  background:
    linear-gradient(180deg, rgba(234, 242, 238, 0.58), #ffffff 118px);
}

.mg-region-booking-card:nth-child(2) {
  border-color: rgba(35, 100, 170, 0.16);
  background:
    linear-gradient(180deg, rgba(238, 243, 255, 0.76), #ffffff 118px);
}

.mg-region-booking-card:nth-child(3) {
  border-color: rgba(181, 154, 98, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 244, 223, 0.78), #ffffff 118px);
}

.mg-region-booking-card:nth-child(4) {
  border-color: rgba(106, 75, 181, 0.16);
  background:
    linear-gradient(180deg, rgba(243, 238, 252, 0.72), #ffffff 118px);
}

.mg-region-booking-card:nth-child(1)::before {
  background: linear-gradient(90deg, #173f35, #28a36f);
}

.mg-region-booking-card:nth-child(2)::before {
  background: linear-gradient(90deg, #2364aa, #28b7c7);
}

.mg-region-booking-card:nth-child(3)::before {
  background: linear-gradient(90deg, #b59a62, #e5aa38);
}

.mg-region-booking-card:nth-child(4)::before {
  background: linear-gradient(90deg, #6a4bb5, #f66f9b);
}

.mg-region-booking-card__head {
  position: relative;
  overflow: hidden;
}

.mg-region-booking-card__head::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 0.22;
  background: currentColor;
}

.mg-region-booking-card:nth-child(1) .mg-region-booking-card__head {
  color: #173f35;
}

.mg-region-booking-card:nth-child(2) .mg-region-booking-card__head {
  color: #2364aa;
}

.mg-region-booking-card:nth-child(3) .mg-region-booking-card__head {
  color: #b36a12;
}

.mg-region-booking-card:nth-child(4) .mg-region-booking-card__head {
  color: #6a4bb5;
}

.mg-region-booking-card:nth-child(2) .mg-region-booking-card__head strong {
  color: #2364aa;
}

.mg-region-booking-card:nth-child(3) .mg-region-booking-card__head strong {
  color: #9a6b1f;
}

.mg-region-booking-card:nth-child(4) .mg-region-booking-card__head strong {
  color: #6a4bb5;
}

.mg-region-time-item time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 34px;
  border-radius: 12px;
  background: #eef6f2;
}

.mg-region-booking-card:nth-child(1) .mg-region-time-item time {
  background: #eaf5ef;
  color: #116045;
}

.mg-region-booking-card:nth-child(2) .mg-region-time-item time {
  background: #eef5ff;
  color: #2364aa;
}

.mg-region-booking-card:nth-child(3) .mg-region-time-item time {
  background: #fff4df;
  color: #a76613;
}

.mg-region-booking-card:nth-child(4) .mg-region-time-item time {
  background: #f3eefc;
  color: #6a4bb5;
}

.mg-region-booking-more a {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 249, 247, 0.95));
}

.mg-join-lower-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(35, 100, 170, 0.06), transparent 260px),
    radial-gradient(circle at 92% 88%, rgba(246, 111, 155, 0.06), transparent 250px),
    #ffffff;
}

.mg-block-title h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mg-block-title h3::before {
  content: "";
  width: 9px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2364aa, #f66f9b);
}

.mg-join-date-tabs button {
  position: relative;
  overflow: hidden;
}

.mg-join-date-tabs button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: rgba(23, 63, 53, 0.16);
}

.mg-join-date-tabs button:nth-child(1)::before,
.mg-join-date-tabs button:nth-child(7)::before {
  background: #2364aa;
}

.mg-join-date-tabs button:nth-child(2)::before {
  background: #f66f9b;
}

.mg-join-date-tabs button:nth-child(4)::before {
  background: #b59a62;
}

.mg-join-date-tabs button.is-active {
  background:
    linear-gradient(135deg, rgba(23, 63, 53, 0.09), rgba(246, 111, 155, 0.055)),
    #ffffff;
}

.mg-join-column {
  position: relative;
  overflow: hidden;
}

.mg-join-column::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
}

.mg-join-column:nth-child(1) {
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.64), #ffffff 94px);
}

.mg-join-column:nth-child(1)::before {
  background: linear-gradient(90deg, #2364aa, #2fb6c4);
}

.mg-join-column:nth-child(2) {
  background: linear-gradient(180deg, rgba(234, 247, 236, 0.72), #ffffff 94px);
}

.mg-join-column:nth-child(2)::before {
  background: linear-gradient(90deg, #248443, #b59a62);
}

.mg-join-column:nth-child(1) .mg-join-column__head span {
  background: #e8f2ff;
  color: #2364aa;
}

.mg-join-column:nth-child(2) .mg-join-column__head span {
  background: #eaf7ec;
  color: #248443;
}

.mg-join-row-list a {
  position: relative;
}

.mg-join-row-list a::before {
  content: "";
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: #dfe8e2;
}

.mg-join-column:nth-child(1) .mg-join-row-list a::before {
  background: linear-gradient(180deg, #2364aa, #9ec8ff);
}

.mg-join-column:nth-child(2) .mg-join-row-list a::before {
  background: linear-gradient(180deg, #248443, #b59a62);
}

.mg-join-row-list a {
  grid-template-columns: 4px auto minmax(0, 1fr) auto;
}

.mg-quick-banner-grid--icon a {
  border-color: rgba(227, 231, 227, 0.78);
}

.mg-footer {
  background:
    linear-gradient(180deg, #ffffff, #fbfcfb);
}

@media (max-width: 767px) {
  .mg-region-booking-card::before {
    height: 4px;
  }

  .mg-region-booking-card__head::after {
    top: 14px;
    right: 58px;
    width: 34px;
    height: 34px;
  }

  .mg-region-time-item time {
    width: 54px;
    min-height: 32px;
    font-size: 14px;
  }

  .mg-join-row-list a {
    grid-template-columns: 4px auto minmax(0, 1fr) auto;
  }

  .mg-join-row-list a::before {
    grid-row: 1 / span 2;
  }

  .mg-quick-banner-grid--icon a {
    box-shadow: 0 14px 28px rgba(16, 49, 41, 0.07);
  }
}

/* Typography and spacing refinement */
.mg-top-banner {
  padding-bottom: 0;
}

.mg-main {
  padding-top: 16px;
}

.mg-region-booking-final {
  border-radius: 24px;
}

.mg-section-strip {
  padding-top: 22px;
}

.mg-region-booking-card__head {
  min-height: 92px;
  padding: 17px 18px 12px;
}

.mg-region-booking-card__head::after {
  display: none;
}

.mg-region-booking-card__head h3 {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.mg-region-booking-card__head p {
  display: none;
}

.mg-region-booking-card__head strong {
  padding: 5px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.mg-region-booking-card__head span {
  min-height: 25px;
  font-size: 11px;
}

.mg-region-time-item strong {
  font-size: 14px;
  font-weight: 850;
}

.mg-region-time-item span {
  font-size: 11px;
}

.mg-region-time-item b {
  font-size: 14px;
}

.mg-region-time-item a {
  min-height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.mg-region-booking-more a {
  min-height: 40px;
  font-size: 13px;
}

.mg-join-lower-section {
  margin-top: -4px;
}

.mg-block-title h3,
.mg-section-strip h2 {
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .mg-top-banner {
    padding-bottom: 4px;
  }

  .mg-main {
    padding-top: 8px;
  }

  .mg-region-booking-final {
    border-radius: 18px;
  }

  .mg-section-strip {
    padding-top: 15px;
  }

  .mg-region-booking-card__head {
    min-height: 82px;
    padding: 14px 14px 10px;
  }

  .mg-region-booking-card__head h3 {
    font-size: 17px;
  }

  .mg-region-booking-card__head strong {
    padding: 5px 9px;
    font-size: 20px;
  }

  .mg-region-time-item strong {
    font-size: 13px;
  }

  .mg-region-time-item span {
    font-size: 10px;
  }
}

/* Refined font and compact region header */
body {
  font-family: "Pretendard Variable", Pretendard, SUIT, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI Variable", "Segoe UI", "Malgun Gothic", sans-serif;
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.mg-nav a,
.mg-header-login,
.mg-header-join,
.mg-section-strip nav a,
.mg-region-booking-more a,
.mg-quick-banner-grid em {
  font-weight: 760;
}

.mg-region-booking-card__head {
  min-height: 76px;
  align-items: center;
}

.mg-region-booking-card__head div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mg-region-booking-card__head h3 {
  min-width: 0;
  margin: 0;
  color: #172721;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.mg-region-booking-card__head span {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 780;
}

.mg-region-booking-card__head strong {
  flex: 0 0 auto;
  padding: 4px 9px;
  font-size: 20px;
  font-weight: 820;
}

.mg-region-time-item strong {
  font-weight: 760;
}

.mg-region-time-item b {
  font-weight: 780;
}

.mg-block-title h3,
.mg-section-strip h2 {
  font-weight: 820;
}

.mg-join-column__head h4,
.mg-quick-banner-grid strong {
  font-weight: 820;
}

@media (max-width: 767px) {
  .mg-region-booking-card__head {
    min-height: 68px;
    padding: 13px 14px 9px;
  }

  .mg-region-booking-card__head div {
    gap: 7px;
  }

  .mg-region-booking-card__head h3 {
    font-size: 14px;
  }

  .mg-region-booking-card__head span {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .mg-region-booking-card__head strong {
    padding: 4px 8px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .mg-region-booking-card__head h3 {
    font-size: 13px;
  }

  .mg-region-booking-card__head span {
    padding: 0 7px;
  }
}

/* Slightly taller main cards and join promo banner */
.mg-region-booking-grid {
  padding-bottom: 18px;
}

.mg-region-booking-card__head {
  min-height: 84px;
  padding-top: 19px;
  padding-bottom: 15px;
}

.mg-region-time-list {
  padding-top: 5px;
  padding-bottom: 19px;
}

.mg-region-time-item {
  min-height: 62px;
}

.mg-region-booking-more {
  padding-bottom: 20px;
}

.mg-join-promo-banner {
  padding: 0 28px 22px;
}

.mg-join-promo-banner a {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 0 22px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 50%, rgba(246, 111, 155, 0.36), transparent 210px),
    linear-gradient(105deg, #173f35 0%, #0f5d50 55%, #2364aa 100%);
  box-shadow: 0 18px 34px rgba(16, 49, 41, 0.14);
}

.mg-join-promo-banner a::after {
  content: "";
  position: absolute;
  inset: auto 18px -38px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.mg-join-promo-banner span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffe8a9;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.mg-join-promo-banner strong {
  position: relative;
  z-index: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
}

.mg-join-promo-banner em {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.mg-join-lower-section {
  margin-top: 0;
}

@media (max-width: 767px) {
  .mg-region-booking-grid {
    padding-bottom: 12px;
  }

  .mg-region-booking-card__head {
    min-height: 74px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .mg-region-time-list {
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .mg-region-time-item {
    min-height: 74px;
  }

  .mg-region-booking-more {
    padding-bottom: 16px;
  }

  .mg-join-promo-banner {
    padding: 0 14px 14px;
  }

  .mg-join-promo-banner a {
    grid-template-columns: 1fr auto;
    gap: 7px 10px;
    min-height: 78px;
    padding: 13px 15px;
    border-radius: 17px;
  }

  .mg-join-promo-banner span {
    grid-column: 1;
    justify-self: start;
    min-height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mg-join-promo-banner strong {
    grid-column: 1;
    font-size: 14px;
  }

  .mg-join-promo-banner em {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }
}

/* Realtime booking submain */
.mg-realtime-submain {
  border: 1px solid rgba(224, 229, 224, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(16, 49, 41, 0.08);
  overflow: hidden;
}

.mg-realtime-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 30px 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(35, 100, 170, 0.12), transparent 250px),
    radial-gradient(circle at 12% 0%, rgba(246, 111, 155, 0.10), transparent 260px),
    linear-gradient(180deg, #ffffff, #fbfcfb);
}

.mg-realtime-hero span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eaf2ee;
  color: #173f35;
  font-size: 12px;
  font-weight: 820;
}

.mg-realtime-hero h1 {
  margin: 12px 0 5px;
  color: #102f28;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.mg-realtime-hero p {
  margin: 0;
  color: #737b74;
  font-size: 15px;
  font-weight: 650;
}

.mg-realtime-summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 4px 10px;
  min-width: 220px;
  padding: 17px 18px;
  border: 1px solid rgba(227, 231, 227, 0.86);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(16, 49, 41, 0.06);
}

.mg-realtime-summary strong {
  color: #173f35;
  font-size: 28px;
  line-height: 1;
}

.mg-realtime-summary span {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #737b74;
  font-size: 13px;
  font-weight: 760;
}

.mg-realtime-filter {
  display: grid;
  grid-template-columns: 190px 190px minmax(0, 1fr) 150px;
  gap: 10px;
  margin: 30px 30px 14px;
  padding: 16px;
  border: 1px solid rgba(227, 231, 227, 0.92);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(246, 111, 155, 0.09), transparent 260px),
    radial-gradient(circle at 100% 0, rgba(35, 100, 170, 0.08), transparent 240px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 248, 0.88)),
    #fff;
  box-shadow: 0 16px 40px rgba(16, 49, 41, 0.06);
}

.mg-realtime-filter label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mg-realtime-filter label span {
  color: #667069;
  font-size: 12px;
  font-weight: 820;
}

.mg-realtime-filter button,
.mg-realtime-filter input,
.mg-realtime-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dde5df;
  border-radius: 14px;
  background: #fff;
  color: #202521;
  font-size: 14px;
  font-weight: 760;
}

.mg-realtime-filter input {
  padding: 0 15px;
  outline: none;
}

.mg-realtime-search {
  align-self: end;
  border-color: #103129;
  background: linear-gradient(135deg, #173f35, #0a6f60);
  color: #fff;
  box-shadow: 0 14px 26px rgba(23, 63, 53, 0.18);
}

.mg-realtime-sortbar {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin: 0 30px 18px;
  padding: 13px;
  border: 1px solid rgba(219, 229, 222, 0.92);
  border-radius: 20px;
  background:
    radial-gradient(circle at 3% 50%, rgba(181, 154, 98, 0.14), transparent 140px),
    linear-gradient(135deg, #ffffff, #f7faf8);
}

.mg-sortbar-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mg-sortbar-title strong {
  color: #102f28;
  font-size: 15px;
  font-weight: 900;
}

.mg-sortbar-title span {
  color: #78817a;
  font-size: 12px;
  font-weight: 650;
}

.mg-realtime-region-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mg-realtime-region-tabs::-webkit-scrollbar {
  display: none;
}

.mg-realtime-region-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px 0 15px;
  border: 1px solid #dde6df;
  border-radius: 14px;
  background: #fff;
  color: #313832;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 49, 41, 0.035);
}

.mg-realtime-region-tabs a span {
  display: inline-flex;
}

.mg-realtime-region-tabs a em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(23, 63, 53, 0.08);
  color: #173f35;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.mg-realtime-region-tabs a:nth-child(2) {
  background: #f1f8f4;
}

.mg-realtime-region-tabs a:nth-child(3) {
  background: #f2f6ff;
}

.mg-realtime-region-tabs a:nth-child(4) {
  background: #fff1f5;
}

.mg-realtime-region-tabs a:nth-child(5) {
  background: #fff7e8;
}

.mg-realtime-region-tabs a:nth-child(6) {
  background: #f5f1ff;
}

.mg-realtime-region-tabs a:nth-child(7) {
  background: #eef9fb;
}

.mg-realtime-region-tabs a.is-active {
  border-color: #173f35;
  background: #173f35;
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 63, 53, 0.16);
}

.mg-realtime-region-tabs a.is-active em {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.mg-realtime-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 30px 18px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 50%, rgba(246, 111, 155, 0.18), transparent 180px),
    linear-gradient(105deg, #173f35, #0e5b4e 64%, #2364aa);
  color: #fff;
}

.mg-realtime-notice span,
.mg-realtime-notice em {
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.mg-realtime-notice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe8a9;
}

.mg-realtime-notice strong {
  min-width: 0;
  font-size: 15px;
  font-weight: 760;
}

.mg-course-detail-page {
  border: 1px solid rgba(224, 229, 224, 0.92);
  border-radius: 28px;
  padding: 26px;
  background:
    radial-gradient(circle at 8% 0, rgba(246, 111, 155, 0.08), transparent 260px),
    radial-gradient(circle at 100% 8%, rgba(35, 100, 170, 0.08), transparent 280px),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(16, 49, 41, 0.08);
  overflow: hidden;
}

.mg-detail-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid #e4e9e4;
  background:
    radial-gradient(circle at 0 0, rgba(246, 111, 155, 0.09), transparent 260px),
    radial-gradient(circle at 100% 0, rgba(35, 100, 170, 0.08), transparent 250px),
    linear-gradient(180deg, #ffffff, #fbfdfb);
}

.mg-detail-page-toolbar > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dce7df;
  border-radius: 12px;
  background: #fff;
  color: #173f35;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.mg-detail-page-toolbar div {
  display: grid;
  gap: 5px;
  text-align: right;
}

.mg-detail-page-toolbar span {
  color: #b59a62;
  font-size: 12px;
  font-weight: 900;
}

.mg-detail-page-toolbar strong {
  color: #102f28;
  font-size: 22px;
  line-height: 1.2;
}

.mg-course-detail-page .mg-course-detail {
  margin: 0;
  border: 1px solid #dfe8e1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(16, 49, 41, 0.06);
}

.mg-availability-panel {
  margin: 0 30px 30px;
  border: 1px solid #dce7df;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(16, 49, 41, 0.075);
}

.mg-availability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #edf0ed;
  background:
    radial-gradient(circle at 0 10%, rgba(35, 100, 170, 0.08), transparent 220px),
    linear-gradient(180deg, #ffffff, #fbfdfb);
}

.mg-availability-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #102f28;
  font-size: 23px;
  line-height: 1.2;
}

.mg-availability-head h2::before {
  content: "";
  width: 9px;
  height: 23px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f66f9b, #2364aa);
}

.mg-availability-head p {
  margin: 5px 0 0;
  color: #737b74;
  font-size: 13px;
  font-weight: 650;
}

.mg-availability-actions {
  display: flex;
  gap: 8px;
}

.mg-availability-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #e4e9e4;
  border-radius: 12px;
  background: #fff;
  color: #173f35;
  font-size: 13px;
  font-weight: 820;
}

.mg-availability-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}

.mg-availability-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.mg-availability-table th,
.mg-availability-table td {
  min-height: 54px;
  padding: 11px 7px;
  border-bottom: 1px solid #edf0ed;
  border-right: 1px solid #f0f2f0;
  text-align: center;
  vertical-align: middle;
}

.mg-availability-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbf9;
  color: #333b35;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 820;
}

.mg-availability-table thead th.is-sat {
  color: #2364aa;
}

.mg-availability-table thead th.is-sun {
  color: #c94a4a;
}

.mg-availability-table tbody tr:nth-child(even) {
  background: #fcfdfc;
}

.mg-availability-table tbody tr:hover {
  background: #f7fbf8;
}

.mg-availability-table tbody tr.is-hidden-by-region {
  display: none !important;
}

.mg-availability-table .mg-course-col {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 205px;
  min-width: 205px;
  background: #fff;
  text-align: left;
  box-shadow: 1px 0 0 #edf0ed;
}

.mg-availability-table tbody tr:nth-child(even) .mg-course-col {
  background: #fbfcfb;
}

.mg-availability-table .mg-course-col span {
  display: block;
  color: #102f28;
  font-size: 14.5px;
  font-weight: 820;
}

.mg-availability-table .mg-course-col em {
  display: block;
  margin-top: 3px;
  color: #8b928c;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.mg-availability-table td[data-label="지역"] {
  display: none;
}

.mg-availability-table th:nth-child(3),
.mg-availability-table td[data-label="지역"] {
  display: none;
}

.mg-calendar-col,
.mg-calendar-cell {
  width: 58px;
  min-width: 58px;
}

.mg-calendar-cell {
  background: #fff;
}

.mg-calendar-button {
  display: inline-grid;
  place-items: center;
  gap: 3px;
  width: 40px;
  height: 40px;
  border: 1px solid #dce7df;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #f6faf7);
  color: #173f35;
  box-shadow: 0 7px 16px rgba(16, 49, 41, 0.06);
  cursor: pointer;
}

.mg-calendar-button span {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.mg-calendar-button span::before,
.mg-calendar-button span::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.mg-calendar-button span::before {
  left: 3px;
}

.mg-calendar-button span::after {
  right: 3px;
}

.mg-calendar-button em {
  font-size: 0;
  font-style: normal;
}

.mg-availability-table thead th:not(.mg-course-col):not(.mg-calendar-col):not(:nth-child(3)) {
  width: 58px;
}

.mg-region-divider td {
  position: sticky;
  left: 0;
  z-index: 4;
  padding: 13px 16px !important;
  border-right: 0 !important;
  border-bottom: 1px solid #dfe8e1 !important;
  background:
    linear-gradient(90deg, rgba(23, 63, 53, 0.08), rgba(255, 255, 255, 0.95) 46%),
    #f8fbf9;
  text-align: left !important;
}

.mg-region-divider__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mg-region-divider strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #102f28;
  font-size: 15px;
  font-weight: 920;
}

.mg-region-divider strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f66f9b, #173f35);
}

.mg-region-divider span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 10px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(23, 63, 53, 0.08);
  color: #476057;
  font-size: 12px;
  font-weight: 820;
}

.mg-region-divider__actions {
  display: inline-flex;
  gap: 7px;
}

.mg-region-divider__actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce7df;
  border-radius: 11px;
  background: #fff;
  color: #173f35;
  font-size: 12px;
  font-weight: 840;
}

.mg-availability-table tbody tr.is-detail-open {
  background: #f8fbf9;
}

.mg-course-detail-row td {
  padding: 0 !important;
  border-right: 0 !important;
  background: #fff !important;
}

.mg-course-detail {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid #dfe8e1;
  background:
    radial-gradient(circle at 0 0, rgba(246, 111, 155, 0.08), transparent 240px),
    radial-gradient(circle at 100% 10%, rgba(35, 100, 170, 0.08), transparent 260px),
    linear-gradient(180deg, #ffffff, #fbfdfb);
}

.mg-course-profile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.mg-course-visual {
  position: relative;
  min-height: 236px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(23, 63, 53, 0.18), rgba(35, 100, 170, 0.12)),
    linear-gradient(135deg, #d9eadf, #f7f4df 48%, #b9d7c3);
  box-shadow:
    inset 0 0 0 1px rgba(23, 63, 53, 0.08),
    0 18px 36px rgba(16, 49, 41, 0.09);
  overflow: hidden;
}

.mg-course-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.mg-course-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(16, 49, 41, 0.16));
  pointer-events: none;
}

.mg-course-copy {
  align-self: center;
  min-width: 0;
}

.mg-course-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf2ee;
  color: #173f35;
  font-size: 12px;
  font-weight: 850;
}

.mg-course-copy h3 {
  margin: 10px 0 12px;
  color: #102f28;
  font-size: 30px;
  line-height: 1.15;
}

.mg-course-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 0;
}

.mg-course-copy dl div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  color: #626b65;
  font-size: 13px;
  line-height: 1.45;
}

.mg-course-copy dt {
  color: #173f35;
  font-weight: 850;
}

.mg-course-copy dd {
  margin: 0;
}

.mg-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  border: 1px solid #dce7df;
  border-radius: 12px;
  background: #fff;
  color: #173f35;
  font-size: 13px;
  font-weight: 830;
  text-decoration: none;
}

.mg-detail-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #dfe8e1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.mg-detail-date {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 10px 8px;
  border: 0;
  border-right: 1px solid #edf0ed;
  border-bottom: 1px solid #edf0ed;
  background: #fff;
  color: #202521;
  text-align: center;
}

.mg-detail-date:nth-child(7n) {
  border-right: 0;
}

.mg-detail-date strong {
  color: #102f28;
  font-size: 12px;
  line-height: 1.2;
}

.mg-detail-date span {
  justify-self: center;
  min-width: 38px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9a900;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mg-detail-date em {
  color: #173f35;
  font-size: 15px;
  font-style: normal;
  font-weight: 820;
}

.mg-detail-date.is-active {
  background: #173f35;
}

.mg-detail-date.is-active strong,
.mg-detail-date.is-active em {
  color: #fff;
}

.mg-detail-date.is-empty {
  color: #a6aca7;
  background: #f6f7f5;
}

.mg-detail-date.is-empty span {
  background: #d9ded9;
}

.mg-detail-times {
  border: 1px solid #dfe8e1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.mg-detail-times__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fbf9;
  border-bottom: 1px solid #edf0ed;
}

.mg-detail-times__head strong {
  color: #102f28;
  font-size: 16px;
}

.mg-detail-times__head span {
  color: #6f756f;
  font-size: 12px;
  font-weight: 720;
}

.mg-course-detail .mg-time-row {
  display: grid;
  grid-template-columns: 96px 90px minmax(115px, 1fr) 76px 62px 92px minmax(190px, 1.3fr) 64px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0ed;
  color: #5f6862;
  font-size: 13px;
}

.mg-course-detail .mg-time-row:last-child {
  border-bottom: 0;
}

.mg-course-detail .mg-time-row strong {
  color: #102f28;
  font-size: 13px;
}

.mg-course-detail .mg-time-row b {
  color: #173f35;
  font-size: 14px;
}

.mg-course-detail .mg-time-row em {
  color: #ff3b30;
  font-style: normal;
  font-weight: 900;
}

.mg-course-detail .mg-time-row p {
  margin: 0;
  color: #ff3b30;
  font-weight: 760;
}

.mg-course-detail .mg-time-row button,
.mg-course-detail .mg-time-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #173f35;
  border-radius: 10px;
  background: #173f35;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.mg-time-empty {
  padding: 22px;
  color: #737b74;
  font-size: 14px;
  text-align: center;
}

.mg-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  min-height: 31px;
  border-radius: 12px;
  background: #eef6f2;
  color: #173f35;
  font-size: 13px;
  font-weight: 860;
  box-shadow:
    inset 0 0 0 1px rgba(23, 63, 53, 0.04),
    0 5px 12px rgba(16, 49, 41, 0.035);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mg-count:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(23, 63, 53, 0.08),
    0 8px 16px rgba(16, 49, 41, 0.08);
}

.mg-count.is-hot {
  background: #fff1dc;
  color: #d66b20;
}

.mg-count.is-empty {
  background: #f1f3f1;
  color: #b1b8b1;
}

@media (max-width: 767px) {
  .mg-realtime-submain {
    border-radius: 18px;
  }

  .mg-realtime-hero {
    display: block;
    padding: 20px 14px 14px;
  }

  .mg-realtime-hero h1 {
    margin-top: 10px;
    font-size: 25px;
  }

  .mg-realtime-hero p {
    font-size: 13px;
  }

  .mg-realtime-summary {
    grid-template-columns: auto auto auto auto;
    min-width: 0;
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 16px;
  }

  .mg-realtime-summary strong {
    font-size: 23px;
  }

  .mg-realtime-filter {
    grid-template-columns: 1fr;
    margin: 16px 14px 12px;
    padding: 10px;
    border-radius: 18px;
  }

  .mg-realtime-filter label {
    gap: 5px;
  }

  .mg-realtime-filter label span {
    display: none;
  }

  .mg-realtime-filter button,
  .mg-realtime-filter input,
  .mg-realtime-search {
    min-height: 46px;
    border-radius: 13px;
  }

  .mg-realtime-sortbar {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 14px 12px;
    padding: 11px;
    border-radius: 18px;
  }

  .mg-sortbar-title {
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }

  .mg-sortbar-title strong {
    font-size: 14px;
  }

  .mg-sortbar-title span {
    font-size: 11px;
  }

  .mg-realtime-region-tabs {
    padding: 0;
  }

  .mg-realtime-region-tabs a {
    min-height: 38px;
    padding: 0 10px 0 12px;
    border-radius: 13px;
    font-size: 12px;
  }

  .mg-realtime-region-tabs a em {
    min-width: 25px;
    height: 22px;
    padding: 0 6px;
    font-size: 11px;
  }

  .mg-realtime-notice {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    margin: 0 14px 14px;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .mg-realtime-notice span {
    grid-column: 1;
    justify-self: start;
    min-height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mg-realtime-notice strong {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .mg-realtime-notice em {
    grid-column: 2;
    grid-row: 1;
    font-size: 11px;
  }

  .mg-course-detail-page {
    border-radius: 18px;
    padding: 12px;
  }

  .mg-top-banner a,
  .mg-top-banner--large a {
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100% - 28px);
    min-height: 74px;
    gap: 10px;
  }

  .mg-top-banner span,
  .mg-top-banner--large span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .mg-top-banner strong,
  .mg-top-banner--large strong {
    min-width: 0;
    font-size: 16px;
  }

  .mg-top-banner em,
  .mg-top-banner b,
  .mg-top-banner--large em,
  .mg-top-banner--large b {
    display: none;
  }

  .mg-detail-page-toolbar {
    padding: 15px 14px;
  }

  .mg-detail-page-toolbar > a {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  .mg-detail-page-toolbar strong {
    font-size: 18px;
  }

  .mg-course-detail-page .mg-course-detail {
    margin: 0;
    border-radius: 18px;
  }

  .mg-availability-panel {
    margin: 0 14px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .mg-availability-head {
    display: block;
    padding: 0 0 12px;
    border-bottom: 0;
  }

  .mg-availability-head h2 {
    font-size: 19px;
  }

  .mg-availability-head p {
    display: none;
  }

  .mg-availability-actions {
    margin-top: 10px;
  }

  .mg-availability-actions button {
    flex: 1;
    min-height: 38px;
  }

  .mg-availability-table-wrap {
    overflow: visible;
  }

  .mg-availability-table,
  .mg-availability-table tbody,
  .mg-availability-table tr {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .mg-availability-table thead {
    display: none;
  }

  .mg-availability-table tbody {
    display: grid;
    gap: 12px;
  }

  .mg-availability-table tr {
    position: relative;
    padding: 14px 12px 12px;
    border: 1px solid #e4e9e4;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(234, 242, 238, 0.52), #fff 84px);
    box-shadow: 0 12px 28px rgba(16, 49, 41, 0.055);
  }

  .mg-availability-table tr.mg-region-divider {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
  }

  .mg-availability-table .mg-region-divider td {
    display: flex !important;
    align-items: center;
    width: auto !important;
    min-height: 42px;
    margin: 4px 0 -2px !important;
    padding: 0 4px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .mg-region-divider strong {
    font-size: 15px;
  }

  .mg-region-divider span {
    min-height: 23px;
    margin-left: 8px;
    font-size: 11px;
  }

  .mg-availability-table tr.mg-course-detail-row {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
  }

  .mg-availability-table .mg-course-detail-cell {
    display: block !important;
    width: 100% !important;
  }

  .mg-availability-table tbody tr:nth-child(even) {
    background:
      linear-gradient(180deg, rgba(242, 246, 255, 0.56), #fff 84px);
  }

  .mg-availability-table th,
  .mg-availability-table td {
    border: 0;
    padding: 0;
  }

  .mg-availability-table .mg-course-col {
    position: static;
    width: auto;
    min-width: 0;
    padding-right: 54px;
    background: transparent !important;
    box-shadow: none;
  }

  .mg-availability-table .mg-course-col span {
    font-size: 16px;
  }

  .mg-availability-table .mg-course-col em {
    font-size: 12px;
  }

  .mg-availability-table td[data-label="지역"] {
    display: none;
  }

  .mg-calendar-cell {
    position: absolute;
    top: 13px;
    right: 12px;
    display: block !important;
    width: auto !important;
    min-width: 0;
  }

  .mg-calendar-button {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .mg-availability-table td:not([data-label="지역"]):not(.mg-calendar-cell):not(.mg-course-detail-cell) {
    display: inline-grid;
    justify-items: center;
    gap: 5px;
    width: calc(25% - 6px);
    margin: 12px 3px 0;
    padding: 8px 4px;
    border: 1px solid #edf0ed;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
  }

  .mg-availability-table td:not([data-label="지역"]):not(.mg-calendar-cell):not(.mg-course-detail-cell)::before {
    content: attr(data-label);
    color: #7b837c;
    font-size: 10px;
    font-weight: 760;
    line-height: 1.15;
  }

  .mg-count {
    width: 100%;
    min-height: 30px;
    border-radius: 10px;
  }

  .mg-course-detail {
    gap: 13px;
    margin: 2px 0;
    padding: 12px;
    border: 1px solid #dfe8e1;
    border-radius: 18px;
  }

  .mg-course-profile {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .mg-course-visual {
    display: block;
    min-height: 164px;
    border-radius: 18px;
  }

  .mg-course-copy h3 {
    margin: 8px 0 10px;
    font-size: 21px;
  }

  .mg-course-copy dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .mg-course-copy dl div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    font-size: 12px;
  }

  .mg-detail-close {
    min-width: 48px;
    min-height: 34px;
    font-size: 12px;
  }

  .mg-detail-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 15px;
  }

  .mg-detail-date {
    min-height: 78px;
    padding: 8px 6px;
  }

  .mg-detail-date:nth-child(7n) {
    border-right: 1px solid #edf0ed;
  }

  .mg-detail-date:nth-child(2n) {
    border-right: 0;
  }

  .mg-detail-times {
    border-radius: 15px;
  }

  .mg-detail-times__head {
    display: block;
    padding: 12px;
  }

  .mg-detail-times__head span {
    display: block;
    margin-top: 3px;
  }

  .mg-course-detail .mg-time-row {
    grid-template-columns: minmax(0, 1fr) auto 64px;
    gap: 6px 9px;
    padding: 11px 12px;
    font-size: 12px;
  }

  .mg-course-detail .mg-time-row > span:nth-of-type(1),
  .mg-course-detail .mg-time-row > span:nth-of-type(2),
  .mg-course-detail .mg-time-row > span:nth-of-type(3) {
    display: none;
  }

  .mg-course-detail .mg-time-row strong {
    grid-column: 1;
    font-size: 13px;
  }

  .mg-course-detail .mg-time-row b {
    grid-column: 1;
    color: #2364aa;
  }

  .mg-course-detail .mg-time-row em {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .mg-course-detail .mg-time-row p {
    grid-column: 1 / -1;
    font-size: 11px;
  }

  .mg-course-detail .mg-time-row button,
  .mg-course-detail .mg-time-row a {
    grid-column: 3;
    min-height: 32px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .mg-availability-table td:not([data-label="지역"]):not(.mg-calendar-cell):not(.mg-course-detail-cell) {
    width: calc(33.333% - 6px);
  }
}

/* User sub page drafts */
.mg-subpage {
  display: grid;
  gap: 18px;
}

.mg-sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 30px;
  border: 1px solid rgba(224, 229, 224, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0, rgba(246, 111, 155, 0.1), transparent 260px),
    radial-gradient(circle at 100% 0, rgba(35, 100, 170, 0.1), transparent 260px),
    linear-gradient(180deg, #fff, #fbfdfb);
  box-shadow: 0 22px 58px rgba(16, 49, 41, 0.08);
}

.mg-sub-hero__eyebrow,
.mg-sub-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--mg-primary-light);
  color: var(--mg-primary);
  font-size: 12px;
  font-weight: 900;
}

.mg-sub-hero h1 {
  margin: 12px 0 8px;
  color: var(--mg-primary-dark);
  font-size: 34px;
  line-height: 1.18;
}

.mg-sub-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--mg-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.mg-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mg-hero-actions a,
.mg-hero-actions button,
.mg-soft-button,
.mg-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.mg-hero-actions a,
.mg-soft-button {
  border: 1px solid var(--mg-border);
  background: #fff;
  color: var(--mg-primary);
}

.mg-primary-button {
  border: 1px solid var(--mg-primary);
  background: var(--mg-primary);
  color: #fff;
}

.mg-subnav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mg-subnav-grid a {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 49, 41, 0.045);
}

.mg-subnav-grid strong {
  color: var(--mg-primary-dark);
  font-size: 17px;
}

.mg-subnav-grid span {
  color: var(--mg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mg-panel {
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 49, 41, 0.06);
  overflow: hidden;
}

.mg-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #edf0ed;
  background: linear-gradient(180deg, #fff, #fbfdfb);
}

.mg-panel-head h2,
.mg-panel-head h3 {
  margin: 0;
  color: var(--mg-primary-dark);
  line-height: 1.25;
}

.mg-panel-head h2 {
  font-size: 24px;
}

.mg-panel-head h3 {
  font-size: 20px;
}

.mg-panel-head p {
  margin: 5px 0 0;
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 700;
}

.mg-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-filter-chips button,
.mg-filter-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  background: #fff;
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 850;
}

.mg-filter-chips .is-active {
  border-color: var(--mg-primary);
  background: var(--mg-primary);
  color: #fff;
}

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

.mg-board-table th,
.mg-board-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0ed;
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.mg-board-table th {
  color: var(--mg-muted);
  background: #fbfcfb;
  font-weight: 900;
}

.mg-board-table tr:last-child td {
  border-bottom: 0;
}

.mg-board-table strong {
  color: var(--mg-primary-dark);
}

.mg-board-table em {
  color: var(--mg-primary);
  font-style: normal;
  font-weight: 900;
}

.mg-card-list {
  display: grid;
  gap: 10px;
  padding: 18px 24px 24px;
}

.mg-list-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: #fff;
}

.mg-list-card strong {
  color: var(--mg-primary-dark);
  font-size: 16px;
}

.mg-list-card p {
  margin: 4px 0 0;
  color: var(--mg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mg-list-card em {
  color: var(--mg-primary);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.mg-join-page-grid,
.mg-cs-grid,
.mg-mypage-grid,
.mg-package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.mg-join-status-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 24px 0;
}

.mg-join-status-strip button {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: #fbfcfb;
  text-align: left;
}

.mg-join-status-strip button.is-active {
  border-color: rgba(23, 63, 53, 0.3);
  background: var(--mg-primary-light);
}

.mg-join-status-strip span {
  color: var(--mg-primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.mg-join-status-strip strong {
  color: var(--mg-blue);
  font-size: 13px;
}

.mg-join-status-strip em {
  color: var(--mg-orange);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mg-split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 24px 24px;
}

.mg-mini-panel {
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.mg-mini-panel h3 {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid #edf0ed;
  color: var(--mg-primary-dark);
  font-size: 18px;
}

.mg-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.mg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mg-form label {
  display: grid;
  gap: 8px;
  color: var(--mg-primary-dark);
  font-size: 13px;
  font-weight: 850;
}

.mg-form input,
.mg-form select,
.mg-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  background: #fff;
  color: var(--mg-text);
  outline: none;
}

.mg-form textarea {
  min-height: 150px;
  padding-top: 13px;
  resize: vertical;
}

.mg-form-note {
  margin: 0;
  color: var(--mg-muted);
  font-size: 13px;
  line-height: 1.55;
}

.mg-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.mg-auth-card {
  padding: 28px;
  border: 1px solid var(--mg-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(16, 49, 41, 0.08);
}

.mg-auth-card h1 {
  margin: 0 0 8px;
  color: var(--mg-primary-dark);
  font-size: 30px;
}

.mg-auth-card > p {
  margin: 0 0 20px;
  color: var(--mg-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mg-social-stack {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.mg-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 900;
}

.mg-social-button--kakao {
  background: #fee500;
  color: #191600;
}

.mg-social-button--naver {
  background: #03c75a;
  color: #fff;
}

.mg-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: var(--mg-muted);
  font-size: 12px;
  font-weight: 800;
}

.mg-auth-divider::before,
.mg-auth-divider::after {
  content: "";
  height: 1px;
  background: var(--mg-border);
}

.mg-auth-side {
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 520px;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 75% 10%, rgba(246, 111, 155, 0.18), transparent 220px),
    linear-gradient(135deg, #173f35, #0f5a4c);
  color: #fff;
}

.mg-auth-side h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.mg-auth-side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.mg-benefit-list {
  display: grid;
  gap: 10px;
}

.mg-benefit-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 850;
}

.mg-legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mg-legal-toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--mg-border);
  border-radius: 20px;
  background: #fff;
}

.mg-legal-toc a {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 850;
}

.mg-legal-toc a.is-active {
  background: var(--mg-primary-light);
  color: var(--mg-primary);
}

.mg-legal-body {
  padding: 28px;
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 49, 41, 0.06);
}

.mg-legal-body h2 {
  margin: 0 0 16px;
  color: var(--mg-primary-dark);
  font-size: 24px;
}

.mg-legal-body h3 {
  margin: 26px 0 8px;
  color: var(--mg-primary-dark);
  font-size: 18px;
}

.mg-legal-body p,
.mg-legal-body li {
  color: var(--mg-muted);
  font-size: 14px;
  line-height: 1.75;
}

.mg-legal-body ul,
.mg-legal-body ol {
  padding-left: 20px;
}

.mg-company-metrics,
.mg-package-grid,
.mg-dashboard-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mg-company-metrics article,
.mg-package-card,
.mg-dashboard-links a {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 49, 41, 0.045);
}

.mg-company-metrics strong,
.mg-package-card strong,
.mg-dashboard-links strong {
  color: var(--mg-primary-dark);
  font-size: 20px;
}

.mg-company-metrics span,
.mg-package-card span,
.mg-dashboard-links span {
  color: var(--mg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mg-package-card b {
  color: var(--mg-primary);
  font-size: 18px;
}

.mg-page-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mg-page-index a {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: #fff;
}

.mg-page-index strong {
  color: var(--mg-primary-dark);
  font-size: 17px;
}

.mg-page-index span {
  color: var(--mg-muted);
  font-size: 13px;
}

.mg-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.mg-booking-summary {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(246, 111, 155, 0.08), transparent 220px),
    linear-gradient(180deg, #fff, #fbfdfb);
  box-shadow: 0 18px 42px rgba(16, 49, 41, 0.06);
}

.mg-booking-summary h2 {
  margin: 0;
  color: var(--mg-primary-dark);
  font-size: 26px;
}

.mg-booking-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mg-booking-summary dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-bottom: 1px solid #edf0ed;
}

.mg-booking-summary dt {
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 800;
}

.mg-booking-summary dd {
  margin: 0;
  color: var(--mg-primary-dark);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.mg-booking-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: var(--mg-primary);
  color: #fff;
}

.mg-booking-price span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.mg-booking-price strong {
  font-size: 28px;
}

.mg-step-list {
  display: grid;
  gap: 10px;
}

.mg-step-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: #fff;
}

.mg-step-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--mg-primary-light);
  color: var(--mg-primary);
  font-size: 13px;
}

.mg-step-list strong {
  color: var(--mg-primary-dark);
  font-size: 15px;
}

.mg-step-list p {
  margin: 4px 0 0;
  color: var(--mg-muted);
  font-size: 12px;
  line-height: 1.45;
}

.mg-confirm-hero {
  padding: 30px;
  border: 1px solid var(--mg-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0 0, rgba(181, 154, 98, 0.14), transparent 250px),
    linear-gradient(135deg, #173f35, #0f5a4c);
  color: #fff;
  box-shadow: 0 22px 58px rgba(16, 49, 41, 0.1);
}

.mg-confirm-hero span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f3ddb1;
  font-size: 12px;
  font-weight: 900;
}

.mg-confirm-hero h1 {
  margin: 14px 0 8px;
  font-size: 32px;
}

.mg-confirm-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.mg-cancel-rule {
  display: grid;
  gap: 10px;
  padding: 18px 24px 24px;
}

.mg-cancel-rule article {
  padding: 16px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: #fbfcfb;
}

.mg-cancel-rule strong {
  color: var(--mg-primary-dark);
}

.mg-cancel-rule p {
  margin: 6px 0 0;
  color: var(--mg-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .mg-subpage {
    gap: 14px;
  }

  .mg-sub-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 20px;
  }

  .mg-sub-hero h1 {
    font-size: 26px;
  }

  .mg-hero-actions {
    justify-content: stretch;
  }

  .mg-hero-actions a,
  .mg-hero-actions button,
  .mg-primary-button,
  .mg-soft-button {
    flex: 1;
    min-height: 48px;
  }

  .mg-subnav-grid,
  .mg-join-page-grid,
  .mg-cs-grid,
  .mg-mypage-grid,
  .mg-package-layout,
  .mg-booking-layout,
  .mg-auth-layout,
  .mg-legal-layout,
  .mg-company-metrics,
  .mg-package-grid,
  .mg-dashboard-links,
  .mg-page-index {
    grid-template-columns: 1fr;
  }

  .mg-panel {
    border-radius: 20px;
  }

  .mg-panel-head {
    display: grid;
    padding: 18px;
  }

  .mg-board-table,
  .mg-board-table tbody,
  .mg-board-table tr,
  .mg-board-table td {
    display: block;
    width: 100%;
  }

  .mg-board-table thead {
    display: none;
  }

  .mg-board-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mg-border);
  }

  .mg-board-table td {
    padding: 4px 0;
    border-bottom: 0;
  }

  .mg-board-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--mg-muted);
    font-size: 11px;
    font-weight: 850;
  }

  .mg-join-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .mg-split-list {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .mg-list-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mg-list-card em {
    grid-column: 2;
  }

  .mg-form,
  .mg-auth-card,
  .mg-legal-body {
    padding: 18px;
  }

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

  .mg-auth-side {
    min-height: 320px;
    padding: 22px;
    border-radius: 22px;
  }

  .mg-booking-summary {
    padding: 18px;
    border-radius: 20px;
  }

  .mg-booking-summary h2,
  .mg-confirm-hero h1 {
    font-size: 24px;
  }

  .mg-confirm-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .mg-legal-toc {
    position: static;
  }
}

/* Mobile quality pass for detailed user pages */
.mg-package-card,
.mg-dashboard-links a,
.mg-subnav-grid a,
.mg-page-index a {
  position: relative;
  overflow: hidden;
}

.mg-package-card::before,
.mg-dashboard-links a::before,
.mg-subnav-grid a::before,
.mg-page-index a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--mg-pink), var(--mg-primary));
  opacity: 0.82;
}

@media (max-width: 767px) {
  .mg-main {
    width: calc(100% - 28px);
    padding-top: 14px;
    padding-bottom: 24px;
  }

  .mg-sub-hero {
    padding: 20px 18px;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(16, 49, 41, 0.055);
  }

  .mg-sub-hero h1 {
    margin-top: 10px;
    font-size: 26px;
    line-height: 1.22;
  }

  .mg-sub-hero p {
    font-size: 14px;
    line-height: 1.62;
  }

  .mg-panel {
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(16, 49, 41, 0.055);
  }

  .mg-panel-head {
    padding: 18px 18px 14px;
  }

  .mg-panel-head h2 {
    font-size: 22px;
  }

  .mg-panel-head h3 {
    font-size: 19px;
  }

  .mg-board-table tbody {
    display: grid;
    gap: 10px;
    padding: 14px;
  }

  .mg-board-table tr {
    padding: 14px;
    border: 1px solid var(--mg-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 49, 41, 0.035);
  }

  .mg-board-table tr:last-child {
    border-bottom: 1px solid var(--mg-border);
  }

  .mg-board-table td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    min-height: 28px;
    padding: 3px 0;
    border-bottom: 0;
    font-size: 13px;
  }

  .mg-board-table td::before {
    display: block;
    margin-bottom: 0;
  }

  .mg-board-table td strong {
    font-size: 14px;
  }

  .mg-board-table td .mg-soft-button {
    justify-self: start;
    min-height: 38px;
  }

  .mg-list-card {
    padding: 14px;
    border-radius: 16px;
  }

  .mg-list-card em {
    justify-self: start;
  }

  .mg-booking-summary {
    order: -1;
    border-radius: 22px;
  }

  .mg-booking-price {
    padding: 16px;
    border-radius: 16px;
  }

  .mg-booking-price strong {
    font-size: 24px;
  }

  .mg-package-card,
  .mg-dashboard-links a,
  .mg-subnav-grid a,
  .mg-page-index a {
    padding: 18px 18px 18px 20px;
    border-radius: 18px;
  }

  .mg-package-card strong,
  .mg-dashboard-links strong,
  .mg-subnav-grid strong,
  .mg-page-index strong {
    font-size: 18px;
    line-height: 1.3;
  }
}

@media (max-width: 767px) {
  html,
  body,
  .migolf-user {
    max-width: 100%;
    overflow-x: hidden;
  }

  .mg-top-banner a,
  .mg-top-banner--large a {
    grid-template-columns: auto minmax(0, 1fr) !important;
    width: calc(100% - 28px) !important;
    min-width: 0;
  }

  .mg-top-banner strong,
  .mg-top-banner--large strong {
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }

  .mg-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .mg-hero-actions a,
  .mg-hero-actions button,
  .mg-primary-button,
  .mg-soft-button {
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
    text-align: center;
    white-space: normal;
  }

  .mg-booking-summary,
  .mg-panel,
  .mg-sub-hero,
  .mg-auth-card,
  .mg-auth-side,
  .mg-legal-body {
    min-width: 0;
  }

  .mg-booking-summary dl div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
  }

  .mg-booking-summary dd {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .mg-booking-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
  }

  .mg-booking-price strong {
    min-width: 0;
    font-size: 22px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
  }

  .mg-subpage,
  .mg-subpage > *,
  .mg-booking-layout,
  .mg-booking-layout > *,
  .mg-panel,
  .mg-sub-hero,
  .mg-booking-summary,
  .mg-auth-layout,
  .mg-auth-layout > *,
  .mg-legal-layout,
  .mg-legal-layout > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .mg-sub-hero h1,
  .mg-sub-hero p,
  .mg-panel-head h2,
  .mg-panel-head h3,
  .mg-top-banner strong,
  .mg-top-banner--large strong,
  .mg-booking-summary h2,
  .mg-list-card strong,
  .mg-package-card strong {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .mg-booking-summary dl,
  .mg-booking-summary dl div {
    width: 100%;
    min-width: 0;
  }

  .mg-booking-summary dd {
    display: block;
  }

  .mg-form input,
  .mg-form select,
  .mg-form textarea,
  .mg-form button {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .mg-main {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .mg-top-banner,
  .mg-top-banner--large {
    padding: 8px 0;
  }

  .mg-top-banner a,
  .mg-top-banner--large a {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 12px 16px;
    border-radius: 18px;
  }

  .mg-top-banner span,
  .mg-top-banner--large span {
    flex: 0 0 auto;
  }

  .mg-top-banner strong,
  .mg-top-banner--large strong {
    min-width: 0;
    font-size: 15px;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  .mg-subpage {
    display: block !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .mg-subpage > * {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-bottom: 14px;
  }

  .mg-sub-hero,
  .mg-booking-layout,
  .mg-join-page-grid,
  .mg-cs-grid,
  .mg-mypage-grid,
  .mg-package-layout,
  .mg-legal-layout,
  .mg-auth-layout {
    display: block !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .mg-booking-layout > *,
  .mg-join-page-grid > *,
  .mg-cs-grid > *,
  .mg-mypage-grid > *,
  .mg-package-layout > *,
  .mg-legal-layout > *,
  .mg-auth-layout > * {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-bottom: 14px;
  }

  .mg-booking-summary dl div {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .mg-sub-hero p,
  .mg-panel-head p,
  .mg-auth-card > p,
  .mg-form-note {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
  }
}

@media (max-width: 767px) {
  body {
    background:
      linear-gradient(180deg, #fbfcfb 0, #f4f7f5 220px, #f7f8f7 100%);
  }

  .mg-header {
    border-bottom-color: rgba(227, 231, 227, 0.72);
  }

  .mg-header__bar {
    width: 100% !important;
    min-height: 68px;
    padding: 0 14px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0;
  }

  .mg-header__bar > .mg-logo {
    justify-content: center;
    width: auto;
    min-width: 0;
  }

  .mg-header__bar > .mg-logo img {
    width: 112px;
  }

  .mg-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 49, 41, 0.07);
  }

  .mg-main {
    width: min(430px, calc(100% - 20px)) !important;
    max-width: 430px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .mg-top-banner,
  .mg-top-banner--large {
    padding: 10px 0;
    background: transparent;
  }

  .mg-top-banner a,
  .mg-top-banner--large a {
    width: min(430px, calc(100% - 20px)) !important;
    max-width: 430px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    min-height: 72px;
    padding: 14px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px !important;
    background:
      radial-gradient(circle at 92% 20%, rgba(246, 111, 155, 0.22), transparent 72px),
      linear-gradient(135deg, #12382f 0%, #0f5a4c 70%, #0e463c 100%);
    box-shadow: 0 18px 34px rgba(16, 49, 41, 0.18);
  }

  .mg-top-banner span,
  .mg-top-banner--large span {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c3a86b, #a88d51);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0;
  }

  .mg-top-banner strong,
  .mg-top-banner--large strong {
    font-size: 15px !important;
    line-height: 1.35 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .mg-top-banner em,
  .mg-top-banner b,
  .mg-top-banner--large em,
  .mg-top-banner--large b {
    display: none !important;
  }

  .mg-subpage,
  .mg-subpage > *,
  .mg-sub-hero,
  .mg-booking-layout,
  .mg-booking-layout > *,
  .mg-join-page-grid,
  .mg-join-page-grid > *,
  .mg-cs-grid,
  .mg-cs-grid > *,
  .mg-mypage-grid,
  .mg-mypage-grid > *,
  .mg-package-layout,
  .mg-package-layout > *,
  .mg-legal-layout,
  .mg-legal-layout > *,
  .mg-auth-layout,
  .mg-auth-layout > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mg-subpage {
    display: grid !important;
    gap: 14px;
  }

  .mg-booking-layout,
  .mg-join-page-grid,
  .mg-cs-grid,
  .mg-mypage-grid,
  .mg-package-layout,
  .mg-legal-layout,
  .mg-auth-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .mg-sub-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 22px 18px !important;
    border: 1px solid rgba(227, 231, 227, 0.92);
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 8% 0%, rgba(246, 111, 155, 0.08), transparent 130px),
      linear-gradient(135deg, #fff 0%, #f8fbf9 70%, #eef5f2 100%);
    box-shadow: 0 16px 34px rgba(16, 49, 41, 0.07);
  }

  .mg-sub-hero__eyebrow,
  .mg-sub-label {
    min-height: 29px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eaf2ee;
    color: var(--mg-primary);
    font-size: 12px;
  }

  .mg-sub-hero h1 {
    margin-top: 10px;
    font-size: 28px !important;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .mg-sub-hero p {
    font-size: 14px;
    line-height: 1.58;
    word-break: keep-all !important;
  }

  .mg-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mg-hero-actions a,
  .mg-hero-actions button,
  .mg-primary-button,
  .mg-soft-button {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    padding: 0 14px !important;
    border-radius: 15px;
    line-height: 1.2;
    white-space: normal !important;
    word-break: keep-all;
  }

  .mg-primary-button {
    box-shadow: 0 12px 24px rgba(23, 63, 53, 0.18);
  }

  .mg-soft-button,
  .mg-hero-actions a:not(.mg-primary-button) {
    background: rgba(255, 255, 255, 0.92);
  }

  .mg-panel,
  .mg-booking-summary,
  .mg-auth-card,
  .mg-auth-side,
  .mg-legal-body {
    border-radius: 22px !important;
    border-color: #dfe8e2;
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 49, 41, 0.065);
    overflow: hidden;
  }

  .mg-booking-summary {
    order: -1 !important;
    gap: 13px;
    padding: 18px !important;
    background:
      linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  }

  .mg-booking-summary h2 {
    font-size: 23px !important;
    line-height: 1.25;
    word-break: keep-all !important;
  }

  .mg-booking-summary dl {
    gap: 8px;
  }

  .mg-booking-summary dl div {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    min-height: 34px;
    padding-bottom: 8px;
  }

  .mg-booking-summary dd {
    text-align: right;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .mg-booking-price {
    padding: 15px !important;
    border-radius: 17px !important;
    background:
      linear-gradient(135deg, #f7fbf9, #eef7f3);
  }

  .mg-booking-price strong {
    font-size: 23px !important;
  }

  .mg-panel-head {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px !important;
    background:
      linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
  }

  .mg-panel-head h2 {
    font-size: 22px !important;
    line-height: 1.25;
  }

  .mg-panel-head h3 {
    font-size: 19px !important;
  }

  .mg-panel-head p {
    font-size: 13px;
    line-height: 1.55;
    word-break: keep-all !important;
  }

  .mg-board-table,
  .mg-board-table tbody,
  .mg-board-table tr,
  .mg-board-table td {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mg-board-table tbody {
    display: grid !important;
    gap: 10px;
    padding: 14px;
  }

  .mg-board-table tr {
    display: grid !important;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--mg-border) !important;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 49, 41, 0.035);
  }

  .mg-board-table td {
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
    padding: 0 !important;
    border-bottom: 0 !important;
    font-size: 14px;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .mg-board-table td[colspan] {
    grid-template-columns: 1fr;
  }

  .mg-board-table td::before {
    color: var(--mg-muted);
    font-size: 12px;
    font-weight: 850;
  }

  .mg-form {
    gap: 14px;
    padding: 18px !important;
  }

  .mg-form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .mg-form label {
    gap: 8px;
    font-size: 13px;
  }

  .mg-form input,
  .mg-form select,
  .mg-form textarea {
    min-height: 52px;
    border-radius: 15px;
    background: #fff;
    font-size: 15px;
  }

  .mg-form textarea {
    min-height: 118px;
  }

  .mg-step-list {
    gap: 10px;
  }

  .mg-step-list article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .mg-cancel-rule {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 14px;
  }

  .mg-cancel-rule article {
    padding: 16px;
    border-radius: 17px;
    background: #fbfdfc;
  }

  .mg-auth-side {
    min-height: auto !important;
  }

  .mg-legal-toc {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
    border-radius: 18px;
  }

  .mg-legal-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .mg-main,
  .mg-top-banner a,
  .mg-top-banner--large a {
    width: calc(100% - 16px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .mg-sub-hero {
    padding: 20px 16px !important;
  }

  .mg-sub-hero h1 {
    font-size: 26px !important;
  }

  .mg-hero-actions {
    grid-template-columns: 1fr;
  }

  .mg-panel-head,
  .mg-form,
  .mg-booking-summary {
    padding: 16px !important;
  }
}

@media (max-width: 767px) {
  .migolf-user .mg-main,
  .migolf-user > .mg-top-banner > a,
  .migolf-user > .mg-top-banner--large > a {
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .migolf-user .mg-subpage,
  .migolf-user .mg-subpage > *,
  .migolf-user .mg-booking-layout,
  .migolf-user .mg-booking-layout > *,
  .migolf-user .mg-join-page-grid,
  .migolf-user .mg-join-page-grid > *,
  .migolf-user .mg-panel,
  .migolf-user .mg-booking-summary,
  .migolf-user .mg-sub-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .mg-hero-actions {
    grid-template-columns: 1fr !important;
  }

  .mg-booking-summary dl {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .mg-booking-summary dl div {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 11px 12px !important;
    border: 1px solid #e6eee8 !important;
    border-radius: 15px;
    background: #fbfdfc;
  }

  .mg-booking-summary dt {
    display: block;
    margin-bottom: 5px;
    color: var(--mg-muted);
    font-size: 12px;
  }

  .mg-booking-summary dd {
    display: block !important;
    color: var(--mg-primary-dark);
    font-size: 15px;
    line-height: 1.3;
    text-align: left !important;
    word-break: keep-all;
  }

  .mg-booking-price {
    grid-template-columns: 1fr !important;
    gap: 4px;
    width: auto !important;
    max-width: 100% !important;
  }

  .mg-booking-price span,
  .mg-booking-price strong {
    text-align: left !important;
  }

  .mg-booking-price span {
    color: var(--mg-muted) !important;
  }

  .mg-booking-price strong {
    color: var(--mg-primary) !important;
    white-space: normal !important;
  }

  .migolf-user .mg-sub-hero p,
  .migolf-user .mg-panel-head p,
  .migolf-user .mg-list-card p,
  .migolf-user .mg-auth-card > p,
  .migolf-user .mg-form-note {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

.mg-main--join-redesign {
  padding-top: 22px;
}

.mg-join-submain {
  display: grid;
  gap: 22px;
}

.mg-join-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(205, 225, 226, 0.95);
  border-radius: 30px;
  background:
    radial-gradient(circle at 9% 12%, rgba(246, 111, 155, 0.12), transparent 190px),
    linear-gradient(135deg, #f8ffff 0%, #ecf9fb 48%, #e7f5f0 100%);
  box-shadow: 0 24px 70px rgba(16, 49, 41, 0.09);
}

.mg-join-hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 44px 0 44px 46px;
}

.mg-join-hero__copy span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--mg-primary);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(16, 49, 41, 0.07);
}

.mg-join-hero__copy h1 {
  margin: 18px 0 12px;
  color: #5f6865;
  font-size: clamp(32px, 3.7vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
  word-break: keep-all;
}

.mg-join-hero__copy h1 strong {
  display: block;
  color: #1d5eb8;
  font-weight: 950;
}

.mg-join-hero__copy p {
  max-width: 450px;
  margin: 0;
  color: #6d7773;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.62;
  word-break: keep-all;
}

.mg-join-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.mg-join-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--mg-primary);
  font-size: 14px;
  font-weight: 900;
}

.mg-join-hero__visual {
  position: relative;
  min-height: 390px;
}

.mg-join-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 52%;
}

.mg-join-overview {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.mg-join-filter,
.mg-join-region-board,
.mg-join-list-section {
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 49, 41, 0.06);
}

.mg-join-filter {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

.mg-join-filter h2,
.mg-join-region-board h2,
.mg-join-list-head h2 {
  margin: 0;
  color: var(--mg-primary-dark);
  font-size: 22px;
  line-height: 1.25;
}

.mg-join-filter label {
  display: grid;
  gap: 7px;
}

.mg-join-filter label span {
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 850;
}

.mg-join-filter select,
.mg-join-filter input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--mg-border);
  border-radius: 13px;
  background: #fbfcfb;
  color: var(--mg-text);
}

.mg-join-filter button {
  min-height: 50px;
  border: 1px solid var(--mg-primary);
  border-radius: 15px;
  background: var(--mg-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(23, 63, 53, 0.16);
}

.mg-join-region-board {
  overflow: hidden;
}

.mg-join-region-board__head,
.mg-join-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
}

.mg-join-region-board__head p {
  margin: 6px 0 0;
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.mg-join-board-tabs,
.mg-join-list-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mg-join-board-tabs button,
.mg-join-list-tools button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  background: #fff;
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 900;
}

.mg-join-board-tabs .is-active,
.mg-join-list-tools .is-active {
  border-color: var(--mg-primary);
  background: var(--mg-primary);
  color: #fff;
}

.mg-join-matrix {
  overflow-x: auto;
  padding: 0 24px 24px;
}

.mg-join-matrix table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--mg-border);
  border-radius: 18px;
}

.mg-join-matrix th,
.mg-join-matrix td {
  padding: 13px 12px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background: #eef4f8;
  text-align: center;
  vertical-align: middle;
}

.mg-join-matrix thead th {
  background: #fff;
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 900;
}

.mg-join-matrix tbody th {
  width: 110px;
  background: #f8fbf9;
  color: var(--mg-primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.mg-join-matrix tbody tr:nth-child(even) td {
  background: #f7f9f8;
}

.mg-join-matrix td strong {
  display: block;
  color: #2e4a5f;
  font-size: 18px;
  font-weight: 900;
}

.mg-join-matrix td span {
  display: block;
  margin-top: 4px;
  color: var(--mg-muted);
  font-size: 11px;
  font-weight: 800;
}

.mg-join-matrix .is-sat {
  color: #1d5eb8;
}

.mg-join-matrix .is-sun {
  color: var(--mg-danger);
}

.mg-join-list-section {
  overflow: hidden;
}

.mg-join-list-head {
  border-bottom: 1px solid var(--mg-border);
}

.mg-join-list-head span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--mg-muted);
  font-size: 13px;
  font-weight: 850;
}

.mg-join-list-head span strong {
  color: var(--mg-orange);
}

.mg-join-list-table {
  overflow-x: auto;
}

.mg-join-list-table table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.mg-join-list-table th,
.mg-join-list-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0ed;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

.mg-join-list-table th {
  color: var(--mg-muted);
  background: #fbfcfb;
  font-weight: 900;
}

.mg-join-list-table td strong,
.mg-join-list-table td em {
  color: var(--mg-primary-dark);
  font-style: normal;
  font-weight: 900;
}

.mg-join-list-table td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  border: 1px solid var(--mg-primary);
  border-radius: 11px;
  background: var(--mg-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 991px) {
  .mg-join-hero {
    grid-template-columns: 1fr;
  }

  .mg-join-hero__copy {
    padding: 34px 34px 0;
  }

  .mg-join-hero__visual {
    min-height: 300px;
  }

  .mg-join-hero__visual img {
    object-position: 66% 54%;
  }

  .mg-join-overview {
    grid-template-columns: 1fr;
  }

  .mg-join-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mg-join-filter h2,
  .mg-join-filter button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .mg-main--join-redesign {
    max-width: 430px !important;
    padding-top: 12px;
  }

  .mg-join-submain {
    gap: 14px;
  }

  .mg-join-hero {
    min-height: 0;
    border-radius: 24px;
  }

  .mg-join-hero__copy {
    padding: 24px 20px 0;
  }

  .mg-join-hero__copy h1 {
    margin-top: 15px;
    font-size: 29px;
    line-height: 1.18;
  }

  .mg-join-hero__copy p {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .mg-join-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 18px;
  }

  .mg-join-hero__actions a {
    width: 100%;
  }

  .mg-join-hero__visual {
    min-height: 210px;
  }

  .mg-join-hero__visual img {
    object-position: 62% 52%;
  }

  .mg-join-filter,
  .mg-join-region-board,
  .mg-join-list-section {
    border-radius: 22px;
  }

  .mg-join-filter {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .mg-join-region-board__head,
  .mg-join-list-head {
    display: grid;
    gap: 12px;
    padding: 18px;
  }

  .mg-join-board-tabs,
  .mg-join-list-tools {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .mg-join-board-tabs button,
  .mg-join-list-tools button {
    flex: 0 0 auto;
  }

  .mg-join-matrix {
    padding: 0 14px 18px;
  }

  .mg-join-matrix table {
    min-width: 690px;
  }

  .mg-join-matrix th,
  .mg-join-matrix td {
    padding: 11px 10px;
  }

  .mg-join-list-table {
    overflow: visible;
    padding: 14px;
  }

  .mg-join-list-table table,
  .mg-join-list-table tbody,
  .mg-join-list-table tr,
  .mg-join-list-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .mg-join-list-table table {
    border-collapse: separate;
  }

  .mg-join-list-table thead {
    display: none;
  }

  .mg-join-list-table tbody {
    display: grid;
    gap: 10px;
  }

  .mg-join-list-table tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 14px;
    border: 1px solid var(--mg-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(16, 49, 41, 0.045);
  }

  .mg-join-list-table td {
    padding: 0;
    border-bottom: 0;
    white-space: normal;
    font-size: 13px;
  }

  .mg-join-list-table td:nth-child(1),
  .mg-join-list-table td:nth-child(2),
  .mg-join-list-table td:nth-child(3),
  .mg-join-list-table td:nth-child(5),
  .mg-join-list-table td:nth-child(8) {
    grid-column: 2;
    color: var(--mg-muted);
    font-size: 12px;
  }

  .mg-join-list-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 16px;
  }

  .mg-join-list-table td:nth-child(6) {
    grid-column: 2;
    color: var(--mg-primary);
    font-size: 15px;
  }

  .mg-join-list-table td:nth-child(7) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .mg-join-list-table td:nth-child(9) {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .mg-join-list-table td a {
    min-width: 58px;
    min-height: 40px;
  }
}

/* Calendar booking detail draft */
.mg-main--calendar-booking {
  padding-top: 22px;
}

.mg-calendar-booking {
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0 4%, rgba(246, 111, 155, 0.08), transparent 280px),
    radial-gradient(circle at 100% 0, rgba(35, 100, 170, 0.08), transparent 300px),
    linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%);
  box-shadow: 0 26px 70px rgba(16, 49, 41, 0.09);
  overflow: hidden;
}

.mg-calendar-booking .mg-course-detail {
  gap: 20px;
  padding: 24px;
  border-bottom: 0;
  background: transparent;
}

.mg-calendar-course-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 247, 0.86)),
    linear-gradient(135deg, rgba(234, 242, 238, 0.75), rgba(255, 255, 255, 0));
}

.mg-calendar-course-visual {
  position: relative;
  min-height: 284px;
  border-radius: 24px;
  overflow: hidden;
  background: #dbe8df;
  box-shadow: 0 20px 42px rgba(16, 49, 41, 0.12);
}

.mg-calendar-course-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.mg-calendar-course-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 49, 41, 0) 44%, rgba(16, 49, 41, 0.22) 100%);
  pointer-events: none;
}

.mg-calendar-course-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mg-calendar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mg-calendar-title-row span,
.mg-calendar-title-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.mg-calendar-title-row span {
  background: #eaf2ee;
  color: #173f35;
}

.mg-calendar-title-row strong {
  background: rgba(181, 154, 98, 0.15);
  color: #8b6f2e;
}

.mg-calendar-course-info h1 {
  margin: 0 0 18px;
  color: #102f28;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.mg-course-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.mg-course-basic-grid div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  min-height: 34px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(227, 231, 227, 0.78);
}

.mg-course-basic-grid dt {
  color: #173f35;
  font-size: 13px;
  font-weight: 860;
}

.mg-course-basic-grid dd {
  margin: 0;
  color: #4f5b54;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
}

.mg-course-rule-note {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(181, 154, 98, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(181, 154, 98, 0.1), rgba(234, 242, 238, 0.55));
}

.mg-course-rule-note span {
  color: #8b6f2e;
  font-size: 13px;
  font-weight: 900;
}

.mg-course-rule-note p {
  margin: 0;
  color: #4e5a53;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.5;
}

.mg-calendar-panel {
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.mg-calendar-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e9eee9;
  background: linear-gradient(180deg, #ffffff, #f8fbf9);
}

.mg-calendar-section-head span {
  display: inline-flex;
  color: #b59a62;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.mg-calendar-section-head h2 {
  margin: 5px 0 0;
  color: #102f28;
  font-size: 22px;
  line-height: 1.2;
}

.mg-calendar-section-head p {
  margin: 0;
  color: #6f756f;
  font-size: 13px;
  font-weight: 680;
}

.mg-calendar-booking .mg-detail-calendar {
  border: 0;
  border-radius: 0;
}

.mg-calendar-booking .mg-detail-date {
  min-height: 104px;
  padding: 12px 10px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mg-calendar-booking .mg-detail-date:not(.is-empty):hover {
  background: #f4faf6;
}

.mg-calendar-booking .mg-detail-date.is-active {
  background:
    linear-gradient(180deg, #173f35, #103129);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mg-calendar-booking .mg-detail-date span {
  min-width: 44px;
  min-height: 24px;
  background: #e8a700;
}

.mg-calendar-booking .mg-detail-date em {
  font-size: 16px;
}

.mg-calendar-booking .mg-detail-times {
  border-radius: 24px;
  border-color: rgba(23, 63, 53, 0.12);
}

.mg-calendar-booking .mg-detail-times__head {
  padding: 16px 20px;
  background:
    linear-gradient(90deg, rgba(234, 242, 238, 0.86), rgba(255, 255, 255, 0.92));
}

.mg-calendar-booking .mg-detail-times__head strong {
  font-size: 18px;
}

.mg-calendar-booking .mg-course-detail .mg-time-row {
  grid-template-columns: 80px 76px minmax(130px, 1fr) 72px 66px 92px minmax(190px, 1.15fr) 66px;
  padding: 13px 18px;
}

.mg-calendar-booking .mg-course-detail .mg-time-row a {
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(16, 49, 41, 0.13);
}

@media (max-width: 900px) {
  .mg-calendar-course-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mg-calendar-course-visual {
    min-height: 240px;
  }
}

@media (max-width: 767px) {
  .migolf-user:has(.mg-main--calendar-booking) > .mg-top-banner,
  .migolf-user:has(.mg-main--calendar-booking) > .mg-top-banner--large {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .migolf-user:has(.mg-main--calendar-booking) > .mg-top-banner > a,
  .migolf-user:has(.mg-main--calendar-booking) > .mg-top-banner--large > a {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .mg-main--calendar-booking {
    width: calc(100% - 20px) !important;
    max-width: 430px !important;
    padding-top: 12px;
  }

  .mg-calendar-booking {
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(16, 49, 41, 0.08);
  }

  .mg-calendar-booking .mg-course-detail {
    gap: 14px;
    padding: 12px;
    border: 0;
  }

  .mg-calendar-course-card {
    padding: 14px;
    border-radius: 22px;
    gap: 14px;
  }

  .mg-calendar-course-visual {
    min-height: 174px;
    border-radius: 18px;
  }

  .mg-calendar-course-info h1 {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .mg-course-basic-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mg-course-basic-grid div {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 32px;
    padding: 7px 0;
  }

  .mg-course-basic-grid dd {
    font-size: 13px;
  }

  .mg-course-rule-note {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .mg-calendar-section-head {
    display: block;
    padding: 15px 14px;
  }

  .mg-calendar-section-head h2 {
    font-size: 18px;
  }

  .mg-calendar-section-head p {
    margin-top: 6px;
    font-size: 12px;
  }

  .mg-calendar-booking .mg-detail-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mg-calendar-booking .mg-detail-date {
    min-height: 82px;
    padding: 9px 6px;
  }

  .mg-calendar-booking .mg-detail-date strong {
    font-size: 11px;
  }

  .mg-calendar-booking .mg-detail-date span {
    min-width: 36px;
    min-height: 22px;
    font-size: 11px;
  }

  .mg-calendar-booking .mg-detail-date em {
    font-size: 13px;
  }

  .mg-calendar-booking .mg-detail-times {
    border-radius: 18px;
  }

  .mg-calendar-booking .mg-detail-times__head {
    padding: 13px 14px;
  }

  .mg-calendar-booking .mg-detail-times__head strong {
    font-size: 16px;
  }

  .mg-calendar-booking .mg-course-detail .mg-time-row {
    grid-template-columns: minmax(0, 1fr) auto 66px;
    padding: 12px 14px;
  }

  .mg-calendar-booking.mg-course-detail-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 4px !important;
    overflow: hidden;
  }

  .mg-calendar-booking,
  .mg-calendar-booking .mg-course-detail,
  .mg-calendar-course-card,
  .mg-calendar-course-info,
  .mg-calendar-course-visual,
  .mg-calendar-panel,
  .mg-calendar-booking .mg-detail-calendar,
  .mg-calendar-booking .mg-detail-times,
  .mg-calendar-booking .mg-time-list,
  .mg-calendar-booking .mg-time-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mg-calendar-booking .mg-course-detail {
    padding: 4px !important;
  }

  .mg-calendar-course-card {
    padding: 10px !important;
  }

  .mg-calendar-booking .mg-course-detail .mg-time-row p,
  .mg-course-rule-note p,
  .mg-course-basic-grid dd {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }
}

@media (max-width: 767px) {
  .migolf-user > .mg-top-banner,
  .migolf-user > .mg-top-banner--large {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .migolf-user > .mg-top-banner > a,
  .migolf-user > .mg-top-banner--large > a {
    grid-template-columns: auto minmax(0, 1fr) !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .migolf-user > .mg-top-banner > a,
  .migolf-user > .mg-top-banner--large > a {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* Reservation flow drafts */
.mg-top-banner--title {
  background:
    radial-gradient(circle at 8% 50%, rgba(246, 111, 155, 0.1), transparent 260px),
    linear-gradient(135deg, #143b32, #0f5749);
}

.mg-top-banner--title a {
  min-height: 66px;
}

.mg-top-banner--title span {
  min-height: 30px;
  padding: 0 13px;
}

.mg-top-banner--title strong {
  font-size: 19px;
}

.mg-top-banner--title em {
  font-size: 13px;
}

.mg-sub-hero--compact {
  min-height: auto;
  padding: 24px 28px;
  border-radius: 24px;
}

.mg-sub-hero--compact h1 {
  font-size: 32px;
}

.mg-reservation-page {
  gap: 18px;
}

.mg-reservation-form-panel .mg-form {
  gap: 18px;
}

.mg-reservation-checks {
  display: grid;
  gap: 10px;
}

.mg-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 16px 18px;
  border: 1px solid #dfe8e1;
  border-radius: 17px;
  background: #fff;
}

.mg-rule-row strong {
  display: block;
  color: #102f28;
  font-size: 17px;
  line-height: 1.25;
}

.mg-rule-row span {
  display: block;
  margin-top: 5px;
  color: #6f756f;
  font-size: 13px;
  font-weight: 650;
}

.mg-rule-row em {
  color: #173f35;
  font-size: 28px;
  font-style: normal;
  line-height: 1;
}

.mg-penalty-preview,
.mg-agreement-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(23, 63, 53, 0.08);
  border-radius: 17px;
  background: #f5f8f6;
}

.mg-penalty-preview div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #4f5a54;
  font-size: 13px;
}

.mg-penalty-preview strong {
  color: #0d4384;
  font-size: 13px;
  text-align: right;
}

.mg-agreement-box label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: #102f28;
  font-size: 14px;
  font-weight: 780;
}

.mg-agreement-box input {
  width: 20px;
  height: 20px;
  accent-color: #173f35;
}

.mg-agreement-box a {
  margin-left: auto;
  color: #2364aa;
  font-size: 12px;
  font-weight: 850;
}

.mg-agree-all {
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e8e3;
}

.mg-agreement-box p {
  margin: 4px 0 0;
  color: #6f756f;
  font-size: 12px;
}

.mg-confirm-hero--clean {
  align-items: start;
  text-align: left;
}

.mg-confirm-hero--clean .mg-hero-actions {
  justify-content: center;
  margin-top: 18px;
}

.mg-reservation-sheet,
.mg-reservation-list-card,
.mg-reservation-tabs {
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 49, 41, 0.06);
}

.mg-reservation-sheet {
  padding: 28px;
}

.mg-reservation-course-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e3e7e3;
}

.mg-reservation-course-head h2 {
  margin: 10px 0 6px;
  color: #102f28;
  font-size: 28px;
  line-height: 1.2;
}

.mg-reservation-course-head p,
.mg-reservation-course-head strong {
  margin: 0;
  color: #5d665f;
  font-size: 14px;
  font-weight: 760;
}

.mg-reservation-block {
  padding: 24px 0;
  border-bottom: 1px solid #e3e7e3;
}

.mg-reservation-block:last-child {
  border-bottom: 0;
}

.mg-reservation-block h3 {
  margin: 0 0 16px;
  color: #102f28;
  font-size: 21px;
  line-height: 1.25;
}

.mg-round-info-card,
.mg-cost-box,
.mg-penalty-table {
  border-radius: 18px;
  background: #f3f6fa;
}

.mg-round-info-card {
  padding: 20px 22px;
}

.mg-round-info-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.mg-round-info-card div,
.mg-cost-box div,
.mg-cost-line,
.mg-total-box div,
.mg-penalty-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mg-round-info-card dt,
.mg-cost-line span,
.mg-cost-box span,
.mg-total-box span,
.mg-penalty-table span {
  color: #202521;
  font-size: 15px;
  font-weight: 850;
}

.mg-round-info-card dd,
.mg-cost-line strong,
.mg-cost-box strong,
.mg-penalty-table strong {
  margin: 0;
  color: #003f86;
  font-size: 16px;
  font-weight: 920;
  text-align: right;
}

.mg-dday {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-right: 9px;
  padding: 0 8px;
  border-radius: 8px;
  background: #ffe1e1;
  color: #ff3030;
  font-size: 13px;
  font-weight: 950;
}

.mg-reservation-meta-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mg-reservation-meta-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}

.mg-reservation-meta-list span {
  color: #68736c;
  font-size: 15px;
  font-weight: 850;
}

.mg-reservation-meta-list strong {
  justify-self: end;
  color: #111;
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.mg-reservation-meta-list .is-danger {
  color: #ff3030;
}

.mg-reservation-meta-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dfe5e0;
  border-radius: 10px;
  color: #173f35;
  font-size: 12px;
  font-weight: 850;
}

.mg-reservation-meta-list--simple div {
  grid-template-columns: 130px minmax(0, 1fr);
}

.mg-cost-summary {
  display: grid;
  gap: 16px;
}

.mg-cost-line {
  min-height: 34px;
}

.mg-cost-box,
.mg-penalty-table {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
}

.mg-total-box {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid #e3e7e3;
}

.mg-total-box strong {
  color: #003f86;
  font-size: 28px;
  font-weight: 950;
}

.mg-total-box em {
  color: #003f86;
  font-size: 16px;
  font-style: normal;
  font-weight: 760;
}

.mg-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: #073f80;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(7, 63, 128, 0.16);
}

.mg-reservation-tabs {
  padding: 0 20px 20px;
}

.mg-reservation-tabs nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e3e7e3;
}

.mg-reservation-tabs nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  color: #abb2ad;
  font-weight: 900;
}

.mg-reservation-tabs nav a.is-active {
  color: #102f28;
  box-shadow: inset 0 -3px 0 #102f28;
}

.mg-reservation-status-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mg-reservation-status-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #f0f2f4;
  color: #51605a;
  font-weight: 850;
}

.mg-reservation-status-tabs button.is-active {
  background: #073f80;
  color: #fff;
}

.mg-reservation-list-card {
  padding: 20px;
}

.mg-reservation-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: #45514b;
  font-size: 14px;
  font-weight: 760;
}

.mg-reservation-list-meta button {
  border: 0;
  background: transparent;
  color: #6f756f;
  font-weight: 800;
}

.mg-my-booking-card {
  padding: 20px;
  border: 1px solid #dfe5e0;
  border-radius: 18px;
  background: #fff;
}

.mg-my-booking-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.mg-my-booking-card h2 {
  margin: 8px 0 4px;
  color: #102f28;
  font-size: 24px;
}

.mg-my-booking-card p {
  margin: 0;
  color: #5f6862;
  font-size: 14px;
}

.mg-my-booking-card__head > strong {
  color: #6f756f;
  font-size: 13px;
}

.mg-my-booking-card dl {
  display: grid;
  gap: 11px;
  margin: 18px 0;
}

.mg-my-booking-card dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
}

.mg-my-booking-card dt {
  color: #6f756f;
  font-weight: 850;
}

.mg-my-booking-card dd {
  margin: 0;
  color: #003f86;
  font-size: 17px;
  font-weight: 920;
  text-align: right;
}

.mg-booking-card-actions {
  display: grid;
  gap: 10px;
}

.mg-booking-card-actions button,
.mg-booking-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #f2f5f8;
  color: #073f80;
  font-weight: 900;
}

/* Join inline expansion */
.mg-join-list-item {
  cursor: pointer;
}

.mg-join-list-item.is-open {
  background: #fbfdfc;
}

.mg-join-list-table td button[data-join-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dfe8e1;
  border-radius: 10px;
  background: #fff;
  color: #173f35;
  font-size: 12px;
  font-weight: 850;
}

.mg-join-inline-detail {
  display: none;
}

.mg-join-inline-detail.is-open {
  display: table-row;
}

.mg-join-inline-detail td {
  padding: 0 !important;
  border-bottom: 0 !important;
  background: #fff8d8 !important;
}

.mg-join-inline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 22px;
  padding: 24px;
  border-top: 1px solid rgba(181, 154, 98, 0.28);
  border-bottom: 1px solid rgba(181, 154, 98, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(181, 154, 98, 0.18), transparent 260px),
    #fff3bf;
}

.mg-join-inline-card__body h3 {
  margin: 12px 0 7px;
  color: #102f28;
  font-size: 24px;
}

.mg-join-inline-card__body p {
  margin: 0 0 14px;
  color: #4d5a52;
  font-size: 14px;
  font-weight: 720;
}

.mg-join-inline-card__body ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #202521;
  font-size: 14px;
  line-height: 1.55;
}

.mg-join-manager-box {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(23, 63, 53, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.mg-join-manager-box span {
  color: #6f756f;
  font-size: 12px;
  font-weight: 850;
}

.mg-join-manager-box strong {
  color: #173f35;
  font-size: 18px;
}

.mg-join-manager-box b {
  color: #006eb6;
  font-size: 28px;
  line-height: 1.1;
}

.mg-join-manager-box button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #173f35;
  color: #fff;
  font-weight: 900;
}

.mg-join-manager-box button.is-sent {
  background: #6f756f;
}

.mg-sms-feedback {
  margin: 4px 0 0;
  color: #173f35;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 767px) {
  .mg-top-banner--title a {
    min-height: 64px;
  }

  .mg-top-banner--title strong {
    font-size: 15px;
  }

  .mg-sub-hero--compact {
    padding: 18px 16px !important;
    border-radius: 19px;
  }

  .mg-sub-hero--compact h1 {
    font-size: 25px !important;
  }

  .mg-reservation-sheet,
  .mg-reservation-list-card,
  .mg-reservation-tabs {
    border-radius: 18px;
  }

  .mg-reservation-sheet,
  .mg-reservation-list-card {
    padding: 16px;
  }

  .mg-reservation-course-head,
  .mg-my-booking-card__head,
  .mg-reservation-list-meta {
    display: grid;
  }

  .mg-reservation-course-head h2 {
    font-size: 24px;
  }

  .mg-reservation-meta-list div,
  .mg-reservation-meta-list--simple div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mg-reservation-meta-list strong {
    justify-self: start;
    text-align: left;
  }

  .mg-round-info-card,
  .mg-cost-box,
  .mg-penalty-table {
    padding: 15px;
  }

  .mg-round-info-card div,
  .mg-cost-box div,
  .mg-cost-line,
  .mg-total-box div,
  .mg-penalty-table div,
  .mg-penalty-preview div {
    align-items: start;
  }

  .mg-round-info-card dd,
  .mg-cost-line strong,
  .mg-cost-box strong,
  .mg-penalty-table strong,
  .mg-penalty-preview strong {
    font-size: 14px;
  }

  .mg-total-box strong {
    font-size: 23px;
  }

  .mg-reservation-status-tabs {
    grid-template-columns: 1fr;
  }

  .mg-my-booking-card dl div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .mg-join-inline-detail.is-open {
    display: block;
  }

  .mg-join-inline-detail td {
    display: block !important;
    width: 100% !important;
  }

  .mg-join-inline-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .mg-join-inline-card__body h3 {
    font-size: 19px;
  }

  .mg-join-manager-box b {
    font-size: 22px;
  }
}

/* Teescanner benchmark pass: compact information hierarchy with Migolf brand color. */
:root {
  --mg-blue: #2b53b1;
  --mg-blue-light: #edf3ff;
  --mg-info-border: #dbe5f6;
  --mg-radius-card: 16px;
}

body {
  background: #f7f8fa;
  font-family: "Pretendard Variable", Pretendard, SUIT, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.migolf-user {
  background: linear-gradient(180deg, #ffffff 0, #f7f8fa 300px, #f7f8fa 100%);
}

.mg-header {
  background: #fff;
  backdrop-filter: none;
}

.mg-header__bar {
  min-height: 76px;
}

.mg-panel,
.mg-sub-hero,
.mg-realtime-submain,
.mg-course-detail-page,
.mg-join-hero,
.mg-join-lower-section,
.mg-reservation-sheet,
.mg-reservation-list-card {
  border-radius: var(--mg-radius-card);
  box-shadow: 0 10px 30px rgba(25, 39, 53, 0.06);
}

.mg-sub-hero,
.mg-panel-head,
.mg-realtime-hero,
.mg-availability-head {
  background: #fff;
}

.mg-sub-hero h1,
.mg-realtime-hero h1,
.mg-panel-head h2,
.mg-panel-head h3 {
  letter-spacing: -0.02em;
}

.mg-filter-chips .is-active,
.mg-reservation-status-tabs button.is-active {
  background: var(--mg-blue);
  color: #fff;
}

.mg-filter-chips button,
.mg-filter-chips a,
.mg-reservation-status-tabs button,
.mg-availability-actions button,
.mg-detail-page-toolbar > a,
.mg-detail-close {
  border-radius: 12px;
}

.mg-count.is-hot,
.mg-status--hot {
  background: #fff3df;
  color: #b86e12;
}

.mg-status--join {
  background: var(--mg-blue-light);
  color: var(--mg-blue);
}

.mg-calendar-button {
  color: var(--mg-blue);
  border-color: var(--mg-info-border);
  background: #fff;
  box-shadow: none;
}

.mg-availability-table thead th.is-sat,
.mg-detail-date.is-sat strong {
  color: var(--mg-blue);
}

.mg-availability-table thead th.is-sun,
.mg-detail-date.is-sun strong {
  color: #d14955;
}

.mg-primary-button,
.mg-header-join,
.mg-realtime-search,
.mg-danger-button {
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.14);
}

@media (max-width: 767px) {
  html,
  body,
  .migolf-user {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .migolf-user .mg-main {
    width: calc(100vw - 40px) !important;
    max-width: 1180px !important;
    box-sizing: border-box;
  }

  .migolf-user .mg-subpage,
  .migolf-user .mg-subpage > *,
  .migolf-user .mg-cs-grid,
  .migolf-user .mg-cs-grid > *,
  .migolf-user .mg-panel,
  .migolf-user .mg-sub-hero,
  .migolf-user .mg-subnav-grid,
  .migolf-user .mg-subnav-grid > *,
  .migolf-user .mg-dashboard-links,
  .migolf-user .mg-dashboard-links > * {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .migolf-user .mg-subpage,
  .migolf-user .mg-subpage > *,
  .migolf-user .mg-cs-grid,
  .migolf-user .mg-cs-grid > *,
  .migolf-user .mg-panel,
  .migolf-user .mg-sub-hero,
  .migolf-user .mg-subnav-grid,
  .migolf-user .mg-dashboard-links {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .mg-sub-hero,
  .mg-panel,
  .mg-subnav-grid a,
  .mg-dashboard-links a {
    overflow: hidden;
  }

  .mg-panel-head .mg-filter-chips {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mg-panel-head .mg-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .mg-panel-head .mg-filter-chips button,
  .mg-panel-head .mg-filter-chips a {
    flex: 0 0 auto;
  }

  .mg-top-banner--title strong,
  .mg-top-banner--title em {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: keep-all !important;
  }

  .mg-confirm-hero p,
  .mg-reservation-sheet p,
  .mg-reservation-sheet strong,
  .mg-round-info-card dd,
  .mg-cost-box strong,
  .mg-penalty-table strong,
  .mg-my-booking-card dd {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .mg-round-info-card div,
  .mg-cost-box div,
  .mg-penalty-table div {
    min-width: 0;
  }

  .mg-round-info-card dd,
  .mg-cost-box strong,
  .mg-penalty-table strong,
  .mg-my-booking-card dd {
    text-align: right;
  }

  .mg-my-booking-card dl div {
    min-width: 0;
  }

  .mg-sub-hero p,
  .mg-panel-head p,
  .mg-list-card p,
  .mg-subnav-grid span,
  .mg-dashboard-links span {
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .mg-sub-hero h1,
  .mg-panel-head h2,
  .mg-panel-head h3 {
    word-break: keep-all;
  }
}

/* Final cascade for the join-transfer page. */
.migolf-user .mg-main--join-redesign .mg-join-hero {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  min-height: 132px;
  border-radius: 20px;
}

.migolf-user .mg-main--join-redesign .mg-join-hero__copy {
  padding: 16px 0 16px 28px;
}

.migolf-user .mg-main--join-redesign .mg-join-hero__copy h1 {
  margin: 4px 0 0;
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1.08;
}

.migolf-user .mg-main--join-redesign .mg-join-hero__copy h1 br {
  display: none;
}

.migolf-user .mg-main--join-redesign .mg-join-hero__copy p {
  display: none;
}

.migolf-user .mg-main--join-redesign .mg-join-hero__actions {
  gap: 7px;
  margin-top: 10px;
}

.migolf-user .mg-main--join-redesign .mg-join-hero__actions a {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 11px;
}

.migolf-user .mg-main--join-redesign .mg-join-hero__visual {
  min-height: 132px;
}

.migolf-user .mg-main--join-redesign .mg-join-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
  padding: 16px;
}

.migolf-user .mg-main--join-redesign .mg-join-filter h2,
.migolf-user .mg-main--join-redesign .mg-join-filter button {
  grid-column: 1 / -1;
}

.migolf-user .mg-main--join-redesign .mg-join-filter h2 {
  font-size: 18px;
}

.migolf-user .mg-main--join-redesign .mg-join-filter label {
  gap: 4px;
}

.migolf-user .mg-main--join-redesign .mg-join-filter label span {
  font-size: 11px;
}

.migolf-user .mg-main--join-redesign .mg-join-filter select,
.migolf-user .mg-main--join-redesign .mg-join-filter input {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

.migolf-user .mg-main--join-redesign .mg-join-filter button {
  min-height: 40px;
  border-radius: 11px;
  font-size: 13px;
}

.migolf-user .mg-main--join-redesign .mg-join-region-board__head,
.migolf-user .mg-main--join-redesign .mg-join-list-head {
  padding: 14px 16px 11px;
}

.migolf-user .mg-main--join-redesign .mg-join-region-board h2,
.migolf-user .mg-main--join-redesign .mg-join-list-head h2 {
  font-size: 18px;
}

.migolf-user .mg-main--join-redesign .mg-join-region-board__head p {
  margin-top: 3px;
  font-size: 11px;
}

.migolf-user .mg-main--join-redesign .mg-join-board-tabs button,
.migolf-user .mg-main--join-redesign .mg-join-list-tools button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix {
  padding: 0 16px 14px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix th,
.migolf-user .mg-main--join-redesign .mg-join-matrix td {
  padding: 7px 8px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix td strong {
  font-size: 15px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix td span {
  margin-top: 2px;
  font-size: 9px;
}

.migolf-user .mg-main--join-redesign .mg-join-list-table th,
.migolf-user .mg-main--join-redesign .mg-join-list-table td {
  padding: 10px 12px;
  font-size: 12px;
}

.migolf-user .mg-main--join-redesign .mg-join-list-table td .mg-join-inquiry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--mg-primary);
  border-radius: 9px;
  background: var(--mg-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 991px) {
  .migolf-user .mg-main--join-redesign .mg-join-hero,
  .migolf-user .mg-main--join-redesign .mg-join-hero__visual {
    min-height: 126px;
  }
}

@media (max-width: 767px) {
  .migolf-user .mg-main--join-redesign {
    width: calc(100vw - 26px) !important;
    max-width: calc(100vw - 26px) !important;
    margin-right: 13px !important;
    margin-left: 13px !important;
    box-sizing: border-box;
  }

  .migolf-user .mg-main--join-redesign .mg-join-submain,
  .migolf-user .mg-main--join-redesign .mg-join-hero,
  .migolf-user .mg-main--join-redesign .mg-join-overview,
  .migolf-user .mg-main--join-redesign .mg-join-filter,
  .migolf-user .mg-main--join-redesign .mg-join-region-board,
  .migolf-user .mg-main--join-redesign .mg-join-list-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .migolf-user .mg-main--join-redesign .mg-join-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(110px, 0.92fr);
    min-height: 118px;
    border-radius: 16px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-hero__copy {
    padding: 12px 0 12px 16px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-hero__copy h1 {
    font-size: 18px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-hero__copy p {
    display: none;
  }

  .migolf-user .mg-main--join-redesign .mg-join-hero__actions {
    display: flex;
    width: auto;
    margin-top: 9px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-hero__actions a {
    min-height: 26px;
    padding: 0 8px;
    font-size: 9px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-hero__visual {
    min-height: 118px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter h2 {
    font-size: 16px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter select,
  .migolf-user .mg-main--join-redesign .mg-join-filter input {
    min-height: 36px;
    font-size: 11px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter button {
    min-height: 38px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-matrix {
    padding: 0 12px 12px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-matrix th,
  .migolf-user .mg-main--join-redesign .mg-join-matrix td {
    padding: 6px 7px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-list-table {
    padding: 10px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-list-table tbody {
    gap: 6px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-list-table tr {
    padding: 10px;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(16, 49, 41, 0.04);
  }

  .migolf-user .mg-main--join-redesign .mg-join-list-table td {
    font-size: 11px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-list-table td:nth-child(4) {
    font-size: 14px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-list-table td .mg-join-inquiry-button {
    min-width: 55px;
    min-height: 34px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 10px;
  }
}

/* Join-transfer refinement: main banner, segmented search, compact status board, and expandable rows. */
.migolf-user .mg-main--join-redesign {
  padding-top: 18px;
}

.migolf-user .mg-main--join-redesign .mg-join-overview {
  gap: 12px;
}

.migolf-user .mg-main--join-redesign .mg-join-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 15px;
}

.migolf-user .mg-main--join-redesign .mg-join-filter h2 {
  grid-column: 1;
  align-self: center;
  font-size: 18px;
}

.mg-join-filter-tabs {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.mg-join-filter-tabs button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  background: #fff;
  color: var(--mg-muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.mg-join-filter-tabs button.is-active {
  border-color: var(--mg-primary);
  background: var(--mg-primary);
  color: #fff;
}

.migolf-user .mg-main--join-redesign .mg-join-filter > button {
  grid-column: 1 / -1;
  min-height: 38px;
  border-radius: 10px;
}

.migolf-user .mg-main--join-redesign .mg-join-region-board__head {
  padding: 12px 15px 8px;
}

.migolf-user .mg-main--join-redesign .mg-join-region-board h2 {
  font-size: 17px;
}

.migolf-user .mg-main--join-redesign .mg-join-region-board__head p {
  margin-top: 2px;
  font-size: 10px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix {
  padding: 0 15px 12px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix table {
  min-width: 680px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix th,
.migolf-user .mg-main--join-redesign .mg-join-matrix td {
  padding: 4px 6px !important;
  line-height: 1.05;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix thead th {
  font-size: 10px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix tbody th {
  font-size: 11px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix td strong {
  font-size: 13px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix td span {
  margin-top: 1px;
  font-size: 8px;
  line-height: 1;
}

.migolf-user .mg-main--join-redesign .mg-join-list-table td .mg-join-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--mg-border);
  border-radius: 9px;
  background: #fff;
  color: var(--mg-primary-dark);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.migolf-user .mg-main--join-redesign .mg-join-list-table tr[data-join-row].is-open {
  background: #f5faf7;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-detail {
  display: none;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-detail.is-open {
  display: table-row;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-detail td {
  padding: 0 !important;
  background: #f6f9f7 !important;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  padding: 15px 17px;
  border-top: 1px solid var(--mg-border);
  background: #f6f9f7;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-card__body h3 {
  margin: 8px 0 5px;
  font-size: 18px;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-card__body p {
  margin: 0 0 8px;
  color: var(--mg-muted);
  font-size: 12px;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-card__body ul {
  gap: 3px;
  font-size: 11px;
}

.migolf-user .mg-main--join-redesign .mg-join-manager-box {
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--mg-border);
  border-radius: 12px;
  background: #fff;
}

.migolf-user .mg-main--join-redesign .mg-join-manager-box strong {
  font-size: 14px;
}

.migolf-user .mg-main--join-redesign .mg-join-manager-box b {
  font-size: 18px;
}

.migolf-user .mg-main--join-redesign .mg-join-manager-box button {
  min-height: 36px;
  margin-top: 3px;
  border-radius: 9px;
  font-size: 11px;
}

@media (max-width: 767px) {
  .migolf-user .mg-main--join-redesign {
    padding-top: 12px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 13px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter h2 {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .mg-join-filter-tabs {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 3px;
  }

  .mg-join-filter-tabs button {
    min-height: 28px;
    padding: 0 7px;
    font-size: 10px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter > button {
    min-height: 36px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-region-board__head {
    padding: 11px 13px 7px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-matrix {
    padding: 0 11px 10px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-inline-detail.is-open {
    display: block;
  }

  .migolf-user .mg-main--join-redesign .mg-join-inline-detail td {
    display: block !important;
    width: 100% !important;
  }

  .migolf-user .mg-main--join-redesign .mg-join-inline-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-inline-card__body h3 {
    font-size: 16px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-manager-box b {
    font-size: 16px;
  }
}

/* Join-transfer detail and date-board polish. */
.mg-join-date-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.mg-join-date-nav strong {
  min-width: 132px;
  color: var(--mg-primary-dark);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.mg-join-date-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--mg-border);
  border-radius: 9px;
  background: #fff;
  color: var(--mg-primary-dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mg-join-date-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix td span {
  display: none;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-side {
  display: grid;
  align-content: start;
  gap: 8px;
}

.migolf-user .mg-main--join-redesign .mg-join-info-box {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--mg-border);
  border-radius: 12px;
  background: #eef6fb;
}

.migolf-user .mg-main--join-redesign .mg-join-info-box div {
  display: grid;
  gap: 3px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(23, 63, 53, 0.09);
}

.migolf-user .mg-main--join-redesign .mg-join-info-box div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.migolf-user .mg-main--join-redesign .mg-join-info-box span {
  color: #2b65a2;
  font-size: 10px;
  font-weight: 900;
}

.migolf-user .mg-main--join-redesign .mg-join-info-box p {
  margin: 0;
  color: #425b70;
  font-size: 11px;
  line-height: 1.45;
  word-break: keep-all;
}

@media (max-width: 767px) {
  .mg-join-date-nav {
    width: 100%;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--mg-border);
  }

  .mg-join-date-nav strong {
    flex: 1;
    min-width: 0;
  }

  .migolf-user .mg-main--join-redesign .mg-join-inline-side {
    gap: 7px;
  }
}

/* Expanded join row: three balanced information columns. */
.migolf-user .mg-main--join-redesign .mg-join-inline-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  background: #f3f8f5;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe9e4;
  border-radius: 12px;
  background: #fff;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--summary h3 {
  margin: 9px 0 5px;
  color: var(--mg-primary-dark);
  font-size: 17px;
  line-height: 1.25;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-meta {
  margin: 0 0 10px !important;
  color: var(--mg-muted) !important;
  font-size: 11px !important;
  line-height: 1.4;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel__heading {
  display: grid;
  gap: 2px;
  padding-bottom: 7px;
  border-bottom: 1px solid #edf1ef;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel__heading span {
  color: #5b8d7b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel__heading strong {
  color: var(--mg-primary-dark);
  font-size: 13px;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--facts .mg-join-detail-facts {
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 8px;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--facts .mg-join-detail-facts div {
  padding: 7px 8px;
  border-radius: 9px;
  background: #f8fbfa;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--facts .mg-join-detail-facts p {
  font-size: 10px;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--inquiry {
  display: flex;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--inquiry .mg-join-manager-box {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 12px;
  border: 0;
  background: linear-gradient(145deg, #eff7f3 0%, #fff 78%);
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--inquiry .mg-join-manager-box > span {
  color: #5b8d7b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--inquiry .mg-join-manager-box strong {
  margin-top: 8px;
  color: var(--mg-primary-dark);
  font-size: 14px;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--inquiry .mg-join-manager-box b {
  margin-top: 5px;
  color: #1972b5;
  font-size: 15px;
  line-height: 1.45;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--inquiry .mg-join-manager-box button {
  margin-top: auto;
  min-height: 36px;
}

@media (max-width: 767px) {
  .migolf-user .mg-main--join-redesign .mg-join-overview {
    width: calc(100vw - 26px) !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter {
    width: calc(100vw - 26px) !important;
    min-width: 0 !important;
    overflow: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .migolf-user .mg-main--join-redesign .mg-join-filter > label {
    width: 100%;
    overflow: hidden;
  }

  .mg-join-round-options {
    display: flex;
    width: 100%;
    gap: 4px;
  }

  .mg-join-round-options button {
    flex: 1 1 0;
  }

  .mg-join-round-options {
    gap: 4px;
  }

  .mg-join-round-options button {
    min-width: 0;
    min-height: 32px;
    padding: 0 3px;
    font-size: 10px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-inline-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-inline-panel {
    padding: 11px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-inline-panel--inquiry .mg-join-manager-box button {
    margin-top: 12px;
  }
}

/* Join-transfer finishing pass: keep the search card compact and make the expanded row informative without excess height. */
.migolf-user .mg-main--join-redesign .mg-join-overview {
  align-items: start;
}

.migolf-user .mg-main--join-redesign .mg-join-round-filter {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin-top: -1px;
}

.migolf-user .mg-main--join-redesign .mg-join-round-filter span {
  color: var(--mg-muted);
  font-size: 11px;
  font-weight: 850;
}

.mg-join-round-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.mg-join-round-options button {
  grid-column: auto !important;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid var(--mg-border);
  border-radius: 10px;
  background: #f8faf9;
  color: var(--mg-muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.migolf-user .mg-main--join-redesign .mg-join-filter .mg-join-round-options button {
  grid-column: auto !important;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  background: #f8faf9;
  color: var(--mg-muted);
  box-shadow: none;
}

.migolf-user .mg-main--join-redesign .mg-join-filter .mg-join-round-options button.is-active {
  border-color: var(--mg-primary);
  background: var(--mg-primary);
  color: #fff;
  box-shadow: 0 7px 14px rgba(23, 63, 53, 0.14);
}

.mg-join-round-options button.is-active {
  border-color: var(--mg-primary);
  background: var(--mg-primary);
  color: #fff;
  box-shadow: 0 7px 14px rgba(23, 63, 53, 0.14);
}

.migolf-user .mg-main--join-redesign .mg-join-detail-note {
  margin: 0 0 9px !important;
  padding: 7px 9px;
  border-radius: 8px;
  background: #edf5f1;
  color: var(--mg-primary-dark) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.35;
}

.migolf-user .mg-main--join-redesign .mg-join-detail-facts {
  gap: 6px;
  margin-top: 8px;
}

.migolf-user .mg-main--join-redesign .mg-join-detail-facts div {
  min-height: 0;
  padding: 9px 10px;
  border-radius: 10px;
}

.migolf-user .mg-main--join-redesign .mg-join-detail-facts span {
  margin-bottom: 3px;
}

.migolf-user .mg-main--join-redesign .mg-join-detail-facts p {
  font-size: 10px;
  line-height: 1.35;
}

.migolf-user .mg-main--join-redesign .mg-join-filter h2::before,
.migolf-user .mg-main--join-redesign .mg-join-region-board h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 19px;
  margin: 0 8px 0 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #df6f92 0%, #2d7c68 100%);
  vertical-align: -3px;
}

.migolf-user .mg-main--join-redesign .mg-join-region-board h2::before {
  height: 18px;
  background: linear-gradient(180deg, #2d7c68 0%, #5d8fca 100%);
}

/* Final visual refinement: date tiles instead of a spreadsheet grid. */
.migolf-user .mg-main--join-redesign .mg-join-matrix {
  padding: 0 15px 16px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix table {
  min-width: 720px;
  border: 0;
  border-collapse: separate;
  border-spacing: 5px 5px;
  overflow: visible;
  background: transparent;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix th,
.migolf-user .mg-main--join-redesign .mg-join-matrix td {
  border: 1px solid rgba(219, 229, 246, 0.9) !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(38, 71, 105, 0.04);
}

.migolf-user .mg-main--join-redesign .mg-join-matrix thead th {
  padding: 8px 7px !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #617083;
  font-size: 11px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix tbody th {
  width: 105px;
  padding: 14px 9px !important;
  background: #f3f7f5 !important;
  color: var(--mg-primary-dark);
  font-size: 12px;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix tbody td {
  min-width: 70px;
  padding: 13px 8px !important;
  background: #f7fafc !important;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix tbody td strong {
  color: #274c6a;
  font-size: 18px;
  line-height: 1;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix tbody td.is-sat-date {
  border-color: #cbdcf7 !important;
  background: #eef4ff !important;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix tbody td.is-sat-date strong {
  color: #2b53b1;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix tbody td.is-sun-date {
  border-color: #f4d6db !important;
  background: #fff3f4 !important;
}

.migolf-user .mg-main--join-redesign .mg-join-matrix tbody td.is-sun-date strong {
  color: #c94a4a;
}

.migolf-user .mg-main--join-redesign .mg-join-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.migolf-user .mg-main--join-redesign .mg-join-detail-facts div {
  min-height: 76px;
  padding: 11px 12px;
  border: 1px solid rgba(219, 229, 246, 0.9);
  border-radius: 12px;
  background: #fff;
}

.migolf-user .mg-main--join-redesign .mg-join-detail-facts span {
  display: block;
  margin-bottom: 5px;
  color: #2b65a2;
  font-size: 10px;
  font-weight: 900;
}

.migolf-user .mg-main--join-redesign .mg-join-detail-facts p {
  margin: 0;
  color: #485b6b;
  font-size: 11px;
  line-height: 1.45;
  word-break: keep-all;
}

@media (max-width: 767px) {
  .migolf-user .mg-main--join-redesign .mg-join-matrix {
    padding: 0 11px 12px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-matrix table {
    min-width: 720px;
    border-spacing: 4px 4px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-matrix tbody td {
    padding: 12px 7px !important;
  }

  .migolf-user .mg-main--join-redesign .mg-join-detail-facts {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .migolf-user .mg-main--join-redesign .mg-join-detail-facts div {
    min-height: 0;
  }
}

/* Keep the middle panel as a compact vertical information stack inside the three-column detail. */
.migolf-user .mg-main--join-redesign .mg-join-inline-panel--facts .mg-join-detail-facts {
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 8px;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel--facts .mg-join-detail-facts div {
  min-height: 0;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f8fbfa;
}

.migolf-user .mg-main--join-redesign .mg-join-inline-panel__heading strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #d56b8c;
  vertical-align: middle;
}

@media (max-width: 767px) {
  .migolf-user .mg-main--join-redesign .mg-join-filter {
    width: calc(100vw - 26px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .migolf-user .mg-main--join-redesign .mg-join-round-filter,
  .migolf-user .mg-main--join-redesign .mg-join-filter > button {
    width: calc(100vw - 54px) !important;
  }
}

/* Prevent native date/select controls from forcing the two-column filter wider than the viewport. */
.migolf-user .mg-main--join-redesign .mg-join-filter > label {
  min-width: 0;
}

.migolf-user .mg-main--join-redesign .mg-join-filter > label input,
.migolf-user .mg-main--join-redesign .mg-join-filter > label select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.migolf-user .mg-main--join-redesign .mg-join-overview,
.migolf-user .mg-main--join-redesign .mg-join-filter,
.migolf-user .mg-main--join-redesign .mg-join-round-filter,
.migolf-user .mg-main--join-redesign .mg-join-round-options {
  min-width: 0;
  max-width: 100%;
}

/* Drawer brand: crop the source JPG whitespace and blend it into the panel. */
.migolf-user .mg-drawer__head {
  min-height: 70px;
  gap: 20px;
  padding: 2px 2px 16px;
}

.migolf-user .mg-drawer__head img {
  display: block;
  width: 142px;
  height: 42px;
  object-fit: cover;
  object-position: center;
  background: transparent;
  mix-blend-mode: multiply;
  filter: saturate(.96) contrast(1.03);
}

.migolf-user .mg-drawer__head button {
  min-width: 64px;
  min-height: 44px;
  padding: 0 17px;
  border-color: rgba(23, 63, 53, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 20px rgba(16, 49, 41, .07);
}

@media (max-width: 420px) {
  .migolf-user .mg-drawer__head {
    min-height: 64px;
    gap: 14px;
    padding-bottom: 14px;
  }

  .migolf-user .mg-drawer__head img {
    width: 130px;
    height: 38px;
  }
}

/* Common user footer: compact information hierarchy for all user pages. */
.migolf-user .mg-footer {
  position: relative;
  margin-top: 52px;
  border-top: 0;
  background:
    radial-gradient(circle at 9% 16%, rgba(23, 63, 53, .055), transparent 230px),
    linear-gradient(180deg, #fbfdfc 0%, #f4f8f6 100%);
  color: #173f35;
}

.migolf-user .mg-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #173f35 0 86%, #b59a62 86% 100%);
}

.migolf-user .mg-footer__inner {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-areas:
    "brand links"
    "brand info";
  gap: 15px 36px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 30px;
  text-align: left;
}

.migolf-user .mg-footer__brand {
  grid-area: brand;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: 4px 30px 4px 0;
  border-right: 1px solid rgba(23, 63, 53, .11);
}

.migolf-user .mg-footer__brand img {
  display: block;
  width: 148px;
  height: 44px;
  margin: 0;
  object-fit: cover;
  object-position: center;
  background: transparent;
  mix-blend-mode: multiply;
  filter: saturate(.96) contrast(1.03);
}

.migolf-user .mg-footer__links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  min-width: 0;
  padding: 0 0 13px;
  border-bottom: 1px solid rgba(23, 63, 53, .1);
}

.migolf-user .mg-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #29473f;
  font-size: 13px;
  font-weight: 800;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.migolf-user .mg-footer__links a:hover,
.migolf-user .mg-footer__links a:focus-visible {
  border-color: rgba(23, 63, 53, .13);
  background: #fff;
  color: #0f5548;
}

.migolf-user .mg-footer__links a:nth-child(3) {
  color: #0f5548;
}

.migolf-user .mg-footer__info {
  grid-area: info;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 24px;
  min-width: 0;
  color: #6a7771;
  font-size: 12px;
  line-height: 1.65;
}

.migolf-user .mg-footer__info p {
  grid-column: 1;
  margin: 0;
  color: inherit;
  font-size: inherit;
  overflow-wrap: anywhere;
}

.migolf-user .mg-footer__copy {
  grid-column: 2 !important;
  grid-row: 1 / span 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 !important;
  padding: 0 15px;
  border-radius: 999px;
  background: #173f35;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .migolf-user .mg-footer__inner {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 14px 24px;
  }

  .migolf-user .mg-footer__brand {
    padding-right: 22px;
  }

  .migolf-user .mg-footer__brand img {
    width: 134px;
    height: 40px;
  }

  .migolf-user .mg-footer__info {
    grid-template-columns: 1fr;
  }

  .migolf-user .mg-footer__copy {
    grid-column: 1 !important;
    grid-row: auto;
    justify-self: start;
    margin-top: 7px !important;
  }
}

@media (max-width: 767px) {
  .migolf-user .mg-footer {
    margin-top: 36px;
  }

  .migolf-user .mg-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "links"
      "info";
    gap: 0;
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 27px 0 25px;
    text-align: left;
  }

  .migolf-user .mg-footer__brand {
    align-items: center;
    min-height: 58px;
    padding: 0 0 17px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 63, 53, .1);
  }

  .migolf-user .mg-footer__brand img {
    width: 132px;
    height: 39px;
    margin: 0;
  }

  .migolf-user .mg-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 17px 0;
  }

  .migolf-user .mg-footer__links a {
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border-color: rgba(23, 63, 53, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    font-size: 12px;
    text-align: center;
  }

  .migolf-user .mg-footer__links a:last-child {
    grid-column: 1 / -1;
  }

  .migolf-user .mg-footer__info {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 16px;
    font-size: 11px;
    line-height: 1.7;
  }

  .migolf-user .mg-footer__copy {
    grid-column: 1 !important;
    justify-self: start;
    min-height: 36px;
    margin-top: 10px !important;
    padding: 0 13px;
    white-space: normal;
  }
}
