@charset "UTF-8";
:root {
  --paper: #fff;
  --canvas: #f4f6f8;
  --rail: #eaf0f4;
  --ink: #162c3e;
  --muted: #526576;
  --line: #d6dfe6;
  --accent: #174f76;
  --accent-hover: #103e60;
  --selected: #e7f1f8;
  --success: #236047;
  --success-bg: #e8f3ed;
  --warning: #765416;
  --warning-bg: #fbf3dd;
  --error: #9b3030;
  --error-bg: #faeded;
  --radius: 5px;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition:
    background 0.16s ease-out,
    border-color 0.16s ease-out;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button:hover {
  background: var(--rail);
}
:focus-visible {
  outline: 3px solid #5d91b2;
  outline-offset: 3px;
}
::selection {
  background: #c8e0f1;
  color: var(--ink);
}
input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid #aabac6;
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  caret-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: #627382;
  opacity: 1;
}
input:disabled,
select:disabled {
  background: var(--rail);
  color: var(--muted);
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
  color: #334b5e;
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  min-height: 34px;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: var(--accent-hover);
}
.secondary {
  background: #fff;
  border-color: #b5c5d0;
}
.secondary:hover {
  border-color: var(--accent);
  background: var(--selected);
}
.quiet {
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.danger {
  background: var(--error);
  color: #fff;
}
.danger:hover {
  background: #7e2424;
}
.text-link {
  display: inline-block;
  margin: 5px 18px 5px 0;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
}
h3 {
  font-size: 15px;
}
p {
  max-width: 75ch;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  line-height: 1.7;
}
.feedback {
  font-size: 13px;
  min-height: 0;
  overflow-wrap: anywhere;
}
.feedback:empty {
  display: none;
}
.feedback.error {
  color: var(--error);
}
.feedback.success {
  color: var(--success);
}
.mono,
code,
pre {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.mono,
code {
  overflow-wrap: anywhere;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 12px;
  background: #fff;
}
.skip:focus {
  top: 10px;
}
.brand-mark {
  display: inline-block;
  width: 28px;
  height: 32px;
  background: linear-gradient(
    90deg,
    var(--accent) 0 5px,
    transparent 5px 10px,
    var(--accent) 10px 15px,
    transparent 15px 20px,
    var(--accent) 20px
  );
  clip-path: polygon(
    0 23%,
    18% 23%,
    18% 0,
    54% 0,
    54% 14%,
    100% 14%,
    100% 100%,
    0 100%
  );
  flex-shrink: 0;
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  max-width: 1160px;
  margin: auto;
  padding: 70px;
  gap: 100px;
}
.login-intro h1 {
  font-size: 36px;
  margin: 20px 0;
}
.login-intro > p {
  font-size: 19px;
  line-height: 1.9;
}
.login-rule {
  border-top: 1px solid #b6c9d7;
  margin-top: 68px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.login-form h2 {
  font-size: 22px;
}
.workspace {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 30px 15px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  padding: 0 8px 36px;
}
.brand strong {
  font-size: 19px;
  font-weight: 650;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  display: block;
  min-height: 44px;
  padding: 10px 13px;
  text-decoration: none;
  color: #435d70;
  border-radius: var(--radius);
  font-weight: 600;
}
.sidebar nav a:hover {
  background: #dee8ee;
}
.sidebar nav a[aria-current="page"] {
  background: #d2e3ee;
  color: #123f5e;
}
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: var(--muted);
  gap: 12px;
}
.sidebar-footer button {
  font-size: 12px;
}
main {
  padding: 31px 30px 0;
  min-width: 0;
  max-width: 1800px;
  width: 100%;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #bccbd7;
  margin-bottom: 26px;
}
.page-header p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.refresh-area {
  display: flex;
  align-items: center;
  gap: 16px;
}
.refresh-area span {
  font-size: 12px;
  color: var(--muted);
}
.notice {
  padding: 12px 16px;
  margin-bottom: 22px;
  background: var(--selected);
  border: 1px solid #b8d1e3;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.notice.error {
  background: var(--error-bg);
  border-color: #e7c0c0;
  color: var(--error);
}
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.section-heading > .muted {
  font-size: 12px;
}
.take-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  align-self: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0;
}
.toolbar label {
  min-width: 150px;
  font-size: 12px;
}
.toolbar .grow {
  flex: 1;
}
.toolbar button {
  flex-shrink: 0;
}
.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: #eef3f7;
  white-space: nowrap;
}
th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td {
  font-size: 13px;
}
.order-select {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0;
  min-height: 44px;
  font-size: 14px;
  display: block;
  font-weight: 600;
  color: var(--accent);
}
.order-select:hover {
  background: transparent;
  text-decoration: underline;
}
.selected-row {
  background: var(--selected);
}
tr.highlight {
  animation: locate 2s ease-out;
}
@keyframes locate {
  from {
    background: #c4e1f4;
  }
  to {
    background: var(--selected);
  }
}
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
  background: #edf1f4;
  color: #45596b;
}
.status.waiting,
.status.allocating {
  background: #e7f0f7;
  color: #245475;
}
.status.received,
.status.succeeded {
  color: var(--success);
  background: var(--success-bg);
}
.status.allocation_unknown,
.status.pending,
.status.timed_out {
  background: var(--warning-bg);
  color: var(--warning);
}
.status.failed {
  background: var(--error-bg);
  color: var(--error);
}
.table-note {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 25px;
}
.empty {
  border: 1px solid var(--line);
  background: #fff;
  padding: 35px 25px;
  text-align: center;
}
.empty p {
  margin: 9px auto 14px;
  color: var(--muted);
  font-size: 13px;
  max-width: 48ch;
}
.detail {
  border-top: 1px solid #b9cbd8;
  padding-top: 22px;
  margin-top: 22px;
}
.detail > p {
  margin-top: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 25px;
  margin: 18px 0;
}
.detail-grid dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.copy-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-line .value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
}
.copy {
  font-size: 11px;
  min-height: 34px;
  padding: 4px 9px;
  background: #fff;
  border-color: var(--line);
}
.sms {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #edf2f6;
  padding: 13px;
  margin: 14px 0;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.warning {
  background: var(--warning-bg);
  color: var(--warning);
  padding: 13px;
  border: 1px solid #decfa9;
  border-radius: var(--radius);
  font-size: 13px;
}
.warning p {
  margin-bottom: 10px;
}
.warning button {
  margin-top: 10px;
}
.warning code {
  display: block;
  font-size: 11px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  min-height: 32px;
}
.advanced {
  margin-top: 13px;
}
.loading {
  height: 96px;
  padding: 22px;
  color: var(--muted);
  background: linear-gradient(100deg, #eef2f5, #fff, #eef2f5);
  border: 1px solid var(--line);
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 35px;
}
.editor {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  align-self: start;
}
.editor h2 {
  margin-bottom: 4px;
}
.section-spaced {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #bccbd7;
}
.record-list {
  display: flex;
  flex-direction: column;
}
.record {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.record:first-child {
  padding-top: 5px;
}
.record-title {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.record p {
  margin: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.record .actions {
  margin-top: 12px;
}
.record code {
  font-size: 12px;
}
.record .metadata {
  font-size: 12px;
  color: var(--muted);
}
.credential-field {
  padding-bottom: 10px;
  border-bottom: 1px solid #e4eaf0;
}
.credential-field .check {
  font-size: 11px;
  color: var(--error);
}
.credential-field small {
  font-weight: 400;
}
.reading {
  max-width: 850px;
}
.reading > p {
  margin: 14px 0 26px;
}
.reading h2 {
  margin: 28px 0 14px;
}
.reading li {
  margin: 11px 0;
}
.code-example {
  margin: 25px 0;
}
.code-example .section-heading {
  margin-bottom: 8px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eaf0f4;
  padding: 20px;
  font-size: 12px;
  line-height: 1.85;
  border-radius: var(--radius);
}
.work-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.event-list {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
}
.event-list li {
  margin-bottom: 10px;
}
dialog {
  max-width: 480px;
  width: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 16px 55px #122c3e33;
}
dialog::backdrop {
  background: #142b3d66;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 10px;
}
label,
input,
select,
textarea {
  min-width: 0;
}
.field-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1500px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  main {
    padding-left: 40px;
    padding-right: 40px;
  }
  .sidebar {
    padding-top: 37px;
  }
}
@media (max-width: 1150px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }
  .take-panel {
    padding: 17px;
  }
  main {
    padding: 25px 22px 0;
  }
  .workspace {
    grid-template-columns: 134px minmax(0, 1fr);
  }
  th,
  td {
    padding: 11px 10px;
  }
  .refresh-area {
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
  }
  .split-layout {
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar label {
    flex: 1;
    min-width: 120px;
  }
}
@media (max-width: 900px) {
  .order-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }
  .take-panel {
    max-width: none;
  }
  .take-panel form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .take-panel form > details,
  .take-panel form > .hint,
  .take-panel form > .feedback,
  .take-panel form > .warning {
    grid-column: 1/-1;
  }
  .take-panel form > .field-pair {
    display: contents;
  }
  .take-panel form > .primary {
    align-self: end;
  }
  .editor {
    max-width: 650px;
  }
  .login-layout {
    padding: 40px;
    gap: 45px;
  }
  .login-intro h1 {
    font-size: 30px;
  }
  .login-intro > p {
    font-size: 16px;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 14px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 17px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0 0 14px;
    gap: 10px;
    font-size: 14px;
  }
  .brand > span:last-child {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand-mark {
    width: 21px;
    height: 24px;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 10px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 9px 11px;
    font-size: 12px;
    min-height: 40px;
  }
  .sidebar-footer {
    position: absolute;
    top: 14px;
    right: 12px;
  }
  .sidebar-footer > span {
    display: none;
  }
  .sidebar-footer button {
    min-height: 38px;
    padding: 5px 10px;
  }
  main {
    padding: 23px 16px 0;
  }
  .page-header {
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 23px;
    padding-bottom: 19px;
  }
  .page-header h1 {
    font-size: 23px;
  }
  .page-header p {
    font-size: 12px;
    max-width: 22ch;
  }
  .refresh-area {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .refresh-area span {
    max-width: none;
    text-align: left;
    font-size: 12px;
  }
  .refresh-area button {
    font-size: 12px;
    padding: 7px 10px;
    min-height: 38px;
  }
  .toolbar {
    gap: 9px;
  }
  .toolbar label {
    font-size: 11px;
    min-width: 100px;
  }
  .toolbar button {
    padding: 8px 11px;
  }
  .orders-table th:nth-child(2),
  .orders-table td:nth-child(2) {
    display: none;
  }
  th,
  td {
    padding: 11px 9px;
  }
  .order-select {
    font-size: 13px;
  }
  .orders-table td:last-child {
    max-width: 80px;
    overflow-wrap: anywhere;
    font-size: 13px;
  }
  .status {
    font-size: 11px;
    padding: 3px 5px;
  }
  .take-panel form {
    display: flex;
  }
  .take-panel form > .field-pair {
    display: grid;
  }
  .take-panel {
    padding: 21px 18px;
  }
  .detail-grid {
    gap: 16px 15px;
  }
  .detail-grid .value {
    font-size: 16px;
  }
  .editor {
    padding: 21px 18px;
  }
  .record-title {
    gap: 7px;
  }
  .work-footer {
    flex-direction: column;
    gap: 4px;
    margin-top: 35px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 35px 22px;
    gap: 34px;
  }
  .login-intro h1 {
    font-size: 28px;
    margin: 12px 0;
  }
  .login-intro > p {
    font-size: 15px;
  }
  .login-rule {
    display: none;
  }
  .login-form {
    padding: 24px;
    gap: 15px;
  }
  .field-pair {
    gap: 10px;
  }
  .warning code {
    word-break: break-all;
  }
  .record .actions button {
    font-size: 12px;
  }
  .reading ul {
    padding-left: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
