body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff7fb 0%, #f3f7ff 100%);
  color: #1f2937;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app {
  width: 100%;
  max-width: 920px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(8px);
}

.header {
  padding: 32px 32px 22px;
  background: linear-gradient(135deg, #f472b6 0%, #60a5fa 100%);
  color: #ffffff;
}

.body {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-select {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.progress-section {
  margin-bottom: 18px;
}


.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.header-text {
  display: contents;
}

.part-tabs {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  gap: 10px;
  flex-shrink: 0;
}

.header h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  grid-column: 1;
  grid-row: 1;
}

.header p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.95;
  grid-column: 1 / -1;
  grid-row: 2;
  padding-right: 28px;
}

.header-reference {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.header-reference:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
