:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #202a2c;
  background: #fff;
  font-size: 15px;
  letter-spacing: 0;
  --green: #155344;
  --line: #d8dfdd;
  --muted: #576568;
  --surface: #f5f7f6;
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
p,
dl,
dd {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  min-height: 42px;
  cursor: pointer;
}
button:hover {
  background: #edf3f0;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
button img,
nav img {
  width: 18px;
  height: 18px;
  flex: none;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #3777b0;
  outline-offset: 2px;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  font-weight: 600;
}
.primary:hover {
  background: #0d4436;
}
.primary img,
.brand-icon img {
  filter: invert(1);
}
.bar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}
.brand,
.identity,
.context,
.section-line,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  font-weight: 720;
  font-size: 19px;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--green);
  display: grid;
  place-items: center;
}
.brand-icon img {
  width: 23px;
  height: 23px;
}
.identity {
  color: var(--muted);
  font-size: 14px;
}
.icon {
  padding: 7px;
  min-height: 34px;
}
.entry {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.signin {
  width: min(100%, 320px);
  display: grid;
  gap: 12px;
}
.signin input[aria-invalid="true"] {
  border-color: #974422;
}
h1 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 680;
}
h2 {
  font-weight: 650;
  font-size: 18px;
  line-height: 1.45;
}
label,
legend {
  font-size: 14px;
  font-weight: 570;
}
label {
  display: grid;
  gap: 7px;
}
input:not([type="radio"]) {
  width: 100%;
  border: 1px solid #acb7b5;
  border-radius: 4px;
  min-height: 43px;
  padding: 8px 12px;
  background: white;
  color: #182421;
  min-width: 0;
}
.shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
}
aside {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 30px 12px;
}
nav {
  display: grid;
  gap: 4px;
}
nav button {
  justify-content: flex-start;
  padding: 12px;
  min-height: 42px;
  font-size: 14px;
  border-color: transparent;
  background: transparent;
}
nav [aria-current="page"] {
  background: #e0ebe5;
  color: #153b30;
  font-weight: 650;
}
.desk {
  width: 100%;
  max-width: 1100px;
  padding: 34px 40px 70px;
  min-width: 0;
}
.context {
  margin-bottom: 13px;
  font-size: 13px;
}
.mode {
  padding: 4px 9px;
  color: #225743;
  background: #e5efe9;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 640;
}
.mode.live {
  background: #fae6dc;
  color: #8b3218;
}
.account-id,
.stamp,
.hint,
small {
  color: var(--muted);
}
.account-id,
.stamp,
td,
dd {
  font-variant-numeric: tabular-nums;
}
.desk h1 {
  margin-bottom: 28px;
}
.feedback {
  color: #974422;
  line-height: 1.5;
}
.feedback:not(:empty) {
  margin: 14px 0;
}
.feedback button {
  margin-left: 12px;
}
.section-line {
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.stamp {
  font-size: 13px;
}
.commands button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  justify-content: space-between;
  text-align: left;
  padding: 17px 4px;
}
.commands span {
  display: grid;
  gap: 6px;
}
.commands strong {
  font-size: 16px;
}
.commands small {
  font-size: 13px;
  font-weight: 400;
}
.ticket {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  padding: 8px 0 20px;
}
.ticket label:not(fieldset label) {
  width: 190px;
  max-width: 100%;
}
.ticket h2 {
  flex-basis: 100%;
  margin-top: 14px;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 66px;
}
fieldset label {
  display: flex;
  align-items: center;
  gap: 5px;
}
input[type="radio"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  margin: 0;
}
#security p {
  margin: 14px 0;
}
.hint {
  font-size: 13px;
  line-height: 1.6;
}
.receipt {
  margin-top: 32px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 11px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 570;
}
td button {
  min-height: 30px;
  padding: 3px 10px;
}
.empty {
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}
.history-row {
  width: 100%;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  flex-wrap: wrap;
}
.history-row small {
  font-size: 12px;
}
dialog {
  max-width: min(94vw, 520px);
  width: 520px;
  padding: 24px;
  border: 1px solid #bdc8c3;
  border-radius: 8px;
  color: inherit;
  max-height: 88dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #18282068;
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-head h2 {
  font-size: 21px;
}
#scope {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 15px 0;
}
dl {
  display: grid;
  grid-template-columns: minmax(94px, 32%) minmax(0, 1fr);
  font-size: 14px;
}
dt,
dd {
  padding: 7px 0;
  border-bottom: 1px solid #e7eae8;
  overflow-wrap: anywhere;
}
dt {
  color: var(--muted);
}
dd {
  font-weight: 550;
}
.actions {
  justify-content: flex-end;
  margin-top: 20px;
}
.status {
  margin: 14px 0;
  font-weight: 630;
}
.empty code {
  overflow-wrap: anywhere;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head,
#scope,
.actions {
  flex: none;
}
.term-scroll {
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.term-scroll dl {
  grid-template-columns: minmax(112px, 32%) minmax(0, 1fr);
  column-gap: 10px;
}
#review-title:focus {
  outline: none;
}
@media (max-width: 740px) {
  .bar {
    height: 54px;
    padding: 0 16px;
  }
  .shell {
    display: block;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 4px 8px;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 0;
  }
  nav button {
    min-width: max-content;
    padding: 8px;
    font-size: 13px;
    gap: 4px;
  }
  nav button img {
    width: 15px;
  }
  .desk {
    padding: 24px 16px 48px;
  }
  .desk h1 {
    font-size: 25px;
    margin-bottom: 20px;
  }
  .ticket {
    gap: 12px;
  }
  .ticket label:not(fieldset label) {
    width: 100%;
  }
  .ticket button {
    width: 100%;
  }
  .actions {
    flex-wrap: wrap;
  }
  dialog {
    padding: 18px;
  }
  .context {
    gap: 8px;
  }
  .stamp {
    font-size: 12px;
  }
  .bar .identity {
    gap: 5px;
  }
  .table-wrap {
    max-width: 100%;
  }
}
