:root {
  font-family: "DejaVu Sans", Arial, sans-serif;
  color: #000000;
  background: #fffbe8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #fffbe8;
  color: #000000;
  font-size: 13px;
}

button,
input {
  font: inherit;
}

button {
  color: #000000;
}

#app {
  width: 100%;
  padding: 34px 16px 48px;
}

.site-shell {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 20px 24px 18px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 18px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nonpu-logo {
  display: block;
  width: 144px;
  height: auto;
  filter: invert(1);
}

.brand-separator {
  color: #000000;
  font-size: 18px;
  line-height: 1;
}

.plain-link,
.plain-link:visited {
  color: #0000ee;
  font-weight: 700;
  text-decoration: underline;
}

.plain-link:active {
  text-decoration: none;
}

.instant-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #000000;
  white-space: nowrap;
}

.instant-star,
.title-star {
  display: inline-flex;
  flex: 0 0 auto;
}

.instant-star {
  width: 33px;
  height: 33px;
}

.instant-star svg,
.title-star svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #000000;
}

.instant-word {
  font-size: 31px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -1px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-align: left;
}

.title-star {
  width: 42px;
  height: 42px;
}

h1 {
  margin: 0;
  color: #000000;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.engine-logo {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  
}

.processor {
  min-height: 162px;
  margin-top: 26px;
  padding: 26px 0 12px;
  text-align: left;
}

.upload-controls,
.save-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.legacy-button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  padding: 6px 10px;
  min-height: 30px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000000;
}

.legacy-button:hover {
  text-decoration: underline;
}

.legacy-button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000000;
}

.legacy-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.legacy-button i {
  margin-right: 6px;
}

.loading-slot {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-gif {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
 
}

.status-message {
  margin: 22px 0 0;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
}

.status-message i {
  margin-right: 6px;
}

.footer {
  margin-top: 28px;
  color: #000000;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 650px) {
  #app {
    padding: 16px 10px 28px;
  }

  .site-shell {
    padding: 16px 16px 15px;
  }

  .brand-bar,
  .header-row {
    align-items: flex-start;
  }

  .nonpu-logo {
    width: 112px;
  }

  .instant-word {
    font-size: 24px;
  }

  .instant-star {
    width: 27px;
    height: 27px;
  }

  .header-row {
    margin-top: 28px;
  }

  .engine-logo {
    width: 68px;
    height: 68px;
  }

  h1 {
    font-size: 17px;
  }

  .title-star {
    width: 34px;
    height: 34px;
  }
}