:root {
  --ink:#172e28;
  --muted:#556960;
  --pine:#184838;
  --pineDark:#103b2e;
  --rust:#ad422b;
  --line:#d4ded5;
  --paper:#fffefa;
  --wash:#f2f4ed;
  color-scheme:light;
  font:15px/1.55 system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--wash);
  font-variant-numeric:tabular-nums;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font:700 clamp(27px,4vw,38px)/1.28 "Songti SC","STSong",Georgia,serif;
}
h2 {
  font-size:19px;
  line-height:1.35;
}
h3 {
  font-size:16px;
}
small,.muted {
  color:var(--muted);
}
a {
  color:var(--pine);
  text-underline-offset:3px;
}
button,select,input,textarea {
  font:inherit;
  color:inherit;
}
button,.btn {
  background:var(--paper);
  border:1px solid #c4d1c5;
  border-radius:5px;
  padding:7px 13px;
  line-height:1.5;
  cursor:pointer;
  font-weight:550;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
button:hover,.btn:hover {
  background:#edf2e9;
}
button:disabled {
  cursor:not-allowed;
  opacity:.56;
}
.primary {
  background:var(--pine);
  color:#fff;
  border-color:var(--pine);
}
.primary:hover {
  background:var(--pineDark);
}
.danger {
  background:var(--rust);
  color:white;
  border-color:var(--rust);
}
.danger:hover {
  background:#92351f;
}
input,textarea,select {
  width:100%;
  background:white;
  border:1px solid #acbfae;
  border-radius:5px;
  padding:9px 10px;
  line-height:1.5;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #a16629;
  outline-offset:2px;
}
textarea {
  min-height:80px;
  resize:vertical;
}
label {
  display:block;
  font-size:14px;
  font-weight:650;
  margin-bottom:5px;
}
.topbar {
  height:67px;
  display:flex;
  align-items:center;
  gap:18px;
  background:#123d2f;
  color:#fffdf1;
  padding:0 clamp(16px,3vw,54px);
  border-bottom:3px solid #b8754b;
}
.brand {
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color:inherit;
}
.brand span {
  font:700 22px/1.15 "Songti SC","STSong",Georgia,serif;
  letter-spacing:.055em;
}
.brand small {
  display:block;
  margin-top:3px;
  font:650 9px/1.1 system-ui,sans-serif;
  letter-spacing:.14em;
  color:#d6e2d3;
}
.product {
  border-left:1px solid #678472;
  padding-left:17px;
  color:#d9e4d9;
  white-space:nowrap;
}
.toplinks {
  margin-left:auto;
  display:flex;
  gap:17px;
}
.toplinks a {
  font-size:14px;
  color:#f1f4e8;
  text-decoration:none;
}
.toplinks a:hover {
  text-decoration:underline;
}
.loading,.signPanel {
  max-width:480px;
  margin:8vh auto;
  padding:28px;
}
.signPanel,.pane,.metric {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
}
.signPanel p {
  margin:10px 0 20px;
}
.signPanel .field {
  margin:14px 0;
}
.signPanel button {
  width:100%;
}
.frame {
  display:grid;
  grid-template-columns:214px minmax(0,1fr);
  min-height:calc(100vh - 67px);
  max-width:1800px;
  margin:auto;
}
.sidebar {
  padding:24px 15px 24px 20px;
  border-right:1px solid var(--line);
  background:#e9eee5;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.sidebar select {
  font-size:14px;
}
.navBlock {
  display:grid;
  gap:4px;
}
.sidebar button {
  justify-content:flex-start;
  background:transparent;
  border:1px solid transparent;
  width:100%;
  gap:10px;
  font-weight:500;
}
.sidebar button:hover {
  background:#dce6d8;
}
.sidebar button.current {
  color:#153f2e;
  background:#d4e2d0;
  border-color:#bdcfb9;
  font-weight:700;
}
.navMark {
  font-size:15px;
  font-weight:600;
  width:22px;
  text-align:center;
}
.profile {
  margin-top:auto;
  padding:18px 2px 0;
  border-top:1px solid #cad5c8;
}
.profile b,.profile small {
  display:block;
  overflow-wrap:anywhere;
}
.profile .profileActions {
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:8px;
}
.profile .link,.link {
  font-size:13px;
  padding:1px 0;
  color:var(--pine);
  border:0;
  background:transparent;
  text-decoration:underline;
  text-underline-offset:3px;
  width:auto;
}
.content {
  padding:26px clamp(16px,3.1vw,50px) 45px;
  min-width:0;
}
.pageHead,.panelHead,.flex,.rowActions,.metricRow,.dialogHead,.dialogActions,.chooseLinks,.filterStrip {
  display:flex;
  align-items:center;
  gap:10px;
}
.panelHead,.pageHead,.dialogHead {
  justify-content:space-between;
}
.pageHead {
  margin-bottom:18px;
  align-items:flex-end;
}
.pageHead p {
  font-size:14px;
  color:var(--muted);
  margin-bottom:4px;
}
.pageHead small {
  display:block;
  margin-top:5px;
}
.pageHead .rowActions {
  justify-content:flex-end;
}
.rowActions,.chooseLinks,.filterStrip,.flex {
  flex-wrap:wrap;
}
.small {
  font-size:13px;
  padding:5px 8px;
}
.pane {
  margin:13px 0;
  padding:18px;
  overflow:hidden;
}
.panelHead {
  margin-bottom:12px;
}
.tag {
  display:inline-flex;
  padding:3px 8px;
  border-radius:4px;
  background:#e6ebe4;
  color:#415449;
  font-size:13px;
  font-weight:550;
  white-space:nowrap;
}
.tag.live,.tag.approved,.tag.paid {
  background:#deeddf;
  color:#235339;
}
.tag.paused,.tag.pending,.tag.unpaid {
  background:#f9edcf;
  color:#775222;
}
.tag.sold,.tag.delivered {
  background:#f5e5db;
  color:#8b3823;
}
.empty {
  padding:22px 8px;
  color:var(--muted);
  text-align:center;
}
.help {
  font-size:14px;
  color:var(--muted);
  margin:8px 0;
}
.metricRow {
  align-items:stretch;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.metric {
  padding:14px;
}
.metric small,.metric strong {
  display:block;
}
.metric strong {
  font:600 clamp(20px,2.5vw,34px)/1.35 Georgia,system-ui;
  color:var(--pine);
  overflow-wrap:anywhere;
}
.scroll {
  overflow-x:auto;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:14px;
}
th,td {
  text-align:left;
  padding:10px 8px;
  vertical-align:middle;
  border-bottom:1px solid #e3e9df;
}
th {
  background:#f1f5ec;
  white-space:nowrap;
  font-size:13px;
  color:#4a6254;
  font-weight:620;
}
tbody tr:last-child td {
  border:0;
}
.money {
  white-space:nowrap;
}
.panelLead {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.ticker {
  font:600 clamp(34px,5vw,67px)/1.2 Georgia,system-ui;
  letter-spacing:-.035em;
  color:var(--rust);
}
.serial {
  font:650 12px ui-monospace,monospace;
  letter-spacing:.08em;
  color:var(--muted);
}
.lotDisplay {
  display:grid;
  grid-template-columns:minmax(165px,.66fr) minmax(0,1.34fr);
  gap:18px;
  align-items:center;
}
.heroPhoto,.imgEmpty {
  width:100%;
  height:190px;
  border-radius:6px;
  background:#eaf0e7;
  display:grid;
  place-items:center;
  color:var(--muted);
}
.heroPhoto {
  object-fit:contain;
}
.lotDisplay h2 {
  font-size:24px;
  margin:4px 0;
}
.chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px 17px;
  margin:7px 0 14px;
  color:var(--muted);
  font-size:14px;
}
.chips b {
  color:var(--ink);
}
.formGrid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
}
.field.full {
  grid-column:1/-1;
}
.field small {
  display:block;
  font-size:12px;
  margin:3px 0;
}
.dialogHead h2 {
  margin:0;
}
.formError,.failure {
  color:#9f3522;
  overflow-wrap:anywhere;
}
.formError:not(:empty),.failure {
  margin:10px 0;
  padding:9px 11px;
  background:#fbede4;
  border-radius:5px;
}
.notice {
  background:#fff3d6;
  border:1px solid #e4cb92;
  border-radius:5px;
  padding:9px 12px;
  margin-bottom:14px;
  color:#775629;
}
.dialogActions {
  justify-content:flex-end;
  margin-top:15px;
}
dialog {
  width:min(600px,calc(100% - 24px));
  max-height:90vh;
  border:1px solid var(--line);
  border-radius:9px;
  padding:20px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 18px 70px #13261a36;
}
dialog::backdrop {
  background:#132b20a6;
}
.dialogHead {
  margin-bottom:17px;
}
.iconButton {
  font-size:23px;
  border:0;
  background:#edf1e8;
  width:33px;
  height:33px;
  padding:0;
}
.toast {
  position:fixed;
  z-index:10;
  bottom:19px;
  left:50%;
  transform:translateX(-50%);
  padding:9px 15px;
  color:white;
  background:var(--pine);
  border-radius:6px;
  font-size:14px;
}
.filterStrip {
  margin-bottom:10px;
}
.filterStrip input {
  width:min(280px,100%);
}
.filterStrip select {
  width:auto;
}
.summary {
  display:grid;
  grid-template-columns:100px 1fr;
  gap:7px;
  margin:12px 0;
}
.summary dt {
  color:var(--muted);
}
.summary dd {
  margin:0;
  overflow-wrap:anywhere;
}
.secondaryText {
  display:block;
  font-size:13px;
  color:var(--muted);
}
.rules {
  white-space:pre-line;
}
.nowrap {
  white-space:nowrap;
}
[hidden] {
  display:none!important;
}
@media(max-width:830px) {
  .frame {
    grid-template-columns:170px minmax(0,1fr);
  }
  .sidebar {
    padding:16px 10px;
  }
  .content {
    padding:18px 12px 28px;
  }
  .pane {
    padding:13px;
  }
  .metricRow {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .lotDisplay {
    grid-template-columns:1fr;
  }
  .heroPhoto,.imgEmpty {
    height:170px;
  }
}
@media(max-width:620px) {
  .topbar {
    padding:0 13px;
    height:58px;
    gap:9px;
  }
  .brand span {
    font-size:18px;
  }
  .brand svg {
    width:33px;
    height:33px;
  }
  .product {
    padding-left:8px;
    font-size:13px;
  }
  .toplinks {
    gap:9px;
  }
  .toplinks a {
    font-size:12px;
  }
  .frame {
    display:block;
  }
  .sidebar {
    padding:10px 12px;
    gap:6px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .sideSelect {
    display:flex;
    gap:9px;
    align-items:center;
  }
  .sideSelect label {
    white-space:nowrap;
    margin:0;
  }
  .sidebar select {
    padding:5px 7px;
  }
  .navBlock {
    display:flex;
    gap:4px;
    overflow:auto;
  }
  .navBlock button {
    width:auto;
    white-space:nowrap;
    padding:5px 8px;
    font-size:13px;
  }
  .navMark {
    display:none;
  }
  .profile {
    display:flex;
    align-items:center;
    gap:7px;
    padding:4px 0 0;
    border:0;
    font-size:12px;
    flex-wrap:wrap;
  }
  .profile .profileActions {
    margin:0 0 0 auto;
  }
  .profile .link {
    font-size:12px;
  }
  .pageHead {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .pageHead h1 {
    font-size:28px;
  }
  .formGrid {
    grid-template-columns:1fr;
  }
  .dialogActions button {
    min-height:40px;
  }
  .signPanel {
    margin:5vh 12px;
  }
  .scroll th,.scroll td {
    padding:8px 6px;
  }
  .metric {
    padding:10px;
  }
  .pane {
    padding:11px;
  }
  .lotDisplay {
    gap:10px;
  }
  .field.full {
    grid-column:auto;
  }
}
