:root {
  color-scheme: light;
  font-family: "Noto Sans TC", "Segoe UI", sans-serif;
  --bg: #f6f1e8;
  --panel: rgba(255, 252, 248, 0.9);
  --panel-strong: #fff8f1;
  --ink: #16202a;
  --muted: #5f6b76;
  --line: rgba(22, 32, 42, 0.12);
  --accent: #ba2d2d;
  --accent-dark: #861f24;
  --gold: #d89d22;
  --green: #2f9e44;
  --green-dark: #1f7a42;
  --blue: #3f6ed3;
  --blue-dark: #214b9a;
  --red: #d94841;
  --shadow: 0 24px 60px rgba(89, 47, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(205, 62, 43, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(216, 157, 34, 0.2), transparent 25%),
    linear-gradient(160deg, #f7f2ea 0%, #efe5d8 100%);
}

button,
input,
select {
  font: inherit;
}

button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 16px;
  min-height: 44px;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  box-shadow: 0 12px 30px rgba(134, 31, 36, 0.18);
}

button:hover,
.file-button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
.file-button:focus-visible {
  outline: 3px solid rgba(63, 110, 211, 0.28);
  outline-offset: 3px;
}

button:active:not(:disabled),
.file-button:active:not(:has(input:disabled)) {
  transform: translateY(0);
  filter: brightness(0.96);
}

button:disabled,
.file-button:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.button-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 30px rgba(134, 31, 36, 0.18);
}

.button-save {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 12px 30px rgba(31, 122, 66, 0.18);
}

.button-upload {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 30px rgba(33, 75, 154, 0.2);
}

button.is-loading,
.file-button.is-loading {
  cursor: progress;
}

.button-spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 720ms linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

select,
input[type="text"],
input[type="password"],
input[type="month"],
input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: white;
  color: var(--ink);
}

.shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100vh;
  padding: 1.5rem;
}

.auth-shell {
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(520px, 100%);
}

.auth-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  padding: 0.3rem 0.35rem 0.3rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-user-name {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-user-role {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-logout {
  min-height: 40px;
  padding: 0.68rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.auth-logout:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-logout:focus-visible {
  outline: 2px solid rgba(216, 157, 34, 0.85);
  outline-offset: 2px;
}

.account-profile-shell {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
}

.account-profile-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: left;
}

.account-profile-trigger:hover,
.account-profile-shell.is-open .account-profile-trigger {
  background: rgba(255, 255, 255, 0.14);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-profile-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #e31b43, #a80f29);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.24);
}

.account-profile-trigger-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.account-profile-trigger-copy strong {
  max-width: 150px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-trigger-copy small {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
}

.account-profile-chevron {
  color: rgba(255, 255, 255, 0.62);
  transition: transform 160ms ease;
}

.account-profile-shell.is-open .account-profile-chevron {
  transform: rotate(180deg);
}

.account-profile-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 40;
  width: 245px;
  padding: 0.55rem;
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(14, 20, 29, 0.24);
  color: var(--ink);
}

.account-profile-menu-identity {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem 0.8rem;
}

.account-profile-menu-identity span {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-profile-menu button {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.account-profile-menu button:hover {
  background: rgba(200, 16, 46, 0.07);
  color: var(--accent-dark);
  transform: none;
}

.account-profile-menu-divider {
  height: 1px;
  margin: 0.35rem 0.65rem;
  background: var(--line);
}

.account-profile-menu .account-profile-logout {
  color: #a80f29;
}

.account-profile-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(11, 16, 24, 0.68);
  backdrop-filter: blur(10px);
}

.account-profile-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 3rem));
  padding: 2rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(200, 16, 46, 0.1), transparent 28%),
    rgba(250, 251, 252, 0.98);
  box-shadow: 0 34px 90px rgba(7, 11, 18, 0.34);
}

.account-profile-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.35rem;
}

.account-profile-dialog-header {
  padding-right: 3rem;
}

.account-profile-dialog-header h2,
.account-profile-dialog-header p {
  margin: 0;
}

.account-profile-dialog-header h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.account-profile-dialog-header > p:last-child,
.account-profile-form-note {
  color: var(--muted);
}

.account-profile-dialog-tabs {
  display: inline-flex;
  gap: 0.35rem;
  margin: 1.4rem 0 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 32, 42, 0.04);
}

.account-profile-dialog-tabs button {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.account-profile-dialog-tabs button.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 7px 18px rgba(22, 32, 42, 0.08);
}

.account-dialog-panel {
  display: none;
  padding-top: 0.5rem;
}

.account-dialog-panel.active {
  display: block;
}

.account-profile-form-note {
  margin: 0;
  font-size: 0.84rem;
}

.settings-workbench.stack {
  gap: 1.5rem;
}

.settings-workbench-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(200, 16, 46, 0.38), transparent 28%),
    linear-gradient(135deg, #121923, #1b202b 58%, #2b1119);
  color: white;
  box-shadow: 0 24px 60px rgba(11, 17, 26, 0.18);
}

.settings-workbench-hero h2,
.settings-workbench-hero p {
  margin: 0;
}

.settings-workbench-hero h2 {
  margin: 0.25rem 0 0.55rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.settings-workbench-hero > div:first-child > p:last-child {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.65);
}

.settings-workbench-identity {
  display: flex;
  min-width: min(320px, 100%);
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  text-align: right;
}

.settings-workbench-identity span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ff9caf;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.settings-workbench-identity strong {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.settings-workbench-identity small {
  color: rgba(255, 255, 255, 0.56);
}

.settings-workbench-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(22, 32, 42, 0.06);
}

.settings-workbench-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border-radius: 13px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.settings-workbench-nav a:hover {
  background: rgba(200, 16, 46, 0.07);
  color: var(--accent-dark);
}

