body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 20px;
  color: #333;
}
html {
  overflow-x: hidden;
}

.detail-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  padding: 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  box-sizing: border-box;
}

.detail-modal {
  width: min(1060px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.28);
  box-sizing: border-box;
}

.detail-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.detail-modal-body::-webkit-scrollbar {
  width: 10px;
}

.detail-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.detail-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 900px) {
  body {
    padding: 12px;
  }

  .detail-overlay {
    padding: 16px;
  }

  .detail-modal {
    width: min(100%, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
  }
}
