:root {
  --ink: #18352d;
  --muted: #72827d;
  --line: #e8ece8;
  --paper: #ffffff;
  --canvas: #f6f8f5;
  --green: #1f6c54;
  --green-strong: #155a45;
  --green-soft: #eaf5ef;
  --amber: #d99b39;
  --amber-soft: #fff6df;
  --coral: #d86f54;
  --coral-soft: #fff0eb;
  --blue: #4a7896;
  --blue-soft: #edf5f8;
  --shadow: 0 14px 42px rgba(24, 53, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  color: inherit;
}

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

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 244px;
  flex-direction: column;
  padding: 30px 20px 24px;
  border-right: 1px solid #edf0ec;
  background: #fbfcfa;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--green);
  box-shadow: 0 7px 16px rgba(31, 108, 84, 0.2);
}

.brand-mark span {
  display: block;
  width: 5px;
  border-radius: 5px 5px 0 0;
  background: #f7f4e7;
  transform: rotate(-7deg);
}

.brand-mark span:nth-child(1) {
  height: 15px;
}

.brand-mark span:nth-child(2) {
  height: 24px;
}

.brand-mark span:nth-child(3) {
  height: 31px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand > div > span {
  margin-top: 3px;
  color: #9aa59f;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sidebar nav {
  margin-top: 44px;
}

.sidebar nav > p {
  margin: 27px 11px 10px;
  color: #a5afa9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #687873;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}

.nav-item:hover {
  background: #f1f5f1;
  color: var(--ink);
}

.nav-item.selected {
  background: var(--green-soft);
  color: var(--green-strong);
  font-weight: 700;
}

.nav-item.disabled {
  cursor: default;
}

.nav-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #82908b;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}

.nav-item.selected .nav-icon {
  color: var(--green);
}

.nav-item em {
  min-width: 21px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 10px;
  background: #edf0ed;
  color: #88938e;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.nav-item.selected em {
  background: rgba(31, 108, 84, 0.1);
  color: var(--green);
}

.status-dot {
  width: 8px;
  height: 8px;
  margin: 0 6px;
  border-radius: 50%;
  background: #b4bdb8;
}

.status-dot.active {
  background: #32a778;
}

.status-dot.expired {
  background: #dc765e;
}

.status-dot.paused {
  background: #dca444;
}

.status-dot.completed {
  background: #8b9993;
}

.sidebar-note {
  margin-top: auto;
  padding: 17px 16px;
  border: 1px solid #e7ede8;
  border-radius: 13px;
  background: linear-gradient(145deg, #f9fbf8, #f0f6f1);
}

.sidebar-note span {
  color: #7d8984;
  font-size: 11px;
}

.sidebar-note strong {
  display: block;
  margin-top: 5px;
  color: var(--green-strong);
  font-family: "Songti SC", serif;
  font-size: 21px;
}

.sidebar-note p {
  margin: 6px 0 0;
  color: #9aa39f;
  font-size: 10px;
}

.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px -2px -5px;
  padding: 12px 6px 0;
  border-top: 1px solid #eef0ed;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #dceae2;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.operator strong,
.operator span {
  display: block;
}

.operator strong {
  font-size: 11px;
}

.operator span {
  margin-top: 3px;
  color: #9ca5a1;
  font-size: 9px;
}

.operator i {
  margin-left: auto;
  color: #a4ada8;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 1px;
}

.logout-button {
  margin-left: auto;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ca5a1;
  cursor: pointer;
  font-size: 9px;
}

.logout-button:hover {
  background: #f0f3f0;
  color: var(--green);
}

.main-content {
  min-width: 0;
  margin-left: 244px;
  padding: 0 34px 40px;
}

.topbar {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #e9ede9;
}

.topbar p {
  margin: 0 0 6px;
  color: #8d9994;
  font-size: 11px;
}

.topbar h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.global-search {
  display: flex;
  width: 280px;
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid #e3e8e3;
  border-radius: 10px;
  background: var(--paper);
  color: #93a09a;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.global-search:focus-within {
  border-color: #8ab3a2;
  box-shadow: 0 0 0 3px rgba(31, 108, 84, 0.08);
}

.global-search > span {
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.global-search input::placeholder {
  color: #a7b0ac;
}

.global-search kbd {
  padding: 2px 5px;
  border: 1px solid #e7eae7;
  border-radius: 5px;
  background: #f8f9f7;
  color: #a0aaa5;
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.add-button,
.primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 7px 16px rgba(31, 108, 84, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.share-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid #cfe0d6;
  border-radius: 10px;
  background: #f6faf7;
  color: var(--green);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.share-button:hover {
  border-color: #9fbfad;
  background: var(--green-soft);
}

.share-button span {
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.add-button:hover,
.primary-button:hover {
  background: var(--green-strong);
}

.add-button span {
  font-size: 18px;
  font-weight: 400;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

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

.metric-grid article {
  min-height: 135px;
  padding: 19px 20px 17px;
  border: 1px solid #e8ece8;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 5px 20px rgba(24, 53, 45, 0.035);
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7d8b86;
  font-size: 11px;
}

.metric-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.metric-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.metric-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-icon.amber {
  background: var(--amber-soft);
  color: #b57a20;
}

.metric-icon.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.metric-grid article > strong {
  display: block;
  margin-top: 10px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 29px;
  line-height: 1;
}

.metric-grid article > p {
  margin: 11px 0 0;
  color: #98a39e;
  font-size: 10px;
}

.metric-grid article > p b {
  margin-right: 5px;
  color: #32a778;
}

.metric-grid article > p.warning-copy {
  color: var(--coral);
}

.data-panel {
  overflow: visible;
  border: 1px solid #e5eae5;
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(24, 53, 45, 0.035);
}

.panel-heading {
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid #edf0ed;
}

.panel-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
}

.panel-heading p {
  margin: 5px 0 0;
  color: #9aa49f;
  font-size: 10px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-actions .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.listener-city-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7d8c85;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.listener-city-filter select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #355c4e;
  font: inherit;
}

.listener-city-filter select:focus {
  border-color: #79a793;
  box-shadow: 0 0 0 3px rgba(31, 108, 84, 0.08);
}

.filter-tabs {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 5px;
}

.filter-tabs button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #82908a;
  cursor: pointer;
  font-size: 11px;
}

.filter-tabs button:hover,
.filter-tabs button.active {
  background: #f0f5f1;
  color: var(--green);
}

.filter-tabs button.active {
  font-weight: 700;
}

.filter-tabs span {
  margin-left: 3px;
  color: #a2aba7;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.submission-table {
  min-width: 920px;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid #f0f2ef;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fafbfa;
  color: #97a29d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

td {
  color: #586b64;
  font-size: 11px;
}

tbody tr {
  transition: background 0.16s;
}

tbody tr:hover {
  background: #fcfdfb;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.student-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e5efe9;
  color: var(--green);
  font-family: "Songti SC", serif;
  font-size: 13px;
  font-weight: 700;
}

.student-avatar.photo {
  overflow: hidden;
  padding: 0;
}

.student-avatar.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-cell strong,
.student-cell span,
td > div > strong,
td > div > span,
.course-name,
.subtle,
.date-range {
  display: block;
}

.student-cell strong,
.course-name,
.date-range {
  color: #314a42;
  font-size: 11px;
  font-weight: 700;
}

.student-cell span {
  margin-top: 4px;
  color: #a0aaa5;
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.profile-column {
  width: 270px;
}

.profile-summary {
  display: grid;
  gap: 6px;
  min-width: 230px;
}

.profile-summary p {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
  margin: 0;
}

.profile-summary b {
  color: var(--green);
  font-size: 9px;
  white-space: nowrap;
}

.profile-summary span {
  overflow: hidden;
  color: #71817b;
  font-size: 9px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtle {
  margin-top: 5px;
  color: #a0aaa5;
  font-size: 9px;
}

.money-cell {
  display: block;
  color: var(--green-strong);
  font-family: "Songti SC", serif;
  font-size: 13px;
}

.due-soon {
  color: var(--coral);
}

.coach {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.coach i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #f0eee7;
  color: #8a7f68;
  font-size: 9px;
  font-style: normal;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
}

.status-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip.active {
  background: #e9f7f0;
  color: #288766;
}

.status-chip.paused {
  background: #fff6e3;
  color: #ae7b27;
}

.status-chip.completed {
  background: #f0f2f1;
  color: #75837d;
}

.status-chip.expired {
  background: #fff0ec;
  color: #c7624c;
}

.row-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.status-select {
  width: 76px;
  height: 29px;
  padding: 0 5px;
  border: 1px solid #e0e6e1;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: #7b8983;
  cursor: pointer;
  font-size: 9px;
}

.status-select:focus {
  border-color: #8ab3a2;
}

.renew-button,
.outline-button {
  height: 29px;
  padding: 0 11px;
  border: 1px solid #d9e5dd;
  border-radius: 7px;
  background: #f8fbf8;
  color: var(--green);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.renew-button:hover,
.outline-button:hover {
  border-color: #a4c4b4;
  background: var(--green-soft);
}

.delete-button {
  height: 29px;
  padding: 0 11px;
  border: 1px solid #efd2cc;
  border-radius: 7px;
  background: #fff8f6;
  color: #b95343;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.delete-button:hover {
  border-color: #df9c90;
  background: #fff0ed;
}

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

.outline-button {
  height: 34px;
}

details {
  position: relative;
}

summary {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  color: #8d9994;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 1px;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover,
details[open] summary {
  background: #f1f4f1;
}

.action-menu {
  position: absolute;
  top: 32px;
  right: 0;
  z-index: 12;
  width: 130px;
  padding: 7px;
  border: 1px solid #e4e9e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.action-menu > span {
  display: block;
  padding: 5px 8px 7px;
  color: #a2aba7;
  font-size: 9px;
}

.action-menu button {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

.action-menu button:hover {
  background: #f0f5f1;
  color: var(--green);
}

.payment-type {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f2;
  color: #6b7c75;
  font-size: 9px;
}

.empty-state {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.empty-state > div {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--green-soft);
  color: var(--green);
  font-family: "Songti SC", serif;
  font-size: 20px;
  font-weight: 700;
}

.empty-state h3 {
  margin: 16px 0 6px;
  color: #3a5149;
  font-family: "Songti SC", serif;
  font-size: 16px;
}

.empty-state p {
  max-width: 340px;
  margin: 0;
  color: #9aa49f;
  font-size: 10px;
  line-height: 1.7;
}

.empty-state button {
  margin-top: 16px;
  padding: 8px 13px;
  border: 1px solid #cfe0d6;
  border-radius: 8px;
  background: #f5faf6;
  color: var(--green);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.table-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-top: 1px solid #edf0ed;
  color: #9ba5a0;
  font-size: 9px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  overflow-y: auto;
  place-items: start center;
  padding: 36px 18px;
  background: rgba(15, 30, 25, 0.46);
  backdrop-filter: blur(5px);
  animation: fade-in 0.16s ease-out;
}

.modal {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 35, 28, 0.24);
  animation: rise-in 0.22s ease-out;
}

.modal.compact {
  width: min(620px, 100%);
  margin-top: 8vh;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 25px 28px 21px;
  border-bottom: 1px solid #ecf0ec;
  background:
    radial-gradient(circle at 90% 0%, rgba(218, 232, 221, 0.7), transparent 38%),
    #fcfdfb;
}

.eyebrow {
  color: #95a49d;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.modal-head h2 {
  margin: 6px 0 4px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.modal-head p {
  margin: 0;
  color: #8d9994;
  font-size: 10px;
}

.close-button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #e3e8e3;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.8);
  color: #82908a;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.member-form {
  padding: 4px 28px 24px;
}

.member-form fieldset {
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid #eef1ee;
}

.member-form legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #52675f;
  font-size: 11px;
  font-weight: 700;
}

.member-form legend span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 8px;
}

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

.form-grid label {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 4px;
  color: #687a73;
  font-size: 10px;
  font-weight: 600;
}

.form-grid label b {
  color: var(--coral);
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  flex: 0 0 100%;
  border: 1px solid #dfe5e0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}

.form-grid input,
.form-grid select {
  height: 39px;
  padding: 0 11px;
}

.form-grid textarea {
  min-height: 86px;
  padding: 10px 11px;
  line-height: 1.6;
  resize: vertical;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #afb7b3;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: #79a793;
  box-shadow: 0 0 0 3px rgba(31, 108, 84, 0.08);
}

.form-grid input[readonly] {
  background: #f4f7f4;
  color: var(--green-strong);
  cursor: not-allowed;
}

.profile-fields label {
  align-content: flex-start;
}

.profile-fields label small {
  flex: 0 0 100%;
  color: #9aa59f;
  font-size: 9px;
  font-weight: 400;
}

.field-help {
  flex: 0 0 100%;
  color: #9aa59f;
  font-size: 9px;
  font-weight: 400;
}

.photo-upload {
  display: flex;
  width: 100%;
  flex: 0 0 100%;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e0e6e1;
  border-radius: 10px;
  background: #fafcf9;
}

.photo-preview {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #e5efe9;
  color: var(--green);
  font-family: "Songti SC", serif;
  font-size: 15px;
}

.photo-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload > div:last-child {
  min-width: 0;
  flex: 1;
}

.form-grid .photo-upload input[type="file"] {
  height: auto;
  min-height: 39px;
  padding: 7px 9px;
  border-style: dashed;
  background: #fff;
  cursor: pointer;
}

.photo-upload p {
  margin: 6px 0 0;
  color: #9aa59f;
  font-size: 9px;
  font-weight: 400;
}

.date-pair {
  display: flex;
  width: 100%;
  flex: 0 0 100%;
  align-items: center;
  gap: 7px;
}

.date-pair input {
  min-width: 0;
}

.date-pair span {
  color: #a0aaa5;
  font-size: 9px;
  font-weight: 400;
}

.money-input {
  position: relative;
  width: 100%;
  flex: 0 0 100%;
}

.money-input span {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--green);
  font-family: "Songti SC", serif;
  font-size: 14px;
  transform: translateY(-50%);
}

.money-input input {
  padding-left: 29px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.wide-label {
  grid-column: 1 / -1;
}

.form-grid .teacher-active {
  display: flex;
  min-height: 42px;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #e4e9e4;
  border-radius: 9px;
  color: #52665f;
  font-size: 11px;
}

.form-grid .teacher-active input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
}

.renewal-form {
  padding-top: 23px;
}

.share-modal-body {
  padding: 24px 28px 26px;
}

.share-link-list {
  display: grid;
  gap: 13px;
}

.share-link-card {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid #dfe8e1;
  border-radius: 12px;
  background: #f8fbf8;
}

.share-link-card.listener {
  border-color: #eadfc7;
  background: #fdfaf3;
}

.share-link-card strong,
.share-link-card span {
  display: block;
}

.share-link-card strong {
  color: #3a544a;
  font-size: 11px;
}

.share-link-card span {
  margin-top: 5px;
  color: #8d9994;
  font-size: 9px;
  line-height: 1.6;
}

.share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-link-row input {
  min-width: 0;
  flex: 1;
}

.share-link-row .outline-button {
  flex: 0 0 auto;
}

.share-modal-body label {
  display: grid;
  gap: 8px;
  color: #687a73;
  font-size: 10px;
  font-weight: 700;
}

.listener-link-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 2px;
}

.share-modal-body select,
.listener-link-config input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #dfd8c9;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--green-strong);
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.listener-link-config .money-input > span {
  position: absolute;
  top: 50%;
  left: 12px;
  margin: 0;
  color: var(--green);
  font-family: "Songti SC", serif;
  font-size: 14px;
  transform: translateY(-50%);
}

.listener-link-config .money-input input {
  padding-left: 29px;
}

.share-modal-body select:focus,
.listener-link-config input:focus {
  border-color: #b59454;
  box-shadow: 0 0 0 3px rgba(181, 148, 84, 0.1);
}

.share-modal-body input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dbe4dd;
  border-radius: 9px;
  outline: 0;
  background: #f7faf7;
  color: var(--green-strong);
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.share-modal-body input:focus {
  border-color: #79a793;
  box-shadow: 0 0 0 3px rgba(31, 108, 84, 0.08);
}

.share-modal-body > p {
  margin: 12px 0 0;
  color: #8d9994;
  font-size: 10px;
  line-height: 1.7;
}

.form-message {
  margin-top: 17px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 10px;
}

.form-message.success {
  background: #eaf6ef;
  color: #267858;
}

.form-message.error {
  background: #fff0ec;
  color: #bc5e49;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 20px;
}

.cancel-button {
  min-width: 76px;
  height: 40px;
  border: 1px solid #dfe4df;
  border-radius: 9px;
  background: #fff;
  color: #71817b;
  cursor: pointer;
  font-size: 11px;
}

.primary-button {
  min-width: 142px;
  min-height: 40px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  min-width: 190px;
  padding: 12px 15px;
  border: 1px solid #cfe4d8;
  border-radius: 10px;
  background: #f2faf5;
  box-shadow: var(--shadow);
  color: #267858;
  font-size: 11px;
  animation: rise-in 0.2s ease-out;
}

.toast.error {
  border-color: #f0d2ca;
  background: #fff4f1;
  color: #b75d48;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(219, 235, 224, 0.9), transparent 34%),
    radial-gradient(circle at 95% 95%, rgba(245, 229, 196, 0.65), transparent 28%),
    #f6f8f5;
}

.login-card {
  width: min(420px, 100%);
  padding: 34px 38px 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(24, 53, 45, 0.13);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.login-brand small {
  margin-top: 3px;
  color: #9aa59f;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.login-copy {
  margin: 40px 0 26px;
}

.login-copy > span {
  color: #91a098;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.login-copy h1 {
  margin: 8px 0 7px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 30px;
}

.login-copy p {
  margin: 0;
  color: #87938e;
  font-size: 11px;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #65766f;
  font-size: 10px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #dde5df;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.login-form input:focus {
  border-color: #7ca994;
  box-shadow: 0 0 0 3px rgba(31, 108, 84, 0.08);
}

.login-form .primary-button {
  width: 100%;
  margin-top: 4px;
}

.login-foot {
  margin: 24px 0 0;
  color: #a1aaa6;
  font-size: 9px;
  text-align: center;
}

.login-switch {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.login-switch:hover {
  text-decoration: underline;
}

.member-login-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(199, 164, 92, 0.16), transparent 35%),
    radial-gradient(circle at 95% 95%, rgba(42, 81, 79, 0.75), transparent 34%),
    #071a20;
}

.member-login-card {
  border-color: rgba(218, 191, 128, 0.28);
  background: rgba(250, 248, 240, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.member-login-crest {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #c7a45c;
  border-radius: 50%;
  background: #0c2930;
  color: #ead5a1;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 0 0 3px #f7f1e2;
}

.member-login-card .login-copy > span {
  color: #9a7737;
}

.member-gold-button {
  background: #b78c3d;
  box-shadow: 0 8px 18px rgba(157, 112, 34, 0.2);
}

.member-gold-button:hover {
  background: #9f762f;
}

.member-login-help {
  margin: 16px 0 0;
  color: #8d938e;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.member-login-state {
  color: #a18751 !important;
  font-size: 9px !important;
  font-weight: 700;
}

.member-login-state.enabled {
  color: #2b8a67 !important;
}

.champion-provision-state,
.subsystem-provision-state {
  color: #b88342 !important;
  font-size: 9px !important;
  font-weight: 700;
}

.champion-provision-state.enabled,
.subsystem-provision-state.enabled {
  color: #557a9b !important;
}

.member-center-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 4% 0%, rgba(199, 164, 92, 0.11), transparent 24%),
    linear-gradient(180deg, #071b21 0, #0b252b 420px, #f4f1e9 420px, #f4f1e9 100%);
  color: #173238;
}

.member-center-nav {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid rgba(218, 191, 128, 0.18);
}

.member-center-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff8e9;
  text-decoration: none;
}

.member-center-brand > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(221, 192, 123, 0.75);
  border-radius: 50%;
  color: #e5ca8a;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
}

.member-center-brand strong,
.member-center-brand small {
  display: block;
}

.member-center-brand strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.member-center-brand small {
  margin-top: 3px;
  color: #8fa5a5;
  font-family: Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.member-logout-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(221, 192, 123, 0.32);
  border-radius: 8px;
  background: transparent;
  color: #d9c69e;
  cursor: pointer;
  font-size: 10px;
}

.member-center-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.member-welcome-card {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff9e9;
}

.member-kicker,
.member-center-title span,
.member-card-title span,
.member-system-card > span {
  color: #c8a966;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.member-welcome-copy h1 {
  margin: 13px 0 10px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
}

.member-welcome-copy h1 b {
  color: #efd89e;
  font-weight: 700;
}

.member-welcome-copy > p {
  margin: 0;
  color: #9ab0ae;
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.member-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(221, 192, 123, 0.25);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8e1de;
  font-size: 9px;
}

.member-profile-photo {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(223, 195, 127, 0.5);
  border-radius: 50%;
  background: #11343b;
  box-shadow:
    0 0 0 9px rgba(199, 164, 92, 0.06),
    0 18px 45px rgba(0, 0, 0, 0.28);
  color: #dec17b;
  font-family: "Songti SC", "STSong", serif;
  font-size: 44px;
}

.member-profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-benefit-section,
.member-detail-card,
.member-security-card {
  border: 1px solid #e2dccd;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 18px 50px rgba(39, 49, 45, 0.08);
}

.member-benefit-section {
  padding: 34px;
}

.member-center-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.member-center-title h2,
.member-card-title h2 {
  margin: 6px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.member-center-title > p {
  margin: 0;
  color: #82908b;
  font-size: 10px;
}

.member-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.member-system-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid #dfe5df;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbf8, #eff5f0);
}

.member-system-card.payment-system {
  border-color: #e7dcc4;
  background: linear-gradient(145deg, #fffaf0, #f6eddb);
}

.member-system-card.member-subsystem {
  border-color: #c8dfd8;
  background: linear-gradient(145deg, #f4fbf8, #eaf5f1);
}

.member-system-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 23px;
  place-items: center;
  border-radius: 12px;
  background: #153f3b;
  color: #f5e4b5;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(21, 63, 59, 0.18);
}

.member-system-card.payment-system .member-system-icon {
  background: #a57b34;
}

.member-system-card.member-subsystem .member-system-icon {
  background: #0f766e;
  color: #e9fff8;
}

.member-system-card h3 {
  margin: 8px 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.member-system-card p {
  max-width: 390px;
  min-height: 42px;
  margin: 0;
  color: #73827c;
  font-size: 10px;
  line-height: 1.8;
}

.member-benefit-account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #dce5df;
  border-radius: 10px;
  background: #dce5df;
}

.member-benefit-account p {
  display: grid;
  min-height: 56px;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.88);
}

.member-benefit-account p.wide {
  grid-column: 1 / -1;
}

.member-benefit-account span {
  color: #8c9892;
  font-size: 8px;
}

.member-benefit-account strong {
  overflow-wrap: anywhere;
  color: #234b43;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.member-benefit-account.pending {
  display: block;
  padding: 12px;
  border-color: #e8dfca;
  background: #fff8e8;
  color: #957332;
  font-size: 9px;
}

.member-system-card a,
.member-benefit-pending {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0 13px;
  border-radius: 8px;
  background: #1c5c4d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.member-system-card.payment-system a {
  background: #a57b34;
}

.member-system-card.member-subsystem a {
  background: #0f766e;
}

.member-system-card a:hover {
  filter: brightness(0.93);
}

.member-benefit-pending {
  background: #929c97;
}

.benefit-access-note {
  margin: 18px 0 0;
  color: #919b96;
  font-size: 9px;
  line-height: 1.7;
}

.member-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.member-detail-card,
.member-security-card {
  padding: 30px;
}

.member-card-title {
  padding-bottom: 19px;
  border-bottom: 1px solid #ece7dc;
}

.member-card-title h2 {
  font-size: 21px;
}

.member-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid #eae5da;
  border-radius: 12px;
  background: #eae5da;
}

.member-detail-list div {
  padding: 14px;
  background: #fff;
}

.member-detail-list dt {
  color: #9a9f9b;
  font-size: 9px;
}

.member-detail-list dd {
  margin: 5px 0 0;
  color: #29423c;
  font-size: 11px;
  font-weight: 700;
}

.member-intro-list {
  display: grid;
  gap: 10px;
}

.member-intro-list > div {
  padding: 14px 15px;
  border-left: 3px solid #c6a45f;
  border-radius: 0 10px 10px 0;
  background: #f8f6f0;
}

.member-intro-list b {
  color: #9a7737;
  font-size: 10px;
}

.member-intro-list p {
  margin: 5px 0 0;
  color: #66756f;
  font-size: 10px;
  line-height: 1.7;
}

.member-security-card > p {
  margin: 19px 0;
  color: #7d8984;
  font-size: 10px;
  line-height: 1.8;
}

.member-password-form {
  display: grid;
  gap: 12px;
}

.member-password-form label {
  display: grid;
  gap: 6px;
  color: #66766f;
  font-size: 9px;
  font-weight: 700;
}

.member-password-form input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #dfe4df;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #173238;
  font-size: 11px;
}

.member-password-form input:focus {
  border-color: #b99a59;
  box-shadow: 0 0 0 3px rgba(185, 154, 89, 0.1);
}

.member-secondary-button {
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  background: #183f3b;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

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

.member-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #071b21;
  color: #dcc27f;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.member-loading.error {
  color: #ffc5b5;
}

@media (max-width: 780px) {
  .member-center-nav,
  .member-center-shell {
    width: min(100% - 30px, 1120px);
  }

  .member-center-nav {
    min-height: 68px;
  }

  .member-center-brand strong {
    font-size: 13px;
  }

  .member-center-shell {
    padding-top: 28px;
  }

  .member-welcome-card {
    min-height: 255px;
    align-items: flex-start;
  }

  .member-profile-photo {
    width: 88px;
    height: 88px;
    font-size: 28px;
  }

  .member-benefit-section,
  .member-detail-card,
  .member-security-card {
    padding: 22px;
    border-radius: 16px;
  }

  .member-center-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .member-system-grid,
  .member-center-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .member-center-brand small {
    display: none;
  }

  .member-welcome-card {
    min-height: 280px;
  }

  .member-profile-photo {
    width: 68px;
    height: 68px;
    font-size: 22px;
  }

  .member-detail-list {
    grid-template-columns: 1fr;
  }
}

.join-page {
  min-height: 100vh;
  padding: 38px 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 234, 222, 0.9), transparent 31%),
    radial-gradient(circle at 95% 95%, rgba(247, 231, 199, 0.58), transparent 27%),
    #f5f7f4;
}

.join-shell {
  width: min(820px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(24, 53, 45, 0.12);
}

.join-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 34px 38px 29px;
  border-bottom: 1px solid #e9eee9;
  background:
    radial-gradient(circle at 92% 0%, rgba(216, 232, 220, 0.8), transparent 40%),
    #fbfcfa;
}

.join-head .brand-mark {
  margin-top: 2px;
  flex: 0 0 auto;
}

.join-head h1 {
  margin: 7px 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
}

.join-head p {
  max-width: 600px;
  margin: 0;
  color: #819089;
  font-size: 11px;
  line-height: 1.8;
}

.listener-event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-bottom: 1px solid #e9eee9;
  background: #e2e9e4;
}

.listener-event-card div {
  display: grid;
  gap: 5px;
  padding: 17px 38px;
  background: #f8faf8;
}

.listener-event-card span {
  color: #8b9892;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.listener-event-card strong {
  color: var(--green-strong);
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
}

.join-form {
  padding: 3px 38px 34px;
}

.join-form fieldset {
  margin: 0;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid #edf1ed;
}

.join-form legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: #52675f;
  font-size: 11px;
  font-weight: 700;
}

.join-form legend span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 8px;
}

