:root {
  --nrf-color-primary: #205081;
  --nrf-color-on-primary: #ffffff;
  --nrf-color-danger: #b42318;
  --nrf-color-secondary: #6b6b6b;
  --nrf-color-text: #222222;
  --nrf-color-text-muted: #555555;
  --nrf-color-background: #ffffff;
  --nrf-color-surface: #f5f5f5;
  --nrf-color-border: #cccccc;
}

body {
  margin: 0;
  background: var(--nrf-color-background);
  color: var(--nrf-color-text);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
}

.nrf-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.nrf-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 1.5rem;
  border-bottom: 1px solid var(--nrf-color-border);
  padding-bottom: 1.25rem;
}

.nrf-page__service {
  flex-basis: 100%;
  margin: 0;
  color: var(--nrf-color-secondary);
  font-size: 0.875rem;
}

.nrf-page__title {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
}

.nrf-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nrf-steps__item {
  color: var(--nrf-color-text-muted);
  font-size: 0.875rem;
}

.nrf-steps__item--current {
  color: var(--nrf-color-primary);
  font-weight: 700;
}

.nrf-section {
  margin-top: 2rem;
}

.nrf-section__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.nrf-section__description {
  margin: 0 0 1rem;
  color: var(--nrf-color-text-muted);
}

.nrf-field__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nrf-field__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--nrf-color-border);
  border-radius: 0.25rem;
  padding: 0.5rem;
  background: var(--nrf-color-background);
  color: var(--nrf-color-text);
}

.nrf-field__help {
  margin: 0.5rem 0 0;
  color: var(--nrf-color-text-muted);
  font-size: 0.875rem;
}

.nrf-feedback {
  display: block;
  margin: 0.75rem 0;
  font-size: 0.875rem;
}

.nrf-button {
  border: 1px solid var(--nrf-color-border);
  border-radius: 0.25rem;
  background: var(--nrf-color-surface);
  color: var(--nrf-color-text);
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
}

.nrf-button--primary {
  border-color: var(--nrf-color-primary);
  background: var(--nrf-color-primary);
  color: var(--nrf-color-on-primary);
}

.nrf-button:disabled {
  color: var(--nrf-color-text-muted);
  cursor: not-allowed;
}

.nrf-spinner[hidden] {
  display: none;
}

.nrf-spinner {
  display: inline-block;
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--nrf-color-border);
  border-top-color: var(--nrf-color-primary);
  border-radius: 50%;
  animation: nrf-spin 1s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .nrf-spinner {
    animation: none;
  }
}

.nrf-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
  border: 1px solid var(--nrf-color-border);
  border-radius: 0.25rem;
  background: var(--nrf-color-surface);
  padding: 0.75rem 1rem;
}

.nrf-status [data-status-text] {
  min-width: 0;
}

.nrf-time {
  width: 100%;
  margin-top: 0.75rem;
  border: 1px solid var(--nrf-color-border);
  border-collapse: collapse;
}

.nrf-time th,
.nrf-time td {
  border-bottom: 1px solid var(--nrf-color-border);
  padding: 0.625rem 1rem;
  vertical-align: middle;
}

.nrf-time tr:last-child > * {
  border-bottom: 0;
}

.nrf-time th {
  min-width: 6rem;
  background: var(--nrf-color-surface);
  color: var(--nrf-color-text-muted);
  text-align: left;
}

.nrf-time td {
  text-align: right;
}

.nrf-page__nav {
  margin-top: 2.5rem;
}

.nrf-link {
  color: var(--nrf-color-primary);
}

button.nrf-link {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.nrf-link--danger {
  color: var(--nrf-color-danger);
}

button.nrf-link:disabled {
  cursor: wait;
}
