.wq-page {
  --wq-rose: #a51153;
  --wq-line: #e6e3e6;
  --wq-muted: #62636d;
  --wq-ink: #24252c;
  color: var(--wq-ink);
  margin: 0 auto;
  max-width: 1480px;
}
.wq-page button, .wq-page a { -webkit-tap-highlight-color: transparent; }
.wq-heading, .wq-tools, .wq-row-actions, .wq-footer, .wq-footer>div, .wq-heading .wq-light,
.wq-dialog header, .wq-pair, .wq-sum, .wq-links, .wq-detail-meta, .wq-dialog-actions, .wq-detail-actions, .wq-docs {
  display: flex; align-items: center; gap: 9px;
}
.wq-heading { margin: 6px 0 24px; justify-content: space-between; }
.wq-heading h1 { margin: 0; font-size: clamp(26px, 2.6vw, 37px); font-weight: 670; line-height: 1.15; letter-spacing: -.045em; color: var(--wq-ink); }
.wq-heading p { margin: 6px 0 0; color: var(--wq-muted); font-size: 14px; }
.wq-list { overflow: hidden; border: 1px solid var(--wq-line); border-radius: 15px; background: #fff; box-shadow: 0 3px 12px #31273505; }
.wq-tools { padding: 16px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--wq-line); }
.wq-tools .wq-search { display: flex; align-items: center; gap: 8px; flex: 1 1 230px; max-width: 445px; margin: 0 auto 0 0; border: 1px solid #d9d6da; background: #fcfbfc; padding: 0 11px; border-radius: 9px; }
.wq-search svg { width: 16px; height: 16px; flex: none; color: var(--wq-muted); }
.wq-tools .wq-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 9px 0; color: var(--wq-ink); font-size: 13px; }
.wq-search:focus-within { outline: 2px solid var(--wq-rose); outline-offset: 2px; }
.wq-tools select, .wq-dialog select { color: var(--wq-ink); }
.wq-tools select { min-height: 36px; padding: 5px 8px; border: 1px solid #d9d6da; border-radius: 8px; background: #fff; font-size: 13px; }
.wq-page .wq-more, .wq-page .wq-chat, .wq-page .wq-light, .wq-page .wq-primary, .wq-page .wq-close {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; min-height: 34px; margin: 0; padding: 6px 12px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.35; font-weight: 600; text-align: center; text-decoration: none; white-space: nowrap;
  border: 1px solid #d9d6da; background: #fff; color: #34313a; box-shadow: none;
}
.wq-page .wq-primary { background: var(--wq-rose); border-color: var(--wq-rose); color: #fff; }
.wq-page .wq-primary:hover { background: #870f45; border-color: #870f45; }
.wq-page .wq-more, .wq-page .wq-chat, .wq-page .wq-close { padding: 4px; width: 34px; height: 34px; }
.wq-page .wq-chat { color: #18734d; border-color: #cfe0d7; background: #f8fcfa; }
.wq-page .wq-more:hover, .wq-page .wq-light:hover, .wq-page .wq-close:hover { background: #f5f3f5; }
.wq-page .wq-chat:hover { background: #e9f4ee; }
.wq-icon { display: inline-flex; }
.wq-rows, .wq-lines { padding: 0; margin: 0; list-style: none; }
.wq-columns, .wq-row { display: grid; grid-template-columns: minmax(132px,1.09fr) minmax(128px,1.24fr) minmax(103px,.77fr) minmax(72px,.50fr) minmax(166px,auto); align-items: center; gap: 12px; padding-inline: 20px; }
.wq-columns { min-height: 39px; background: #faf9fa; color: var(--wq-muted); font-size: 11.5px; font-weight: 610; }
.wq-row { min-height: 83px; padding-block: 14px; border-top: 1px solid #efecef; font-size: 13px; }
.wq-row:hover { background: #fdfbfc; }
.wq-client { display: flex; gap: 10px; align-items: center; min-width: 0; }
.wq-client>div { min-width: 0; }
.wq-initials { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 11px; color: #922252; background: #f9eaf0; font-size: 12px; font-weight: 650; }
.wq-page .wq-name { padding: 0; border: 0; background: transparent; color: var(--wq-ink); text-align: start; font-size: 14px; font-weight: 660; overflow-wrap: anywhere; }
.wq-name:hover { text-decoration: underline; }
.wq-secondary, .wq-item small, .wq-row-state time { display: block; color: var(--wq-muted); margin-top: 3px; font-size: 12px; }
.wq-item, .wq-secondary { overflow-wrap: anywhere; }
.wq-item { font-weight: 520; }
.wq-item small { font-size: 11px; font-weight: 450; }
.wq-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 8px; border-radius: 20px; font-size: 11.5px; line-height: 1.35; font-weight: 620; }
.wq-badge i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.wq-rose { background: #fceaf2; color: #942052; }.wq-blue { background: #e9f1fa; color: #2f5880; }.wq-green { background: #e7f3ec; color: #276547; }.wq-gray { background: #eeedf0; color: #53515b; }.wq-amber { background: #fcf1d9; color: #795614; }
.wq-row-actions { justify-content: flex-end; gap: 6px; }
.wq-amount { font-weight: 650; font-variant-numeric: tabular-nums; }
.wq-footer { justify-content: space-between; min-height: 42px; padding: 8px 20px; border-top: 1px solid var(--wq-line); font-size: 12px; color: var(--wq-muted); }
.wq-loading, .wq-empty { text-align: center; color: var(--wq-muted); padding: 40px 16px; margin: 0; }
.wq-empty { padding: 48px 20px 53px; }
.wq-empty>span { display: inline-grid; place-items: center; width: 46px; height: 46px; background: #faeef3; color: var(--wq-rose); border-radius: 15px; }
.wq-empty>span .cr-ico { width: 23px; height: 23px; }
.wq-empty h2 { margin: 13px 0 3px; font-size: 18px; letter-spacing: -.02em; color: var(--wq-ink); }
.wq-empty p { margin: 0 0 12px; font-size: 13px; }
.wq-notice, .wq-error { padding: 11px 14px; margin: 0 0 15px; border: 1px solid #cadfd1; border-radius: 9px; background: #f0f8f3; color: #25543b; font-size: 13px; }
.wq-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wq-notice button, .wq-error button { background: transparent; border: none; padding: 0; color: inherit; text-decoration: underline; font-weight: 650; }
.wq-notice .wq-dismiss { margin-inline-start: auto; font-size: 20px; text-decoration: none; line-height: 1; }
.wq-page .wq-error { border-color: #eabec4; background: #fff4f5; color: #812730; }
.wq-list>.wq-error { margin: 12px; }
.wq-dialog { width: min(510px, calc(100vw - 24px)); max-height: min(90vh, 880px); overflow: auto; padding: 23px; border: 1px solid var(--wq-line); border-radius: 17px; background: #fff; color: var(--wq-ink); font: inherit; }
.wq-dialog::backdrop { background: #221a2485; backdrop-filter: blur(2px); }
.wq-dialog header { align-items: flex-start; justify-content: space-between; margin-bottom: 17px; }
.wq-dialog h2 { font-size: 23px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; margin: 2px 0 4px; }
.wq-dialog header p, .wq-dialog small, .wq-detail-meta { color: var(--wq-muted); }
.wq-dialog header p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.wq-dialog .wq-close { border: none; background: #f5f3f5; font-size: 23px; flex: none; }
.wq-detail-meta { justify-content: space-between; font-size: 12px; }
.wq-section { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--wq-line); }
.wq-section h3 { font-size: 13px; color: var(--wq-muted); font-weight: 600; margin: 0 0 7px; }
.wq-section p { margin: 3px 0 7px; overflow-wrap: anywhere; }
.wq-note { white-space: pre-wrap; }
.wq-links, .wq-docs, .wq-detail-actions, .wq-dialog-actions { flex-wrap: wrap; }
.wq-links { gap: 14px; }
.wq-links a { text-decoration: underline; text-underline-offset: 2px; color: var(--wq-rose); font-weight: 550; font-size: 13px; }
.wq-lines li, .wq-pair, .wq-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 5px 0; }
.wq-lines li span, .wq-pair b { overflow-wrap: anywhere; }
.wq-lines li b, .wq-pair span:last-child { flex: none; }
.wq-sum { padding: 10px 12px; background: #f8f5f7; border-radius: 7px; }
.wq-qr { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 13px; }
.wq-qr img { width: 90px; height: 90px; }.wq-qr>div { min-width: 0; flex: 1; }
.wq-qr p { font-size: 12px; }.wq-qr label { margin-top: 7px; }
.wq-dialog .wq-submit { width: 100%; min-height: 40px; }
.wq-detail-actions, .wq-dialog-actions { justify-content: flex-end; margin: 20px 0 0; }
.wq-form { display: grid; gap: 14px; }.wq-form>p { margin: 0; }
.wq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 13px; }
.wq-fields .wide { grid-column: 1/-1; }
.wq-dialog label { display: block; font-size: 13px; font-weight: 560; }
.wq-dialog label small { font-size: 12px; font-weight: 400; }
.wq-dialog input:not([type=checkbox]), .wq-dialog select, .wq-dialog textarea { display: block; width: 100%; padding: 8px 10px; margin: 4px 0 0; border: 1px solid #d7d3d8; border-radius: 7px; background: #fff; color: var(--wq-ink); font: inherit; }
.wq-dialog textarea { resize: vertical; }
.wq-dialog .wq-check { display: flex; align-items: flex-start; gap: 9px; font-weight: 450; }
.wq-dialog .wq-check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--wq-rose); }
.wq-choices { padding: 9px 12px; background: #faf7f9; border-radius: 8px; font-size: 13px; }
.wq-choices>div+div { margin-top: 8px; border-top: 1px solid var(--wq-line); padding-top: 6px; }
.wq-fee { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.wq-fee label { max-width: 175px; }.wq-fee>div { text-align: end; }.wq-fee strong { display: block; font-size: 18px; }
@media (min-width: 761px) and (max-width: 1100px) {
 .wq-columns,.wq-row { grid-template-columns: minmax(105px,1fr) minmax(96px,1fr) minmax(90px,.8fr) minmax(55px,.52fr) auto; padding-inline: 13px; gap: 8px; }
 .wq-initials { display: none; }.wq-page .wq-primary { padding-inline: 9px; }
}
@media (max-width: 760px) {
 .wq-heading { align-items: flex-start; margin: 0 0 16px; gap: 10px; }.wq-heading h1 { font-size: 26px; }.wq-heading p { font-size: 13px; }
 .wq-heading>.wq-light { font-size: 12px; padding: 6px 8px; }
 .wq-tools { gap: 8px; padding: 11px 14px; }.wq-tools .wq-search { max-width: none; }
 .wq-tools select { flex: 1 0 auto; }.wq-columns { display: none; }
 .wq-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; padding: 14px; }
 .wq-rows .wq-row:first-child { border-top: 0; }.wq-client { grid-area: 1 / 1; }.wq-row-state { grid-area: 1 / 2; text-align: end; }
 .wq-item { grid-area: 2 / 1; }.wq-amount { grid-area: 2 / 2; text-align: end; }.wq-row-actions { grid-area: 3 / 1 / 4 / -1; justify-content: flex-start; }
 .wq-row-actions .wq-more { margin-inline-start: auto; }.wq-row-actions .wq-primary { order: -1; }
 .wq-page .wq-row-actions>a, .wq-page .wq-row-actions>button { min-height: 40px; }.wq-page .wq-chat, .wq-page .wq-more { min-width: 38px; }
 .wq-footer { padding-inline: 14px; flex-wrap: wrap; }.wq-dialog { padding: 18px; }.wq-empty { padding: 35px 15px; }
}
@media (max-width: 390px) {
 .wq-heading { flex-wrap: wrap; }.wq-heading>.wq-light { min-height: 32px; }.wq-fields { grid-template-columns: 1fr; }
}
