body {
  margin: 0;
  background: #0d0f14;
}

#shApp {
  font-family: system-ui,-apple-system,sans-serif;
  color: #f3f4f7;
  background: #0d0f14;
  padding: 7px;
  --green: #a5e6c0;
  --red: #f2a09d;
  --muted: #aeb5c3;
  color-scheme: dark;
}

#shApp * {
  box-sizing: border-box;
}

#shApp [hidden] {
  display: none!important;
}

#shApp button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#shApp .app {
  width: min(100%,510px);
  margin: auto;
  position: relative;
  background: #13151c;
  border: 1px solid #292d37;
  border-radius: 21px;
  min-height: 580px;
  overflow: hidden;
}

#shApp .cover {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 27px;
  background: linear-gradient(145deg,#fff,#e7e9ed);
  color: #20242b;
  box-shadow: inset 0 2px 4px #fff;
  gap: 12px;
}

#shApp .brand {
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 700;
  color: #707680;
}

#shApp .cover h1 {
  font-size: 38px;
  letter-spacing: -1.7px;
  margin: 0;
  color: #20242b;
}

#shApp .cover p {
  font-size: 13px;
  color: #666d77;
  margin: 0;
}

#shApp .primary {
  width: 100%;
  background: #e9ebf0;
  color: #171921;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-weight: 750;
  min-height: 48px;
}

#shApp .cover .primary {
  max-width: 170px;
  background: #20242b;
  color: #fff;
  margin: 16px 0 0;
}

#shApp .primary:disabled {
  opacity: .35;
  cursor: default;
}

#shApp .small {
  border: 0;
  background: transparent;
  color: #aeb5c3;
  font-size: 12px;
  padding: 10px;
}

#shApp .study {
  padding: 17px;
}

#shApp .head,#shApp .meta,#shApp .line,#shApp .stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#shApp .head {
  font-size: 14px;
  font-weight: 750;
  color: #f3f4f7;
}

#shApp .muted {
  color: var(--muted);
  font-size: 11px;
}

#shApp .track {
  display: flex;
  gap: 4px;
  margin: 17px 0;
}

#shApp .track span {
  flex: 1;
  min-width: 0;
  height: 4px;
  background: #393d48;
  border-radius: 4px;
}

#shApp .meta {
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
}

#shApp .question {
  height: 174px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

#shApp .ask {
  font-size: 13px;
  color: #c3cad5;
}

#shApp .sentence {
  color: #f3f4f7;
  font-size: 23px;
  line-height: 1.55;
  font-weight: 700;
  width: 100%;
  max-height: 121px;
  overflow: auto;
}

#shApp .sentence.long {
  font-size: 19px;
}

#shApp .token {
  display: inline;
  border: 0;
  background: none;
  color: #f3f4f7;
  font: inherit;
  padding: 0 1px;
  border-radius: 4px;
}

#shApp .target,#shApp .key {
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#shApp .token.active {
  background: #30483f;
  color: var(--green);
}

#shApp .body {
  height: 258px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 2px 3px 4px 1px;
  scrollbar-width: thin;
}

#shApp .option {
  flex-shrink: 0;
  width: 100%;
  min-height: 52px;
  border: 1px solid #494c55;
  background: #20232b;
  color: #f3f4f7;
  border-radius: 12px;
  padding: 13px;
  text-align: left;
}

#shApp .line {
  justify-content: flex-start;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
  color: #f3f4f7;
}

#shApp .mark {
  margin-left: auto;
  color: #929aa7;
}

#shApp .arrow {
  color: var(--muted);
  width: 10px;
  font-size: 13px;
}

#shApp .good {
  background: #243d35;
  border-color: var(--green);
}

#shApp .bad {
  background: #442e34;
  border-color: var(--red);
}

#shApp .good .mark {
  color: var(--green);
}

#shApp .bad .mark {
  color: var(--red);
}

#shApp .annotation {
  border-top: 1px solid #ffffff22;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #d0d6df;
}

#shApp .annotation>div {
  margin: 4px 0;
}

#shApp .example {
  color: #e0e6ed;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
}

#shApp .translation {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

#shApp .popup {
  position: absolute;
  width: min(278px,100%);
  max-height: 255px;
  overflow: auto;
  text-align: left;
  background: linear-gradient(145deg,#2b394a,#1b222e);
  border: 1px solid #75899d;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 12px 32px #000a;
  z-index: 10;
  color: #ffffff;
}

#shApp .popup h3 {
  margin: 5px 0;
  font-size: 23px;
  font-weight: 750;
  color: #ffffff!important;
}

#shApp .pophead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a6c0d8;
  font-size: 10px;
  letter-spacing: 1px;
}

#shApp .close {
  border: 0;
  background: none;
  color: #c3cad5;
  font-size: 21px;
  padding: 0 5px;
}

#shApp .section {
  border-top: 1px solid #ffffff20;
  padding-top: 9px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #f3f4f7;
}

#shApp .label {
  font-size: 10px;
  color: #a6c0d8;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

#shApp .footer {
  border-top: 1px solid #353944;
  margin-top: 7px;
  padding-top: 8px;
}

#shApp .feedback {
  height: 47px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: #bfc5d0;
}

#shApp .actions {
  display: flex;
  justify-content: space-between;
  min-height: 34px;
}

#shApp .result {
  padding: 24px 18px;
  color: #f3f4f7;
}

#shApp .result h2 {
  font-size: 33px;
  margin: 16px 0 6px;
  color: #ffffff;
}

#shApp .stat {
  border-bottom: 1px solid #353944;
  padding: 11px 2px;
  font-size: 13px;
}

#shApp .result textarea {
  width: 100%;
  height: 130px;
  border: 1px solid #494c55;
  border-radius: 10px;
  background: #20232b;
  color: #e0e6ed;
  padding: 10px;
  font: 12px system-ui;
  margin: 12px 0;
  resize: vertical;
}

#shApp .help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

#shApp .status {
  font-size: 12px;
  color: var(--green);
  min-height: 18px;
}

@media(max-width:390px) {
  #shApp .study {
    padding: 14px;
  }
  #shApp .sentence {
    font-size: 21px;
  }
}

#shApp .accent {
  color: #a5e6c0;
}

#sCopy {
  margin-top: 15px;
}
