* {
  box-sizing: border-box;
}
:root {
  font-family:
    "Inter", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #233830;
  background: #f7f8f4;
  font-size: 16px;
  --ink: #183d31;
  --green: #1e5943;
  --line: #dce2d9;
  --muted: #58675f;
  --light: #edf3e8;
  --serif: Georgia, "Songti SC", "STSong", "SimSun", serif;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
dialog {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #599247;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
[type="text"],
[type="password"],
[type="email"],
select {
  border-radius: 7px;
}
button {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 42px;
  padding: 8px 15px;
  font-weight: 600;
}
button:hover {
  border-color: #89a28b;
  background: #f6f9f3;
}
button:active {
  filter: brightness(0.95);
}
[hidden] {
  display: none !important;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fdfefa;
  border-right: 1px solid var(--line);
  padding: 32px 16px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  color: #173e2d;
}
.brand span {
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.8px;
}
.brand b {
  font-size: 16px;
  font-family: Georgia, serif;
  letter-spacing: -0.4px;
}
.nav-label {
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: #637266;
  margin: 48px 14px 10px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 8px 14px;
  color: #516158;
  font-size: 14px;
  font-weight: 550;
  border-radius: 7px;
}
nav a:hover {
  background: #f1f4ee;
}
nav a.active {
  background: #e6eee0;
  color: #234e33;
  font-weight: 700;
}
.side-foot {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 17px 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.side-foot small {
  margin-left: auto;
}
.ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar {
  height: 72px;
  padding: 0 clamp(20px, 3.5vw, 60px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fcfdf9;
}
.crumb,
.account,
.row,
.section-head,
.panel-title,
.hint,
.inline {
  display: flex;
  align-items: center;
  gap: 9px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb strong {
  font-weight: 600;
  color: #33493e;
}
.crumb em {
  font-style: normal;
  color: #a4aea5;
  margin: 0 4px;
}
.account {
  font-size: 13px;
  max-width: 50%;
  background: transparent;
}
.account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.body {
  min-width: 0;
}
main {
  max-width: 1440px;
  padding: 30px clamp(20px, 3.5vw, 60px) 0;
  margin: auto;
  min-height: 74vh;
}
footer {
  font-size: 12px;
  color: #68776b;
  text-align: center;
  margin: 36px 12px;
}
footer span {
  margin: 0 6px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: #184936;
  color: #fff;
  min-height: 202px;
  padding: 38px 38px;
  display: flex;
  align-items: center;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 100%, #4b794650, transparent 60%),
    radial-gradient(#dae8b329 1px, transparent 1px);
  background-size:
    auto,
    13px 13px;
  mask-image: linear-gradient(90deg, transparent, #000 75%);
}
.hero-copy {
  max-width: 65%;
  z-index: 1;
}
.eyebrow {
  color: #d0e5b5;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2.3px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.eyebrow:before {
  content: "";
  height: 2px;
  width: 22px;
  background: #b4d38e;
}
.hero h1,
.page-head h1 {
  font-family: var(--serif);
  letter-spacing: 1px;
  font-size: clamp(29px, 3.3vw, 51px);
  line-height: 1.3;
}
.hero p {
  font-size: 14px;
  color: #e1ecdf;
  line-height: 1.75;
  margin-top: 12px;
}
.art {
  position: absolute;
  width: 265px;
  height: 180px;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.paper {
  position: absolute;
  width: 115px;
  height: 145px;
  border: 1px solid #d0dcb5;
  box-shadow: 0 8px 16px #092e2636;
  padding: 14px;
  background: #eff3d9;
  color: #426345;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.paper.back {
  top: 8px;
  left: 36px;
  transform: rotate(-12deg);
  background: #cadeae;
}
.paper.front {
  right: 23px;
  top: 32px;
  transform: rotate(10deg);
  background: #f8f6df;
}
.paper small {
  font-size: 7px;
  letter-spacing: 1.4px;
  font-family: Georgia, serif;
  font-weight: bold;
  border-bottom: 1px solid #9fb293;
  width: 100%;
  padding-bottom: 5px;
}
.paper b {
  font: 42px/1 var(--serif);
  margin: 3px 0;
}
.paper span {
  height: 2px;
  width: 100%;
  background: #90a483;
}
.paper span:last-child {
  width: 64%;
}
.orbit {
  position: absolute;
  inset: 42% -12% 8% -8%;
  border: 1px solid #b9d69277;
  border-radius: 50%;
  transform: rotate(-16deg);
}
.spark {
  position: absolute;
  right: 8px;
  top: 8px;
  color: #cfdf99;
  font-size: 26px;
}
.section-head {
  justify-content: space-between;
  margin: 28px 0 14px;
  gap: 12px;
}
.section-head h2,
.page-head h2 {
  font-size: 21px;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.section-head .meta {
  font-size: 13px;
  color: var(--muted);
}
.panels {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
}
.panel,
.history-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 5px #1b392604;
}
.panel {
  padding: 22px;
}
.panel-title {
  font-size: 17px;
  margin-bottom: 18px;
  gap: 10px;
}
.panel-title .ico {
  color: #487153;
}
.drop {
  position: relative;
  border: 1.5px dashed #aabdab;
  border-radius: 10px;
  min-height: 208px;
  background: #f5f8f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  text-align: center;
}
.drop.drag {
  border-color: var(--green);
  background: #e4efdf;
}
.pdf-art {
  position: relative;
  width: 40px;
  height: 47px;
  background: #fff;
  border: 1.5px solid #608268;
  border-radius: 4px 9px 4px 4px;
  transform: rotate(-6deg);
  box-shadow: 4px 4px 0 #d9e6d5;
  margin: 0 0 6px;
}
.pdf-art:before {
  content: "";
  height: 8px;
  width: 8px;
  position: absolute;
  right: 0;
  top: 0;
  border-bottom: 1px solid #77927d;
  border-left: 1px solid #77927d;
  background: #e3ecd8;
}
.pdf-art b {
  position: absolute;
  left: -5px;
  bottom: 8px;
  background: #446c4c;
  color: white;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 10px;
  letter-spacing: 1px;
}
.drop strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.drop small,
.muted,
.help,
.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.drop button {
  min-height: 36px;
  font-size: 13px;
  padding: 5px 16px;
  margin-top: 3px;
}
.note {
  margin-top: 11px;
}
.lang {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: end;
  gap: 6px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #45554b;
}
select,
input:not([type="file"]) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #cfd8ce;
  background-color: white;
  color: #263b30;
  font-weight: 500;
  font-size: 14px;
}
select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23566559' stroke-width='1.7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.swap {
  padding: 5px;
  border: 0;
  background: transparent;
  min-height: 42px;
}
.provider {
  margin: 14px 0;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary:hover {
  background: #174832;
  color: white;
}
.wide {
  width: 100%;
}
.link {
  color: #366047;
  background: none;
  border: none;
  font-size: 13px;
  padding: 5px 0;
  min-height: 36px;
}
.link:hover {
  background: none;
  text-decoration: underline;
}
.hint {
  padding: 13px 15px;
  background: #f3f6e9;
  border: 1px solid #dae3c8;
  margin-top: 15px;
  border-radius: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.65;
  color: #485d3e;
}
.hint .ico {
  width: 17px;
  margin-top: 2px;
}
.empty {
  text-align: center;
  padding: 32px 18px;
  color: var(--muted);
  font-size: 14px;
}
.empty .ico {
  display: block;
  margin: 0 auto 9px;
  color: #798d79;
  width: 25px;
  height: 25px;
}
.page-head {
  margin: 6px 0 22px;
}
.page-head h1 {
  font-size: 34px;
  color: var(--ink);
}
.page-head p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}
.stack {
  display: grid;
  gap: 15px;
}
.keys {
  max-width: 680px;
}
.hint p,
.error {
  overflow-wrap: anywhere;
}
.error {
  font-size: 14px;
  color: #a43c2c;
  line-height: 1.6;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.toolbar select {
  width: auto;
}
.list-item {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child {
  border-bottom: none;
}
.item-copy {
  flex: 1;
  min-width: 120px;
  overflow-wrap: anywhere;
}
.item-copy strong {
  font-size: 14px;
}
.item-copy p {
  margin: 4px 0 0;
}
.pill {
  display: inline-flex;
  border-radius: 20px;
  background: #eff1eb;
  padding: 4px 10px;
  font-size: 12px;
  color: #4c5e50;
}
.pill.done {
  background: #e3f1e1;
  color: #305e37;
}
.pill.failed {
  background: #f8e7df;
  color: #8a3b31;
}
.pill.running,
.pill.queued {
  background: #faf0d9;
  color: #77581f;
}
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.downloads a {
  font-size: 13px;
  color: var(--green);
  text-decoration: underline;
}
.page-head + .hint {
  margin-bottom: 18px;
}
.spread {
  justify-content: space-between;
}
dialog {
  width: min(420px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px 26px;
  box-shadow: 0 16px 80px #192a2438;
  color: var(--ink);
}
dialog::backdrop {
  background: #122b2270;
}
dialog h2 {
  font-size: 22px;
}
dialog .row {
  margin-bottom: 16px;
}
.iconbtn {
  display: grid;
  place-items: center;
  padding: 6px 9px;
  min-height: 36px;
  border: 0;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#toast {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 5;
  max-width: calc(100% - 40px);
  background: #204536;
  color: white;
  border-radius: 8px;
  padding: 13px 18px;
  box-shadow: 0 4px 20px #14291a20;
  font-size: 14px;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 230px;
  }
  .drop {
    min-height: 225px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .panel {
    padding: 17px;
  }
  .hero {
    padding: 30px;
  }
  .art {
    right: 1%;
    transform: translateY(-50%) scale(0.85);
  }
  .panels {
    gap: 12px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 7px;
  }
  .brand {
    padding: 0;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .nav-label,
  .side-foot {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 9px;
  }
  nav a {
    font-size: 13px;
    min-height: 39px;
    gap: 6px;
    padding: 7px 10px;
  }
  .topbar {
    height: 54px;
  }
  main {
    padding-top: 18px;
  }
  .hero {
    min-height: 174px;
  }
  .panels {
    grid-template-columns: 1fr 1fr;
  }
  .crumb {
    font-size: 12px;
  }
}
@media (max-width: 650px) {
  .panels {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 23px 19px;
    min-height: 158px;
  }
  .hero-copy {
    max-width: 72%;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero p {
    font-size: 13px;
  }
  .art {
    right: -58px;
    transform: translateY(-44%) scale(0.55);
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.25px;
  }
  .drop {
    min-height: 175px;
  }
  .topbar,
  main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .crumb .ico {
    display: none;
  }
  .crumb {
    gap: 4px;
  }
  .section-head {
    margin-top: 20px;
  }
  .account {
    min-height: 36px;
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 10px;
  }
  nav a {
    padding-left: 7px;
    padding-right: 7px;
  }
  .hint {
    align-items: flex-start;
  }
  .section-head h2 {
    font-size: 19px;
  }
  .list-item {
    padding: 14px;
  }
  .art .orbit {
    display: none;
  }
}
