:root {
  color-scheme: light;
  font-family: Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color: #1c2924;
  background: #f4f5f1;
  --ink: #1c2924;
  --green: #205648;
  --muted: #52665b;
  --line: #d9e1d7;
  --paper: #fff;
  --tint: #e8f1e9;
  --warn: #78481c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none!important;
}

h1,h2,h3,p,fieldset {
  margin: 0;
}

h1 {
  font-size: clamp(29px,5vw,40px);
  line-height: 1.25;
  letter-spacing: -.045em;
}

h2 {
  font-size: 19px;
  letter-spacing: -.025em;
}

p,span,strong,code,small {
  overflow-wrap: anywhere;
}

button,input,select {
  font: inherit;
}

button,a,summary,input,select {
  touch-action: manipulation;
}

button,a,summary {
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: default;
}

:focus-visible {
  outline: 3px solid #668b73;
  outline-offset: 3px;
}

a {
  color: var(--green);
}

.top {
  border-bottom: 1px solid var(--line);
  background: #fafbf8;
}

.top-inner,main {
  width: min(100%,990px);
  margin: auto;
}

.top-inner {
  padding: 12px clamp(16px,3vw,30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 720;
}

.mark {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  position: relative;
  background: var(--green);
}

.mark:before,.mark:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  left: 6px;
  top: 7px;
  border: 1.5px solid #bbd2bc;
  border-radius: 2px;
}

.mark:after {
  left: 10px;
  top: 11px;
}

.top a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 4px;
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

main {
  padding: 22px clamp(14px,3vw,30px) max(28px,env(safe-area-inset-bottom));
}

.title-row {
  margin: 1px 2px 16px;
}

.title-row p {
  margin-top: 5px;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  gap: 16px;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: clamp(16px,3vw,25px);
  min-width: 0;
}

.panel+.panel,.jobs {
  margin-top: 14px;
}

.columns .panel+.panel {
  margin-top: 0;
}

label,legend {
  font-size: 14px;
  font-weight: 650;
}

.panel form>label,fieldset {
  display: block;
  margin-top: 19px;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

.hint,details p,code {
  color: var(--muted);
  font-size: 13px;
}

.hint:not(:empty) {
  margin-top: 5px;
}

input,select {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #b6c4b8;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 8px 11px;
  font-size: 16px;
}

.panel form>input,.panel form>select,.custom-wrap input {
  width: 100%;
  min-height: 45px;
  margin-top: 6px;
}

.choice {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  margin-top: 6px;
}

.choice label {
  position: relative;
}

.choice input {
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}

.choice span {
  display: grid;
  place-items: center;
  min-height: 43px;
  border-radius: 9px;
  border: 1px solid #bdc9be;
  background: white;
  cursor: pointer;
  position: relative;
}

.choice input:checked+span {
  color: var(--green);
  font-weight: 750;
  border: 1.5px solid var(--green);
  background: var(--tint);
}

.choice input:focus-visible+span {
  outline: 3px solid #668b73;
  outline-offset: 1px;
}

.custom-wrap {
  display: block;
  margin-top: 8px;
}

.word-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.word-fields label {
  color: var(--muted);
  font-size: 13px;
}

.word-fields input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 3px;
}

.delivery-fields,
.native-delivery {
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.delivery-fields legend {
  padding-right: 9px;
}

.delivery-fields > label,.review-target-fields label,
#plan-field label {
  display: block;
  margin-top: 8px;
}

.delivery-fields select,.review-target-fields select {
  width: 100%;
  min-height: 45px;
  margin-top: 5px;
}

.delivery-modes {
  display: grid;
  gap: 6px;
  margin: 6px 0 8px;
}

.mode-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.mode-option:has(input:checked) {
  border-color: var(--green);
  background: var(--tint);
}

.mode-option:has(input:disabled:not(:checked)) {
  color: var(--muted);
  cursor: default;
}

.mode-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: var(--green);
}

.review-target-fields {
  margin: 10px 0;
}

.native-delivery {
  padding-top: 13px;
}

.native-delivery h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.order-destination p {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.order-destination p + p {
  margin-top: 3px;
}

#upload-order {
  margin-top: 9px;
}

.primary,.secondary,.text-button {
  border: 0;
  font-weight: 680;
  line-height: 1.3;
}

.primary {
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 13px 16px;
  min-height: 47px;
  width: 100%;
  margin-top: 17px;
}

.secondary {
  background: #f7f9f6;
  color: var(--green);
  border: 1px solid #b8c7bb;
  border-radius: 9px;
  padding: 8px 13px;
  min-height: 40px;
}

.text-button {
  background: transparent;
  color: var(--green);
  padding: 7px 4px;
  min-height: 40px;
}

details {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

summary {
  color: var(--green);
  font-weight: 620;
  font-size: 14px;
  padding: 4px 0;
}

details p,details code {
  display: block;
  margin: 5px 0;
}

.section-line,.notify,.pages,dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.section-line {
  margin-bottom: 8px;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0;
}

.order {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  border: 0;
  background: none;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  color: var(--ink);
}

.order:first-child {
  border: 0;
}

.order strong,.order small {
  display: block;
}

.order small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.badge {
  display: inline-block;
  background: var(--tint);
  color: var(--green);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
  max-width: 50%;
}

.attention,#feedback {
  background: #fff4de;
  border-left: 3px solid #aa691e;
  padding: 9px 11px;
  border-radius: 5px;
  font-size: 13px;
  color: #62401b;
  margin: 9px 0;
}

#feedback {
  margin: 0 0 12px;
}

.back {
  margin: -7px 0 5px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin: 10px 0;
}

.metric {
  background: #f3f6f1;
  border-radius: 8px;
  padding: 9px 12px;
}

.metric strong,.metric small {
  display: block;
}

.metric strong {
  font-size: 23px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.metric small {
  font-size: 12px;
  color: var(--muted);
}

progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  accent-color: var(--green);
  background: #dee6dd;
}

progress::-webkit-progress-bar {
  background: #dee6dd;
}

progress::-webkit-progress-value {
  background: var(--green);
}

.notify {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.notify button {
  flex: none;
}

.notify p {
  margin: 0!important;
}

.filter {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.filter select {
  min-height: 36px;
  font-size: 14px;
  padding: 5px;
}

.job {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 9px;
}

.job-head strong {
  font-size: 15px;
}

.job .badge {
  background: #eef2ed;
  color: var(--ink);
}

.job small,.job p {
  display: block;
  font-size: 13px;
  margin-top: 5px;
  color: var(--muted);
}

.job .problem {
  color: var(--warn);
}

.job > a {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
}

.job .text-button {
  min-height: 36px;
  padding: 4px 0;
}

.pages {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

dialog {
  padding: 16px;
  max-width: min(650px,94vw);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}

dialog::backdrop {
  background: #10261dcc;
}

dialog video {
  display: block;
  width: 100%;
  max-height: 68vh;
  background: #17221c;
  margin-top: 10px;
  border-radius: 7px;
}

.history .secondary {
  width: 100%;
}

#recover {
  margin-top: 9px;
}

@media(max-width:670px) {
  .columns {
    grid-template-columns: minmax(0,1fr);
  }

  .top-inner {
    min-height: 52px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  main {
    padding-top: 17px;
  }

  .panel {
    padding: 16px;
  }

  .history {
    margin-top: 0;
  }

}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.danger {
  color: #91382b;
}
#cancel-confirm {
  width: min(360px, 92vw);
}
#cancel-confirm p {
  margin-top: 8px;
}
