:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: #1d3040;
  background: #f4f6f8;
  font-size: 15px;
  color-scheme: light;
  --nav: #172b3c;
  --ink: #182f40;
  --muted: #5e7080;
  --line: #dce3e9;
  --blue: #3659da;
  --teal: #167c71;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button,
a.link {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #819cff;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: var(--blue);
}
button {
  border: 0;
  background: none;
}
svg.i {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip {
  position: absolute;
  left: -100vw;
}
.skip:focus {
  left: 4px;
  z-index: 10;
  background: #fff;
}
.shell {
  margin-left: 224px;
}
#rail {
  position: fixed;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--nav);
  color: #d3dfe7;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 31px;
  color: white;
  font-weight: 710;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand img {
  width: 38px;
}
.brand small {
  display: block;
  color: #a8bac8;
  font-size: 12px;
  font-weight: 520;
  margin-top: 4px;
  letter-spacing: 0.08em;
}
.navgroup {
  margin: 18px 12px 9px;
  color: #9bb0bf;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.navbtn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  color: #d4dfe8;
  text-align: left;
  margin: 2px 0;
}
.navbtn:hover {
  background: #223d51;
}
.navbtn.active {
  background: #324d65;
  color: #fff;
  box-shadow: inset 3px 0 #85adff;
}
.railfoot {
  margin-top: auto;
  border-top: 1px solid #385064;
  padding-top: 16px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  color: white;
}
.avatar {
  background: #375262;
  color: #d2f6ea;
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: bold;
}
.identity small {
  display: block;
  color: #b8cad5;
  font-size: 12px;
  margin-top: 3px;
}
.identity .i:last-child {
  margin-left: auto;
}
.shell > header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(18px, 3.5vw, 60px);
}
.crumb,
.env,
.row,
.tools,
.right,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb {
  color: var(--muted);
  font-size: 14px;
}
.crumb b {
  color: #334956;
}
.env {
  font-size: 13px;
  color: #426959;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #438668;
}
.mobmenu {
  display: none;
}
main {
  max-width: 1630px;
  margin: auto;
  padding: 32px clamp(18px, 3.5vw, 60px) 60px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.pagehead h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.65vw, 39px);
  letter-spacing: -0.05em;
  line-height: 1.25;
}
.pagehead p,
.sub {
  color: var(--muted);
  line-height: 1.5;
}
.pagehead p {
  margin: 7px 0 0;
  font-size: 14px;
}
.btn,
.btnlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid #cfd9e2;
  background: white;
  color: #294354;
  padding: 9px 14px;
  min-height: 39px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.btn:hover,
