* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.88);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  font-size: 14px;
  line-height: 1.5714285714;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.page {
  width: 970px;
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 8px;
  overflow-y: auto;
}

.hero-link {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  line-height: 0;
}

.hero-image {
  display: block;
  width: 100%;
  max-height: 488px;
  border-radius: 16px;
  object-fit: fill;
  cursor: pointer;
}

.image-menu {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 8px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px 0 #364a630d;
}

.menu-item {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  color: #000;
  cursor: pointer;
}

.menu-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.menu-label {
  height: 16px;
  margin-top: 8px;
  overflow: hidden;
  color: #000;
  line-height: 16px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border-color: #fad7dd;
  border-radius: 16px;
  background-color: #fad7dd;
  color: #ee6e83;
  font-weight: 500;
  white-space: break-spaces;
}

.search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px 0 #364a630d;
}

.search-card[hidden] {
  display: none;
}

.search-card input {
  height: 32px;
  min-width: 0;
  padding: 4px 11px;
  border: 1px solid #d9d9d9;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: rgba(0, 0, 0, 0.88);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-card input::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

.search-card input:focus {
  border-color: #7888fc;
  box-shadow: 0 0 0 2px rgba(120, 136, 252, 0.1);
}

.search-card button {
  height: 32px;
  border: 1px solid #7888fc;
  border-radius: 0 8px 8px 0;
  background-color: #7888fc;
  color: #fff;
  line-height: 1;
}

.list-card {
  position: relative;
  width: 100%;
  min-height: 250px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px 0 #364a630d;
}

.breadcrumb {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #f5f5f5;
  font-weight: 500;
}

.breadcrumb a,
.breadcrumb span {
  display: inline;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: rgba(0, 0, 0, 0.45);
}

.color-black {
  color: rgba(0, 0, 0, 0.88);
}

.list-wrap {
  position: relative;
  margin-top: 8px;
}

.list {
  display: grid;
}

.list-item {
  display: flex;
  height: 40px;
  align-items: center;
  font-weight: 500;
}

.text-link,
.list-item.text-link,
.path-link,
.path-action {
  color: #7888fc;
  cursor: pointer;
}

.folder-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.ml8 {
  margin-left: 8px;
}

.flex1 {
  flex: 1;
  min-width: 0;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-action {
  flex: 0 0 auto;
  margin-left: 16px;
}

.path-link {
  flex: 0 1 auto;
  max-width: calc(100% - 120px);
}

.empty {
  padding: 66px 0;
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
}

.spin-box {
  position: absolute;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
  background: #ffffff4d;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #d9d9d9;
  border-top-color: #7888fc;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.footer {
  margin: 16px 0;
  text-align: center;
}

.footer button {
  border: 0;
  background: transparent;
  color: #7888fc;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal {
  position: relative;
  top: 100px;
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 20px 24px;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.modal h2 {
  margin: 0 36px 8px 0;
  color: rgba(0, 0, 0, 0.88);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.modal-body {
  color: rgba(0, 0, 0, 0.88);
  word-break: break-word;
}

.path-modal-text {
  padding: 12px;
  border-radius: 6px;
  background: #f5f5f5;
  line-height: 1.65;
  word-break: break-all;
}

.member-qr-wrap {
  display: grid;
  place-items: center;
  padding: 4px 0;
}

.member-qr-image {
  display: block;
  width: 380px;
  max-width: 100%;
  max-height: calc(100vh - 260px);
  object-fit: contain;
}

.modal-body ol {
  padding-left: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.88);
}

@media (min-width: 768px) {
  .page {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .page {
    width: 970px;
  }
}

@media (max-width: 760px) {
  .image-menu {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 14px;
    padding: 16px;
  }

  .menu-label,
  .notice,
  .path-link,
  .path-action {
    font-size: 13px;
  }

  .list-item {
    height: 40px;
  }
}

@media (max-width: 520px) {
  .image-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-card {
    padding: 12px;
  }

  .list-card {
    padding: 12px;
  }
}
