* {
  box-sizing: border-box;
}
:root {
  font-family: 'WYW Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #122d4b;
  background: #ecf5fd;
  font-size: 16px;
  font-synthesis: none;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid #aac9ea;
  background: white;
  color: #115eac;
  cursor: pointer;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.4;
}
button:hover {
  background: #eaf3ff;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #76acfa;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.primary {
  background: #126dde;
  border-color: #126dde;
  color: #fff;
}
button.primary:hover {
  background: #075abd;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
aside {
  background: #fff;
  border-right: 1px solid #cddff0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
}
.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  padding: 26px 18px 28px;
}
.mark {
  width: 59px;
  height: 43px;
  flex: none;
  background: url('/brand.png') center 24% / 66px 66px no-repeat;
}
.brand small,
.brand strong {
  display: block;
}
.brand small {
  font-size: 0.78rem;
  color: #425c78;
  line-height: 1.6;
}
.brand strong {
  font-size: 1.44rem;
  letter-spacing: 0.04em;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 13px;
  overflow-y: auto;
}
nav button {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  gap: 13px;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  color: #344e69;
  font-size: 1rem;
  font-weight: 550;
}
nav button.active {
  color: #0b60bf;
  background: #e1efff;
  border-color: #c9e1fa;
  font-weight: 700;
}
.glyph {
  display: inline-flex;
  flex: none;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  color: #3774ae;
}
.glyph svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-end {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: auto 23px 19px;
  padding-top: 18px;
  border-top: 1px solid #e2eaf3;
  color: #63778c;
  font-size: 0.88rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4888c8;
}
.workspace {
  min-width: 0;
  background: linear-gradient(150deg, #e7f1fd 1%, #f4f9fe 48%, #e9f3fc);
}
header {
  height: 67px;
  background: #fff;
  border-bottom: 1px solid #d5e4f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 48px);
}
.header-brand {
  font-size: 1.15rem;
  font-weight: 700;
}
.session,
.tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.session {
  font-size: 0.95rem;
  font-weight: 600;
}
.quiet {
  background: transparent;
  border-color: #d5e3f1;
  font-size: 0.88rem;
  color: #49637e;
}
.content {
  padding: 32px clamp(20px, 3vw, 48px) 56px;
  max-width: 1670px;
  margin: auto;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.crumb {
  font-size: 0.85rem;
  color: #546f89;
  margin-bottom: 8px;
}
.section-head h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.tools {
  color: #526c86;
  font-size: 0.94rem;
  white-space: nowrap;
}
#metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
#metrics:empty {
  display: none;
}
.metric {
  border: 1px solid #cbdff4;
  border-radius: 14px;
  background: #fff;
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 23px;
  text-align: left;
  color: #254867;
}
.metric strong,
.metric span.metric-label {
  display: block;
}
.metric-label {
  font-size: 0.98rem;
  font-weight: 600;
}
.metric strong {
  font-size: 2.35rem;
  line-height: 1.23;
  color: #0965cf;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.metric .glyph {
  width: 47px;
  height: 47px;
  padding: 10px;
  background: #e5f1ff;
  border-radius: 13px;
  color: #0869cc;
}
.opportunity-metric > div {
  min-width: 0;
}
.opportunity-total,
.estimate-hint {
  display: block;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.opportunity-total {
  margin-top: 4px;
  color: #244e72;
  font-weight: 600;
}
.estimate-hint {
  color: #536c82;
  font-weight: 400;
}
#panels {
  display: grid;
  gap: 18px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid #cbdff1;
  border-radius: 14px;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  gap: 12px;
  border-bottom: 1px solid #dfebf4;
  flex-wrap: wrap;
}
.panel h2 {
  font-size: 1.24rem;
  font-weight: 700;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions button {
  font-size: 0.9375rem;
}
.table-shell {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
th,
td {
  padding: 14px 17px;
  text-align: left;
  line-height: 1.5;
  border-bottom: 1px solid #e2ebf5;
  overflow-wrap: anywhere;
}
th {
  font-size: 0.9rem;
  color: #49657e;
  font-weight: 600;
  background: #f2f7fd;
}
td:first-child {
  font-weight: 600;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.record-control {
  padding: 0.3rem 0.67rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.empty {
  padding: 28px 22px 32px;
  color: #63778e;
  line-height: 1.5;
}
.feedback,
.error {
  font-size: 0.95rem;
  line-height: 1.5;
}
.feedback {
  background: #e0f2ed;
  color: #195c4b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.error,
.feedback.bad {
  color: #9c352b;
}
.feedback.bad {
  background: #ffede7;
}
dialog {
  width: min(570px, 94vw);
  max-height: 85vh;
  overflow: auto;
  color: #153451;
  border: 1px solid #c8dbea;
  border-radius: 15px;
  background: white;
  padding: 0;
  box-shadow: 0 18px 80px #112d4c42;
}
dialog::backdrop {
  background: #112c4666;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-actions {
  flex: none;
  padding: 14px 23px;
  border-top: 1px solid #d8e6f3;
  background: #fbfdff;
}
.modal-actions:empty,
#modalBody .error:empty {
  display: none;
}
.modal-head {
  flex: none;
  position: sticky;
  z-index: 1;
  top: 0;
  background: #fff;
  padding: 19px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d5e4f4;
  gap: 8px;
}
.modal-head h2 {
  font-size: 1.24rem;
  word-break: break-all;
}
.close {
  border: none;
  background: transparent;
  color: #597189;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.3rem;
}
#modalBody {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px 23px 24px;
}
#modalBody form,
.login-box form {
  display: grid;
  gap: 15px;
}
#modalBody .actions {
  margin-top: 18px;
}
.form-note {
  color: #496780;
  line-height: 1.6;
}
.field-camera {
  width: min(100%, 380px);
  max-height: 250px;
  object-fit: contain;
  border-radius: 10px;
}
.form-label,
.login-box label {
  display: grid;
  gap: 7px;
  color: #28445e;
  font-size: 1rem;
  font-weight: 600;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #aecae3;
  border-radius: 7px;
  color: #153451;
  background: #fff;
  font-weight: 400;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}
.checks input {
  width: auto;
}
.detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr);
  gap: 12px 16px;
}
.detail-grid dt {
  color: #5d738b;
}
.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.detail-history {
  padding: 14px 0 0;
  margin-top: 18px;
  border-top: 1px solid #d8e6f3;
}
.detail-history h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.proof {
  display: inline-block;
  color: #1263ae;
  margin: 12px 12px 0 0;
}
.code {
  font-family: monospace;
  font-size: 1.65rem;
  letter-spacing: 0.09em;
  background: #edf5ff;
  border-radius: 9px;
  padding: 15px;
  display: block;
  margin: 12px 0;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 18%, #cbe3fc 0, transparent 55%),
    linear-gradient(135deg, #e4f1fd, #f5faff 60%, #d5e9fb);
}
.login-box {
  width: min(435px, 100%);
  padding: 30px 34px;
  background: #fff;
  border: 1px solid #c4daf0;
  border-radius: 16px;
  box-shadow: 0 8px 35px #2d6ba415;
}
.login-brand {
  color: #456580;
  font-size: 0.88rem;
}
.login-brand .mark {
  width: 40px;
  height: 32px;
  background-size: 47px 47px;
}
.login-box h1 {
  font-size: 2rem;
  margin: 23px 0 4px;
}
.login-sub {
  color: #506d88;
  margin-bottom: 24px;
}
.captcha, .captcha-row {
  display: grid;
  gap: 7px;
}
.captcha-row {
  grid-template-columns: minmax(0, 1fr) min(48%, 140px);
  align-items: center;
}
#refreshCaptcha {
  width: 100%;
  height: 46px;
  padding: 0;
  overflow: hidden;
  background: #eff7fb;
  color: #365974;
}
#captchaImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  vertical-align: middle;
}
#captchaAnswer {
  min-width: 0;
}
#captchaHint {
  color: #506d88;
  font-size: 0.8rem;
}
#demo {
  border-top: 1px solid #d3e2ee;
  margin-top: 18px;
  padding-top: 18px;
}
.login-box .error {
  margin-top: 12px;
}
@media (min-width: 1450px) {
  .shell {
    grid-template-columns: 255px minmax(0, 1fr);
  }
  .brand {
    padding-left: 27px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #cddff0;
  }
  .brand {
    padding: 10px 18px 6px;
  }
  .brand .mark {
    width: 40px;
    height: 32px;
    background-size: 47px 47px;
  }
  .brand small,
  .sidebar-end {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    gap: 4px;
    padding: 6px 12px 10px;
  }
  nav button {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  nav .glyph {
    width: 16px;
    height: 16px;
  }
  header {
    height: 48px;
  }
  .content {
    padding: 22px 12px;
  }
  .tools span {
    display: none;
  }
  .metric {
    padding: 13px;
    min-height: 83px;
  }
  .metric strong {
    font-size: 1.8rem;
  }
  .metric .glyph {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  #metrics {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 6px;
  }
  .panel-head {
    padding: 14px;
  }
  .panel h2 {
    font-size: 1.1rem;
  }
  th,
  td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
  .session {
    gap: 5px;
  }
}
@media (min-width: 801px) {
  .brand small {
    white-space: nowrap;
  }
}
@media (min-width: 1180px) {
  .executive #panels {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  }
  .executive #panels th,
  .executive #panels td {
    padding: 13px 10px;
  }
  .executive #metrics .metric:nth-child(2) .glyph {
    color: #b43d48;
    background: #fdebef;
  }
  .executive #metrics .metric:nth-child(2) strong {
    color: #b8313d;
  }
}
.stage {
  display: inline-block;
  max-width: 100%;
  padding: 0.16rem 0.55rem;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 550;
}
.stage.pending {
  color: #1e598f;
  background: #e9f3ff;
}
.stage.complete {
  color: #23634e;
  background: #e6f4ed;
}
.stage.returned {
  color: #963c37;
  background: #fff0ed;
}
#overviewTabs:not(:empty) {
  margin-bottom: 20px;
}
.desk-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #c6dbef;
}
.desk-tabs button {
  border: 0;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 9px 16px;
  background: transparent;
  color: #38536e;
}
.desk-tabs button.selected {
  border-bottom-color: #126dde;
  color: #095dbf;
}
#overviewTabs .desk-tabs {
  gap: 5px;
}
#overviewTabs .desk-tabs button {
  border: 1px solid #c6dbef;
  border-radius: 8px 8px 0 0;
  background: white;
}
#overviewTabs .desk-tabs button.selected {
  border-color: #126dde;
  color: white;
  background: #126dde;
}
.units-toolbar {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(7rem, 10rem) auto;
  gap: 12px;
}
.usage-guide {
  padding: 14px 22px;
  color: #496780;
}
.usage-days {
  display: grid;
  gap: 4px;
  width: min(8rem, 100%);
  font-variant-numeric: tabular-nums;
}
.usage-days progress {
  display: block;
  width: 100%;
  height: 0.55rem;
  accent-color: #126dde;
}
.usage-silver { color: #445468; background: #edf0f4; }
.usage-gold { color: #825500; background: #fff1c9; }
.usage-diamond { color: #115eac; background: #dceeff; }
.usage-rules {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: .925rem;
  font-variant-numeric: tabular-nums;
}
.usage-rules li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .executive #metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-guide { padding: 14px 15px; border-bottom: 1px solid #dfebf4; }
  .usage-rules { gap: 7px 12px; }
  .units-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .units-toolbar input { grid-column: 1 / -1; }
  .units-toolbar select { width: auto; justify-self: start; }
  #metrics .opportunity-metric {
    grid-column: 1 / -1;
    padding-right: 40px;
  }
  .metric {
    position: relative;
    padding: 12px;
    min-height: 84px;
    align-items: start;
  }
  .metric .glyph {
    position: absolute;
    right: 9px;
    bottom: 11px;
    width: 23px;
    height: 23px;
    padding: 4px;
  }
  .metric-label {
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .metric strong {
    margin-top: 3px;
  }
  .section-head {
    align-items: center;
    margin-bottom: 18px;
  }
  .section-head h1 {
    font-size: 1.8rem;
    letter-spacing: -0.035em;
  }
  .panel-head {
    gap: 10px;
  }
  .actions button {
    min-height: 37px;
  }
  .table-shell table,
  .table-shell tbody {
    display: block;
  }
  .table-shell thead {
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    position: absolute;
    overflow: hidden;
    white-space: nowrap;
  }
  .table-shell tbody tr {
    display: grid;
    gap: 4px;
    padding: 13px 15px 15px;
    border-bottom: 1px solid #dce8f3;
  }
  .table-shell tbody tr:last-child {
    border-bottom: 0;
  }
  .table-shell td {
    display: grid;
    grid-template-columns: minmax(6.2em, 0.32fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    padding: 0;
    border: 0;
    font-size: 0.95rem;
  }
  .table-shell td:first-child {
    display: block;
    margin-bottom: 3px;
    font-size: 1rem;
  }
  .table-shell td:not(:first-child):not(.row-actions)::before {
    content: attr(data-label);
    color: #526b82;
    font-size: 0.875rem;
  }
  .table-shell td.row-actions {
    display: block;
    margin-top: 5px;
  }
  .table-shell .stage {
    justify-self: start;
  }
  dialog {
    width: calc(100% - 24px);
    max-height: 86dvh;
  }
  .modal-head,
  #modalBody {
    padding: 15px 17px;
  }
  .modal-actions {
    padding: 11px 17px;
  }
  .detail-grid {
    grid-template-columns: minmax(5.8em, 0.36fr) minmax(0, 1fr);
    gap: 9px 12px;
  }
}