.btnlink:hover {
  border-color: #7c95a8;
  background: #f5f8fa;
}
.btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn.primary:hover {
  background: #254bc9;
}
.btn.quiet {
  background: transparent;
  border-color: transparent;
}
.btn.warn {
  color: #9d3a27;
}
.link {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
  text-align: left;
  padding: 3px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 16px 0;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 2px 3px #19394904;
}
.card {
  padding: 18px 18px 15px;
  text-align: left;
}
.statHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #455767;
  font-weight: 580;
}
.ibox {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eaf0ff;
  color: #4262c8;
}
.ibox.teal {
  background: #dcf2ef;
  color: #157768;
}
.ibox.gold {
  background: #fff1df;
  color: #9e651d;
}
.ibox.red {
  background: #fbeaea;
  color: #b64c45;
}
.num {
  font-size: 34px;
  font-weight: 710;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  margin: 8px 0 4px;
  color: #142c3c;
}
.num small {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 500;
}
.meta {
  font-size: 13px;
  color: var(--muted);
}
.panel {
  padding: 19px 21px;
  margin-bottom: 16px;
  min-width: 0;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 15px;
}
.panel h2,
.panelhead h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin: 0;
}
.panelhead small {
  color: var(--muted);
  font-size: 13px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(250px, 1fr);
  gap: 16px;
}
.band {
  background: #1e4350;
  color: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
  padding: 20px 23px;
}
.band:after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: -120px;
  top: -130px;
  height: 260px;
  width: 260px;
  border: 1px solid #d7f8fa16;
  box-shadow:
    0 0 0 20px #d7f8fa0a,
    0 0 0 40px #d7f8fa08;
  border-radius: 50%;
}
.band .panelhead small {
  color: #cee3e5;
}
.bar {
  height: 14px;
  border-radius: 3px;
  display: flex;
  overflow: hidden;
  background: #e3e8eb;
  gap: 2px;
}
.bar span {
  display: block;
  flex-shrink: 1;
}
.legend {
  display: flex;
  gap: 12px 23px;
  flex-wrap: wrap;
  margin-top: 13px;
  font-size: 13px;
}
.legend span,
.legend button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #edf6f7;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}
.legend b {
  font-variant-numeric: tabular-nums;
}
.tools {
  flex-wrap: wrap;
  margin: 4px 0 15px;
}
.tools .push {
  margin-left: auto;
}
.field {
  border: 1px solid #cbd7df;
  background: white;
  border-radius: 7px;
  padding: 8px 11px;
  color: #273d4e;
  min-height: 38px;
  max-width: 100%;
}
.field.search {
  flex: 1 1 230px;
}
.field.wide {
  width: 100%;
}
.filter {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #edf1f4;
  border-radius: 8px;
  flex-wrap: wrap;
}
.filter button {
  font-size: 13px;
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: 5px;
  color: #566876;
}
.filter button.on {
  background: #fff;
  color: #20374d;
  box-shadow: 0 1px 4px #19394924;
}
.scroller {
  width: 100%;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
th {
  color: #536878;
  font-weight: 580;
  background: #f3f6f8;
  font-size: 13px;
}
td,
th {
  padding: 11px 10px;
  border-bottom: 1px solid #e5eaee;
}
tr:last-child td {
  border-bottom: 0;
}
.mono {
  font:
    600 13px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: -0.02em;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  background: #eef1f4;
  color: #566673;
  white-space: nowrap;
}
.pill.good {
  background: #e3f4ee;
  color: #11674c;
}
.pill.hot {
  background: #fbe8df;
  color: #964b2c;
}
.pill.blue {
  background: #eaf0fc;
  color: #3859a5;
}
.pill.bad {
  background: #fbe7e7;
  color: #963e40;
}
.mini {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mini img,
.rank img,
.portrait {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #f4f6f7;
  border-radius: 7px;
}
.rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e7ecf0;
}
.rank:last-child {
  border: 0;
}
.rank strong {
  font-size: 14px;
}
.rank .count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.rank small,
.mini small {
  display: block;
  color: #657787;
  font-size: 12px;
  margin-top: 3px;
}
.right {
  margin-left: auto;
}
.empty {
  padding: 23px 8px;
  text-align: center;
  color: var(--muted);
}
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.pager button {
  padding: 5px 9px;
}
.log {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  color: #405564;
  align-items: center;
  border-bottom: 1px solid #eef0f3;
}
.log time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.log b {
  font-size: 14px;
}
.scanarea {
  background: #f3f7fa;
  border: 1px solid #d6e1e9;
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0;
}
.scanarea .tools {
  margin: 10px 0 0;
}
.actions {
  flex-wrap: wrap;
}
.hint {
  color: #5c7080;
  font-size: 13px;
  line-height: 1.6;
}
.noticebox {
  padding: 10px 13px;
  background: #fff4df;
  color: #80541b;
  border: 1px solid #f2d5a1;
  border-radius: 7px;
}
.boxlist button {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #d9e2e9;
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
}
.boxlist button.on {
  border-color: #6d85d2;
  background: #eef3ff;
}
.boxlist button span {
  float: right;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sheet {
  max-width: 920px;
  min-width: 0;
}
.sheet h2 {
  margin: 0;
}
.sheet h3 {
  font-size: 16px;
  margin: 18px 0 10px;
}
.sheet p {
  line-height: 1.55;
}
.formrow {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.formrow label,
.sheet > label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  color: #425a6a;
}
.sheet textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
}
.sheetHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.x {
  font-size: 24px;
  line-height: 1;
  min-width: 32px;
  border-radius: 7px;
}
.x:hover {
  background: #f1f3f6;
}
dialog {
  width: min(930px, 94vw);
  max-height: 88vh;
  border: 1px solid #d1dce4;
  border-radius: 14px;
  padding: 22px;
  color: var(--ink);
  box-shadow: 0 32px 100px #0b233a35;
}
dialog::backdrop {
  background: #10233370;
}
dialog.narrow {
  max-width: 500px;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #173e46;
  color: white;
  border-radius: 9px;
  box-shadow: 0 4px 30px #21353d30;
  z-index: 20;
  padding: 11px 18px;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
#notice:empty {
  display: none;
}
.err {
  color: #a63232;
  background: #fff0ed;
  border-radius: 6px;
  padding: 8px;
}
.kpis {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.kpis span {
  background: #f3f6f8;
  padding: 7px 10px;
  border-radius: 6px;
}
.progress {
  height: 6px;
  background: #e5ebed;
  border-radius: 4px;
  overflow: hidden;
  min-width: 64px;
  margin-top: 4px;
}
.progress i {
  display: block;
  height: 100%;
  background: #39a58d;
}
.check {
  width: 17px;
  height: 17px;
}
.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2fr);
  gap: 14px;
}
.camera {
  width: 100%;
  max-height: 45vh;
  background: #12232d;
  border-radius: 9px;
}
.filebtn input {
  display: none;
}
.rowwrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#notice + * {
  min-width: 0;
}
.minor {
  font-size: 13px;
  color: var(--muted);
}
.boxlist {
  max-height: 58vh;
  overflow: auto;
}
.long {
  overflow-wrap: anywhere;
}
.buttonline {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.logo-text {
  white-space: nowrap;
}
@media (max-width: 1130px) {
  .shell {
    margin-left: 192px;
  }
  #rail {
    width: 192px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .columns {
    grid-template-columns: minmax(0, 1.55fr) minmax(210px, 0.8fr);
  }
  .card {
    padding: 13px;
  }
  .cards {
    gap: 8px;
  }
  .panel {
    padding: 15px;
  }
  .brand {
    font-size: 17px;
  }
}
@media (max-width: 850px) {
  .shell {
    margin: 0;
  }
  #rail {
    display: none;
    z-index: 5;
    box-shadow: 10px 0 45px #13273735;
  }
  body.menu #rail {
    display: flex;
  }
  .mobmenu {
    display: inline-flex;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .pagehead {
    align-items: flex-start;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .boxlist {
    max-height: 190px;
  }
  .shell > header {
    height: 54px;
  }
  .panelhead {
    flex-wrap: wrap;
  }
  .brand {
    padding-top: 10px;
  }
}
@media (max-width: 550px) {
  main {
    padding: 20px 10px 48px;
  }
  .pagehead {
    gap: 10px;
    flex-wrap: wrap;
  }
  .pagehead h1 {
    font-size: 28px;
  }
  .num {
    font-size: 28px;
  }
  .band {
    padding: 17px;
  }
  .panel {
    border-radius: 10px;
  }
  .legend {
    gap: 10px 15px;
  }
  .panelhead h2 {
    font-size: 17px;
  }
  .env {
    font-size: 12px;
  }
  .cards {
    margin: 12px 0;
  }
  .tools .push {
    margin: 0;
  }
  .brand {
    padding-bottom: 18px;
  }
  dialog {
    padding: 16px;
  }
  .log {
    flex-wrap: wrap;
  }
  .tableMore {
    display: none;
  }
  .card .meta {
    font-size: 12px;
  }
  .kpis {
    gap: 5px;
  }
  .shell > header {
    padding: 0 10px;
  }
  .btn,
  .btnlink {
    font-size: 13px;
  }
  .pagehead p {
    margin-top: 4px;
  }
  .card {
    padding: 12px;
  }
  .ibox {
    height: 25px;
    width: 25px;
  }
}

.columns > div {
  min-width: 0;
}
@media (max-width: 850px) {
  .columns, .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 851px) and (max-width: 1050px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}
.rank .count { white-space: nowrap; }

.buying {padding-bottom:15px}
.handoff {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.handoff > div {padding:14px 16px;background:#f5f7fa;border-radius:7px;min-width:0}
.handoff > .total {background:#e4f3ec}
.handoff small,.handoff b,.periodline small {display:block}
.handoff small,.periodline small {color:var(--muted)}
.handoff b {font-size:clamp(17px,1.5vw,24px);margin:5px 0 8px;line-height:1.2}
.handoff .link,.issued .link {font-size:13px;text-align:left}
.periodline {display:flex;align-items:baseline;gap:16px;margin:13px 0 0;font-size:14px;font-variant-numeric:tabular-nums}
.periodline small {margin-top:2px}
.issued {margin-top:9px}
.deskbar {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.deskbar {justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:12px 0}
@media(max-width:850px){.handoff{grid-template-columns:1fr 1fr}.periodline{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:550px){.handoff>div{padding:10px}.periodline{font-size:12px}}

.order-filters .panelhead { margin-bottom: 8px; }
.order-tabs { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin:0 0 15px; }
.order-tabs button { padding:8px 13px 10px; color:#526578; border-bottom:3px solid transparent; }
.order-tabs button.on { border-color:#147068; font-weight:700; color:#0d5d55; }
.order-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 14px; margin:10px 0; }
.order-fields label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); }
.order-fields input,.order-fields select,.order-fields textarea { min-width:0; width:100%; font-size:14px; height:37px; }
.order-fields textarea { min-height:37px; resize:vertical; }
.order-filters details summary,.order-handoff summary { cursor:pointer; color:#34546b; font-size:14px; }
.order-filters details { margin-top:12px; }
.order-list .deskbar { border-top:0; padding:0 0 14px; }
.order-list td { font-size:13px; padding:10px 8px; }
.order-list th { padding:9px 8px; }
.order-list .meta { font-size:12px; }
.order-list .mini img { height:39px; width:35px; }
.order-list tr.chosen { background:#eff8f5; }
.order-handoff { margin-top:12px; }
.order-handoff summary { padding:8px 0; }
.order-list .btn:disabled { opacity:.5; cursor:default; }
.order-list .check { accent-color:var(--teal); }
@media(max-width:1050px){.order-fields {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.order-fields {gap:8px}.order-fields input,.order-fields select,.order-fields textarea{font-size:13px}.order-tabs {gap:0}.order-tabs button{padding:8px}.order-list .actions{gap:5px}}
.selection-tip {font-size:12px;color:var(--muted);margin:-5px 0 10px}
.order-list .minor .field {padding:5px;font-size:13px}
