:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #192920;
  background: #f4f6f1;
  accent-color: #215b43;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.6; }
header { background: #183b2e; color: #fff; }
.shell { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.header { display: flex; justify-content: space-between; align-items: center; min-height: 4rem; }
.brand { color: inherit; font-weight: 700; text-decoration: none; }
main { padding-block: 2.5rem 4rem; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
.card { background: #fff; border: 1px solid #dbe4dc; border-radius: .75rem; padding: clamp(1rem, 3vw, 1.6rem); margin-block: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.form-actions { margin-top: 1rem; }
label { display: block; font-weight: 600; }
input:not([type=checkbox]), select { display: block; width: 100%; min-width: 0; padding: .65rem; margin-top: .25rem; border: 1px solid #869b8d; border-radius: .4rem; background: #fff; color: inherit; font: inherit; }
input[type=file] { font-size: .9rem; }
.action, button { display: inline-block; border: 1px solid transparent; border-radius: .45rem; padding: .55rem 1rem; background: #215b43; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.secondary { background: #fff; color: #194831; border-color: #98ac9e; }
.danger { background: #9c3030; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #bf811d; outline-offset: 3px; }
.status { background: #e6eee7; color: #234b36; border-radius: 1rem; padding: .2rem .7rem; font-size: .9rem; }
.muted { color: #48624f; }
.notice { position: fixed; bottom: 1rem; inset-inline: 1rem; width: fit-content; max-width: calc(100% - 2rem); margin: auto; border-radius: .5rem; padding: .8rem 1rem; color: #fff; background: #215b43; }
.notice.error { background: #9c3030; }
canvas { display: block; width: 100%; max-width: 42rem; height: auto; border: 1px dashed #869b8d; border-radius: .45rem; touch-action: none; background: #fff; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 1rem; }
dl { margin: 0 0 1rem; }
dt { font-weight: 600; }
dd { margin: 0; overflow-wrap: anywhere; }
.job { padding-block: 1rem; border-top: 1px solid #dbe4dc; }
.job .row > label { flex: 1 1 10rem; }
.file-card { margin: 0; }
.link { color: #215b43; }
.employee-form { max-width: 54rem; margin-inline: auto; }
.employee-form h1 { margin: 0; }
.employee-form section + section { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #dbe4dc; }
.employee-form .grid + .attachment-grid { margin-top: .9rem; }
.employee-form .required, .employee-form .field-error { color: #9c3030; }
.employee-form .field-error { margin-top: .65rem; overflow-wrap: anywhere; }
.bank-details { min-width: 0; margin: .9rem 0 0; padding: 0; border: 0; }
.bank-confirm { display: flex; align-items: baseline; gap: .5rem; margin-top: .8rem; }
.bank-confirm input { flex-shrink: 0; }
.proof-group {
  min-width: 0;
  margin: .9rem 0;
  padding: .8rem;
  border: 1px solid #dbe4dc;
  border-radius: .55rem;
}
.proof-group legend { padding-inline: .35rem; font-weight: 650; }
.proof-group .attachment-grid { margin-top: .8rem; }
.proof-order, .ocr-result, .declaration-text { overflow-wrap: anywhere; }
.declaration-text { white-space: pre-wrap; }
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .8rem;
}
.attachment {
  min-width: 0;
  padding: .8rem;
  border: 1px solid #dbe4dc;
  border-radius: .55rem;
}
.attachment-info { overflow-wrap: anywhere; }
.attachment-preview {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  max-height: 11rem;
  object-fit: contain;
  object-position: left;
  margin-bottom: .6rem;
}
.file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #98ac9e;
  border-radius: .45rem;
  padding: .45rem .65rem;
  color: #194831;
  cursor: pointer;
}
.file-picker input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.file-picker:focus-within { outline: 3px solid #bf811d; outline-offset: 3px; }
.employee-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.3rem;
  border-top: 1px solid #dbe4dc;
  padding-top: 1rem;
}
.employee-form button { min-height: 44px; }
@media (max-width: 430px) {
  main:has(.employee-form) { padding-block: 1.35rem 3.5rem; }
  .employee-actions > button { flex: 1 1 auto; padding-inline: .55rem; }
}


.proof-editor { margin-top: .9rem; }
.proof-feedback { margin-top: .75rem; }
.ocr-conflicts { display: grid; gap: .6rem; margin-block: .55rem; }
.ocr-conflict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: #fff6e7;
  border: 1px solid #ebd7aa;
  padding: .65rem;
  border-radius: .45rem;
  overflow-wrap: anywhere;
}