.settings-workbench-nav a span {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.settings-workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.settings-workbench-card {
  min-width: 0;
  padding: 1.25rem;
  scroll-margin-top: 1rem;
  border: 1px solid rgba(22, 32, 42, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(22, 32, 42, 0.06);
}

.settings-workbench-card.is-wide {
  grid-column: 1 / -1;
}

.settings-workbench-card-header {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.settings-workbench-card-header > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.settings-workbench-card-header h3,
.settings-workbench-card-header p {
  margin: 0;
}

.settings-workbench-card-header h3 {
  font-size: 1.05rem;
}

.settings-workbench-card-header p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.settings-workbench-card-content > .panel {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.settings-workbench-card-content .panel-header:first-child {
  margin-top: 0;
}

.settings-workbench-card-content .backup-card,
.settings-workbench-card-content .auth-admin-panel {
  margin-top: 0;
}

#settings-backup .settings-workbench-card-content {
  display: grid;
  gap: 1rem;
}

.settings-personal-account {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.settings-personal-account-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.settings-personal-account-main strong,
.settings-personal-account-main p {
  margin: 0;
}

.settings-personal-account-main p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.settings-personal-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(145deg, #e31b43, #a80f29);
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(200, 16, 46, 0.22);
}

.settings-role-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.settings-scope-chip {
  display: flex;
  min-width: 150px;
  min-height: 48px;
  flex-direction: column;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(200, 16, 46, 0.12);
  border-radius: 14px;
  background: rgba(200, 16, 46, 0.05);
}

.settings-scope-chip span {
  color: var(--muted);
  font-size: 0.68rem;
}

.settings-scope-chip strong {
  margin-top: 0.15rem;
  font-size: 0.88rem;
}

.settings-data-summary {
  margin-top: 0.85rem;
}

.auth-admin-panel {
  margin-top: 1rem;
}

.user-scope-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.user-scope-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 800;
}

.user-scope-fieldset label {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 750;
}

.user-scope-fieldset .muted {
  flex-basis: 100%;
  margin: 0;
}

.user-access-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(200px, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.user-access-form > label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.user-access-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  min-height: 42px;
  align-items: center;
}

.user-access-scopes label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 750;
}

@media (max-width: 900px) {
  .user-access-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.backup-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(230px, auto);
  gap: 1.15rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(172, 24, 46, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(216, 157, 34, 0.17), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 250, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 45px rgba(79, 18, 29, 0.08);
}

.backup-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: white;
  border-radius: 17px;
  background: linear-gradient(145deg, #b01835, #7e1025);
  box-shadow: 0 12px 28px rgba(126, 16, 37, 0.24);
}

.backup-card-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.backup-card-copy {
  display: grid;
  gap: 0.3rem;
}

.backup-card-copy h3,
.backup-card-copy p {
  margin: 0;
}

.backup-card-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.backup-card-copy .backup-security-note {
  color: #7e1025;
  font-size: 0.82rem;
  font-weight: 700;
}

.backup-card-actions {
  display: grid;
  justify-items: stretch;
  gap: 0.55rem;
}

.button-backup {
  min-height: 46px;
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, #b01835, #861229);
  box-shadow: 0 12px 24px rgba(134, 18, 41, 0.2);
}

.button-backup:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(134, 18, 41, 0.26);
}

.backup-progress {
  max-width: 290px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: center;
}

.backup-import-button {
  justify-content: center;
  font-size: 0.82rem;
}

.recovery-backup-card {
  border-color: rgba(28, 77, 107, 0.2);
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 135, 146, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(247, 252, 253, 0.98), rgba(255, 255, 255, 0.96));
}

.recovery-backup-icon {
  background: linear-gradient(145deg, #176d78, #16445f);
  box-shadow: 0 12px 28px rgba(22, 68, 95, 0.24);
}

.recovery-backup-actions {
  min-width: min(100%, 290px);
}

.recovery-backup-actions label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.recovery-backup-actions input {
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid rgba(22, 68, 95, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.complete-export-card {
  border-color: rgba(117, 71, 168, 0.2);
  background:
    radial-gradient(circle at 92% 12%, rgba(117, 71, 168, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(251, 249, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.complete-export-icon {
  background: linear-gradient(145deg, #7547a8, #49316f);
  box-shadow: 0 12px 28px rgba(73, 49, 111, 0.24);
}

.complete-export-actions {
  min-width: min(100%, 310px);
}

.complete-export-actions label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.complete-export-actions input {
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid rgba(73, 49, 111, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.complete-export-result {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(73, 49, 111, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.complete-export-result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.complete-export-result.is-failed {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(255, 244, 243, 0.9);
}

.complete-export-summary,
.complete-export-downloads {
  display: grid;
  gap: 0.45rem;
}

.complete-export-summary span {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.complete-export-summary b {
  color: var(--ink);
  text-align: right;
}

.complete-export-errors {
  display: grid;
  gap: 0.45rem;
  max-height: 220px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.complete-export-errors li {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.complete-export-errors span,
.complete-export-errors small {
  overflow-wrap: anywhere;
}

.complete-export-errors span {
  font-size: 0.76rem;
}

.complete-export-errors small {
  color: var(--muted);
  font-size: 0.7rem;
}

.audit-log-panel {
  margin-top: 1rem;
}

.deployment-health-panel {
  margin-top: 1rem;
}

.deployment-health-summary strong {
  font-size: 1.1rem;
}

.deployment-check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.deployment-check-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.deployment-check-card.success {
  background: rgba(241, 250, 244, 0.92);
  border-color: rgba(31, 122, 66, 0.18);
}

.deployment-check-card.warning {
  background: rgba(255, 248, 235, 0.96);
  border-color: rgba(185, 115, 0, 0.2);
}

.deployment-check-card.optional {
  background: rgba(243, 248, 255, 0.94);
  border-color: rgba(61, 107, 211, 0.18);
}

.deployment-check-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.deployment-check-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.deployment-check-notes {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.deployment-check-notes li + li {
  margin-top: 0.25rem;
}

.health-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.health-chip.success {
  color: #1f7a42;
  background: rgba(241, 250, 244, 0.92);
  border-color: rgba(31, 122, 66, 0.2);
}

.health-chip.warning {
  color: #9a3412;
  background: rgba(255, 247, 237, 0.98);
  border-color: rgba(194, 65, 12, 0.18);
}

.health-chip.optional {
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(29, 78, 216, 0.16);
}

.audit-log-list {
  display: grid;
  gap: 0.85rem;
}

.audit-log-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.audit-log-main {
  display: grid;
  gap: 0.28rem;
}

.audit-log-main p {
  margin: 0;
}

.audit-log-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.month-chip.audit-status-failed {
  color: #b42318;
  background: rgba(254, 243, 242, 0.96);
  border-color: rgba(180, 35, 24, 0.16);
}

.month-chip.audit-status-denied {
  color: #9a3412;
  background: rgba(255, 247, 237, 0.98);
  border-color: rgba(194, 65, 12, 0.18);
}

.user-table {
  display: grid;
  gap: 0.85rem;
}

.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.user-row p {
  margin: 0.3rem 0 0;
}

.user-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-reset-form {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.inline-reset-form input {
  width: 170px;
  min-height: 42px;
}

.inline-feedback {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(22, 32, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.inline-feedback.success {
  background: rgba(241, 250, 244, 0.92);
  border-color: rgba(31, 122, 66, 0.24);
  color: #1f7a42;
}

.inline-feedback.error {
  background: rgba(254, 243, 242, 0.96);
  border-color: rgba(180, 35, 24, 0.2);
  color: #b42318;
}

.inline-feedback.readonly {
  background: rgba(246, 248, 251, 0.96);
  border-color: rgba(71, 85, 105, 0.2);
  color: #334155;
}

.action-feedback {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(22, 32, 42, 0.12);
  background: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.action-feedback::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-top: 0.42rem;
  background: currentColor;
}

.action-feedback strong {
  font-size: 0.92rem;
}

.action-feedback p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.action-feedback.info {
  color: var(--blue-dark);
  background: rgba(243, 248, 255, 0.94);
  border-color: rgba(63, 110, 211, 0.24);
}

.action-feedback.success {
  color: var(--green-dark);
  background: rgba(241, 250, 244, 0.94);
  border-color: rgba(31, 122, 66, 0.24);
}

.action-feedback.error {
  color: #b42318;
  background: rgba(254, 243, 242, 0.96);
  border-color: rgba(180, 35, 24, 0.22);
}

.workspace {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar,
.content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-tabbed {
  width: 100%;
}

.page-header,
.hero,
.card,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.page-header {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 240, 0.82)),
    linear-gradient(135deg, rgba(186, 45, 45, 0.12), rgba(216, 157, 34, 0.1));
  padding: 0;
  overflow: visible;
}

.page-header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem 1rem;
}

.page-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-nav-shell {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  border-top: 1px solid rgba(22, 32, 42, 0.08);
  border-radius: 0 0 27px 27px;
  background: linear-gradient(180deg, #394451, #2c3440);
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.9rem 1.15rem;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.page-nav-link.frequent {
  background: rgba(151, 166, 181, 0.11);
}

.page-nav-link:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.page-nav-link.frequent:hover {
  background: rgba(167, 181, 194, 0.18);
}

.page-nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  box-shadow: inset 0 -3px 0 var(--gold);
}

.page-nav-link.frequent.active {
  background: rgba(255, 255, 255, 0.16);
}

.page-nav-link.locked,
.page-nav-link.locked:hover {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.38);
  border-right-color: rgba(255, 255, 255, 0.05);
}

.page-nav-link.frequent.locked,
.page-nav-link.frequent.locked:hover {
  background: rgba(151, 166, 181, 0.065);
}

.hero {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 240, 0.82)),
    linear-gradient(135deg, rgba(186, 45, 45, 0.12), rgba(216, 157, 34, 0.1));
}

.team-switch {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 32, 42, 0.08);
}

.team-switch-nav {
  margin-top: 0;
  align-self: center;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-toggle {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.team-switch-nav .team-toggle {
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.team-switch-nav .team-toggle.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}

.team-toggle.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 12px 30px rgba(134, 31, 36, 0.18);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.35rem;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calculation-standards {
  gap: 1.2rem;
}

.regional-goals-panel {
  display: grid;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid rgba(186, 45, 45, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at right top, rgba(186, 45, 45, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 236, 0.88));
}

.regional-goals-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.regional-goals-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.regional-goals-header > span {
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.regional-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.regional-goals-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(22, 32, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.regional-goals-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(186, 45, 45, 0.12);
  color: var(--accent-dark);
  font-weight: 900;
}

.regional-goals-grid strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.02rem;
}

.regional-goals-grid p {
  margin: 0;
  color: #24323f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.regional-goals-grid ul {
  display: grid;
  gap: 0.2rem;
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.42;
}

.calculation-score-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.calculation-light-scale {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.calculation-light-scale div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(22, 32, 42, 0.04);
}

.calculation-light-scale strong {
  font-size: 1.2rem;
}

.calculation-light-scale span {
  color: var(--ink);
  font-weight: 800;
}

.calculation-light-scale .green strong {
  color: #22a447;
}

.calculation-light-scale .yellow strong {
  color: #d89d22;
}

.calculation-light-scale .red strong {
  color: #e61b1b;
}

.calculation-light-scale .black strong {
  color: #111827;
}

.calculation-score-table-wrap {
  border-radius: 18px;
}

.calculation-score-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calculation-score-table th,
.calculation-score-table td {
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid rgba(22, 32, 42, 0.1);
  text-align: center;
  vertical-align: middle;
}

.calculation-score-table th {
  background: rgba(186, 45, 45, 0.95);
  color: white;
  font-weight: 900;
  line-height: 1.35;
}

.calculation-score-table th span {
  font-size: 0.82rem;
  opacity: 0.86;
}

.calculation-score-table td {
  background: rgba(255, 255, 255, 0.72);
}

.calculation-score-table td span,
.calculation-score-table td strong {
  display: inline-block;
}

.calculation-score-table td span {
  min-width: 6.5rem;
  color: #17202a;
  font-weight: 700;
}

.calculation-score-table td strong {
  min-width: 1.8rem;
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.calculation-definition-list {
  display: grid;
  gap: 0.75rem;
}

.calculation-definition-list article {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.calculation-definition-list article > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.calculation-definition-list strong {
  color: var(--accent-dark);
  font-size: 1.05rem;
}

.calculation-definition-list span {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.calculation-definition-list p {
  margin: 0;
  color: #24323f;
  line-height: 1.62;
}

.label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.help-text {
  color: var(--muted);
  font-size: 0.8rem;
}

.summary-grid,
.report-topline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

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

.summary-grid div,
.report-topline div {
  padding: 0.95rem;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.summary-grid span,
.report-topline span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.summary-grid strong,
.report-topline strong {
  font-size: 1.5rem;
}

.actions-row,
.field-grid,
.panel-header {
  display: flex;
  gap: 0.8rem;
}

.actions-row {
  flex-wrap: wrap;
}

.field-grid > * {
  flex: 1;
}

.field-grid-3 {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem;
}

.field-span-2 {
  grid-column: span 2;
}

.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel-header {
  justify-content: space-between;
  align-items: end;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-filter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 180px;
  color: var(--muted);
  font-size: 0.92rem;
}

.month-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff5ee;
  color: var(--muted);
  font-size: 0.92rem;
}

.month-chip.strong {
  color: var(--accent-dark);
  font-weight: 700;
}

.batch-upload-panel {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.batch-upload-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.batch-upload-summary::-webkit-details-marker {
  display: none;
}

.batch-upload-summary strong {
  display: block;
  font-size: 1.05rem;
}

.batch-upload-summary .muted {
  margin: 0.25rem 0 0;
}

.batch-upload-summary-hint {
  flex-shrink: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.batch-upload-panel[open] .batch-upload-summary-hint {
  content: "";
}

.batch-upload-content {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.month-binding-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.month-binding-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.month-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.month-selection-bar.active {
  border-style: solid;
  background: rgba(186, 45, 45, 0.06);
}

.month-selection-bar strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.month-selection-bar .muted {
  margin: 0.3rem 0 0;
}

.month-selection-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.month-selection-actions button {
  white-space: nowrap;
}

.month-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 210px;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  text-align: left;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.month-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.month-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.month-card span {
  color: var(--muted);
}

.month-card-action {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.month-card.active {
  border-color: rgba(186, 45, 45, 0.4);
  background: rgba(186, 45, 45, 0.06);
}

.month-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(22, 32, 42, 0.08);
  border-bottom: 1px solid rgba(22, 32, 42, 0.08);
}

.month-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  margin-top: auto;
}

.month-card-actions button {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
}

.requirement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.month-modal-requirement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.requirement-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
}

.requirement-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.requirement-item-head-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.requirement-item.active {
  box-shadow: inset 0 0 0 2px rgba(186, 45, 45, 0.22);
}

.requirement-item-action {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.requirement-item-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.month-modal-upload-target {
  padding: 0.95rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

#month-modal-form {
  margin-top: 1.25rem;
}

.month-modal-upload-target strong {
  font-size: 1.05rem;
}

.month-chasing-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 244, 0.92));
}

.month-chasing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.month-chasing-header h3 {
  margin: 0.25rem 0 0.3rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.month-chasing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 0.5rem;
  min-width: min(100%, 350px);
}

.month-chasing-summary span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(22, 32, 42, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
}

.month-chasing-summary strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.month-chasing-region-file,
.month-chasing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.month-chasing-region-file {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: 16px;
  background: white;
}

.month-chasing-region-file.received {
  border-color: rgba(31, 122, 66, 0.22);
  background: rgba(241, 250, 244, 0.9);
}

.month-chasing-region-file.missing {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(255, 245, 244, 0.9);
}

.month-chasing-region-file > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.month-chasing-toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.month-chasing-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: rgba(22, 32, 42, 0.05);
  font-weight: 700;
}

.month-chasing-filter input {
  width: 18px;
  height: 18px;
}

.month-chasing-copy-status {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.month-chasing-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(22, 32, 42, 0.09);
  border-radius: 16px;
  background: white;
}

.month-chasing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.month-chasing-table th,
.month-chasing-table td {
  padding: 0.78rem 0.7rem;
  border-bottom: 1px solid rgba(22, 32, 42, 0.08);
  text-align: center;
  vertical-align: middle;
}

.month-chasing-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f1ef;
  color: #4f5965;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.month-chasing-table tbody th {
  text-align: left;
  white-space: nowrap;
}

.month-chasing-table tbody tr:last-child th,
.month-chasing-table tbody tr:last-child td {
  border-bottom: 0;
}

.month-chasing-table tbody tr:hover {
  background: rgba(186, 45, 45, 0.035);
}

.month-chasing-status,
.month-chasing-row-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.month-chasing-status.received,
.month-chasing-row-result.complete {
  color: #176a38;
  background: #e6f6eb;
}

.month-chasing-status.missing,
.month-chasing-row-result.incomplete {
  color: #a9251d;
  background: #fde9e7;
}

.month-chasing-status.not-applicable {
  color: #5f6670;
  background: #eef0f2;
}

.month-chasing-empty {
  margin: 0;
}

.requirement-item.done {
  background: rgba(47, 158, 68, 0.08);
  border-color: rgba(47, 158, 68, 0.22);
}

.requirement-item.partial {
  background: rgba(226, 177, 0, 0.1);
  border-color: rgba(226, 177, 0, 0.24);
}

.requirement-item.pending {
  background: rgba(217, 72, 65, 0.06);
  border-color: rgba(217, 72, 65, 0.18);
}

.dataset-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: white;
}

.chapter-order {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  border-radius: 16px;
  background: #fff5ee;
  color: var(--accent-dark);
  font-weight: 700;
}

.chapter-fields {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 0.8rem;
}

.chapter-actions {
  flex-shrink: 0;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.presentation-deck {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.presentation-compare {
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(248, 243, 236, 0.98));
}

.presentation-compare-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.presentation-compare-summary::-webkit-details-marker {
  display: none;
}

.presentation-compare-summary h3 {
  margin: 0.15rem 0 0;
}

.presentation-compare-summary-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.presentation-compare-summary-stats span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.presentation-compare-content {
  margin-top: 1rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.comparison-card,
.comparison-panel,
.comparison-pill,
.comparison-name-item {
  border: 1px solid var(--line);
  background: white;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 18px;
}

.comparison-card span {
  color: var(--muted);
}

.comparison-card strong {
  font-size: 2rem;
  line-height: 1;
}

.comparison-card.success {
  background: rgba(47, 158, 68, 0.08);
  border-color: rgba(47, 158, 68, 0.2);
}

.comparison-card.warning {
  background: rgba(226, 177, 0, 0.1);
  border-color: rgba(226, 177, 0, 0.2);
}

.comparison-card.danger {
  background: rgba(214, 59, 45, 0.08);
  border-color: rgba(214, 59, 45, 0.18);
}

.comparison-card.notice {
  background: rgba(58, 124, 165, 0.08);
  border-color: rgba(58, 124, 165, 0.18);
}

.comparison-sections {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0.8rem;
}

.comparison-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
}

.comparison-panel-wide {
  grid-column: 1 / -1;
}

.comparison-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.comparison-panel-header h4 {
  margin: 0;
}

.comparison-panel-header span {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.comparison-pill-list,
.comparison-name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.comparison-pill,
.comparison-name-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
}

.comparison-pill span,
.comparison-name-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.similar-pair-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.similar-pair-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
}

.similar-pair-label,
.similar-pair-reason {
  color: var(--muted);
  font-size: 0.88rem;
}

.similar-pair-arrow {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.presentation-slide {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 2rem;
  border-radius: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at right bottom, var(--presentation-bg-glow, rgba(186, 45, 45, 0.18)), transparent 24%),
    linear-gradient(
      180deg,
      var(--presentation-bg-gradient-start, rgba(255, 255, 255, 0.96)),
      var(--presentation-bg-gradient-end, rgba(247, 243, 237, 0.98))
    ),
    var(--presentation-bg-surface, #f1ede6);
  border: 1px solid rgba(22, 32, 42, 0.08);
}

.presentation-slide-watermark {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.presentation-slide-bg {
  position: absolute;
  left: 2rem;
  bottom: var(--presentation-bg-bottom, 9.5rem);
  z-index: 1;
  color: rgba(21, 21, 21, 0.06);
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  max-width: 72%;
}

.presentation-slide > :not(.presentation-slide-watermark):not(.presentation-slide-bg) {
  position: relative;
  z-index: 2;
}

.presentation-slide-bg-region {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.presentation-slide-bg-team {
  font-size: clamp(7rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.presentation-header,
.presentation-footer {
  position: relative;
  z-index: 1;
}

.presentation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.presentation-header h3 {
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 2.9rem);
}

.presentation-header p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.presentation-table-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
}

.presentation-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.presentation-table .col-rank { width: 4%; }

.presentation-table .col-chapter { width: 8%; }

.presentation-table .col-leaders { width: 12%; }

.presentation-table .col-members { width: 10%; }

.presentation-table .col-retention { width: 7%; }

.presentation-table .col-first-year { width: 9%; }

.presentation-table .col-referrals { width: 6%; }

.presentation-table .col-visitors { width: 6%; }

.presentation-table .col-conversion { width: 7%; }

.presentation-table .col-absence { width: 7%; }

.presentation-table .col-traffic { width: 12%; }

.presentation-table .col-green { width: 8%; }

.presentation-table th,
.presentation-table td {
  padding: 0.38rem 0.4rem;
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
  font-size: 1.18rem;
  line-height: 1.02;
}

.presentation-table th {
  font-size: 1.06rem;
  font-weight: 800;
  border-bottom: 2px solid rgba(21, 21, 21, 0.28);
  background: rgba(255, 255, 255, 0.58);
  line-height: 1;
}

.presentation-table td.chapter {
  font-size: 1.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.presentation-table td.numeric-cell,
.presentation-table td.numeric-cell .signal-score {
  font-size: 1.48rem;
  font-weight: 700;
}

.presentation-table-metric-value.is-missing {
  color: rgba(43, 43, 43, 0.42);
  font-weight: 600;
}

.presentation-briefing-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(186, 45, 45, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at right top, rgba(230, 27, 27, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 236, 0.9));
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.07);
}

.presentation-briefing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.presentation-briefing-header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.presentation-briefing-header p {
  margin: 0.25rem 0 0;
}

.presentation-briefing-header > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #17202a;
  color: white;
  font-weight: 800;
}

.presentation-briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.presentation-briefing-grid article,
.presentation-briefing-list article {
  border: 1px solid rgba(22, 32, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.presentation-briefing-grid article {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem;
}

.presentation-briefing-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.presentation-briefing-grid p,
.presentation-briefing-list p {
  margin: 0;
  color: #24323f;
  line-height: 1.62;
}

.presentation-briefing-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.presentation-briefing-list article {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
}

.presentation-briefing-list article.signal-green {
  border-color: rgba(47, 158, 68, 0.24);
  background: rgba(47, 158, 68, 0.08);
}

.presentation-briefing-list article.signal-yellow {
  border-color: rgba(216, 157, 34, 0.28);
  background: rgba(216, 157, 34, 0.1);
}

.presentation-briefing-list article.signal-red {
  border-color: rgba(217, 72, 65, 0.26);
  background: rgba(217, 72, 65, 0.08);
}

.presentation-briefing-list article.signal-black {
  border-color: rgba(100, 116, 139, 0.3);
  background: rgba(100, 116, 139, 0.1);
}

.presentation-briefing-list article.signal-none {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
}

.presentation-briefing-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.presentation-briefing-list strong {
  font-size: 1.08rem;
}

.presentation-briefing-list ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
  line-height: 1.58;
}

.chapter-summary-briefing-panel {
  margin-bottom: 0.2rem;
}

.signal-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 5.6rem;
}

.traffic-light {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #303030;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.traffic-light span {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #7d7d7d;
}

.traffic-light.green span {
  background: #18a24a;
  box-shadow: 0 0 14px rgba(24, 162, 74, 0.45);
}

.traffic-light.yellow span {
  background: #e2b100;
  box-shadow: 0 0 14px rgba(226, 177, 0, 0.4);
}

.traffic-light.red span {
  background: #d63b2d;
  box-shadow: 0 0 14px rgba(214, 59, 45, 0.45);
}

.traffic-light.black span {
  background: #1f2937;
  box-shadow: 0 0 14px rgba(15, 23, 42, 0.42);
}

.presentation-footer {
  margin-top: 1.35rem;
  padding-top: 1rem;
  padding-right: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  justify-content: flex-end;
  border-top: 2px solid var(--presentation-footer-border, rgba(186, 45, 45, 0.16));
  color: var(--presentation-accent, var(--accent-dark));
  font-size: 1.12rem;
  font-weight: 700;
}

.presentation-kpi strong {
  margin: 0 0.25rem;
  font-size: 2.2rem;
}

.presentation-kpi-total strong {
  color: var(--presentation-kpi-total, var(--presentation-accent, var(--accent-dark)));
}

.presentation-slide-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 5.75rem;
}

.presentation-metric-legend {
  position: absolute;
  top: auto;
  bottom: 2rem;
  left: 3.5rem;
  right: 3.5rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0;
  color: rgba(43, 43, 43, 0.88);
  font-size: 1.02rem;
  font-weight: 700;
}

.presentation-metric-legend-note {
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 21, 21, 0.08);
}

.presentation-metric-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.presentation-metric-legend-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.presentation-metric-legend-swatch.green { background: rgba(161, 245, 157, 0.7); }
.presentation-metric-legend-swatch.yellow { background: rgba(255, 230, 139, 0.7); }
.presentation-metric-legend-swatch.red { background: rgba(239, 150, 150, 0.7); }
.presentation-metric-legend-swatch.black { background: rgba(166, 166, 166, 0.7); }

.presentation-chart-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-start;
  margin-top: 0.15rem;
  padding-bottom: 3.75rem;
  box-sizing: border-box;
}

.presentation-chart {
  position: relative;
  width: 100%;
  min-height: 38rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
  gap: 0.7rem;
  align-items: end;
}

.presentation-chart-column {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.275rem;
}

.presentation-chart-column.stacked {
  gap: 0.275rem;
}

.presentation-chart-value-wrap {
  min-height: 4.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.presentation-chart-column.stacked .presentation-chart-value-wrap {
  min-height: 3.1rem;
}

.presentation-chart-value-wrap.negative {
  justify-content: flex-start;
}

.presentation-chart-value-wrap.diverging {
  min-height: 4rem;
  justify-content: flex-start;
}

.presentation-chart-diverging.all-negative .presentation-chart-value-wrap.diverging {
  min-height: 2.5rem;
}

.presentation-chart-crown {
  position: absolute;
  top: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 10px rgba(232, 163, 31, 0.22));
  pointer-events: none;
  z-index: 3;
  width: 3.6rem;
  height: 2.7rem;
}

.presentation-chart-crown svg {
  display: block;
  width: 100%;
  height: 100%;
}

.presentation-chart-value {
  font-size: clamp(1.2rem, 2.2vw, 2.1rem);
  font-weight: 500;
  color: rgba(43, 43, 43, 0.86);
  position: relative;
  z-index: 2;
}

.presentation-chart-column.is-highlight .presentation-chart-value:not(.axis) {
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.98), rgba(255, 238, 189, 0.94));
  border: 2px solid rgba(216, 157, 34, 0.52);
  box-shadow:
    0 0 0 4px rgba(255, 240, 194, 0.9),
    0 14px 28px rgba(216, 157, 34, 0.28);
  color: #7c4f00;
  font-weight: 700;
}

.presentation-chart-track {
  position: relative;
  width: 100%;
  height: 23rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.presentation-chart-track.diverging {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  height: 27rem;
}

.presentation-chart-bar {
  display: block;
  width: 72%;
  max-width: 4.8rem;
  min-height: 0.4rem;
  border-radius: 1rem 1rem 0.2rem 0.2rem;
  background: linear-gradient(180deg, rgba(36, 195, 195, 0.7), rgba(30, 168, 168, 0.7));
  box-shadow: 0 10px 20px rgba(30, 168, 168, 0.14);
}

.presentation-chart-bar.missing {
  min-height: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 0.18rem dashed rgba(43, 43, 43, 0.26);
  box-shadow: none;
}

.presentation-chart-missing-placeholder {
  display: block;
  width: 72%;
  max-width: 4.8rem;
  height: 56%;
  border-radius: 1rem 1rem 0.2rem 0.2rem;
  border: 0.18rem dashed rgba(43, 43, 43, 0.24);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.presentation-chart-value.missing {
  color: rgba(43, 43, 43, 0.48);
  font-weight: 700;
}

.presentation-chart-column.signal-green .presentation-chart-bar {
  background: linear-gradient(180deg, rgba(168, 246, 166, 0.7), rgba(150, 242, 156, 0.7));
  box-shadow: 0 10px 20px rgba(109, 223, 122, 0.16);
}

.presentation-chart-column.signal-yellow .presentation-chart-bar {
  background: linear-gradient(180deg, rgba(255, 233, 146, 0.7), rgba(255, 224, 122, 0.7));
  box-shadow: 0 10px 20px rgba(226, 177, 0, 0.14);
}

.presentation-chart-column.signal-red .presentation-chart-bar {
  background: linear-gradient(180deg, rgba(244, 163, 163, 0.7), rgba(239, 146, 146, 0.7));
  box-shadow: 0 10px 20px rgba(214, 59, 45, 0.12);
}

.presentation-chart-column.signal-black .presentation-chart-bar {
  background: linear-gradient(180deg, rgba(75, 85, 99, 0.78), rgba(31, 41, 55, 0.82));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.presentation-chart-column.signal-none .presentation-chart-bar {
  background: linear-gradient(180deg, rgba(213, 215, 219, 0.7), rgba(193, 196, 201, 0.7));
  box-shadow: 0 10px 20px rgba(96, 104, 112, 0.12);
}

.presentation-chart-column.signal-purple .presentation-chart-bar {
  background: linear-gradient(180deg, rgba(166, 121, 222, 0.78), rgba(123, 69, 183, 0.78));
  box-shadow: 0 10px 20px rgba(123, 69, 183, 0.18);
}

.presentation-chart-half {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.presentation-chart-half.top {
  align-items: flex-end;
  padding-bottom: 0;
}

.presentation-chart-half.bottom {
  align-items: flex-start;
  padding-top: 0;
}

.presentation-chart-axis-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: visible;
  min-height: 2.6rem;
}

.presentation-chart-axis-gap::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  right: -0.4rem;
  top: 50%;
  height: 1px;
  background: rgba(21, 21, 21, 0.12);
  z-index: 0;
}

.presentation-chart-axis-gap.has-crown .presentation-chart-crown,
.presentation-chart-value-wrap.has-crown .presentation-chart-crown {
  top: -2.55rem;
}

.presentation-chart-column.stacked .presentation-chart-value-wrap.has-crown .presentation-chart-crown {
  top: -3.35rem;
}

.presentation-chart-value-wrap.diverging .presentation-chart-crown.crown-top {
  top: -0.8rem;
}

.presentation-chart-diverging.all-negative .presentation-chart-value-wrap.diverging .presentation-chart-crown.crown-top {
  top: 0.1rem;
}

.presentation-chart-value.axis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.8rem;
  padding: 0.15rem 0.6rem;
  background: #ffffff;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(22, 32, 42, 0.08);
  position: relative;
  z-index: 2;
}

.presentation-chart-column.is-highlight.diverging .presentation-chart-value.axis {
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.98), rgba(255, 238, 189, 0.94));
  border: 2px solid rgba(216, 157, 34, 0.52);
  box-shadow:
    0 0 0 4px rgba(255, 240, 194, 0.9),
    0 14px 28px rgba(216, 157, 34, 0.28);
  color: #7c4f00;
  font-weight: 700;
}

.presentation-chart-column.diverging .presentation-chart-bar {
  width: 68%;
  max-width: 4.3rem;
}

.presentation-chart-column.diverging .presentation-chart-bar.positive {
  border-radius: 1rem 1rem 0.2rem 0.2rem;
  background: linear-gradient(180deg, rgba(36, 195, 195, 0.7), rgba(30, 168, 168, 0.7));
}

.presentation-chart-column.diverging.signal-purple .presentation-chart-bar.positive {
  background: linear-gradient(180deg, rgba(166, 121, 222, 0.78), rgba(123, 69, 183, 0.78));
  box-shadow: 0 10px 20px rgba(123, 69, 183, 0.14);
}

.presentation-chart-column.diverging .presentation-chart-bar.negative {
  border-radius: 0.2rem 0.2rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(244, 163, 163, 0.7), rgba(239, 146, 146, 0.7));
  box-shadow: 0 10px 20px rgba(214, 59, 45, 0.12);
}

.presentation-chart-zero-line {
  display: none;
}

.presentation-chart-track.stacked {
  height: 23rem;
}

.presentation-chart-stack {
  width: 72%;
  max-width: 4.8rem;
  height: 100%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

.presentation-chart-stack.missing {
  height: 56%;
  border: 0.18rem dashed rgba(43, 43, 43, 0.26);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.presentation-chart-segment {
  display: block;
  width: 100%;
}

.presentation-chart-segment:last-child {
  border-radius: 1rem 1rem 0 0;
}

.presentation-chart-segment.green {
  background: rgba(161, 245, 157, 0.7);
}

.presentation-chart-segment.yellow {
  background: rgba(255, 230, 139, 0.7);
}

.presentation-chart-segment.red {
  background: rgba(239, 150, 150, 0.7);
}

.presentation-chart-segment.other {
  background: rgba(166, 166, 166, 0.7);
}

.presentation-chart-missing {
  align-self: center;
  margin: auto 0;
  font-size: 2rem;
  color: rgba(43, 43, 43, 0.88);
}

.presentation-chart-label {
  margin-top: 0.35rem;
  font-size: 2.375rem;
  font-weight: 500;
  color: rgba(43, 43, 43, 0.88);
  text-align: center;
  white-space: nowrap;
  line-height: 0.84;
}

.presentation-chart-column.stacked .presentation-chart-label {
  margin-top: 0.35rem;
}


.attachment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: white;
}

.attachment-main {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.attachment-main p,
.attachment-main span {
  color: var(--muted);
}

.attachment-main p {
  word-break: break-word;
}

.attachment-status {
  display: block;
  font-size: 0.88rem;
}

.attachment-status.success {
  color: #1f7a42;
}

.attachment-status.warning {
  color: #9a6a00;
}

.attachment-status.error {
  color: #b42318;
  font-weight: 700;
}

.attachment-actions {
  flex-shrink: 0;
}

.missing-chapter-panel {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
}

.missing-chapter-panel strong {
  display: block;
  margin-bottom: 0.3rem;
}

.missing-chapter-panel p {
  margin: 0;
  color: var(--muted);
}

.missing-chapter-panel.warning {
  background: rgba(214, 59, 45, 0.06);
  border-color: rgba(214, 59, 45, 0.16);
}

.missing-chapter-panel.success {
  background: rgba(24, 162, 74, 0.08);
  border-color: rgba(24, 162, 74, 0.16);
}

.month-selection-note {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.month-selection-note.warning,
.danger-text {
  color: #b42318;
}

.month-selection-note.success,
.success-text {
  color: #1f7a42;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(22, 32, 42, 0.4);
  backdrop-filter: blur(6px);
  z-index: 30;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-close {
  flex-shrink: 0;
}

.upload-feedback-panel {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(22, 32, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.upload-feedback-panel.info {
  background: rgba(243, 248, 255, 0.92);
  border-color: rgba(61, 107, 211, 0.24);
}

.upload-feedback-panel.success {
  background: rgba(241, 250, 244, 0.92);
  border-color: rgba(31, 122, 66, 0.24);
}

.upload-feedback-panel.warning {
  background: rgba(255, 248, 235, 0.95);
  border-color: rgba(185, 115, 0, 0.24);
}

.upload-feedback-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.upload-feedback-head p,
.upload-feedback-list ul {
  margin: 0.3rem 0 0;
}

.upload-feedback-progress {
  min-width: 4.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 32, 42, 0.08);
  text-align: center;
  font-weight: 800;
}

.upload-feedback-file {
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

.upload-feedback-summary {
  color: var(--muted);
}

.upload-feedback-bar {
  margin-top: 0.8rem;
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 32, 42, 0.08);
  overflow: hidden;
}

.upload-feedback-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d45e39, #861f24);
  transition: width 180ms ease;
}

.upload-feedback-list {
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.upload-feedback-list.success {
  color: #1f7a42;
}

.upload-feedback-list.error {
  color: #b42318;
}

.upload-feedback-list li + li {
  margin-top: 0.25rem;
}

.danger {
  color: var(--accent-dark);
  border-color: rgba(186, 45, 45, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  button,
  .file-button,
  .upload-feedback-bar span {
    transition: none;
  }

  .button-spinner {
    animation-duration: 1.4s;
  }
}

.presentation-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: rgba(15, 22, 29, 0.78);
  backdrop-filter: blur(8px);
}

.presentation-fullscreen-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.presentation-fullscreen-close {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.6rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.presentation-fullscreen-close.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.presentation-fullscreen-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.presentation-fullscreen-stage .presentation-slide {
  width: min(100%, calc((100vh - 3rem) * 16 / 9));
  max-height: calc(100vh - 3rem);
  margin: 0;
  min-height: 0;
  height: auto;
  padding: 2rem;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  cursor: default;
}

.presentation-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3.6rem;
  height: 3.6rem;
  margin-top: -1.8rem;
  padding: 0;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.presentation-nav-prev {
  left: 1rem;
}

.presentation-nav-next {
  right: 1rem;
}

.presentation-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.presentation-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.presentation-fullscreen-meta {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 10rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.presentation-fullscreen-meta strong {
  font-size: 0.95rem;
}

.presentation-fullscreen-meta span {
  font-size: 0.85rem;
  color: var(--muted);
}

.presentation-fullscreen-meta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
}

.dataset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.dataset-item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dataset-item span {
  color: var(--muted);
}

.dataset-item.active {
  border-color: rgba(186, 45, 45, 0.4);
  background: rgba(186, 45, 45, 0.06);
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: white;
}

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

th,
td {
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  background: #fff5ee;
  font-size: 0.9rem;
}

tbody tr:hover {
  background: rgba(216, 157, 34, 0.08);
}

.signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: white;
  font-weight: 700;
}

.signal.green {
  background: var(--green);
}

.signal.yellow {
  background: var(--gold);
}

.signal.red {
  background: var(--red);
}

.signal.black {
  background: #334155;
}

.signal.none {
  background: #94a3b8;
}

.member-traffic-summary-grid {
  min-width: min(100%, 360px);
}

.member-traffic-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.member-traffic-selector-header .muted {
  margin: 0.35rem 0 0;
}

.member-traffic-current-chapter {
  min-width: 180px;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.95), rgba(255, 245, 214, 0.92));
  box-shadow: 0 10px 24px rgba(216, 157, 34, 0.12);
}

.member-traffic-current-chapter span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.member-traffic-current-chapter strong {
  font-size: 1.15rem;
  color: var(--ink);
}

.member-traffic-chapter-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.member-traffic-chapter-list .dataset-item {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.8rem 0.85rem;
  border-width: 1.5px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.member-traffic-chapter-list .dataset-item > div {
  display: grid;
  gap: 0.22rem;
  width: 100%;
}

.member-traffic-chapter-list .dataset-item strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.member-traffic-chapter-list .dataset-item div span {
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: normal;
}

.member-traffic-chapter-list .dataset-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
}

.member-traffic-chapter-list .dataset-item.active {
  border-color: rgba(216, 157, 34, 0.48);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 245, 214, 0.94));
  box-shadow: 0 14px 28px rgba(216, 157, 34, 0.18);
}

.member-traffic-chapter-list .dataset-item.active strong {
  color: #7c4f00;
}

.member-traffic-chapter-list .dataset-item.active > span {
  background: rgba(216, 157, 34, 0.14);
  color: #7c4f00;
}

.member-traffic-topline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.member-traffic-topline div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
}

.member-traffic-topline span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.3rem;
}

.member-traffic-topline strong {
  font-size: 1.1rem;
}

.member-traffic-table {
  min-width: 1500px;
  table-layout: fixed;
}

.member-traffic-table thead th {
  padding: 1rem 1rem;
  background: #f7efe2;
  color: #3b2f24;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.member-traffic-table tbody tr:nth-child(even) {
  background: rgba(247, 242, 234, 0.52);
}

.member-traffic-table td {
  padding: 1.05rem 1rem;
  vertical-align: top;
}

.member-traffic-col-rank {
  width: 76px;
}

.member-traffic-col-member {
  width: 150px;
}

.member-traffic-col-radar {
  width: 220px;
}

.member-traffic-col-score {
  width: 370px;
}

.member-traffic-col-guidance {
  width: 430px;
}

.member-rank-cell {
  text-align: center;
}

.member-rank-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(58, 76, 92, 0.08);
  color: #24323f;
  font-size: 1.02rem;
  font-weight: 800;
}

.member-identity-cell,
.member-radar-column,
.member-score-column,
.member-guidance-column {
  vertical-align: top;
}

.member-name-cell {
  display: grid;
  gap: 0.58rem;
}

.member-name-cell strong {
  font-size: 1.08rem;
  line-height: 1.35;
}

.member-name-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}

.member-name-signal {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
}

.member-total-score {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 32, 42, 0.06);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.member-name-signal.green {
  color: #0e7a3c;
  background: rgba(47, 158, 68, 0.12);
}

.member-name-signal.yellow {
  color: #8a5a00;
  background: rgba(216, 157, 34, 0.14);
}

.member-name-signal.red {
  color: #b33932;
  background: rgba(217, 72, 65, 0.12);
}

.member-name-signal.black {
  color: #334155;
  background: rgba(100, 116, 139, 0.12);
}

.member-name-signal.none {
  color: #64748b;
  background: rgba(148, 163, 184, 0.12);
}

.member-score-gauge {
  position: relative;
  width: 6.8rem;
  height: 3.85rem;
  margin-top: 0.1rem;
}

.member-score-gauge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.member-score-gauge-track,
.member-score-gauge-fill {
  fill: none;
  stroke-linecap: round;
  stroke-width: 9;
}

.member-score-gauge-track {
  stroke: rgba(148, 163, 184, 0.24);
}

.member-score-gauge-fill {
  stroke: #64748b;
}

.member-score-gauge.green .member-score-gauge-fill {
  stroke: #16a34a;
}

.member-score-gauge.yellow .member-score-gauge-fill {
  stroke: #d89d22;
}

.member-score-gauge.red .member-score-gauge-fill {
  stroke: #d94841;
}

.member-score-gauge.black .member-score-gauge-fill,
.member-score-gauge.none .member-score-gauge-fill {
  stroke: #64748b;
}

.member-score-gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 0.48rem;
  width: 0.16rem;
  height: 2.65rem;
  border-radius: 999px;
  background: #17202a;
  transform-origin: 50% 100%;
  box-shadow: 0 0.18rem 0.38rem rgba(15, 23, 42, 0.18);
}

.member-score-gauge-hub {
  position: absolute;
  left: 50%;
  bottom: 0.26rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #17202a;
  border: 2px solid rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
}

.member-score-gauge-caption {
  display: inline-flex;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(22, 32, 42, 0.06);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.member-radar-cell {
  display: grid;
  justify-items: center;
  min-width: 220px;
}

.member-radar {
  width: 168px;
  height: 168px;
  overflow: visible;
}

.member-radar-grid polygon,
.member-radar-grid line {
  fill: none;
  stroke: rgba(148, 163, 184, 0.5);
  stroke-width: 1;
}

.member-radar-grid text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.member-radar-score {
  fill: #17202a;
  font-size: 8px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
}

.member-radar-shape {
  fill: var(--member-radar-fill);
  stroke: var(--member-radar-stroke);
  stroke-width: 2.2;
}

.member-radar-center {
  fill: rgba(15, 23, 42, 0.75);
}

.member-score-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 300px;
}

.member-score-card {
  display: grid;
  gap: 0.32rem;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.member-score-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.member-score-card strong {
  font-size: 0.92rem;
}

.member-score-card span {
  font-size: 0.82rem;
  color: #55626d;
  line-height: 1.45;
}

.member-score-card-score {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
}

.member-score-card-current {
  color: #334155;
}

.member-score-card-next {
  font-weight: 700;
  color: #1f2937;
}

.member-score-card.strong {
  background: rgba(47, 158, 68, 0.11);
  border-color: rgba(47, 158, 68, 0.28);
}

.member-score-card.steady {
  background: rgba(216, 157, 34, 0.13);
  border-color: rgba(216, 157, 34, 0.28);
}

.member-score-card.weak {
  background: rgba(217, 72, 65, 0.1);
  border-color: rgba(217, 72, 65, 0.24);
}

.member-guidance-stack {
  display: grid;
  gap: 0.65rem;
  min-width: 320px;
}

.member-guidance-list {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-guidance-list li {
  margin: 0;
  position: relative;
  padding-left: 1rem;
  color: #24323f;
  font-size: 0.92rem;
  line-height: 1.65;
}

.member-guidance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #b9770e;
}

.member-rolloff-block {
  display: grid;
  gap: 0.35rem;
  border-left: 3px solid rgba(178, 34, 52, 0.36);
  padding: 0.45rem 0.6rem;
  background: rgba(178, 34, 52, 0.06);
  border-radius: 0.5rem;
}

.member-rolloff-block > strong {
  color: #8f1d2c;
  font-size: 0.88rem;
}

.member-rolloff-block ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-rolloff-block li {
  display: grid;
  gap: 0.05rem;
  padding: 0;
  color: #24323f;
  font-size: 0.9rem;
  line-height: 1.35;
}

.member-rolloff-block li small {
  color: #64748b;
  font-size: 0.78rem;
}

.member-rolloff-recovery {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(21, 21, 21, 0.08);
}

.member-rolloff-recovery strong {
  font-size: 0.86rem;
}

.member-rolloff-recovery p {
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.5;
}

.member-rolloff-recovery.risk {
  background: rgba(217, 72, 65, 0.12);
  border-color: rgba(217, 72, 65, 0.28);
}

.member-rolloff-recovery.risk strong {
  color: #9f1f2d;
}

.member-rolloff-recovery.warning {
  background: rgba(245, 185, 66, 0.14);
  border-color: rgba(202, 138, 4, 0.26);
}

.member-rolloff-recovery.warning strong {
  color: #92400e;
}

.member-rolloff-recovery.safe {
  background: rgba(31, 168, 116, 0.1);
  border-color: rgba(31, 168, 116, 0.24);
}

.member-rolloff-recovery.safe strong {
  color: #0f766e;
}

.member-traffic-table th:first-child,
.member-traffic-table td:first-child {
  text-align: center;
}

.member-revenue-table th,
.member-revenue-table td {
  text-align: center;
}

.member-revenue-table td.chapter {
  text-align: left;
  font-weight: 800;
}

.member-revenue-table .col-rank,
.member-revenue-table td.rank {
  width: 64px;
  text-align: center;
}

.member-revenue-table td.rank {
  color: var(--muted);
  font-weight: 800;
}

.member-revenue-table th:nth-child(7),
.member-revenue-table td:nth-child(7) {
  width: 32%;
  min-width: 280px;
}

.member-revenue-table tbody tr.complete {
  background: rgba(241, 250, 244, 0.68);
}

.member-revenue-table tbody tr.partial {
  background: rgba(255, 248, 235, 0.72);
}

.member-revenue-table tbody tr.missing {
  color: rgba(95, 107, 118, 0.92);
}

.member-revenue-table tfoot td {
  border-top: 2px solid rgba(186, 45, 45, 0.28);
  background: rgba(255, 247, 236, 0.96);
  color: var(--ink);
  font-weight: 900;
}

.member-revenue-table tfoot td:first-child {
  text-align: left;
}

.member-revenue-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.member-revenue-tabs button {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.member-revenue-tabs button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}

.member-revenue-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.member-revenue-status.complete {
  color: #0e7a3c;
  background: rgba(47, 158, 68, 0.14);
}

.member-revenue-status.partial {
  color: #8a5a00;
  background: rgba(216, 157, 34, 0.16);
}

.member-revenue-status.missing {
  color: #475569;
  background: rgba(148, 163, 184, 0.16);
}

.member-revenue-bar {
  display: flex;
  width: 100%;
  height: 1.15rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 0 0 1px rgba(22, 32, 42, 0.08);
}

.member-revenue-bar-segment {
  display: block;
  min-width: 2px;
}

.member-revenue-bar-segment.under,
.member-revenue-bar-legend i.under {
  background: #ef9a9a;
}

.member-revenue-bar-segment.middle,
.member-revenue-bar-legend i.middle {
  background: #ffd86b;
}

.member-revenue-bar-segment.over,
.member-revenue-bar-legend i.over {
  background: #78d7a5;
}

.member-revenue-bar-segment.unknown,
.member-revenue-bar-legend i.unknown {
  background: #94a3b8;
}

.member-revenue-bar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.member-revenue-bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.member-revenue-bar-legend i {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.member-revenue-bar-legend.trend {
  justify-content: flex-start;
  margin-top: 0.7rem;
}

.member-revenue-chapter-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(22, 32, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.06);
}

.member-revenue-chapter-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.regional-member-trend-slide-summary strong.trend-up,
.regional-member-trend-table .trend-up {
  color: #0e7a3c;
}

.month-modal-card {
  width: min(1180px, 100%);
}

.regional-member-trend-slide-summary strong.trend-down,
.regional-member-trend-table .trend-down {
  color: #b33932;
}

.regional-member-trend-slide {
  gap: 0.8rem;
  padding: 1.45rem 1.65rem 1.3rem;
  cursor: zoom-in;
  --presentation-bg-bottom: 1.4rem;
}

.regional-member-trend-slide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.regional-member-trend-slide-header p,
.regional-member-trend-slide-header h3 {
  margin: 0;
}

.regional-member-trend-slide-header p {
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: clamp(0.7rem, 1.1vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.regional-member-trend-slide-header h3 {
  font-size: clamp(1.1rem, 2.1vw, 2rem);
  line-height: 1.08;
}

.regional-member-trend-slide-header > span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(186, 45, 45, 0.08);
  color: var(--accent);
  font-size: clamp(0.68rem, 1vw, 0.9rem);
  font-weight: 900;
  white-space: nowrap;
}

.regional-member-trend-slide-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.regional-member-trend-slide-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(22, 32, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.regional-member-trend-slide-summary span {
  color: var(--muted);
  font-size: clamp(0.58rem, 0.9vw, 0.8rem);
  font-weight: 800;
}

.regional-member-trend-slide-summary strong {
  font-size: clamp(0.9rem, 1.5vw, 1.35rem);
  white-space: nowrap;
}

.regional-member-trend-toggle {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.regional-member-trend-toggle button {
  min-height: 38px;
  min-width: 54px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.regional-member-trend-toggle button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}

.regional-member-trend-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.regional-member-trend-downloads {
  justify-content: flex-end;
}

.regional-member-trend-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.regional-member-trend-checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.regional-member-trend-chart {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0.55rem 0.8rem 0.35rem;
  overflow: hidden;
  border: 1px solid rgba(22, 32, 42, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 243, 0.68));
}

.regional-member-trend-chart .regional-member-trend-branding {
  left: 5.2rem;
  bottom: 1.5rem;
  z-index: 1;
  max-width: calc(100% - 6.6rem);
  color: rgba(21, 21, 21, 0.075);
}

.regional-member-trend-chart .presentation-slide-bg-region {
  font-size: clamp(1.65rem, 3.5vw, 3.4rem);
}

.regional-member-trend-chart .presentation-slide-bg-team {
  font-size: clamp(4.2rem, 8vw, 8.5rem);
}

.regional-member-trend-chart svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.regional-member-trend-chart .grid {
  stroke: rgba(22, 32, 42, 0.1);
  stroke-width: 1;
}

.regional-member-trend-chart .axis {
  fill: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.regional-member-trend-chart .axis.x {
  text-anchor: middle;
}

.regional-member-trend-chart .axis.y {
  text-anchor: end;
}

.regional-member-trend-chart .area {
  fill: rgba(186, 45, 45, 0.12);
}

.regional-member-trend-chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.regional-member-trend-chart .dot {
  fill: white;
  stroke: var(--accent);
  stroke-width: 3;
}

.regional-member-trend-chart .point-label {
  fill: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4px;
}

.regional-member-trend-legend {
  position: absolute;
  top: 0.75rem;
  right: 1.1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(22, 32, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(22, 32, 42, 0.06);
  color: var(--ink);
  font-size: clamp(0.58rem, 0.78vw, 0.74rem);
  font-weight: 900;
}

.regional-member-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.regional-member-trend-legend i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: currentColor;
}

.regional-member-trend-legend .legend-shibei,
.regional-member-trend-chart .trend-point-label-shibei {
  color: #c8102e;
  fill: #c8102e;
}

.regional-member-trend-legend .legend-huadong,
.regional-member-trend-chart .trend-point-label-huadong {
  color: #7447a8;
  fill: #7447a8;
}

.regional-member-trend-legend .legend-total,
.regional-member-trend-chart .trend-point-label-total {
  color: #168b8f;
  fill: #168b8f;
}

.regional-member-trend-chart .trend-series-current,
.regional-member-trend-chart .trend-series-shibei {
  stroke: #c8102e;
}

.regional-member-trend-chart .trend-series-huadong {
  stroke: #7447a8;
}

.regional-member-trend-chart .trend-series-total {
  stroke: #168b8f;
  stroke-width: 4;
}

.regional-member-trend-chart .trend-area-total {
  fill: rgba(22, 139, 143, 0.12);
}

.regional-member-trend-chart .trend-dot-current,
.regional-member-trend-chart .trend-dot-shibei {
  stroke: #c8102e;
}

.regional-member-trend-chart .trend-dot-huadong {
  stroke: #7447a8;
}

.regional-member-trend-chart .trend-dot-total {
  stroke: #168b8f;
}

.regional-member-trend-table th,
.regional-member-trend-table td {
  text-align: center;
}

.member-revenue-chapter-card-header h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  line-height: 1.15;
}

.member-revenue-chapter-card-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.member-revenue-chapter-controls {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
  width: min(360px, 100%);
}

.member-revenue-chapter-select {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.member-revenue-trend-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.member-revenue-trend-toggle button {
  min-height: 34px;
  padding: 0.45rem 0.72rem;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  box-shadow: none;
}

.member-revenue-trend-toggle button.active {
  background: #17202a;
  color: white;
}

.member-revenue-current-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.member-revenue-current-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.member-revenue-current-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.member-revenue-current-card strong {
  font-size: 1.18rem;
}

.member-revenue-current-card.unknown {
  background: rgba(148, 163, 184, 0.12);
}

.member-revenue-current-card.under {
  background: rgba(239, 154, 154, 0.14);
}

.member-revenue-current-card.middle {
  background: rgba(255, 216, 107, 0.18);
}

.member-revenue-current-card.over {
  background: rgba(120, 215, 165, 0.16);
}

.member-revenue-trend-chart {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  overflow-x: auto;
}

.member-revenue-trend-chart svg {
  display: block;
  width: 100%;
  min-width: 720px;
}

.member-revenue-trend-chart .grid {
  stroke: rgba(22, 32, 42, 0.12);
  stroke-width: 1;
}

.member-revenue-trend-chart .axis {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.member-revenue-trend-chart .axis.x {
  text-anchor: middle;
}

.member-revenue-trend-chart .axis.y {
  text-anchor: end;
}

.member-revenue-trend-chart .trend-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-revenue-trend-chart .trend-line.unknown,
.member-revenue-trend-chart .dot.unknown {
  stroke: #94a3b8;
}

.member-revenue-trend-chart .trend-line.under,
.member-revenue-trend-chart .dot.under {
  stroke: #ef9a9a;
}

.member-revenue-trend-chart .trend-line.middle,
.member-revenue-trend-chart .dot.middle {
  stroke: #d89d22;
}

.member-revenue-trend-chart .trend-line.over,
.member-revenue-trend-chart .dot.over {
  stroke: #2f9e44;
}

.member-revenue-trend-chart .dot {
  fill: white;
  stroke-width: 2.5;
}

.member-revenue-trend-chart .stacked-segment.unknown {
  fill: #94a3b8;
}

.member-revenue-trend-chart .stacked-segment.under {
  fill: #ef9a9a;
}

.member-revenue-trend-chart .stacked-segment.middle {
  fill: #ffd86b;
}

.member-revenue-trend-chart .stacked-segment.over {
  fill: #78d7a5;
}

.member-revenue-trend-chart .stacked-label {
  fill: #17202a;
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 3px;
}

.member-revenue-trend-chart .point-label {
  fill: #17202a;
  font-size: 10.5px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4px;
}

.member-revenue-traffic-trend {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1rem 0.9rem 3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.member-revenue-traffic-axis {
  position: absolute;
  inset: 1rem 1rem 3.1rem 0.75rem;
  pointer-events: none;
}

.member-revenue-traffic-axis span {
  position: absolute;
  left: 0;
  width: calc(100% - 0.25rem);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateY(50%);
}

.member-revenue-traffic-axis i {
  position: absolute;
  left: 2.35rem;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(22, 32, 42, 0.1);
}

.member-revenue-traffic-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 0.8rem;
  min-height: 330px;
}

.member-revenue-traffic-column {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 0.35rem;
  min-width: 0;
  height: 100%;
}

.member-revenue-traffic-value {
  min-height: 1.5rem;
  padding: 0.18rem 0.46rem;
  border-radius: 999px;
  background: rgba(22, 32, 42, 0.06);
  color: #17202a;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.member-revenue-traffic-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 260px;
}

.member-revenue-traffic-stack {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  width: min(72%, 4.8rem);
  height: 100%;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  box-shadow: inset 0 0 0 1px rgba(22, 32, 42, 0.08), 0 0.55rem 1.2rem rgba(15, 23, 42, 0.08);
}

.member-revenue-traffic-stack.missing {
  height: 56%;
  border: 0.16rem dashed rgba(43, 43, 43, 0.24);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.member-revenue-traffic-segment {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2px;
}

.member-revenue-traffic-segment:last-child {
  border-radius: 1rem 1rem 0 0;
}

.member-revenue-traffic-segment.unknown {
  background: rgba(166, 166, 166, 0.7);
}

.member-revenue-traffic-segment.under {
  background: rgba(239, 150, 150, 0.74);
}

.member-revenue-traffic-segment.middle {
  background: rgba(255, 230, 139, 0.78);
}

.member-revenue-traffic-segment.over {
  background: rgba(161, 245, 157, 0.74);
}

.member-revenue-traffic-segment-label {
  color: rgba(43, 43, 43, 0.9);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.12;
  padding: 0 0.15rem;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.member-revenue-traffic-label {
  color: rgba(43, 43, 43, 0.88);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.empty {
  border: 1px dashed rgba(22, 32, 42, 0.16);
  border-radius: 20px;
  padding: 1.4rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.empty.tall {
  min-height: 240px;
  display: grid;
  place-items: center;
}

.chapter-summary-header {
  align-items: flex-start;
}

.chapter-summary-topline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: min(100%, 420px);
}

.chapter-summary-topline div {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.chapter-summary-topline span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.chapter-summary-topline strong {
  font-size: 1.1rem;
}

.chapter-summary-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chapter-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(248, 243, 236, 0.98));
}

.chapter-summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.chapter-summary-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.chapter-summary-card-header .muted {
  margin: 0.28rem 0 0;
}

.chapter-summary-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.chapter-summary-card-action {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.chapter-summary-table-wrap {
  border-radius: 20px;
}

.chapter-summary-table {
  min-width: 1320px;
}

.chapter-summary-table th,
.chapter-summary-table td {
  padding: 0.72rem 0.75rem;
  text-align: center;
  white-space: nowrap;
}

.chapter-summary-table th {
  background: #e61b1b;
  color: white;
  font-weight: 800;
  vertical-align: middle;
}

.chapter-summary-table th.traffic,
.chapter-summary-table td.traffic {
  min-width: 72px;
}

.chapter-summary-table td.score {
  font-weight: 800;
}

.chapter-summary-table td.score-green {
  background: rgba(161, 245, 157, 0.75);
  color: #24522b;
}

.chapter-summary-table td.score-yellow {
  background: rgba(255, 230, 139, 0.82);
  color: #6d5600;
}

.chapter-summary-table td.score-red {
  background: rgba(239, 150, 150, 0.82);
  color: #7c2424;
}

.chapter-summary-table td.score-black {
  background: rgba(148, 163, 184, 0.72);
  color: #1f2937;
}

.chapter-summary-table td.score-none {
  background: rgba(186, 192, 198, 0.55);
  color: #334155;
}

.chapter-summary-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

.chapter-summary-score-pill.score-green {
  background: rgba(48, 172, 82, 0.2);
  color: #0e7a3c;
  border: 1px solid rgba(48, 172, 82, 0.36);
}

.chapter-summary-score-pill.score-yellow {
  background: rgba(255, 213, 79, 0.28);
  color: #8a5a00;
  border: 1px solid rgba(216, 157, 34, 0.42);
}

.chapter-summary-score-pill.score-red {
  background: rgba(217, 72, 65, 0.18);
  color: #b33932;
  border: 1px solid rgba(217, 72, 65, 0.36);
}

.chapter-summary-score-pill.score-black {
  background: rgba(100, 116, 139, 0.18);
  color: #334155;
  border: 1px solid rgba(100, 116, 139, 0.36);
}

.chapter-summary-score-pill.score-none {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.34);
}

.chapter-summary-table th.traffic-green,
.chapter-summary-table td.traffic-green {
  background: rgba(161, 245, 157, 0.75);
  color: #24522b;
}

.chapter-summary-table th.traffic-yellow,
.chapter-summary-table td.traffic-yellow {
  background: rgba(255, 230, 139, 0.82);
  color: #6d5600;
}

.chapter-summary-table th.traffic-red,
.chapter-summary-table td.traffic-red {
  background: rgba(239, 150, 150, 0.82);
  color: #7c2424;
}

.chapter-summary-table th.traffic-other,
.chapter-summary-table td.traffic-other {
  background: rgba(186, 192, 198, 0.86);
  color: #334155;
}

.chapter-summary-table tbody tr.is-current {
  font-weight: 800;
  background: rgba(35, 197, 211, 0.08);
  box-shadow: inset 0 2px 0 rgba(35, 197, 211, 0.5), inset 0 -2px 0 rgba(35, 197, 211, 0.5);
}

.chapter-summary-table tbody tr.is-empty {
  color: rgba(95, 107, 118, 0.92);
}

.chapter-summary-table tbody tr.is-empty td {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12));
}

.chapter-summary-note {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.chapter-summary-note span {
  color: var(--muted);
  font-weight: 700;
}

.chapter-summary-note-input {
  width: 100%;
  height: calc(1.45em * 2 + 1.3rem);
  min-height: calc(1.45em * 2 + 1.3rem);
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  background: white;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.chapter-summary-note-input[readonly] {
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
}

.chapter-summary-note-status {
  margin: 0;
  font-size: 0.82rem;
}

.chapter-summary-note .muted {
  margin: 0;
}

.chapter-summary-view-toggle {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.chapter-summary-view-toggle button {
  min-height: 38px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.chapter-summary-view-toggle button[aria-pressed="true"] {
  background: #e61b1b;
  color: white;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.2);
}

.chapter-summary-trend-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(248, 243, 236, 0.98));
}

.chapter-summary-trend-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 300px) 1fr;
  align-items: center;
  gap: 0.8rem;
}

.chapter-summary-trend-controls label {
  font-weight: 800;
}

.chapter-summary-trend-controls select {
  min-height: 44px;
}

.chapter-summary-trend-controls .muted {
  margin: 0;
  font-size: 0.9rem;
}

.chapter-summary-trend-chart {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(22, 32, 42, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.chapter-summary-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chapter-summary-trend-legend-item {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: white;
  box-shadow: none;
  color: var(--trend-color, #e61b1b);
  font-size: 0.82rem;
}

.chapter-summary-trend-legend-item:hover {
  background: color-mix(in srgb, var(--trend-color, #e61b1b) 10%, white);
  transform: none;
}

.chapter-summary-trend-legend-item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--trend-color, #e61b1b) 30%, white);
  outline-offset: 2px;
}

.chapter-summary-trend-legend-item i {
  width: 0.85rem;
  height: 0.22rem;
  border-radius: 999px;
  background: currentColor;
}

.chapter-summary-trend-legend-item.is-hidden {
  border-style: dashed;
  color: #94a3b8;
  opacity: 0.75;
}

.chapter-summary-trend-scroll {
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.chapter-summary-trend-scroll svg {
  display: block;
  min-width: 760px;
  width: 100%;
  height: auto;
}

.chapter-summary-trend-grid {
  stroke: rgba(71, 85, 105, 0.16);
  stroke-width: 1;
}

.chapter-summary-trend-axis {
  fill: #64748b;
  font-size: 18px;
  text-anchor: end;
}

.chapter-summary-trend-axis-x {
  text-anchor: middle;
}

.chapter-summary-trend-line {
  fill: none;
  stroke: var(--trend-color, #e61b1b);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chapter-summary-trend-dot {
  fill: white;
  stroke: var(--trend-color, #e61b1b);
  stroke-width: 3;
}

.trend-series-color-0 { --trend-color: #d7263d; }
.trend-series-color-1 { --trend-color: #1d70a2; }
.trend-series-color-2 { --trend-color: #238636; }
.trend-series-color-3 { --trend-color: #9a5b13; }
.trend-series-color-4 { --trend-color: #7547a8; }
.trend-series-color-5 { --trend-color: #007b7f; }
.trend-series-color-6 { --trend-color: #c2410c; }
.trend-series-color-7 { --trend-color: #4f46e5; }
.trend-series-color-8 { --trend-color: #9f1239; }
.trend-series-color-9 { --trend-color: #3f6212; }
.trend-series-color-10 { --trend-color: #075985; }
.trend-series-color-11 { --trend-color: #a21caf; }
.trend-series-color-12 { --trend-color: #854d0e; }
.chapter-summary-trend-line.trend-series-color-8,
.chapter-summary-trend-line.trend-series-color-9,
.chapter-summary-trend-line.trend-series-color-10,
.chapter-summary-trend-line.trend-series-color-11,
.chapter-summary-trend-line.trend-series-color-12 {
  stroke-dasharray: 10 7;
}

.chapter-summary-trend-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
}

.chapter-summary-trend-summary article {
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem;
  border: 1px solid rgba(22, 32, 42, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.chapter-summary-trend-summary span,
.chapter-summary-trend-summary em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.chapter-summary-trend-summary b {
  font-size: 1.2rem;
}

.chapter-summary-trend-summary em.is-up { color: #16803c; }
.chapter-summary-trend-summary em.is-down { color: #b42318; }

.single-chapter-analysis-panel { display: grid; gap: 1.25rem; }
.single-chapter-analysis-controls { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.68); }
.single-chapter-analysis-controls label { font-weight: 800; white-space: nowrap; }
.single-chapter-analysis-controls select { max-width: 340px; }
.single-chapter-analysis-group h3 { margin: 0 0 .7rem; }
.single-chapter-analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.single-chapter-analysis-chart { padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.76); }
.single-chapter-analysis-chart header { display: grid; grid-template-columns: 1fr auto; gap: .2rem .7rem; align-items: baseline; }
.single-chapter-analysis-chart header span { font-weight: 800; }.single-chapter-analysis-chart header small { color: var(--muted); grid-column: 1 / -1; }
.single-chapter-grouped-chart{padding:1rem;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.76)}
.single-chapter-grouped-chart header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}
.single-chapter-grouped-chart h3{margin:0}
.single-chapter-grouped-chart header p{margin:.25rem 0 0;color:var(--muted);font-size:.8rem}
.single-chapter-grouped-chart header>span{color:var(--muted);font-size:.85rem;white-space:nowrap}
.single-chapter-group-legend{display:flex;flex-wrap:wrap;gap:.45rem;margin:.8rem 0}
.single-chapter-series-toggle{display:inline-flex;gap:.35rem;align-items:center;min-height:36px;padding:.4rem .65rem;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.9);color:var(--ink);font-size:.82rem;box-shadow:none}
.single-chapter-series-toggle:hover,.single-chapter-series-toggle:focus-visible{border-color:var(--c);box-shadow:0 0 0 2px color-mix(in srgb,var(--c) 18%,transparent)}
.single-chapter-series-toggle i,.single-chapter-value-matrix tbody th i{display:inline-block;width:.9rem;height:.22rem;border-radius:9px;background:var(--c);flex:0 0 auto}
.single-chapter-series-toggle strong{color:var(--c)}
.single-chapter-group-scroll{overflow-x:auto;overscroll-behavior-inline:contain}
.single-chapter-group-canvas{min-width:900px}
.single-chapter-group-scroll svg{display:block;width:100%;height:auto}
.single-chapter-group-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.single-chapter-grouped-chart circle{fill:white;stroke-width:2}
.single-chapter-end-connector{fill:none;stroke-width:1.5;stroke-dasharray:3 3;opacity:.62}
.single-chapter-end-label{font-size:12px;font-weight:850;dominant-baseline:middle;paint-order:stroke;stroke:white;stroke-width:4px;stroke-linejoin:round}
.single-chapter-value-matrix{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;margin-top:.2rem;font-size:.78rem}
.single-chapter-value-matrix th,.single-chapter-value-matrix td{padding:.5rem .45rem;border-top:1px solid var(--line);text-align:center;white-space:nowrap}
.single-chapter-value-matrix thead th{color:var(--muted);font-weight:750;background:rgba(248,250,252,.94)}
.single-chapter-value-matrix th:first-child{position:sticky;left:0;z-index:2;width:128px;text-align:left;background:#fff}
.single-chapter-value-matrix tbody th{color:var(--ink);font-weight:800}
.single-chapter-value-matrix tbody th i{margin-right:.4rem;vertical-align:middle}
.single-chapter-grouped-chart [data-series-key]{transition:opacity .16s ease,stroke-width .16s ease,background-color .16s ease}
.single-chapter-grouped-chart svg [data-series-key].is-muted{opacity:.12}
.single-chapter-grouped-chart svg .single-chapter-group-line.is-focused{stroke-width:4.5}
.single-chapter-grouped-chart .single-chapter-series-toggle.is-muted{opacity:.45}
.single-chapter-grouped-chart .single-chapter-series-toggle.is-focused{border-color:var(--c);background:color-mix(in srgb,var(--c) 8%,white);box-shadow:0 0 0 2px color-mix(in srgb,var(--c) 14%,transparent)}
.single-chapter-value-matrix tr.is-muted{opacity:.3}
.single-chapter-value-matrix tr.is-focused{background:color-mix(in srgb,var(--c) 6%,white)}
.single-chapter-analysis-chart svg { display:block; width:100%; height:auto; margin-top:.55rem; }.single-chapter-grid{stroke:rgba(71,85,105,.16)}.single-chapter-axis{fill:#64748b;font-size:12px;text-anchor:end}.single-chapter-axis-x{text-anchor:middle}.single-chapter-analysis-line{fill:none;stroke:#d7263d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.single-chapter-analysis-chart circle{fill:white;stroke:#d7263d;stroke-width:2}

@media (max-width: 720px) {
  .single-chapter-grouped-chart{padding:.8rem}
  .single-chapter-grouped-chart header{flex-direction:column;gap:.35rem}
  .single-chapter-group-legend{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.25rem}
  .single-chapter-series-toggle{flex:0 0 auto}
  .single-chapter-group-canvas{min-width:820px}
  .chapter-summary-trend-controls {
    grid-template-columns: 1fr;
  }

  .chapter-summary-trend-summary {
    grid-template-columns: 1fr;
  }
  .single-chapter-analysis-controls { align-items: stretch; flex-direction: column; }
  .single-chapter-analysis-controls select { max-width: none; }
  .single-chapter-analysis-grid { grid-template-columns: 1fr; }
}

.chapter-summary-slide {
  cursor: pointer;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 1rem 1.2rem;
}

.chapter-summary-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.chapter-summary-slide-header h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
}

.chapter-summary-slide-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.chapter-summary-slide-table-wrap {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(22, 32, 42, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.chapter-summary-slide-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.chapter-summary-slide-table th,
.chapter-summary-slide-table td {
  padding: 0.3rem 0.3rem;
  border-bottom: 1px solid rgba(22, 32, 42, 0.08);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.chapter-summary-slide-table th {
  background: #e61b1b;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  vertical-align: middle;
}

.chapter-summary-slide-table td.score {
  font-weight: 800;
}

.chapter-summary-slide-table td.score-green {
  background: rgba(161, 245, 157, 0.75);
  color: #24522b;
}

.chapter-summary-slide-table td.score-yellow {
  background: rgba(255, 230, 139, 0.82);
  color: #6d5600;
}

.chapter-summary-slide-table td.score-red {
  background: rgba(239, 150, 150, 0.82);
  color: #7c2424;
}

.chapter-summary-slide-table td.score-black {
  background: rgba(148, 163, 184, 0.72);
  color: #1f2937;
}

.chapter-summary-slide-table td.score-none {
  background: rgba(186, 192, 198, 0.55);
  color: #334155;
}

.chapter-summary-slide-table th.traffic-green,
.chapter-summary-slide-table td.traffic-green {
  background: rgba(161, 245, 157, 0.75);
  color: #24522b;
}

.chapter-summary-slide-table th.traffic-yellow,
.chapter-summary-slide-table td.traffic-yellow {
  background: rgba(255, 230, 139, 0.82);
  color: #6d5600;
}

.chapter-summary-slide-table th.traffic-red,
.chapter-summary-slide-table td.traffic-red {
  background: rgba(239, 150, 150, 0.82);
  color: #7c2424;
}

.chapter-summary-slide-table th.traffic-other,
.chapter-summary-slide-table td.traffic-other {
  background: rgba(186, 192, 198, 0.86);
  color: #334155;
}

.chapter-summary-slide-table tbody tr.is-current {
  font-weight: 800;
  background: rgba(35, 197, 211, 0.08);
  box-shadow: inset 0 2px 0 rgba(35, 197, 211, 0.5), inset 0 -2px 0 rgba(35, 197, 211, 0.5);
}

.chapter-summary-slide-table tbody tr.is-empty {
  color: rgba(95, 107, 118, 0.92);
}

.chapter-summary-slide-footer {
  width: 100%;
  max-width: 100%;
  flex: 0 0 5.6rem;
  min-height: 5.6rem;
  padding: 0.35rem 0.65rem;
  border-radius: 18px;
  border: 1px solid rgba(22, 32, 42, 0.08);
  background: rgba(255, 255, 255, 0.58);
  display: flex;
  flex-direction: column;
}

.chapter-summary-slide-footer span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.chapter-summary-slide-footer p {
  flex: 1;
  margin: 0;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.2;
  min-height: 0;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  .backup-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .backup-card-actions {
    grid-column: 1 / -1;
  }

  .backup-progress {
    max-width: none;
  }

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

  .comparison-grid,
  .comparison-sections,
  .calculation-score-layout,
  .regional-goals-grid,
  .chapter-summary-topline,
  .deployment-check-list {
    grid-template-columns: 1fr 1fr;
  }

  .presentation-compare-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .presentation-compare-summary-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .settings-workbench.stack,
  .settings-workbench-grid {
    gap: 1rem;
  }

  .settings-workbench-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-workbench-identity {
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }

  .settings-workbench-nav,
  .settings-workbench-grid {
    grid-template-columns: 1fr;
  }

  .settings-workbench-card.is-wide {
    grid-column: auto;
  }

  .settings-role-layout {
    grid-template-columns: 1fr;
  }

  .account-profile-shell {
    width: 100%;
    margin-left: 0;
  }

  .account-profile-trigger {
    width: 100%;
  }

  .account-profile-menu {
    left: 0;
    right: 0;
    width: auto;
  }

  .account-profile-dialog-backdrop {
    align-items: end;
    padding: 0;
  }

  .account-profile-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 1.35rem;
    border-radius: 26px 26px 0 0;
  }

  .account-profile-dialog .field-grid {
    grid-template-columns: 1fr;
  }

  .backup-card {
    grid-template-columns: 1fr;
  }

  .backup-card-icon {
    width: 48px;
    height: 48px;
  }

  .backup-card-actions {
    grid-column: auto;
  }

  .shell {
    padding: 1rem;
  }

  .panel-header,
  .field-grid,
  .actions-row,
  .panel-header-actions,
  .attachment-item,
  .modal-header,
  .page-header-main,
  .page-nav-shell,
  .month-binding-card,
  .chapter-summary-card-header,
  .chapter-summary-slide-header,
  .member-revenue-chapter-card-header,
  .regional-member-trend-card-header,
  .member-traffic-selector-header {
    flex-direction: column;
  }

  .summary-grid,
  .report-topline,
  .summary-grid-3,
  .month-grid,
  .requirement-grid,
  .field-grid-3,
  .chapter-fields,
  .comparison-grid,
  .comparison-sections,
  .calculation-score-layout,
  .regional-goals-grid,
  .calculation-definition-list article,
  .presentation-briefing-grid,
  .presentation-briefing-list,
  .chapter-summary-topline {
    grid-template-columns: 1fr;
  }

  .calculation-score-table-wrap {
    overflow-x: auto;
  }

  .calculation-score-table {
    min-width: 920px;
  }

  .calculation-definition-list article > div {
    justify-content: flex-start;
  }

  .regional-goals-header {
    flex-direction: column;
  }

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

  .regional-member-trend-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .regional-member-trend-checkbox {
    justify-content: flex-start;
  }

  .regional-member-trend-chart {
    padding: 0.25rem 0.35rem 0.2rem;
    overflow: hidden;
  }

  .regional-member-trend-chart svg {
    min-width: 0;
  }

  .regional-member-trend-downloads {
    align-items: stretch;
  }

  .regional-member-trend-slide {
    gap: 0.35rem;
    padding: 0.65rem;
  }

  .regional-member-trend-slide-header {
    gap: 0.5rem;
  }

  .regional-member-trend-slide-header > span {
    min-height: 1.5rem;
    padding: 0.2rem 0.45rem;
  }

  .regional-member-trend-slide-summary {
    gap: 0.25rem;
  }

  .regional-member-trend-slide-summary > div {
    gap: 0.2rem;
    padding: 0.25rem 0.35rem;
  }

  .regional-member-trend-chart .presentation-slide-bg-team {
    max-width: 100%;
    font-size: clamp(2.25rem, 11vw, 3.4rem);
    line-height: 0.95;
    white-space: normal;
  }

  .regional-member-trend-chart .regional-member-trend-branding {
    left: 0.8rem;
    bottom: 0.8rem;
    max-width: calc(100% - 1.6rem);
  }

  .regional-member-trend-legend {
    top: 0.3rem;
    right: 0.4rem;
    gap: 0.45rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.48rem;
  }

  .month-selection-bar,
  .month-selection-actions,
  .month-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-row,
  .user-row-actions,
  .inline-reset-form {
    width: 100%;
  }

  .user-row-actions,
  .inline-reset-form {
    justify-content: stretch;
  }

  .inline-reset-form input,
  .inline-reset-form button {
    width: 100%;
  }

  .month-card-actions {
    grid-template-columns: 1fr;
  }

  .similar-pair-item {
    grid-template-columns: 1fr;
  }

  .presentation-header,
  .presentation-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .presentation-slide {
    padding: 1.2rem;
  }

  .presentation-fullscreen {
    padding: 0;
  }

  .presentation-fullscreen-stage {
    padding: 0.75rem;
  }

  .presentation-fullscreen-stage .presentation-slide {
    width: min(100%, calc((100vh - 1.5rem) * 16 / 9));
    max-height: calc(100vh - 1.5rem);
    min-height: 0;
    height: auto;
    padding: 1.2rem;
  }

  .page-nav {
    width: 100%;
  }

  .page-nav-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .team-switch-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .presentation-slide-bg {
    left: 1rem;
    bottom: 7.5rem;
    max-width: 88%;
  }

  .presentation-slide-bg-region {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .presentation-slide-bg-team {
    font-size: clamp(5rem, 16vw, 8rem);
  }

  .field-span-2 {
    grid-column: auto;
  }

  .chapter-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .member-traffic-chapter-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .member-traffic-chapter-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-traffic-chapter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .member-traffic-chapter-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .month-modal-card {
    padding: 1rem;
  }

  .month-chasing-panel {
    padding: 0.9rem;
  }

  .month-modal-requirement-grid {
    grid-template-columns: 1fr;
  }

  .month-chasing-header,
  .month-chasing-region-file {
    flex-direction: column;
    align-items: stretch;
  }

  .month-chasing-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .month-chasing-summary span {
    padding: 0.55rem;
  }

  .month-chasing-toolbar > * {
    width: 100%;
  }

  .month-chasing-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .month-chasing-table {
    min-width: 0;
  }

  .month-chasing-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .month-chasing-table,
  .month-chasing-table tbody,
  .month-chasing-table tr,
  .month-chasing-table th,
  .month-chasing-table td {
    display: block;
    width: 100%;
  }

  .month-chasing-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .month-chasing-table tbody tr {
    padding: 0.8rem;
    border: 1px solid rgba(22, 32, 42, 0.09);
    border-radius: 15px;
    background: white;
  }

  .month-chasing-table tbody th {
    padding: 0 0 0.65rem;
    border-bottom: 1px solid rgba(22, 32, 42, 0.09);
    font-size: 1.05rem;
  }

  .month-chasing-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.58rem 0;
  }

  .month-chasing-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .month-chasing-table tbody tr:last-child th,
  .month-chasing-table tbody tr:last-child td {
    border-bottom: 1px solid rgba(22, 32, 42, 0.09);
  }

  .month-chasing-table tbody tr td:last-child {
    border-bottom: 0;
  }
}
