:root {
  font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:#152e2c;
  background:#f7f8f4;
  font-synthesis:none;
  --teal:#0b6659;
  --line:#cbd5ca;
  --muted:#52675f;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

header {
  border-bottom:1px solid var(--line);
  background:#fbfcf8;
}

.bar,main {
  width:min(100% - 48px,1024px);
  margin:auto;
}

.bar,.section-head,.actions,.brand,.downloads {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.bar {
  height:64px;
}

.brand {
  font-weight:730;
  gap:10px;
}

.mark {
  display:flex;
  width:28px;
  height:28px;
  background:var(--teal);
  align-items:center;
  justify-content:center;
  gap:3px;
  border-radius:6px;
}

.mark i {
  width:5px;
  height:13px;
  background:white;
  transform:skewY(-22deg);
}

.mark i+i {
  height:9px;
}

a,.text-button {
  color:var(--teal);
  text-underline-offset:4px;
  font-weight:600;
  font-size:14px;
}

.bar a {
  text-decoration:none;
}

.intro {
  margin:54px 0 28px;
}

.intro h1 {
  font-size:clamp(32px,5vw,56px);
  letter-spacing:-.055em;
  line-height:1.1;
  margin:0;
}

.intro h1 span {
  color:#3c8b72;
}

.intro p,.actions p,.muted,small {
  color:var(--muted);
}

.intro p {
  margin:14px 0 0;
}

.format-switch {
  display:flex;
  gap:4px;
  width:fit-content;
  margin:0 0 18px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:9px;
}

.format-switch legend {
  padding:0 5px;
  color:var(--muted);
  font-size:13px;
}

.format-switch label {position:relative}
.format-switch input {position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer}
.format-switch span {display:block; padding:8px 18px; border-radius:6px; font-weight:650}
.format-switch input:checked + span {background:var(--teal); color:white}
.format-switch input:focus-visible + span {outline:3px solid #ae6e13; outline-offset:2px}
.format-switch:disabled {opacity:.65}

.files,.cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.drop {
  background:#fff;
  border:1px dashed #95ab9c;
  border-radius:12px;
  padding:23px;
  min-height:202px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:9px;
  position:relative;
  text-align:center;
  overflow:hidden;
}

.drop:hover,.drop.drag,.drop:focus-within {
  border:2px solid var(--teal);
  background:#edf6ef;
}

.drop.ready {
  background:#f2f7f1;
  border-style:solid;
}

.drop.invalid {border-color:#a64232}
.drop.invalid small {color:#7f2f22}

.drop input {
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  width:100%;
  height:100%;
}

.drop strong {
  max-width:100%;
  overflow-wrap:anywhere;
}

.slot-tag {
  position:absolute;
  top:15px;
  left:17px;
  color:var(--teal);
  font:600 12px/1.4 ui-monospace,monospace;
}

.file-icon {
  display:grid;
  place-items:center;
  width:37px;
  height:43px;
  border-radius:5px;
  border:2px solid #5a8271;
  color:var(--teal);
  font-size:23px;
}

.actions {
  margin:19px 0 0;
}

.actions p {
  font-size:14px;
}

#low-points {
  display:block;
  margin-top:6px;
}

.points-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:clamp(16px,3vw,24px);
}

.points-card .section-head {flex-wrap:wrap; gap:8px 16px}
.points-card label {display:block; font-size:14px; font-weight:650; margin-bottom:8px}
.points-card label span {margin-left:8px; font-weight:400}
#shop-status,#redeem-feedback {font-size:14px}
.redeem-row {display:flex; flex-wrap:wrap; gap:8px}
.redeem-row input {
  flex:1 1 200px;
  min-width:0;
  min-height:44px;
  border:1px solid #9bad9f;
  border-radius:6px;
  padding:10px 12px;
  font:inherit;
  color:inherit;
}
.redeem-row input:focus {outline:2px solid var(--teal); outline-offset:1px}
#redeem-feedback {margin:12px 0 0; color:var(--teal)}
#redeem-feedback:empty {margin:0}
#redeem-feedback.error {color:#943a28}

.actions button,.primary-button {
  color:white;
  background:var(--teal);
  padding:13px 24px;
  border:0;
  border-radius:7px;
  cursor:pointer;
  font:inherit;
  font-weight:650;
}

.actions button span {
  margin-left:10px;
}

.actions button:disabled {
  opacity:.6;
  cursor:wait;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #ae6e13;
  outline-offset:4px;
}

section[id] {
  scroll-margin:20px;
  margin-top:34px;
}

#activity {
  padding:14px 18px;
  border-left:3px solid var(--teal);
  background:#edf3eb;
}

#activity p {
  margin:0;
  overflow-wrap:anywhere;
}

#activity.error {
  border-color:#a64232;
  background:#fff0e9;
  color:#7f2f22;
}

