* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #ffffff;
  color: #1f2328;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 8px 14px;
  background: #ffffff;
  color: #1f2328;
  cursor: pointer;
}

button:hover {
  border-color: #1677ff;
  color: #1677ff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select {
  width: 100%;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  color: #1f2328;
}

a {
  color: #1f2328;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #1677ff;
  outline-offset: 2px;
}

.page-shell {
  width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.page-header {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.page-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
}

.back-link {
  width: fit-content;
  text-decoration: none;
  color: #4b5563;
}

.back-link:hover {
  color: #1677ff;
}

.message {
  margin: 18px 0;
  color: #1f2328;
  line-height: 1.5;
}

.message.muted {
  color: #667085;
}

.message.error {
  color: #b42318;
}

.empty-state {
  margin: 48px 0;
  color: #667085;
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100vw - 32px);
    padding-top: 26px;
  }

  .page-header h1 {
    font-size: 26px;
  }
}
