/* QingQuant signal desk. */

html.qq-desk-html,
body.qq-desk-page {
    height: 100%;
    overflow: hidden;
}
body.qq-desk-page {
    display: flex;
    flex-direction: column;
    background: #fafbfc;
    color: var(--qq-text);
}
body.qq-desk-page .qq-header {
    flex: none;
}

/* —— two-column signal desk —— */
.ws {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    background: #fafbfc;
}
.col-l,
.col-r { min-height: 0; overflow-y: auto; }
.col-l {
    background: #fff;
    border-right: 1px solid rgba(226, 232, 240, .9);
    padding: 18px 16px 40px;
}
.col-r {
    padding: 14px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#qqDeskMain {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.l-hd h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.l-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.l-count {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600;
    color: #3f6212;
    background: #f7fee7;
    border: 1px solid rgba(132, 204, 22, .35);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.l-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #84cc16; flex: none;
}
.l-desc { margin: 6px 0 0; color: var(--qq-text-3); font-size: 12px; line-height: 1.45; }
.l-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.l-acts a, .btn-lite {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 10px; border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff; color: var(--qq-text-2);
    font-size: 13px; font-weight: 600; text-decoration: none;
}
.l-acts a svg, .scan-btn svg, .tool-btn svg { width: 14px; height: 14px; flex: none; }
.l-acts a.pri, .btn-lite.pri {
    background: #f7fee7;
    border-color: rgba(132, 204, 22, .45);
    color: #3f6212;
}
.cards { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.scard {
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 12px;
    padding: 14px 14px 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.scard.watching { border-color: rgba(132, 204, 22, .7); }
.scard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.scard h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--qq-text); }
.scard .desc { margin: 0; font-size: 12px; color: #94a3b8; line-height: 1.45; }
.src {
    display: inline-flex; font-size: 10px; font-weight: 600;
    padding: 1px 6px; border-radius: 4px;
    background: var(--qq-lime-50); color: var(--qq-lime-700);
}
.watch-pill {
    display: inline-flex; align-items: center; gap: 5px; flex: none;
    border: 1px solid rgba(226, 232, 240, .95); background: #fff;
    font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px; color: #64748b; white-space: nowrap;
}
.watch-pill.on { background: #f7fee7; color: #3f6212; border-color: rgba(132, 204, 22, .45); }
.scard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.scard-tools { display: flex; align-items: center; gap: 2px; }
.scan-btn, .tool-btn {
    display: inline-flex; align-items: center; gap: 4px;
    border: 0; background: transparent; font-size: 12px; font-weight: 600;
    padding: 4px 6px; border-radius: 6px; color: #94a3b8;
}
.scan-btn.on { color: #65a30d; }
.scan-btn:hover { background: #f8fafc; color: #3f6212; }
.tool-btn:hover { background: #f1f5f9; color: var(--qq-text); }
.tool-btn.danger:hover { background: #fee2e2; color: #dc2626; }
.scan-btn:disabled { opacity: .6; cursor: default; }
.metrics {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    margin-top: 2px; padding: 10px 8px; border-radius: 8px; background: #f8fafc;
}
.metrics s { display: block; text-decoration: none; font-style: normal; font-size: 11px; color: #94a3b8; margin-bottom: 3px; }
.metrics b { font-family: var(--qq-mono); font-size: 13px; font-weight: 650; color: var(--qq-text); }
.metrics b.up { color: var(--qq-up); }
.metrics b.dn { color: var(--qq-down); }
.up { color: var(--qq-up); }
.dn { color: var(--qq-down); }
.l-empty {
    margin-top: 14px; padding: 18px 12px; border: 1px dashed #cbd5e1; border-radius: 8px;
    color: var(--qq-text-3); font-size: 12px; line-height: 1.5; text-align: center;
}
.nav-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.underline-tabs { display: flex; gap: 18px; }
.underline-tabs button {
    padding: 8px 2px 10px; font-size: 13.5px; font-weight: 500; color: var(--qq-text-3);
    background: none; border: 0; position: relative;
}
.underline-tabs button.on { color: var(--qq-text); font-weight: 650; }
.underline-tabs button.on::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #0f172a;
}
.tab-n {
    margin-left: 6px; font-family: var(--qq-mono); font-size: 10.5px; font-weight: 600;
    padding: 1px 5px; border-radius: 999px; background: #f1f5f9; color: #64748b;
}
.underline-tabs button.on .tab-n { background: var(--qq-lime-100); color: #365314; }
.panel {
    background: #fff; border: 1px solid rgba(226, 232, 240, .9); border-radius: 10px; overflow: hidden;
    display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0;
}
.panel > .ph,
.panel > .sig-set,
.panel > .empty,
.panel > .footnote,
.panel > .table-wrap,
.panel > .stat-strip,
.panel > .hold-blocks,
.panel > .bt {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    float: none;
}
.ph {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 18px; border-bottom: 1px solid rgba(226, 232, 240, .9);
    width: 100%;
}
.ph-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.ph h3 { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ph .meta { font-size: 11.5px; color: var(--qq-text-3); white-space: nowrap; }
.ph-side { display: flex; align-items: center; gap: 10px; flex: none; }
.ranges { display: inline-flex; gap: 2px; background: #f1f5f9; padding: 2px; border-radius: 6px; }
.ranges button { border: 0; background: transparent; font-size: 11px; font-weight: 500; color: #64748b; padding: 3px 8px; border-radius: 4px; }
.ranges button.on { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.desk-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.desk-table th {
    text-align: left; font-size: 10.5px; font-weight: 600; color: #94a3b8;
    letter-spacing: .04em; padding: 8px 14px; border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.desk-table td { padding: 10px 14px; font-size: 12.5px; border-bottom: 1px solid #f8fafc; vertical-align: middle; color: var(--qq-text-2); }
.desk-table tr:last-child td { border-bottom: 0; }
.desk-table tr.is-expired { opacity: 0.58; }
.desk-table .col-sym { width: 22%; white-space: nowrap; }
.desk-table .col-rule { width: 28%; }
.desk-table .col-kind,
.desk-table .col-phase { width: 9%; white-space: nowrap; }
.desk-table .col-date { width: 12%; white-space: nowrap; }
.desk-table .col-price { width: 13%; white-space: nowrap; }
.desk-table .col-last { width: 13%; white-space: nowrap; }
.desk-table .col-chg { width: 8%; white-space: nowrap; }
.desk-table .col-act { width: 12%; white-space: nowrap; text-align: right; }
.sy { font-weight: 650; color: var(--qq-text); }
.code { font-family: var(--qq-mono); font-size: 11px; color: var(--qq-text-3); margin-left: 6px; }
.why { display: block; margin-top: 2px; font-size: 11px; color: #94a3b8; word-break: break-word; }
.num { font-family: var(--qq-mono); text-align: right; }
.pill { display: inline-flex; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.pill.buy { color: var(--qq-up); background: rgba(240, 69, 75, .08); }
.pill.sell { color: var(--qq-down); background: rgba(34, 176, 125, .1); }
.pill.held { color: #64748b; background: #f1f5f9; }
.pill.paper { color: #15803d; background: #dcfce7; }
.pill.preview { color: #b45309; background: #fffbeb; }
.pill.confirmed { color: #15803d; background: #dcfce7; }
.pill.expired { color: #64748b; background: #f1f5f9; }
.pill.add { color: #b45309; background: #fff7ed; }
.sig-set { padding: 8px 18px 12px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid rgba(226, 232, 240, .9); }
.sig-muted { font-size: 11px; font-weight: 600; color: var(--qq-text-3); }
.sig-pillrow { display: flex; flex-wrap: wrap; gap: 6px; }
.sig-pill {
    border: 1px solid rgba(226, 232, 240, .95); background: #fff; border-radius: 999px;
    padding: 3px 8px; font-size: 11px; color: var(--qq-text-2); line-height: 1.4; flex: none;
}
.sig-pill.on { background: #f7fee7; border-color: rgba(132, 204, 22, .45); color: #3f6212; font-weight: 650; }
.sig-hint { font-size: 11px; color: #2563eb; font-weight: 500; white-space: nowrap; text-decoration: none; }
.sig-hint:hover { text-decoration: underline; }
.sig-freq-lead { margin: 0; font-size: 11px; color: #94a3b8; line-height: 1.5; }
.sig-freq-lead a { color: #2563eb; font-weight: 600; }
.sig-scan-st { margin: 0; font-size: 12px; color: #64748b; line-height: 1.5; }
.sig-scan-st.live,
.sig-scan-st.warn { color: #b45309; }
.sig-scan-st.done { color: #15803d; }
.tool-btn.on { color: #3f6212; background: #f7fee7; }
.link-btn { border: 0; background: none; color: #2563eb; font-size: 11.5px; font-weight: 600; padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.link-btn.danger { color: #dc2626; }
.footnote { margin: 0; padding: 8px 16px; background: #fafbfc; border-top: 1px solid rgba(226, 232, 240, .9); font-size: 11px; color: #94a3b8; }
.empty {
    width: 100%; box-sizing: border-box; padding: 42px 20px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.empty b { display: block; color: var(--qq-text); font-size: 13.5px; font-weight: 650; }
.empty p { margin: 0; color: var(--qq-text-3); font-size: 12px; max-width: 360px; line-height: 1.5; }
.table-wrap { width: 100%; overflow-x: auto; }
.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); padding: 14px 16px; border-bottom: 1px solid rgba(226, 232, 240, .9); }
.stat-strip div { padding: 0 10px; border-right: 1px solid rgba(226, 232, 240, .9); }
.stat-strip div:first-child { padding-left: 0; }
.stat-strip div:last-child { border-right: 0; }
.stat-strip s { display: block; text-decoration: none; font-style: normal; font-size: 11px; color: var(--qq-text-3); }
.stat-strip b { font-family: var(--qq-mono); font-size: 18px; font-weight: 650; }
.hold-blocks { display: flex; flex-direction: column; gap: 16px; padding: 16px; background: #fafbfc; }
.hold-card { background: #fff; border: 1px solid rgba(226, 232, 240, .9); border-radius: 9px; overflow: hidden; }
.hold-card.history .hold-h { background: #f8fafc; }
.hold-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(226, 232, 240, .9); }
.hold-h h4 { margin: 0; font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.hold-h em { font-style: normal; font-family: var(--qq-mono); font-size: 11.5px; color: var(--qq-text-3); }
.hold-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.hold-table th {
    text-align: left; font-size: 10.5px; font-weight: 600; color: #94a3b8;
    letter-spacing: .04em; padding: 8px 14px; border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.hold-table td { padding: 10px 14px; font-size: 12.5px; border-bottom: 1px solid #f8fafc; vertical-align: middle; color: var(--qq-text-2); }
.hold-table tr:last-child td { border-bottom: 0; }
.hold-table .col-sym { width: 24%; }
.hold-table .col-rule { width: 20%; }
.hold-table .col-num { width: 14%; text-align: right; font-family: var(--qq-mono); white-space: nowrap; }
.hold-table .col-date { width: 12%; text-align: right; white-space: nowrap; font-family: var(--qq-mono); }
.hold-table .col-act { width: 16%; text-align: right; white-space: nowrap; }
.hold-table th.col-num,
.hold-table th.col-date,
.hold-table th.col-act { text-align: right; }
.hold-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.hold-table .why { display: block; margin-top: 2px; white-space: normal; }
.nt { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.nt-lead { margin: 0; font-size: 12px; color: #64748b; line-height: 1.55; }
.nt-cfg { display: flex; flex-direction: column; border: 1px solid rgba(226, 232, 240, .95); border-radius: 10px; overflow: hidden; }
.nt-block { padding: 12px 14px; border-top: 1px solid rgba(226, 232, 240, .9); }
.nt-block:first-child { border-top: 0; }
.nt-block-title { font-size: 12.5px; font-weight: 650; margin-bottom: 8px; }
.nt-block-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nt-input {
    flex: 1 1 220px; min-width: 0; height: 34px; border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 6px; padding: 0 9px; font: inherit; font-size: 12.5px;
}
.nt-ghost {
    border: 1px solid rgba(226, 232, 240, .95); background: #fff; border-radius: 6px;
    padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--qq-text-2);
}
.nt-doc { font-size: 12px; font-weight: 600; color: #2563eb; text-decoration: none; }
.nt-doc:hover { text-decoration: underline; }
.nt-note { margin: 0 0 8px; font-size: 12px; color: #64748b; line-height: 1.5; }
.nt-qr { width: 140px; height: 140px; display: block; margin: 0 0 8px; border: 1px solid rgba(226, 232, 240, .9); border-radius: 8px; }
.nt-save {
    align-self: flex-start; border: 0; background: #f7fee7; color: #3f6212;
    border: 1px solid rgba(132, 204, 22, .45); border-radius: 8px;
    padding: 8px 14px; font-size: 13px; font-weight: 650;
}
.bt { padding: 16px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.bt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bt-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.bt-line-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bt-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bt-affix { position: relative; }
.bt-affix input { padding-right: 36px; }
.bt-affix em {
    position: absolute; right: 8px; top: 0; height: 34px; display: flex; align-items: center;
    font-style: normal; font-size: 12px; color: var(--qq-text-3); pointer-events: none;
}
.bt-field > span { font-size: 11px; font-weight: 600; color: var(--qq-text-3); }
.bt-dates { display: flex; flex-direction: column; gap: 8px; }
.bt-date-cap { font-size: 11px; font-weight: 600; color: var(--qq-text-3); }
.bt-fill-note { margin: 0; font-size: 11px; color: #94a3b8; line-height: 1.5; }
.bt-fill-note a { color: #2563eb; font-weight: 600; text-decoration: none; }
.bt-fill-note a:hover { text-decoration: underline; }
.bt select,
.bt input[type="text"],
.bt input[type="number"],
.bt input[type="date"] {
    width: 100%; height: 34px; border: 1px solid rgba(226, 232, 240, .95); border-radius: 6px;
    padding: 0 9px; font: inherit; font-size: 12.5px; color: var(--qq-text); background: #fff; outline: none;
}
.bt select:focus,
.bt input:focus { border-color: #93c5fd; }
.bt-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px; align-items: center; }
.bt-range input { height: 30px; font-size: 11.5px; }
.bt-range i { font-style: normal; color: #cbd5e1; font-size: 11px; }
.bt-folds { border: 1px solid rgba(226, 232, 240, .95); border-radius: 8px; overflow: hidden; }
.bt-fold { border-bottom: 1px solid rgba(226, 232, 240, .95); }
.bt-fold:last-child { border-bottom: 0; }
.bt-fold-btn {
    width: 100%; padding: 10px 14px; background: #fff; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    text-align: left; font: inherit;
}
.bt-fold-btn:hover { background: #fafbfc; }
.bt-fold-txt b { font-size: 12.5px; font-weight: 650; color: var(--qq-text); }
.bt-fold-txt span { margin-left: 8px; font-size: 11px; color: var(--qq-text-3); font-weight: 400; }
.bt-fold-tog { flex: none; font-size: 11px; font-weight: 650; color: #2563eb; }
.bt-fold-body {
    padding: 12px 14px; background: #fafbfc; border-top: 1px solid rgba(226, 232, 240, .95);
    display: flex; flex-direction: column; gap: 12px;
}
.bt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bt-chips > .bt-fill-note { margin-left: 4px; white-space: nowrap; }
.bt-chip {
    border: 1px solid rgba(226, 232, 240, .95); background: #fff; border-radius: 4px;
    padding: 3px 8px; font-size: 11px; color: var(--qq-text-2); cursor: pointer;
}
.bt-chip.on { background: #eff6ff; border-color: #93c5fd; color: #2563eb; font-weight: 650; }
.bt-check { display: inline-flex; align-items: center; gap: 6px; height: 34px; font-size: 12px; color: var(--qq-text-2); white-space: nowrap; }
.bt-check input { accent-color: #84cc16; }
.bt-clear { align-self: flex-end; border: 0; background: none; color: #64748b; font-size: 12px; cursor: pointer; padding: 0; }
.bt-run {
    height: 36px; border: 0; border-radius: 6px; background: #0f172a; color: #fff;
    font-weight: 650; font-size: 13px; cursor: pointer;
}
.bt-run:hover { background: #1e293b; }
.bt-run:disabled { opacity: .55; cursor: default; }
.bt-progress { display: flex; flex-direction: column; gap: 8px; }
.bt-progress-top { display: flex; align-items: baseline; gap: 10px; }
.bt-progress-pct {
    font-size: 28px; font-weight: 700; line-height: 1; color: #2563eb;
    letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.bt-progress-top span { font-size: 13px; color: var(--qq-text-2); }
.bt-progress-track { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.bt-progress-bar { height: 100%; width: 0; border-radius: 999px; background: #2563eb; transition: width .35s ease; }
.bt-progress-msg { min-height: 16px; font-size: 12px; color: var(--qq-text-3); }
.bt-res {
    border: 1px solid rgba(226, 232, 240, .95); border-radius: 8px; padding: 14px;
    display: flex; flex-direction: column; gap: 12px;
}
.bt-res-meta { font-size: 11.5px; color: var(--qq-text-3); line-height: 1.5; }
.bt-result { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.bt-result s { display: block; text-decoration: none; font-style: normal; font-size: 10.5px; color: var(--qq-text-3); }
.bt-result b { font-family: var(--qq-mono); font-size: 16px; font-weight: 650; }
.bt-dl {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 12px; color: var(--qq-text-3);
}
.bt-dl a { color: #2563eb; font-weight: 650; white-space: nowrap; }

.rail h6 {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--qq-text-3);
    font-weight: 700;
    margin: 16px 8px 6px;
}
.rail h6:first-child { margin-top: 4px; }
.rl { padding: 9px 10px; border-radius: var(--qq-r-sm); cursor: pointer; }
.rl:hover { background: var(--qq-bg-soft); }
.rl.on { background: var(--qq-lime-50); }
.rl .t { font-size: 13px; font-weight: 600; color: var(--qq-text); }
.rl .d { font-size: 11.5px; color: var(--qq-text-3); margin-top: 3px; }
.rl .st { font-size: 11px; color: var(--qq-lime-700); }

.navs { display: flex; gap: 4px; }
.navs button {
    padding: 14px 16px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--qq-text-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.navs button.on { color: var(--qq-lime-700); border-bottom-color: var(--qq-lime-500); }
.mid-meta { display: flex; gap: 16px; padding: 8px 0 12px; font-size: 12.5px; color: var(--qq-text-3); }
.mid-meta b { font-family: var(--qq-mono); color: var(--qq-text); }

.pane[hidden] { display: none; }
.up { color: var(--qq-up); }
.dn { color: var(--qq-down); }

.score { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-bottom: 16px; }
.ws .card {
    background: var(--qq-white);
    border: 1px solid var(--qq-border);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: none;
    transform: none;
}
.ws .card:hover {
    border-color: var(--qq-border);
    box-shadow: none;
    transform: none;
}
.ws .card h3 { font-size: 16px; }
.ws .card .sub { font-size: 12.5px; color: var(--qq-text-3); margin-top: 4px; }
.kvs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kvs .k { font-size: 11.5px; color: var(--qq-text-3); }
.kvs .v { font-family: var(--qq-mono); font-size: 20px; font-weight: 700; margin-top: 2px; }
.go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.go a,
.go button {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--qq-r-sm);
    border: 1px solid var(--qq-border);
    color: var(--qq-text-2);
    background: var(--qq-white);
}
.go a.pri,
.go button.pri {
    background: var(--qq-lime-50);
    border-color: var(--qq-lime-100);
    color: var(--qq-lime-700);
}
.go a:disabled,
.go button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    font-size: 11px;
    color: var(--qq-text-3);
    font-weight: 600;
    padding: 10px 8px;
    border-bottom: 1px solid var(--qq-border);
}
.table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--qq-bg-muted);
    font-size: 13.5px;
    color: var(--qq-text-2);
}
.table tr { cursor: pointer; }
.table tr:hover td { background: var(--qq-bg-soft); }
.table tr.on td { background: var(--qq-lime-50); }
.table .sy { font-family: var(--qq-mono); font-weight: 650; color: var(--qq-text); }
.table .num { font-family: var(--qq-mono); text-align: right; font-weight: 550; }
.table .why { font-size: 12.5px; color: var(--qq-text-3); }
.table button {
    font-size: 13px;
    color: var(--qq-lime-700);
    font-weight: 700;
    padding: 0;
    background: none;
    border: 0;
}
.table button:disabled { color: var(--qq-text-3); cursor: not-allowed; }

.sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.sum .c { border: 1px solid var(--qq-border); border-radius: 12px; padding: 14px 16px; }
.sum .k { font-size: 12px; color: var(--qq-text-3); }
.sum .v { font-family: var(--qq-mono); font-size: 22px; font-weight: 700; margin-top: 4px; }
.hold-block { margin-bottom: 18px; }
.hold-subh { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.hold-subh h4 { font-size: 14px; font-weight: 700; }
.hold-subh em { font-family: var(--qq-mono); font-size: 13px; font-style: normal; color: var(--qq-text-3); }
@media (max-width: 1100px) {
    .sum { grid-template-columns: repeat(2, 1fr); }
}

.side .k {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--qq-lime-600);
    font-weight: 700;
}
.side h2 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.side .meta { font-size: 12.5px; color: var(--qq-text-3); line-height: 1.55; }
.side .box {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--qq-bg-soft);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--qq-text-2);
}
.side .box b { color: var(--qq-text); }
.steps { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 10px; font-size: 13px; color: var(--qq-text-2); line-height: 1.5; }
.step i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--qq-lime-50);
    color: var(--qq-lime-700);
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex: none;
    font-style: normal;
}
.side .act { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.side .act a,
.side .act button {
    display: block;
    text-align: center;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    border: 1px solid var(--qq-border);
    color: var(--qq-text-2);
    background: var(--qq-white);
}
.side .act a.pri,
.side .act button.pri {
    background: var(--qq-grad-lime);
    color: var(--qq-ink-950);
    border: 0;
}
.side .act a:disabled,
.side .act button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .ws { grid-template-columns: 1fr; }
    .col-l { border-right: 0; border-bottom: 1px solid rgba(226, 232, 240, .9); max-height: 46vh; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hold-blocks { padding: 14px; }
    .bt-grid { grid-template-columns: 1fr; }
    .bt-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* —— desk-only: login gate / empty / skeleton / dialogs —— */
.qd-gate {
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 32px 24px;
    background: var(--qq-bg);
}
.qd-gate-card {
    max-width: 480px;
    border: 1px solid var(--qq-border);
    border-radius: var(--qq-r-lg);
    padding: 28px 28px 24px;
    background: var(--qq-white);
}
.qd-gate-card .k {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--qq-lime-600);
    font-weight: 700;
}
.qd-gate-card h1 {
    font-size: 22px;
    margin: 10px 0 8px;
}
.qd-gate-card p { color: var(--qq-text-2); font-size: 14px; }
.qd-gate-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.qd-empty {
    border: 1px dashed var(--qq-border-strong);
    border-radius: 14px;
    padding: 18px 16px;
    background: var(--qq-bg-soft);
}
.qd-empty h3 { font-size: 15px; margin-bottom: 6px; }
.qd-empty p { font-size: 13px; color: var(--qq-text-3); }
.qd-empty .go { margin-top: 12px; }
.rl-guide {
    padding: 10px;
    border: 1px dashed var(--qq-border-strong);
    border-radius: 10px;
    margin: 6px 0;
    background: var(--qq-bg-soft);
}
.rl-guide .t { font-size: 13px; font-weight: 600; }
.rl-guide .d { font-size: 12px; color: var(--qq-text-3); margin: 4px 0 10px; }
.rl-guide a {
    display: block;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 8px;
    margin-top: 6px;
    border-radius: var(--qq-r-sm);
    border: 1px solid var(--qq-border);
    color: var(--qq-lime-700);
    background: var(--qq-white);
}

.qd-legal {
    margin-top: 14px;
    font-size: 12px;
    color: var(--qq-text-3);
}

.qd-banner {
    flex: none;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--qq-lime-50);
    color: var(--qq-lime-700);
    font-size: 12.5px;
    font-weight: 600;
}
.qd-banner.is-err {
    background: var(--qq-bg-soft);
    color: var(--qq-text-2);
    border: 1px solid var(--qq-border);
}
.qd-banner[hidden] { display: none; }

.qd-sk {
    background: var(--qq-bg-muted);
    border-radius: 8px;
    animation: qd-shimmer 1.2s ease-in-out infinite;
}
@keyframes qd-shimmer {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}

.qd-dlg[hidden] { display: none; }
.qd-dlg {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}
.qd-dlg-back {
    position: absolute;
    inset: 0;
    background: var(--qq-ink-950);
    opacity: .45;
}
.qd-dlg-card {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    background: var(--qq-white);
    border: 1px solid var(--qq-border);
    border-radius: 14px;
    padding: 20px 20px 16px;
    box-shadow: var(--qq-sh-lg);
}
.qd-dlg-card h3 { font-size: 17px; }
.qd-dlg-sub { margin-top: 8px; font-size: 13px; color: var(--qq-text-2); line-height: 1.55; }
.qd-dlg-meta { margin-top: 10px; font-size: 13px; color: var(--qq-text-3); }
.qd-field { display: block; margin-top: 14px; }
.qd-field span { display: block; font-size: 12px; color: var(--qq-text-3); margin-bottom: 6px; }
.qd-field input {
    width: 100%;
    font-family: var(--qq-mono);
    font-size: 16px;
    padding: 8px 10px;
    border: 1px solid var(--qq-border-strong);
    border-radius: var(--qq-r-sm);
    color: var(--qq-text);
    background: var(--qq-white);
}
.qd-dlg-hint { margin-top: 8px; font-size: 12px; color: var(--qq-text-3); }
.qd-dlg-err { margin-top: 8px; font-size: 12.5px; color: var(--qq-down); }
.qd-dlg-err[hidden] { display: none; }
.qd-dlg-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.qd-dlg-act a,
.qd-dlg-act button {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid var(--qq-border);
    color: var(--qq-text-2);
    background: var(--qq-white);
}
.qd-dlg-act a.pri,
.qd-dlg-act button.pri {
    background: var(--qq-grad-lime);
    color: var(--qq-ink-950);
    border: 0;
}

.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.rec-grid .card h3 { font-size: 14px; }
@media (max-width: 1100px) {
    .rec-grid { grid-template-columns: 1fr; }
}