.join-notice {
  margin-top: 20px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f5f8f5;
  color: #7e8d86;
  font-size: 10px;
  line-height: 1.7;
}

.join-submit {
  width: 100%;
  margin-top: 18px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.join-success {
  padding: 70px 30px 78px;
  text-align: center;
}

.join-success > div {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 25px;
}

.join-success h2 {
  margin: 20px 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.join-success p {
  margin: 0;
  color: #819089;
  font-size: 11px;
}

.member-application-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(199, 164, 92, 0.18), transparent 32%),
    radial-gradient(circle at 92% 100%, rgba(29, 63, 83, 0.35), transparent 34%),
    #08141e;
  color: #172b39;
}

.member-application-shell {
  border-color: rgba(199, 164, 92, 0.42);
  background: #fbfaf7;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.member-application-head {
  position: relative;
  align-items: center;
  border-bottom: 1px solid rgba(199, 164, 92, 0.42);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 45%),
    #0d2230;
  color: #fffdf6;
}

.member-application-head::after {
  position: absolute;
  right: 92px;
  bottom: 0;
  width: 150px;
  height: 1px;
  background: #c7a45c;
  content: "";
}

.member-crest {
  display: grid;
  width: 62px;
  height: 72px;
  flex: 0 0 auto;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(231, 205, 147, 0.72);
  border-radius: 30px 30px 8px 8px;
  background: linear-gradient(145deg, #d5b871, #9b7734);
  box-shadow: inset 0 0 0 4px rgba(13, 34, 48, 0.36);
  color: #0d2230;
}

.member-crest span {
  font-family: "Songti SC", "STSong", serif;
  font-size: 27px;
  font-weight: 700;
}

.member-crest small {
  margin-top: 2px;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.member-head-copy {
  min-width: 0;
  flex: 1;
}

.member-application-head .eyebrow {
  color: #d9bd7b;
}

.member-application-head h1 {
  color: #fffdf6;
  letter-spacing: 0.04em;
}

.member-application-head p {
  color: #b9c4ca;
}

.member-positioning-copy {
  display: grid;
  gap: 5px;
  max-width: 650px;
  margin-top: 10px;
}

.member-positioning-copy p {
  display: flex;
  gap: 6px;
  margin: 0;
  color: #c3cdd2;
  font-size: 11px;
  line-height: 1.65;
}

.member-positioning-copy b {
  flex: 0 0 auto;
  color: #d9bd7b;
  font-weight: 700;
}

.member-positioning-copy .member-invite-copy {
  display: block;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(199, 164, 92, 0.25);
  color: #f0e8d7;
}

.member-document-mark {
  display: grid;
  min-width: 58px;
  justify-items: end;
  padding-left: 16px;
  border-left: 1px solid rgba(199, 164, 92, 0.28);
  color: #d7bd82;
  font-family: Arial, sans-serif;
}

.member-document-mark span {
  font-size: 7px;
  letter-spacing: 0.18em;
}

.member-document-mark strong {
  margin-top: 5px;
  font-size: 23px;
  font-weight: 400;
}

.member-application-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #e8e2d5;
  background: #f3efe6;
}

.member-application-meta div {
  padding: 14px 20px;
  border-right: 1px solid #e2dac8;
}

.member-application-meta div:last-child {
  border-right: 0;
}

.member-application-meta span,
.member-application-meta strong {
  display: block;
}

.member-application-meta span {
  color: #8a7a5b;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.member-application-meta strong {
  margin-top: 4px;
  color: #263b47;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
}

.member-benefits {
  padding: 30px 38px 27px;
  border-bottom: 1px solid #e9e3d7;
  background: #fffefa;
}

.member-section-title span {
  color: #a17c37;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.member-section-title h2 {
  margin: 6px 0 5px;
  color: #162d3a;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.member-section-title p {
  margin: 0;
  color: #8a8c87;
  font-size: 9px;
  line-height: 1.7;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.benefit-grid article {
  display: flex;
  gap: 11px;
  min-height: 83px;
  padding: 14px;
  border: 1px solid #e7e0d1;
  border-radius: 10px;
  background: #fbf9f4;
}

.benefit-grid article > b {
  color: #b18b45;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 400;
}

.benefit-grid strong {
  color: #243b47;
  font-size: 11px;
}

.benefit-grid p {
  margin: 6px 0 0;
  color: #828986;
  font-size: 9px;
  line-height: 1.6;
}

.member-application-page .join-form legend {
  color: #334956;
}

.member-application-page .join-form legend span {
  background: #eee5d2;
  color: #8b692d;
}

.member-application-page .join-form fieldset {
  border-bottom-color: #ebe5d9;
}

.member-application-notice {
  border: 1px solid #e5d7bb;
  background: #f7f1e5;
  color: #766646;
}

.member-application-submit {
  border-color: #0d2230;
  background: #0d2230;
  box-shadow: 0 10px 22px rgba(13, 34, 48, 0.2);
  color: #fffdf6;
}

.member-application-submit:hover {
  background: #18394d;
}

.member-application-success {
  background: #fffefa;
}

.member-application-success > div:first-child {
  background: #eee5d2;
  color: #8b692d;
}

.member-application-success > .eyebrow {
  display: block;
  margin-top: 18px;
  color: #9a783b;
}

.application-code-card,
.member-application-success > .application-code-card {
  display: block;
  width: min(440px, 100%);
  height: auto;
  margin: 22px auto 18px;
  padding: 18px;
  border: 1px solid #d9c28e;
  border-radius: 10px;
  background: #f7f1e5;
  color: #233844;
  box-shadow: none;
}

.application-code-card span,
.application-code-card strong,
.application-code-card small {
  display: block;
}

.application-code-card span {
  color: #8e7950;
  font-size: 9px;
}

.application-code-card strong {
  margin-top: 7px;
  font-family: Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0.07em;
}

.application-code-card small {
  margin-top: 7px;
  color: #9a917f;
  font-size: 8px;
}

.application-code-inline {
  color: #9a783b;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.02em;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

@media (max-width: 1120px) {
  .sidebar {
    width: 210px;
  }

  .main-content {
    margin-left: 210px;
    padding-inline: 24px;
  }

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

  .global-search {
    width: 220px;
  }
}

@media (max-width: 780px) {
  .sidebar {
    position: sticky;
    inset: 0 auto auto;
    width: 100%;
    padding: 15px 17px;
    border-right: 0;
    border-bottom: 1px solid #e8ece8;
    box-shadow: 0 8px 24px rgba(24, 53, 45, 0.06);
  }

  .sidebar-note,
  .operator {
    display: none;
  }

  .sidebar nav {
    display: flex;
    gap: 7px;
    margin-top: 13px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav > p,
  .sidebar nav [data-filter],
  .sidebar nav .nav-item.disabled {
    display: none;
  }

  .sidebar nav .nav-item {
    width: auto;
    min-height: 38px;
    flex: 0 0 auto;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #e7ece8;
    border-radius: 9px;
    background: #fff;
    font-size: 12px;
    white-space: nowrap;
  }

  .sidebar nav .nav-item.selected {
    border-color: #cfe2d7;
    background: var(--green-soft);
  }

  .sidebar nav .nav-icon {
    width: 17px;
    height: 17px;
    font-size: 13px;
  }

  .sidebar nav .nav-item em {
    min-width: 18px;
    margin-left: 1px;
    padding-inline: 5px;
    font-size: 9px;
  }

  .main-content {
    margin-left: 0;
    padding: 0 15px 28px;
  }

  .topbar {
    min-height: 132px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
  }

  .top-actions {
    width: 100%;
  }

  .global-search {
    min-width: 0;
    flex: 1;
    width: auto;
  }

  .global-search kbd {
    display: none;
  }

  .add-button {
    flex: 0 0 auto;
    padding-inline: 13px;
  }

  .metric-grid {
    gap: 9px;
    padding: 15px 0;
  }

  .metric-grid article {
    min-height: 122px;
    padding: 16px;
  }

  .metric-grid article > strong {
    font-size: 24px;
  }

  .panel-heading {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .panel-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .listener-city-filter {
    width: 100%;
    justify-content: space-between;
  }

  .listener-city-filter select {
    min-width: 130px;
  }

  .filter-tabs {
    width: 100%;
    align-self: auto;
    overflow-x: auto;
  }

  .modal-backdrop {
    padding: 0;
    place-items: stretch;
  }

  .modal,
  .modal.compact {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

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

  .modal-head,
  .member-form {
    padding-inline: 20px;
  }

  .share-modal-body {
    padding-inline: 20px;
  }

  .share-link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .share-link-row .outline-button {
    width: 100%;
  }

  .listener-link-config {
    grid-template-columns: 1fr;
  }

  .wide-label {
    grid-column: auto;
  }

  .photo-upload {
    align-items: flex-start;
  }

  .join-page {
    padding: 0;
  }

  .join-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .join-head,
  .join-form {
    padding-inline: 22px;
  }

  .listener-event-card div {
    padding-inline: 22px;
  }

  .member-application-head {
    align-items: flex-start;
    padding-block: 26px;
  }

  .member-document-mark {
    display: none;
  }

  .member-application-meta {
    grid-template-columns: 1fr;
  }

  .member-application-meta div {
    padding-inline: 22px;
    border-right: 0;
    border-bottom: 1px solid #e2dac8;
  }

  .member-application-meta div:last-child {
    border-bottom: 0;
  }

  .member-benefits {
    padding-inline: 22px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid article {
    min-height: 112px;
  }

  .metric-grid article > strong {
    font-size: 21px;
  }

  .topbar h1 {
    font-size: 23px;
  }

  .global-search {
    display: none;
  }

  .add-button {
    width: 100%;
  }

  .share-button {
    width: 100%;
  }
}

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