.source-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
:root {
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #17283e;
  background: #f3f6fa;
  font-size: 14px;
  --blue: #2375f5;
  --muted: #7a889c;
  --line: #e5eaf1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: #26374c;
  padding: 9px 14px;
  transition: 0.15s;
}
button:hover {
  border-color: #8ab8ff;
  background: #f4f8ff;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
button.danger {
  color: #dc4054;
}
.small {
  font-size: 12px;
  padding: 6px 10px;
}
input,
select,
textarea {
  border: 1px solid #dce3ed;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  max-width: 100%;
  color: #21364f;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b4d4ff;
}
textarea {
  width: 100%;
  min-height: 90px;
}
label {
  display: grid;
  gap: 8px;
  color: #62738b;
  font-size: 13px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
h2 {
  font-size: 17px;
  margin: 0 0 18px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.7;
}
a {
  color: var(--blue);
  text-decoration: none;
}
.muted {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0a192c;
  color: #a4b4c9;
  padding: 28px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 35px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.brandmark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2986ff, #32c5b2);
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 10px;
  color: #8cabc9;
  letter-spacing: 1.6px;
  margin-top: 5px;
}
.navlabel {
  font-size: 10px;
  letter-spacing: 2px;
  color: #617c9b;
  padding: 18px 16px 10px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav button {
  background: transparent;
  color: #aebcd0;
  border: none;
  text-align: left;
  padding: 13px 17px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.sidebar nav button.active {
  background: #2375f5;
  color: white;
  box-shadow: 0 6px 20px #0065ee30;
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid #203047;
  padding: 22px 10px 0;
  font-size: 12px;
  line-height: 2;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #f3b84d;
  border-radius: 50%;
  margin-right: 7px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 15px;
}
.topbar .right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #eaf2ff;
  color: #286ad4;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-weight: 700;
}
.content {
  padding: 30px 32px;
  max-width: 1800px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.banner {
  padding: 11px 16px;
  background: #fff7e8;
  border: 1px solid #f4e0b9;
  border-radius: 8px;
  color: #96702d;
  font-size: 12px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px #1b335804;
}
.stat small {
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 13px 0 7px;
}
.stat em {
  font-style: normal;
  font-size: 11px;
  color: #91a0b2;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 6px 22px #243a5810;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.filters input {
  width: 220px;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panelhead h2 {
  margin: 0;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow: auto;
}
.tabs button {
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  padding: 12px;
  background: none;
  color: #8490a1;
}
.tabs button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-weight: 500;
  color: #7c8ca2;
  background: #f8fafc;
  font-size: 12px;
  padding: 13px 14px;
}
td {
  font-size: 12px;
  padding: 17px 14px;
  border-bottom: 1px solid #edf1f6;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 6px;
  color: #97a3b2;
  font-size: 11px;
}
tr:last-child td {
  border-bottom: 0;
}
.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  background: #edf3ff;
  color: #3374cf;
}
.tag.green {
  background: #e9f8f0;
  color: #289564;
}
.tag.orange {
  background: #fff3df;
  color: #b58023;
}
.tag.red {
  background: #fff0f0;
  color: #cd5361;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  color: #8793a4;
  font-size: 12px;
}
.pager div {
  display: flex;
  gap: 8px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #8998aa;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
.checkgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.checkgrid label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkgrid input {
  width: auto;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.loginart {
  background: #0b1c33;
  padding: 12vw 8vw;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.loginart h1 {
  font-size: 40px;
  line-height: 1.4;
}
.loginart p {
  color: #9ab0cc;
  font-size: 15px;
}
.loginform {
  display: grid;
  place-items: center;
  padding: 40px;
}
.loginform form {
  width: 360px;
  max-width: 100%;
}
.loginform h1 {
  margin-bottom: 12px;
}
.loginform label {
  margin: 20px 0;
}
.loginform button {
  width: 100%;
  margin-top: 8px;
}
.loginform small {
  display: block;
  margin-top: 18px;
  color: #8a99ac;
  font-size: 12px;
  line-height: 1.8;
}
dialog {
  position: fixed;
  border: 0;
  border-radius: 13px;
  padding: 28px;
  max-height: 90vh;
  width: 760px;
  max-width: 94vw;
  box-shadow: 0 20px 100px #0004;
  color: #17283e;
}
dialog::backdrop {
  background: #0a192c88;
  backdrop-filter: blur(3px);
}
.dialogtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialogtop h2 {
  margin: 0;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.details div {
  padding: 15px;
  background: #f7f9fc;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.details small {
  display: block;
  color: #8091a7;
  margin-bottom: 8px;
}
.detailmoney {
  font-size: 24px;
  font-weight: 700;
}
.timeline {
  border-left: 2px solid #e8eef6;
  padding-left: 18px;
  margin: 22px 7px;
}
.timeline p {
  font-size: 12px;
  margin: 0 0 16px;
}
.timeline small {
  display: block;
  color: #8d9caf;
}
.proofs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.proofs img {
  height: 110px;
  max-width: 180px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.accountmenu {
  position: absolute;
  right: 30px;
  top: 66px;
  z-index: 4;
  background: white;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 9px;
  box-shadow: 0 8px 25px #18344c20;
  display: grid;
  min-width: 170px;
}
.accountmenu button {
  border: 0;
  text-align: left;
}
#toast {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #19304c;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  z-index: 99;
  max-width: 90vw;
}
.mobilecards {
  display: none;
}
.mobilecard {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  margin-bottom: 14px;
}
.mobilecard header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.mobilecard p {
  color: #8391a4;
  font-size: 12px;
}
.mobilecard .amount {
  font-size: 23px;
  font-weight: 700;
  margin: 15px 0;
}
.mobilecard footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.task-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.task-heading h1 {
  margin: 0;
}
.compact-notice {
  min-height: 34px;
  margin-bottom: 10px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  color: #6f7e91;
  background: #f9fbfd;
  font-size: 11px;
  overflow: hidden;
}
.compact-error {
  margin-left: auto;
  color: #ad7221;
  max-width: 36%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.env-badge {
  display: inline-block;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
}
.env-badge.real {
  color: #2671ce;
  background: #e9f2ff;
}
.env-badge.demo {
  color: #a36813;
  background: #fff0d7;
}
.filter-panel {
  padding: 13px 14px;
  margin-bottom: 10px;
  box-shadow: none;
}
.task-filters {
  display: grid;
  grid-template-columns: minmax(165px,1.05fr) minmax(165px,1.05fr) minmax(105px,.65fr) minmax(165px,1.05fr) minmax(110px,.72fr) minmax(125px,.82fr) auto auto;
  gap: 10px;
  align-items: end;
}
.task-filters label {
  gap: 6px;
}
.task-filters input,
.task-filters select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
}
.task-filters > button {
  height: 38px;
  white-space: nowrap;
}
.task-stats {
  gap: 10px;
  margin-bottom: 10px;
}
.task-stats .stat {
  padding: 13px 14px;
  min-height: 82px;
  box-shadow: none;
}
.task-stats .stat strong {
  margin: 8px 0 0;
  font-size: 24px;
}
.task-stats .success-total {
  background: #fff8ee;
}
.stat-scope-note {
  margin: -3px 2px 10px;
  color: #78879a;
  font-size: 11px;
}
.manual-layout {
  display: grid;
  grid-template-columns: minmax(520px,1.25fr) minmax(360px,.75fr);
  gap: 18px;
  align-items: start;
}
.manual-fields,
.manual-preview {
  margin-bottom: 0;
}
.manual-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.manual-fields h3 {
  margin: 20px 0 12px;
}
.manual-fields textarea {
  min-height: 75px;
}
.manual-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.manual-check input {
  width: auto;
}
.manual-optional {
  margin: 18px 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfd;
}
.manual-optional summary {
  cursor: pointer;
  padding: 13px 0;
  color: #566981;
  font-weight: 600;
}
.manual-optional[open] {
  padding-bottom: 14px;
}
.manual-submit-actions {
  margin-top: 18px;
}
.manual-submit-actions button {
  flex: 1;
}
.manual-user-hint {
  margin-top: 8px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #66778d;
  font-size: 11px;
  line-height: 1.65;
}
.manual-user-hint b {
  color: #334a66;
}
.manual-user-hint div {
  margin-top: 8px;
}
.manual-timing-note {
  margin: 14px 0 -7px;
  color: #7d6a42;
  font-size: 12px;
}
.manual-target-help {
  min-height: 20px;
  color: #275a9b;
  font-size: 13px;
  line-height: 1.5;
}
.hall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 190px;
}
.hall-block-reason {
  flex-basis: 100%;
  color: #b54708;
  line-height: 1.45;
}
.quota-rule-note {
  padding: 12px 14px;
  border-radius: 9px;
  background: #fff8e8;
  color: #765b22;
  line-height: 1.6;
}
.quota-rule-note small {
  display: block;
  color: #7a8798;
}
.load-error-inline {
  padding: 12px 14px;
  border: 1px solid #f2b8b5;
  border-radius: 9px;
  background: #fff1f0;
  color: #a61b1b;
  line-height: 1.55;
}
.payment-processing {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}
.payment-processing fieldset {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
}
.payment-processing fieldset label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.payment-processing fieldset input[type="radio"] { width: auto; }
[hidden] { display: none !important; }
.payment-upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pending-proof-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
  gap: 9px;
}
.pending-proof { display:grid; gap:6px; }
.pending-proof img { width:100%; height:92px; object-fit:cover; border-radius:8px; }
.upload-progress { grid-column:1 / -1; display:flex; align-items:center; gap:10px; }
.upload-progress progress { flex:1; }
.result-submit { width:100%; min-height:44px; }
.result-section em { display:block; color:#66778d; font-size:12px; font-style:normal; }
@media (max-width: 720px) {
  .payment-upload { grid-template-columns: 1fr; }
  .pending-proof-preview,.upload-progress { grid-column:1; }
  .payment-processing button { min-height:46px; }
}
#manual-assign-hint {
  margin: 8px 0 0;
}
.manual-preview {
  position: sticky;
  top: 18px;
}
.preview-empty,
.preview-error {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 25px;
  border: 1px dashed #cbd8e7;
  border-radius: 10px;
  color: #8493a6;
  text-align: center;
}
.preview-error {
  color: #b1535d;
  background: #fff4f5;
}
.preview-account,
.preview-money,
.preview-link,
.preview-deadline {
  display: grid;
  gap: 6px;
  padding: 13px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #f7f9fc;
  overflow-wrap: anywhere;
}
.preview-account small,
.preview-money small,
.preview-link small,
.preview-deadline small {
  color: #7d8da2;
}
.preview-link code {
  padding: 9px 10px;
  border-radius: 7px;
  background: white;
  color: #315f99;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.link-verification,
.detail-link-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.link-verification small {
  width: 100%;
  color: #7d8da2;
  line-height: 1.5;
}
.preview-money strong {
  font-size: 27px;
}
.preview-qr {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 14px;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
}
.preview-qr img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  padding: 10px;
  background: white;
  object-fit: contain;
}
.preview-deadline span {
  color: #7f8da0;
  font-size: 11px;
}
.confirm-order {
  display: grid;
  gap: 8px;
}
.confirm-order p {
  display: grid;
  grid-template-columns: 100px minmax(0,1fr);
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f9fc;
}
.confirm-order span {
  color: #7a899d;
}
.task-list-panel {
  padding: 14px;
  box-shadow: 0 6px 20px #243a5808;
}
.task-list-panel .panelhead {
  margin-bottom: 9px;
}
.task-list-panel .panelhead h2 {
  font-size: 16px;
}
.task-table th {
  padding: 10px 9px;
  color: #53657b;
}
.task-table td {
  padding: 11px 9px;
  height: 48px;
}
.task-table strong {
  font-weight: 500;
}
.channel-text {
  color: #385ed0;
  font-weight: 700;
}
.account-cell {
  display: inline-block;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
button.copy-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 2px 4px;
  font-size: 11px;
}
.task-pager {
  padding: 12px 0 0;
}
.task-pager > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-pager label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.task-pager select {
  padding: 5px 24px 5px 7px;
}
.more-menu {
  position: relative;
}
.more-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 9px 14px;
}
.more-menu summary::-webkit-details-marker {
  display: none;
}
.more-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  width: 165px;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 12px 35px #1b33582b;
}
.more-menu > div button {
  border: 0;
  text-align: left;
}
.selected-task,
.task-history {
  display: grid;
  gap: 6px;
  padding: 13px;
  margin-bottom: 14px;
  border: 1px solid #dbe8fb;
  border-radius: 8px;
  background: #f5f9ff;
  font-size: 12px;
}
.task-history p,
.task-history h3 {
  margin: 0;
}
.task-mobile dl {
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 7px 10px;
  font-size: 12px;
}
.task-mobile dt {
  color: #8391a4;
}
.task-mobile dd {
  margin: 0;
  overflow-wrap: anywhere;
}
#modal:has(.wide-order-detail) {
  width: min(1180px, 96vw);
  padding: 22px 24px 26px;
}
.wide-order-detail {
  display: grid;
  gap: 14px;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 15px 17px;
  color: white;
  background: linear-gradient(120deg,#182f4c,#234f82);
  border-radius: 10px;
}
.detail-hero h2 {
  margin: 5px 0 0;
  color: white;
  overflow-wrap: anywhere;
}
.detail-hero small {
  display: block;
  margin-bottom: 5px;
  color: #bad0e8;
}
.detail-hero .tag {
  background: white;
  color: #244c7a;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px,.82fr) minmax(480px,1.55fr);
  gap: 14px;
}
.detail-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.detail-section h3 {
  margin: 0 0 14px;
}
.order-summary dl,
.task-mobile dl {
  margin: 0;
}
.order-summary dl {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  align-items: center;
  gap: 15px 12px;
}
.order-summary dt,
.pay-row > span,
.result-section small {
  color: #7d8da2;
  font-size: 12px;
}
.order-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pay-row {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 43px;
  border-bottom: 1px solid #eef2f7;
}
.pay-row code {
  min-width: 0;
  color: #325f9c;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.pending-link {
  color: #a66f21;
}
.payment-qr {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  padding: 14px;
  background: #f6f9fd;
  border-radius: 9px;
}
.payment-qr img {
  width: 150px;
  height: 150px;
  padding: 7px;
  background: white;
  border: 1px solid #dce5f0;
  border-radius: 8px;
}
.payment-qr p {
  margin: 5px 0;
  font-size: 12px;
}
.qr-placeholder {
  grid-column: 1 / -1;
  min-height: 116px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd7e6;
  border-radius: 8px;
  color: #8796a9;
}
.orange-text {
  color: #a96f1d;
}
.result-section {
  display: grid;
  grid-template-columns: minmax(180px,.5fr) minmax(0,1.5fr);
  gap: 12px;
}
.result-section > div {
  min-height: 58px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f7f9fc;
}
.result-section b,
.result-section p {
  display: block;
  margin: 7px 0 0;
}
.detail-proofs a {
  display: grid;
  gap: 5px;
  font-size: 11px;
}
.source-proof,
.source-proof-list {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7e9;
  color: #8b692d;
  font-size: 11px;
}
.source-proof-list {
  margin-top: 12px;
}
.source-proof-list h4 {
  margin: 0;
}
.source-link-evidence {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fff7e9;
  color: #805f27;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.source-link-evidence code {
  overflow-wrap: anywhere;
}
.detail-actions:empty {
  display: none;
}
.danger-note {
  margin: 0;
  color: #9b454e;
  border-color: #f0cdd1;
  background: #fff2f3;
}
.internal-fold {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
}
.internal-fold > summary {
  cursor: pointer;
  padding: 15px 17px;
  color: #52657d;
  font-weight: 600;
}
.internal-fold[open] {
  padding: 0 17px 17px;
}
.internal-fold[open] > summary {
  margin: 0 -17px 14px;
  border-bottom: 1px solid var(--line);
}
.code {
  font-family: monospace;
  overflow-wrap: anywhere;
}
.meter {
  height: 6px;
  background: #ebf0f7;
  border-radius: 5px;
  margin-top: 15px;
}
.meter span {
  display: block;
  width: 60%;
  height: 100%;
  background: #347ff0;
  border-radius: 5px;
}
.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.inline-error {
  color: #c14e54;
  font-size: 12px;
}
.notification {
  background: #f3f7fc;
  padding: 15px;
  border-radius: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1700px) {
  .content {
    padding: 40px 45px;
  }
  .sidebar {
    width: 240px;
  }
  .shell {
    grid-template-columns: 240px 1fr;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 185px;
  }
  .shell {
    grid-template-columns: 185px 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .content {
    padding: 24px 20px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 20px;
  }
  .task-filters {
    grid-template-columns: repeat(2,minmax(180px,1fr));
  }
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
  .manual-layout {
    grid-template-columns: 1fr;
  }
  .manual-preview {
    position: static;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
    padding-bottom: 74px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 65px;
    padding: 5px 8px;
    z-index: 10;
    background: white;
    border-top: 1px solid var(--line);
  }
  .sidebar .brand,
  .sidebar .navlabel,
  .sidefoot {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    justify-content: space-around;
    gap: 0;
    scrollbar-width: none;
  }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav button {
    padding: 8px;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 56px;
    white-space: nowrap;
    color: #7c8ca2;
  }
  .sidebar nav button.active {
    color: #2876ed;
    background: #eef5ff;
    box-shadow: none;
  }
  .sidebar nav button span {
    font-size: 18px;
  }
  .main {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
    font-size: 12px;
  }
  .topbar .right {
    gap: 6px;
  }
  .topbar .right .muted {
    display: none;
  }
  .content {
    padding: 22px 15px;
  }
  .heading {
    align-items: start;
  }
  .heading h1 {
    font-size: 23px;
  }
  .heading p {
    font-size: 11px;
  }
  .heading .actions {
    justify-content: end;
  }
  .stats {
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 23px;
  }
  .panel {
    padding: 16px;
  }
  .filters {
    gap: 8px;
  }
  .filters input {
    width: 100%;
  }
  .filters label {
    flex: 1;
    min-width: 130px;
  }
  .tablewrap.orders-table,
  .tablewrap.task-table {
    display: none;
  }
  .mobilecards {
    display: block;
  }
  .banner {
    font-size: 11px;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .details div {
    padding: 12px;
  }
  .login {
    display: block;
  }
  .loginart {
    display: none;
  }
  .loginform {
    min-height: 100vh;
    padding: 28px;
  }
  .checkgrid {
    grid-template-columns: 1fr;
  }
  .task-heading {
    align-items: start;
  }
  .task-heading h1 {
    font-size: 23px;
  }
  .task-filters {
    grid-template-columns: 1fr 1fr;
  }
  .task-filters label {
    min-width: 0;
  }
  .task-filters label:nth-child(3),
  .task-filters label:nth-child(4),
  .task-filters label:nth-child(5),
  .task-filters label:nth-child(6) {
    grid-column: 1 / -1;
  }
  .compact-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .compact-error {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }
  .task-pager {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .task-pager > div {
    overflow-x: auto;
  }
  .more-menu > div {
    position: fixed;
    top: 72px;
    right: 15px;
  }
  #modal:has(.wide-order-detail) {
    width: 96vw;
    padding: 16px;
  }
  .detail-hero {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .detail-hero > div:first-child {
    grid-column: 1 / -1;
  }
  .order-detail-grid,
  .result-section {
    grid-template-columns: 1fr;
  }
  .detail-section {
    padding: 14px;
  }
  .pay-row {
    grid-template-columns: 70px minmax(0,1fr) auto;
  }
  .payment-link-row {
    grid-template-columns: 1fr auto;
  }
  .payment-link-row > span {
    grid-column: 1 / -1;
  }
  .payment-qr {
    grid-template-columns: 112px minmax(0,1fr);
    gap: 11px;
    padding: 10px;
  }
  .payment-qr img {
    width: 112px;
    height: 112px;
  }
  .manual-grid {
    grid-template-columns: 1fr;
  }
  .preview-empty,
  .preview-error {
    min-height: 160px;
  }
  .pager {
    gap: 10px;
  }
  .pager div {
    gap: 4px;
  }
  dialog {
    padding: 20px;
  }
  .accountmenu {
    right: 12px;
  }
  .filters input[type="date"] {
    width: 140px;
  }
  .panelhead {
    align-items: start;
  }
  .grid2 {
    gap: 0;
  }
}

.secret-input{position:relative;display:block;width:100%}.secret-input input{display:block;width:100%;padding-right:46px}.secret-input .secret-toggle,.loginform .secret-input .secret-toggle{position:absolute;top:50%;right:5px;transform:translateY(-50%);display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:7px;border:0;border-radius:6px;background:transparent;color:#65758a;z-index:1}.secret-input .secret-toggle:hover{background:#edf4ff;color:#2375f5}.secret-input .secret-toggle:focus-visible{outline:2px solid #2375f5;outline-offset:-2px}.secret-toggle svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.binding-qr{display:block;width:250px;max-width:100%;height:auto;margin:20px auto;background:white}.recovery-codes{font:14px/2 monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fb;padding:16px;border-radius:8px}.loginform #login-step{width:360px;max-width:100%}.loginform .login-auth-form{width:100%;max-width:100%}.loginform .login-auth-form input:not([type="checkbox"]),.loginform .login-auth-form .login-primary{display:block;width:100%}.loginform .text-link{display:inline;padding:2px 0;margin:4px 0 2px;width:auto;border:0;border-radius:0;background:transparent;color:#316cc9;text-decoration:none;font-weight:500}.loginform .text-link:hover{text-decoration:underline;background:transparent;border-color:transparent}.loginform .recovery-link{justify-self:start}.loginform .back-link{justify-self:center;color:#65758a;margin-top:12px}.loginform .recovery-confirm{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:8px;margin:14px 0}.loginform .recovery-help{padding:12px 14px;border-radius:8px;background:#f4f7fb;color:#596a7f;line-height:1.65}.loginform .login-footnote{text-align:center}.loginform .login-auth-form>*{max-width:100%}
@media(max-width:560px){.loginform{padding:24px 18px}.loginform #login-step{width:100%}.loginform .login-auth-form{min-width:0}.secret-input input{width:100%}.loginform .recovery-help{overflow-wrap:anywhere}}