progress {
  width:100%;
  height:6px;
  accent-color:var(--teal);
  margin-top:10px;
}

h2 {
  font-size:24px;
  letter-spacing:-.045em;
  margin:0;
}

h3 {
  font-size:17px;
  margin:16px 0 10px;
}

.section-head {
  margin-bottom:14px;
}

.text-button {
  border:0;
  background:none;
  cursor:pointer;
  padding:5px;
}

.history-row,.empty,.report-block {
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:16px 20px;
}

.history-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:8px 0;
  width:100%;
  text-align:left;
  font:inherit;
  color:inherit;
  cursor:pointer;
}

.history-row span:first-child {
  overflow-wrap:anywhere;
}

.history-row small {
  white-space:nowrap;
}

.empty {
  color:var(--muted);
  margin:0;
}

.report-block {
  margin:10px 0;
  overflow-wrap:anywhere;
}

.string-heading {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:10px}
.string-heading h3 {margin:0}
.string-download {padding:9px 14px; border-radius:6px; background:var(--teal); color:white; text-decoration:none}
.string-download:hover {background:#084c43}

.report-block p {
  margin:6px 0;
  line-height:1.65;
}

.hero-score {
  font-size:32px;
  color:var(--teal);
  letter-spacing:-.045em;
}

.metric {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid #e9ece6;
}

.metric:last-child {
  border-bottom:0;
}

.metric b {
  font-family:ui-monospace,monospace;
  text-align:right;
}

.report-block li {
  line-height:1.7;
  margin:6px 0;
}

ul {
  padding-left:1.4em;
}

.downloads {
  gap:12px;
}

main {
  padding-bottom:65px;
}

[hidden] {
  display:none!important;
}

.account-nav {
  display:flex;
  align-items:center;
  gap:20px;
}

.login-card {
  width:min(calc(100% - 32px),420px);
  color:inherit;
  padding:clamp(24px,5vw,40px);
  background:white;
  border:1px solid var(--line);
  border-top:4px solid var(--teal);
  border-radius:12px;
  box-shadow:0 12px 36px rgba(22,52,42,.065);
}

.login-card::backdrop {background:rgba(16,34,31,.5)}
.login-card h2 {margin:0; font-size:28px; letter-spacing:-.04em}
#login-description {margin:8px 0 24px; color:var(--muted); font-size:14px}
.login-card label {display:block; margin:18px 0 7px; font-size:14px; font-weight:650}
.login-card input {
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #9bad9f;
  border-radius:6px;
  color:inherit;
  font:inherit;
}
.login-card input:focus {outline:2px solid var(--teal); outline-offset:1px}
.password-field {position:relative}
.password-field input {padding-right:60px}
.password-field button {position:absolute; right:6px; top:50%; transform:translateY(-50%); min-height:36px}
.login-card .form-error {color:#943a28; font-size:14px; margin:12px 0 0}
.form-error:empty {margin:0}
.login-actions {margin-top:24px; display:flex; align-items:center; justify-content:flex-end; gap:18px}
.primary-button:disabled {opacity:.65; cursor:wait}

@media(max-width:640px) {
  .bar,main {
    width:calc(100% - 32px);
  }
  .intro {
    margin-top:32px;
  }
  .files,.cards {
    grid-template-columns:1fr;
  }
  .drop {
    min-height:142px;
  }
  .actions,.section-head {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .actions p {
    margin:0;
  }
  .actions button {
    width:100%;
  }
  .history-row {
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }
}


#balance {color:var(--teal); font-weight:650}
.report-block details {border-top:1px solid var(--line); padding:10px 0}
.report-block summary {cursor:pointer}
.report-block pre {white-space:pre-wrap; overflow-wrap:anywhere}
@media(max-width:640px) {
  .account-nav {gap:6px 12px; flex-wrap:wrap}
  .bar {height:auto; min-height:64px; padding:10px 0; gap:8px 16px; flex-wrap:wrap}
  .brand {white-space:nowrap}
  #balance {overflow-wrap:anywhere}
  .redeem-row button {flex:1 0 auto}
}
#manage-accounts {margin-top:36px; padding-top:18px; border-top:1px solid var(--line)}
#manage-accounts summary {cursor:pointer; font-weight:650}
#create-account {margin-top:16px; display:flex; align-items:center; flex-wrap:wrap; gap:12px}
#create-account input {max-width:100%; padding:8px; border:1px solid var(--line); border-radius:5px}
