:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #1e293b;
  --muted: #7b8798;
  --line: #e5e9f0;
  --blue: #4da3ff;
  --blue-dark: #2588f0;
  --orange: #ff9d3f;
  --orange-dark: #e58a32;
  --green: #078a12;
  --danger: #c52d2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 42px;
}

.query-panel,
.result-panel,
.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(30, 41, 59, 0.08);
}

.query-panel {
  padding: 16px 64px 18px 34px;
}

.compact-panel {
  padding-bottom: 22px;
}

.result-panel,
.detail-panel {
  margin-top: 38px;
  overflow: hidden;
}

.detail-panel {
  margin-top: 18px;
}

.query-form {
  display: grid;
  gap: 18px;
}

.row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 70px;
  align-items: start;
  gap: 10px;
}

.compact-row {
  grid-template-columns: 96px minmax(0, 1fr) 88px;
  align-items: center;
}

.textarea-row {
  grid-template-columns: 96px minmax(0, 1fr);
}

.row-title {
  padding-top: 12px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 6px;
  color: #334155;
  background: #fff;
  outline: none;
}

input {
  height: 50px;
  padding: 0 16px;
  font-size: 20px;
}

textarea {
  min-height: 118px;
  resize: vertical;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.6;
  background: #f8fafd;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.16);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding-left: 96px;
}

.two-actions {
  gap: 26px;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.primary,
.secondary,
.warning {
  min-width: 154px;
  height: 50px;
  border-radius: 24px;
  color: #fff;
  font-size: 18px;
}

.primary,
.secondary {
  background: linear-gradient(180deg, #69b7ff, var(--blue-dark));
}

.warning {
  background: linear-gradient(90deg, var(--orange-dark), var(--orange));
}

.icon-button {
  height: 50px;
  border: 1px solid #d7deea;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 18px;
}

.query-shortcut {
  color: #fff;
  background: linear-gradient(180deg, #69b7ff, var(--blue-dark));
  border-color: transparent;
}

.result-head {
  min-height: 62px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 19px;
}

.small-button {
  height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid #b8d8ff;
  background: #edf6ff;
  color: #2387ff;
}

.small-button.orange {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.danger-button {
  border-color: #ffc6c6;
  background: #fff0f0;
  color: var(--danger);
}

.state-pill {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.message {
  padding: 14px 20px;
  color: var(--muted);
}

.result-list {
  padding: 0 18px 18px;
}

.result-card {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.account-line {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  font-size: 21px;
}

.order-time {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.admin-panel {
  margin-top: 0;
}

.account-line strong {
  font-weight: 600;
}

.success {
  color: var(--green);
  font-weight: 800;
}

.failed,
.error {
  color: var(--danger);
}

.project-row {
  min-height: 70px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #475569;
  font-size: 17px;
  line-height: 1.5;
}

.project-row input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.admin-account-line {
  gap: 12px;
}

.admin-account-line .order-check {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.single-delete {
  margin-left: 0;
}

.muted,
.empty {
  color: var(--muted);
}

.empty {
  padding: 28px;
  text-align: center;
}

.report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.report-links a {
  color: #2387ff;
  background: #edf6ff;
  border: 1px solid #b8d8ff;
  border-radius: 4px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

th {
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
}

td {
  font-size: 14px;
}

#countText {
  margin-left: auto;
  color: var(--muted);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 16px, 1080px);
  }

  .query-panel {
    padding: 16px;
  }

  .row,
  .textarea-row {
    grid-template-columns: 1fr;
  }

  .row-title {
    padding-top: 0;
    font-size: 17px;
  }

  .actions {
    padding-left: 0;
  }

  .primary,
  .secondary,
  .warning {
    width: 100%;
  }
}
