.quick-page {
    --quick-font-scale: 1;
    max-width: 100%;
    overflow-x: hidden;
}

.quick-page[data-font-scale="small"] {
    --quick-font-scale: 0.9;
}

.quick-page[data-font-scale="large"] {
    --quick-font-scale: 1.1;
}

.quick-page .about-panel {
    margin-top: 12px;
    padding: 14px 16px;
}

.quick-page .about-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quick-page .about-panel-head h3 {
    margin: 0;
    font-size: calc(20px * var(--quick-font-scale));
}

.quick-page .about-close-btn {
    min-height: 34px;
    padding: 0 12px;
}

.quick-page .about-tabs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-page .about-tab-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(148, 163, 184, 0.1);
    color: var(--ink);
    font-size: calc(13px * var(--quick-font-scale));
    font-weight: 700;
    cursor: pointer;
}

.quick-page .about-tab-btn:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.quick-page .about-tab-btn.active {
    border-color: rgba(37, 99, 235, 0.85);
    background: var(--primary);
    color: #fff;
}

.quick-page .about-pane {
    display: none;
    margin-top: 12px;
}

.quick-page .about-pane.active {
    display: block;
}

.quick-page .about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-page .about-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.56);
    padding: 12px;
}

.quick-page .about-card h4 {
    margin: 0 0 8px;
    font-size: calc(15px * var(--quick-font-scale));
}

.quick-page .about-card p {
    margin: 0;
    color: var(--muted);
    font-size: calc(13px * var(--quick-font-scale));
    line-height: 1.55;
}

.quick-page .about-image-card img {
    display: block;
    width: min(100%, 300px);
    border-radius: 10px;
    border: 1px solid var(--line);
    margin: 0 auto;
}

.quick-page .about-image-card a {
    margin-top: 8px;
    display: inline-block;
    color: var(--primary2);
    font-size: calc(12px * var(--quick-font-scale));
}

.quick-page .quick-main {
    display: grid;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
}

.quick-page .quick-page-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.quick-page .quick-page-stack > .quick-main {
    order: 10;
}

.quick-page .quick-card {
    margin: 0;
}

.quick-page .quick-input-card {
    padding: 20px;
}

.quick-page .quick-selected-card {
    padding: 14px 16px;
}

.quick-page .quick-selected-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quick-page .quick-selected-head h3 {
    margin: 0;
    font-size: calc(20px * var(--quick-font-scale));
}

.quick-page .quick-selected-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 3px 11px;
    font-size: calc(12px * var(--quick-font-scale));
    font-weight: 700;
    white-space: nowrap;
}

.quick-page .quick-selected-state.is-up {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.quick-page .quick-selected-state.is-down {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.quick-page .quick-selected-state.is-testing {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.quick-page .quick-selected-state.is-unknown {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

.quick-page .quick-selected-prefix {
    margin: 10px 0 8px;
    color: var(--primary2);
    font-size: calc(22px * var(--quick-font-scale));
    line-height: 1.35;
    word-break: break-all;
}

.quick-page .quick-selected-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: calc(13px * var(--quick-font-scale));
}

.quick-page .quick-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.quick-page #quickUrlInput {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    font-size: calc(15px * var(--quick-font-scale));
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
}

body[data-theme="dark"].quick-page #quickUrlInput {
    background: rgba(15, 23, 42, 0.55);
}

.quick-page .quick-primary-btn,
.quick-page .quick-ghost-btn,
.quick-page .node-select-btn,
.quick-page .node-test-btn {
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.quick-page .quick-primary-btn {
    min-width: 148px;
    min-height: 52px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    font-size: calc(15px * var(--quick-font-scale));
    white-space: nowrap;
}

.quick-page .quick-primary-btn:hover {
    background: var(--primary2);
}

.quick-page .quick-primary-btn:disabled,
.quick-page .quick-ghost-btn:disabled,
.quick-page .node-test-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quick-page .quick-hint {
    margin: 10px 2px 0;
    color: var(--muted);
    font-size: calc(13px * var(--quick-font-scale));
}

.quick-page .quick-nodes-card {
    padding: 18px;
}

.quick-page .quick-nodes-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.quick-page .quick-nodes-head h2 {
    margin: 0;
    font-size: calc(26px * var(--quick-font-scale));
}

.quick-page .quick-nodes-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: calc(14px * var(--quick-font-scale));
}

.quick-page .quick-ghost-btn {
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
    flex: 0 0 auto;
    border-color: rgba(148, 163, 184, 0.42);
    background: rgba(148, 163, 184, 0.1);
    color: var(--ink);
    font-size: calc(14px * var(--quick-font-scale));
}

.quick-page .quick-ghost-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.32);
}

.quick-page .quick-node-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.quick-page .quick-node-pager {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-page .quick-node-pager.hidden {
    display: none;
}

.quick-page .quick-node-pager-main,
.quick-page .quick-node-pager-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-page .quick-node-pager-pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.quick-page .quick-node-pager-main .quick-ghost-btn {
    min-width: 38px;
}

.quick-page .quick-node-pager-main .quick-ghost-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    pointer-events: none;
}

.quick-page .quick-node-pager-ellipsis {
    color: var(--muted);
    min-width: 22px;
    text-align: center;
    font-size: calc(12px * var(--quick-font-scale));
}

.quick-page .quick-node-page-info {
    color: var(--muted);
    font-size: calc(13px * var(--quick-font-scale));
}

.quick-page .quick-node-pager-jump label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: calc(13px * var(--quick-font-scale));
}

.quick-page .quick-node-pager-jump select,
.quick-page .quick-node-pager-jump input {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
}

.quick-page .quick-node-pager-jump input {
    width: 88px;
}

.quick-page .quick-node-pager-summary {
    color: var(--muted);
    font-size: calc(12px * var(--quick-font-scale));
}

.quick-page .quick-node-grid.is-grouped {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-page .quick-node-group {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.quick-page .quick-node-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-page .quick-node-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.quick-page .quick-node-group-title {
    margin: 0;
    font-size: calc(16px * var(--quick-font-scale));
    color: var(--ink);
    font-weight: 700;
}

.quick-page .quick-node-group-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-page .quick-node-group-hint {
    color: var(--muted);
    font-size: calc(12px * var(--quick-font-scale));
}

.quick-page .quick-node-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: calc(12px * var(--quick-font-scale));
    font-weight: 700;
    border: 1px solid transparent;
}

.quick-page .quick-node-group-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    color: var(--muted);
    font-size: calc(12px * var(--quick-font-scale));
}

.quick-page .quick-node-group.is-collapsed .quick-node-group-arrow {
    color: var(--primary2);
}

.quick-page .quick-node-group.is-fast .quick-node-group-count {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.quick-page .quick-node-group.is-stable .quick-node-group-count {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.quick-page .quick-node-group.is-slow .quick-node-group-count,
.quick-page .quick-node-group.is-down .quick-node-group-count {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.quick-page .quick-node-group.is-pending .quick-node-group-count {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

.quick-page .quick-node-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* Keep native hidden behavior for group collapse; do not let grid display override it. */
.quick-page .quick-node-cards[hidden],
.quick-page .quick-node-group.is-collapsed .quick-node-cards {
    display: none !important;
}

.quick-page .node-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.quick-page .node-card.is-selected {
    border-color: rgba(37, 99, 235, 0.75);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
    background: rgba(59, 130, 246, 0.1);
}

.quick-page .node-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.quick-page .node-prefix {
    margin: 0;
    color: var(--primary2);
    font-size: calc(18px * var(--quick-font-scale));
    line-height: 1.35;
    word-break: break-all;
}

.quick-page .node-latency {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: calc(13px * var(--quick-font-scale));
    font-weight: 700;
    border: 1px solid transparent;
}

.quick-page .node-latency.is-good {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.quick-page .node-latency.is-mid {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

.quick-page .node-latency.is-bad,
.quick-page .node-latency.is-down {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.quick-page .node-latency.is-unknown {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

.quick-page .node-latency.is-testing {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.quick-page .node-name {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: calc(12px * var(--quick-font-scale));
    line-height: 1.3;
}

.quick-page .node-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 24px;
}

.quick-page .node-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 2px 9px;
    font-size: calc(12px * var(--quick-font-scale));
    line-height: 1.2;
}

.quick-page .node-tag.node-tag-role.is-primary {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.quick-page .node-tag.node-tag-role.is-backup {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.quick-page .node-tag.node-tag-remark {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-page .node-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.quick-page .node-select-btn {
    width: 100%;
    min-height: 40px;
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(203, 213, 225, 0.45);
    color: var(--ink);
    font-size: calc(14px * var(--quick-font-scale));
}

.quick-page .node-select-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.quick-page .node-select-btn.is-selected {
    border-color: rgba(37, 99, 235, 0.8);
    background: var(--primary);
    color: #fff;
}

.quick-page .node-test-btn {
    min-width: 68px;
    min-height: 40px;
    padding: 0 10px;
    border-color: rgba(148, 163, 184, 0.45);
    background: #fff;
    color: #1e293b;
    font-size: calc(13px * var(--quick-font-scale));
}

.quick-page .node-test-btn:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.08);
}

.quick-page .node-test-btn.is-testing,
.quick-page .node-test-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.quick-page .quick-status {
    min-height: 22px;
    margin: 0 2px;
    color: var(--muted);
    font-size: calc(14px * var(--quick-font-scale));
}

.quick-page .quick-result-card {
    padding: 14px 16px;
}

.quick-page .quick-result-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.quick-page .quick-result-head h3 {
    margin: 0;
    font-size: calc(20px * var(--quick-font-scale));
}

.quick-page .quick-copy-best-btn {
    margin-left: auto;
}

.quick-page .quick-result-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.quick-page .quick-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-size: calc(14px * var(--quick-font-scale));
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.quick-page .quick-primary-link:hover {
    background: var(--primary2);
    border-color: var(--primary2);
}

.quick-page .quick-primary-link.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.quick-page .quick-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.quick-page .quick-result-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 118px;
}

.quick-page .quick-result-k {
    display: block;
    color: var(--muted);
    font-size: calc(12px * var(--quick-font-scale));
}

.quick-page .quick-result-v {
    display: block;
    color: var(--primary2);
    font-size: calc(13px * var(--quick-font-scale));
    line-height: 1.45;
    word-break: break-all;
}

.quick-page .quick-result-v.quick-result-v-empty {
    color: var(--muted);
    text-decoration: none;
    pointer-events: none;
}

.quick-page .quick-result-item-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.quick-page .quick-result-item-copy {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(148, 163, 184, 0.08);
    color: var(--ink);
    font-size: calc(12px * var(--quick-font-scale));
    font-weight: 700;
    cursor: pointer;
}

.quick-page .quick-result-item-copy:hover {
    border-color: rgba(59, 130, 246, 0.38);
    background: rgba(59, 130, 246, 0.14);
}

.quick-page .quick-result-item-copy:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.quick-page .quick-result-item-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(148, 163, 184, 0.08);
    color: var(--primary2);
    font-size: calc(12px * var(--quick-font-scale));
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.quick-page .quick-result-item-open:hover {
    border-color: rgba(59, 130, 246, 0.38);
    background: rgba(59, 130, 246, 0.14);
}

.quick-page .quick-result-item-open.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.quick-page .quick-result-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: calc(13px * var(--quick-font-scale));
}

.quick-page .quick-status.is-ok {
    color: var(--ok);
}

.quick-page .quick-status.is-pending {
    color: var(--primary2);
}

.quick-page .quick-status.is-error {
    color: var(--err);
}

.quick-page .quick-empty {
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    padding: 16px;
    font-size: calc(13px * var(--quick-font-scale));
}

.quick-page .quick-comments-card {
    padding: 14px 16px;
    display: grid;
    gap: 12px;
}

.quick-page .quick-comments-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-page .quick-comments-head h3 {
    margin: 0;
    font-size: calc(20px * var(--quick-font-scale));
}

.quick-page .quick-comments-sort {
    display: inline-flex;
    gap: 8px;
}

.quick-page .quick-comment-sort-btn {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(148, 163, 184, 0.1);
    color: var(--ink);
    font-size: calc(13px * var(--quick-font-scale));
    font-weight: 700;
    cursor: pointer;
}

.quick-page .quick-comment-sort-btn.active {
    border-color: rgba(37, 99, 235, 0.8);
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary2);
}

.quick-page .quick-comment-editor {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.quick-page .quick-comment-editor.is-disabled {
    opacity: 0.76;
}

.quick-page .quick-comment-editor-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.quick-page .quick-comment-editor-top input[type="text"],
.quick-page .quick-comment-textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: calc(14px * var(--quick-font-scale));
    outline: none;
}

.quick-page .quick-comment-editor-top input[type="text"] {
    min-height: 38px;
    padding: 0 12px;
}

.quick-page .quick-comment-textarea {
    min-height: 104px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.55;
}

.quick-page .quick-comment-anonymous {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: calc(12px * var(--quick-font-scale));
    white-space: nowrap;
}

.quick-page .quick-comment-editor-actions {
    display: flex;
    justify-content: flex-end;
}

.quick-page .quick-comment-list {
    display: grid;
    gap: 10px;
}

.quick-page .quick-comment-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    padding: 11px 12px;
    display: grid;
    gap: 9px;
}

.quick-page .quick-comment-item.is-reply {
    background: rgba(248, 250, 252, 0.8);
}

.quick-page .quick-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.quick-page .quick-comment-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.quick-page .quick-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--line);
    object-fit: cover;
    flex-shrink: 0;
}

.quick-page .quick-comment-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.quick-page .quick-comment-author-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.quick-page .quick-comment-author-meta strong {
    font-size: calc(14px * var(--quick-font-scale));
}

.quick-page .quick-comment-author.is-admin .quick-comment-author-meta strong {
    color: #1d4ed8;
}

.quick-page .quick-comment-author.is-user .quick-comment-author-meta strong {
    color: #0f766e;
}

.quick-page .quick-comment-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 1px 8px;
    font-size: calc(11px * var(--quick-font-scale));
}

.quick-page .quick-comment-replyto {
    color: var(--muted);
    font-size: calc(11px * var(--quick-font-scale));
}

.quick-page .quick-comment-time {
    color: var(--muted);
    font-size: calc(12px * var(--quick-font-scale));
    white-space: nowrap;
}

.quick-page .quick-comment-content {
    color: #334155;
    font-size: calc(14px * var(--quick-font-scale));
    line-height: 1.65;
    word-break: break-word;
}

.quick-page .quick-comment-content p {
    margin: 0;
}

.quick-page .quick-comment-content p + p {
    margin-top: 8px;
}

.quick-page .quick-comment-content ul,
.quick-page .quick-comment-content ol {
    margin: 8px 0 0 18px;
    padding: 0;
}

.quick-page .quick-comment-content blockquote {
    margin: 8px 0 0;
    padding: 6px 10px;
    border-left: 3px solid rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.08);
    border-radius: 6px;
}

.quick-page .quick-comment-content a {
    color: var(--primary2);
}

.quick-page .quick-comment-content pre {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.08);
    overflow-x: auto;
}

.quick-page .quick-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-page .quick-comment-like-btn {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(148, 163, 184, 0.1);
    color: var(--ink);
    font-size: calc(12px * var(--quick-font-scale));
    font-weight: 700;
    cursor: pointer;
}

.quick-page .quick-comment-like-btn.is-active {
    border-color: rgba(245, 158, 11, 0.8);
    background: rgba(254, 243, 199, 0.9);
    color: #92400e;
}

.quick-page .quick-comment-status {
    color: var(--muted);
    font-size: calc(12px * var(--quick-font-scale));
}

.quick-page .quick-comment-replies {
    margin-left: 18px;
    display: grid;
    gap: 8px;
}

.quick-page .quick-comment-empty {
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 12px;
    color: var(--muted);
    font-size: calc(13px * var(--quick-font-scale));
    background: rgba(148, 163, 184, 0.08);
}

.quick-page .quick-comment-more-wrap {
    display: flex;
    justify-content: center;
}

.quick-page .quick-signature-card {
    padding: 14px 16px;
}

.quick-page .quick-signature-card .site-signature-head {
    margin-bottom: 8px;
}

.quick-page .quick-signature-card .site-signature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 10px;
    font-size: calc(12px * var(--quick-font-scale));
    font-weight: 700;
}

.quick-page .quick-signature-card .site-signature-version {
    appearance: none;
    font-family: inherit;
    cursor: pointer;
}

body[data-theme="dark"].quick-page .quick-ghost-btn {
    border-color: rgba(71, 85, 105, 0.65);
    background: rgba(15, 23, 42, 0.55);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .about-card {
    background: rgba(15, 23, 42, 0.56);
    border-color: rgba(71, 85, 105, 0.62);
}

body[data-theme="dark"].quick-page .about-tab-btn {
    border-color: rgba(71, 85, 105, 0.7);
    background: rgba(30, 41, 59, 0.72);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .about-tab-btn:hover {
    border-color: rgba(96, 165, 250, 0.58);
    background: rgba(30, 58, 138, 0.3);
}

body[data-theme="dark"].quick-page .about-image-card img {
    border-color: rgba(71, 85, 105, 0.62);
}

body[data-theme="dark"].quick-page .quick-ghost-btn:hover {
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(30, 58, 138, 0.34);
}

body[data-theme="dark"].quick-page .node-card {
    background: rgba(15, 23, 42, 0.56);
    border-color: rgba(71, 85, 105, 0.62);
}

body[data-theme="dark"].quick-page .node-card.is-selected {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.22);
}

body[data-theme="dark"].quick-page .node-prefix {
    color: #7fb3ff;
}

body[data-theme="dark"].quick-page .node-name {
    color: #afc2da;
}

body[data-theme="dark"].quick-page .node-tag.node-tag-remark {
    background: rgba(100, 116, 139, 0.22);
    border-color: rgba(148, 163, 184, 0.45);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .node-select-btn {
    border-color: rgba(71, 85, 105, 0.7);
    background: rgba(30, 41, 59, 0.7);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .node-select-btn:hover {
    background: rgba(37, 99, 235, 0.28);
    border-color: rgba(96, 165, 250, 0.58);
}

body[data-theme="dark"].quick-page .node-test-btn {
    border-color: rgba(71, 85, 105, 0.72);
    background: rgba(15, 23, 42, 0.72);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .node-test-btn:hover {
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(30, 58, 138, 0.3);
}

body[data-theme="dark"].quick-page .node-latency.is-unknown {
    background: rgba(51, 65, 85, 0.85);
    color: #dbe7f8;
    border-color: rgba(100, 116, 139, 0.7);
}

body[data-theme="dark"].quick-page .quick-result-item {
    background: rgba(15, 23, 42, 0.56);
    border-color: rgba(71, 85, 105, 0.62);
}

body[data-theme="dark"].quick-page .quick-result-v.quick-result-v-empty {
    color: #94a8c3;
}

body[data-theme="dark"].quick-page .quick-result-item-open {
    border-color: rgba(71, 85, 105, 0.72);
    background: rgba(15, 23, 42, 0.72);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .quick-result-item-open:hover {
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(30, 58, 138, 0.3);
}

body[data-theme="dark"].quick-page .quick-result-item-copy {
    border-color: rgba(71, 85, 105, 0.72);
    background: rgba(15, 23, 42, 0.72);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .quick-result-item-copy:hover {
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(30, 58, 138, 0.3);
}

body[data-theme="dark"].quick-page .quick-empty {
    background: rgba(30, 41, 59, 0.45);
    border-color: rgba(71, 85, 105, 0.62);
    color: #afc2da;
}

body[data-theme="dark"].quick-page .quick-node-group {
    background: rgba(15, 23, 42, 0.56);
    border-color: rgba(71, 85, 105, 0.62);
}

body[data-theme="dark"].quick-page .quick-node-group-hint {
    color: #9fb1c9;
}

body[data-theme="dark"].quick-page .quick-comment-editor,
body[data-theme="dark"].quick-page .quick-comment-item {
    background: rgba(15, 23, 42, 0.56);
    border-color: rgba(71, 85, 105, 0.62);
}

body[data-theme="dark"].quick-page .quick-comment-item.is-reply {
    background: rgba(30, 41, 59, 0.7);
}

body[data-theme="dark"].quick-page .quick-comment-editor-top input[type="text"],
body[data-theme="dark"].quick-page .quick-comment-textarea {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(71, 85, 105, 0.72);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .quick-comment-avatar {
    border-color: rgba(100, 116, 139, 0.72);
}

body[data-theme="dark"].quick-page .quick-comment-avatar-fallback {
    background: rgba(30, 58, 138, 0.35);
    color: #bfdbfe;
}

body[data-theme="dark"].quick-page .quick-comment-badge {
    background: rgba(30, 58, 138, 0.35);
    border-color: rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
}

body[data-theme="dark"].quick-page .quick-comment-content {
    color: #c9d7e8;
}

body[data-theme="dark"].quick-page .quick-comment-content a {
    color: #93c5fd;
}

body[data-theme="dark"].quick-page .quick-comment-content blockquote {
    border-left-color: rgba(96, 165, 250, 0.65);
    background: rgba(30, 58, 138, 0.3);
}

body[data-theme="dark"].quick-page .quick-comment-content pre {
    border-color: rgba(100, 116, 139, 0.65);
    background: rgba(15, 23, 42, 0.72);
}

body[data-theme="dark"].quick-page .quick-comment-like-btn {
    border-color: rgba(71, 85, 105, 0.72);
    background: rgba(15, 23, 42, 0.72);
    color: #dbe7f8;
}

body[data-theme="dark"].quick-page .quick-comment-like-btn.is-active {
    border-color: rgba(251, 191, 36, 0.65);
    background: rgba(120, 53, 15, 0.45);
    color: #fcd34d;
}

body[data-theme="dark"].quick-page .quick-comment-empty {
    border-color: rgba(71, 85, 105, 0.62);
    background: rgba(30, 41, 59, 0.55);
    color: #afc2da;
}

body[data-theme="dark"].quick-page .quick-signature-card .site-signature-badge {
    background: rgba(30, 58, 138, 0.35);
    border-color: rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
}

@media (max-width: 1120px) {
    .quick-page .quick-node-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-page .quick-node-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .quick-page .quick-main {
        gap: 12px;
    }

    .quick-page .about-panel {
        padding: 12px;
    }

    .quick-page .about-panel-head h3 {
        font-size: 18px;
    }

    .quick-page .about-grid {
        grid-template-columns: 1fr;
    }

    .quick-page .about-tab-btn,
    .quick-page .about-close-btn {
        min-height: 32px;
        font-size: 12px;
    }

    .quick-page .quick-input-card,
    .quick-page .quick-nodes-card,
    .quick-page .quick-selected-card,
    .quick-page .quick-result-card,
    .quick-page .quick-comments-card,
    .quick-page .quick-signature-card {
        padding: 12px;
    }

    .quick-page .quick-selected-head h3,
    .quick-page .quick-result-head h3 {
        font-size: 18px;
    }

    .quick-page .quick-selected-prefix {
        margin-top: 8px;
        font-size: 16px;
    }

    .quick-page .quick-input-row {
        grid-template-columns: 1fr;
    }

    .quick-page #quickUrlInput,
    .quick-page .quick-primary-btn {
        min-height: 44px;
        font-size: 14px;
    }

    .quick-page .quick-hint {
        font-size: 12px;
    }

    .quick-page .quick-nodes-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-page .quick-nodes-head h2 {
        font-size: 20px;
    }

    .quick-page .quick-nodes-meta {
        width: 100%;
        display: flex;
        justify-content: space-between;
        font-size: 12px;
    }

    .quick-page .quick-ghost-btn {
        min-height: 34px;
        font-size: 12px;
        padding: 0 10px;
    }

    .quick-page .quick-node-pager {
        gap: 8px;
    }

    .quick-page .quick-node-pager-main,
    .quick-page .quick-node-pager-jump {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    .quick-page .quick-node-pager-jump input {
        width: 72px;
    }

    .quick-page .quick-node-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quick-page .quick-node-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quick-page .quick-node-group {
        padding: 10px;
    }

    .quick-page .quick-node-group-title {
        font-size: 15px;
    }

    .quick-page .quick-result-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-page .quick-copy-best-btn {
        margin-left: 0;
    }

    .quick-page .quick-selected-meta {
        flex-direction: column;
        gap: 6px;
    }

    .quick-page .quick-result-grid {
        grid-template-columns: 1fr;
    }

    .quick-page .quick-result-actions {
        width: 100%;
    }

    .quick-page .quick-result-actions .quick-ghost-btn,
    .quick-page .quick-result-actions .quick-primary-link {
        flex: 1 1 auto;
        min-height: 34px;
        font-size: 13px;
    }

    .quick-page .quick-result-item {
        min-height: 0;
    }

    .quick-page .node-card {
        padding: 10px;
    }

    .quick-page .node-prefix {
        font-size: 15px;
    }

    .quick-page .node-latency {
        min-width: 64px;
        height: 26px;
        font-size: 12px;
    }

    .quick-page .node-select-btn {
        min-height: 34px;
        font-size: 13px;
    }

    .quick-page .node-actions {
        grid-template-columns: 1fr;
    }

    .quick-page .node-test-btn {
        min-height: 34px;
        font-size: 13px;
    }

    .quick-page .quick-status {
        font-size: 12px;
    }

    .quick-page .quick-comments-head {
        align-items: flex-start;
    }

    .quick-page .quick-comments-head h3 {
        font-size: 18px;
    }

    .quick-page .quick-comments-sort {
        width: 100%;
    }

    .quick-page .quick-comment-sort-btn {
        flex: 1 1 auto;
    }

    .quick-page .quick-comment-editor-top {
        grid-template-columns: 1fr;
    }

    .quick-page .quick-comment-editor-actions .quick-primary-btn {
        min-width: 100%;
    }

    .quick-page .quick-comment-replies {
        margin-left: 10px;
    }
}

/* 20260221 quick-page refinement */
.quick-page .quick-card,
.quick-page .about-panel,
.quick-page .quick-node-group,
.quick-page .node-card,
.quick-page .quick-comment-item,
.quick-page .quick-result-item,
.quick-page .about-card {
    border-color: rgba(148, 163, 184, 0.38);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.quick-page .quick-card:hover,
.quick-page .about-panel:hover,
.quick-page .quick-node-group:hover,
.quick-page .node-card:hover,
.quick-page .quick-comment-item:hover,
.quick-page .quick-result-item:hover,
.quick-page .about-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(100, 149, 215, 0.46);
}

.quick-page #quickUrlInput {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.94) 100%);
}

.quick-page .quick-primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
    box-shadow: 0 10px 20px rgba(10, 102, 255, 0.24);
}

.quick-page .quick-primary-btn:hover {
    box-shadow: 0 14px 24px rgba(10, 102, 255, 0.3);
}

.quick-page .quick-primary-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
    box-shadow: 0 8px 18px rgba(10, 102, 255, 0.24);
}

.quick-page .quick-primary-link:hover {
    box-shadow: 0 12px 22px rgba(10, 102, 255, 0.3);
}

.quick-page .node-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 250, 255, 0.74) 100%);
}

.quick-page .node-card.is-selected {
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.9) 0%, rgba(219, 234, 254, 0.66) 100%);
}

.quick-page .quick-result-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 250, 255, 0.7) 100%);
}

body[data-theme="dark"].quick-page .quick-card,
body[data-theme="dark"].quick-page .about-panel,
body[data-theme="dark"].quick-page .quick-node-group,
body[data-theme="dark"].quick-page .node-card,
body[data-theme="dark"].quick-page .quick-comment-item,
body[data-theme="dark"].quick-page .quick-result-item,
body[data-theme="dark"].quick-page .about-card {
    border-color: rgba(71, 85, 105, 0.68);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
}

body[data-theme="dark"].quick-page .quick-card:hover,
body[data-theme="dark"].quick-page .about-panel:hover,
body[data-theme="dark"].quick-page .quick-node-group:hover,
body[data-theme="dark"].quick-page .node-card:hover,
body[data-theme="dark"].quick-page .quick-comment-item:hover,
body[data-theme="dark"].quick-page .quick-result-item:hover,
body[data-theme="dark"].quick-page .about-card:hover {
    box-shadow: 0 20px 42px rgba(2, 6, 23, 0.56);
    border-color: rgba(110, 128, 156, 0.78);
}

@media (max-width: 768px) {
    .quick-page .quick-card:hover,
    .quick-page .about-panel:hover,
    .quick-page .quick-node-group:hover,
    .quick-page .node-card:hover,
    .quick-page .quick-comment-item:hover,
    .quick-page .quick-result-item:hover,
    .quick-page .about-card:hover {
        transform: none;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    }
}

/* ===== Quick Page Full Polish (2026-02-27) ===== */
.quick-page .quick-card,
.quick-page .quick-input-card,
.quick-page .quick-selected-card,
.quick-page .quick-nodes-card,
.quick-page .quick-results-card,
.quick-page .quick-history-card,
.quick-page .quick-comments-card,
.quick-page .about-panel,
.quick-page .about-card {
    border-radius: 16px;
    border: 1px solid rgba(155, 178, 210, 0.38);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 255, 0.92));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.quick-page .quick-card:hover,
.quick-page .about-card:hover,
.quick-page .quick-node-item:hover,
.quick-page .quick-history-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.quick-page .quick-primary-btn,
.quick-page .quick-ghost-btn,
.quick-page .node-select-btn,
.quick-page .node-test-btn,
.quick-page .about-tab-btn,
.quick-page .about-close-btn {
    border-radius: 12px;
    font-weight: 700;
}

.quick-page .quick-primary-btn,
.quick-page .node-test-btn {
    background: linear-gradient(135deg, #1678e6, #0f63c7);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(16, 99, 199, 0.24);
}

.quick-page .quick-primary-btn:hover,
.quick-page .node-test-btn:hover {
    filter: brightness(1.03);
}

.quick-page .quick-ghost-btn,
.quick-page .about-tab-btn,
.quick-page .about-close-btn,
.quick-page .node-select-btn {
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    border-color: rgba(155, 178, 210, 0.45);
    color: #1c3f72;
}

.quick-page #quickUrlInput,
.quick-page .quick-search-input,
.quick-page .node-filter-select,
.quick-page .quick-comment-input,
.quick-page textarea,
.quick-page select,
.quick-page input[type="text"],
.quick-page input[type="url"],
.quick-page input[type="search"] {
    border-radius: 12px;
    border: 1px solid #cad8ea;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.quick-page #quickUrlInput:focus,
.quick-page .quick-search-input:focus,
.quick-page .node-filter-select:focus,
.quick-page .quick-comment-input:focus,
.quick-page textarea:focus,
.quick-page select:focus,
.quick-page input[type="text"]:focus,
.quick-page input[type="url"]:focus,
.quick-page input[type="search"]:focus {
    border-color: #1678e6;
    box-shadow: 0 0 0 3px rgba(22, 120, 230, 0.16);
    background: #fff;
}

.quick-page .quick-selected-card {
    position: relative;
    overflow: hidden;
}

.quick-page .quick-selected-card::before,
.quick-page .quick-input-card::before,
.quick-page .quick-nodes-card::before,
.quick-page .quick-results-card::before,
.quick-page .quick-history-card::before,
.quick-page .quick-comments-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #1678e6, #26a0ef, #f7b74f);
    opacity: 0.9;
}

.quick-page .quick-history-item,
.quick-page .quick-node-item,
.quick-page .quick-result-item,
.quick-page .quick-comment-item {
    border-radius: 12px;
    border: 1px solid #d6e2f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quick-page .quick-node-item.is-selected,
.quick-page .quick-history-item.is-active {
    border-color: rgba(22, 120, 230, 0.45);
    box-shadow: 0 10px 20px rgba(22, 120, 230, 0.14);
}

.quick-page .quick-selected-prefix {
    color: #0f3e79;
    font-weight: 800;
}

.quick-page .about-tab-btn.active {
    background: linear-gradient(135deg, #1678e6, #0f63c7);
    border-color: transparent;
}

@media (max-width: 760px) {
    .quick-page .quick-card,
    .quick-page .quick-input-card,
    .quick-page .quick-selected-card,
    .quick-page .quick-nodes-card,
    .quick-page .quick-results-card,
    .quick-page .quick-history-card,
    .quick-page .quick-comments-card,
    .quick-page .about-panel,
    .quick-page .about-card {
        border-radius: 13px;
    }

    .quick-page .quick-primary-btn,
    .quick-page .quick-ghost-btn,
    .quick-page .node-select-btn,
    .quick-page .node-test-btn,
    .quick-page .about-tab-btn,
    .quick-page .about-close-btn {
        min-height: 44px;
    }
}

/* ===== Quick Button System (2026-02-27 v24) ===== */
.quick-page .quick-primary-btn,
.quick-page .quick-ghost-btn,
.quick-page .node-select-btn,
.quick-page .node-test-btn,
.quick-page .about-tab-btn,
.quick-page .about-close-btn,
.quick-page .quick-copy-best-btn,
.quick-page .quick-comment-sort-btn,
.quick-page .quick-comment-like-btn {
    border-radius: 12px;
    border: 1px solid rgba(138, 164, 198, 0.48);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    transition: transform 0.16s ease, box-shadow 0.22s ease, border-color 0.2s ease, filter 0.2s ease;
}

.quick-page .quick-primary-btn,
.quick-page .node-test-btn {
    border-color: transparent;
    background: linear-gradient(135deg, #1678e6 0%, #0f63c7 100%);
    color: #fff;
}

.quick-page .quick-primary-btn:hover,
.quick-page .node-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(16, 99, 199, 0.28);
}

.quick-page .quick-ghost-btn:hover,
.quick-page .node-select-btn:hover,
.quick-page .about-tab-btn:hover,
.quick-page .about-close-btn:hover,
.quick-page .quick-copy-best-btn:hover,
.quick-page .quick-comment-sort-btn:hover,
.quick-page .quick-comment-like-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 120, 230, 0.48);
    box-shadow: 0 10px 22px rgba(22, 120, 230, 0.18);
}

body[data-theme="dark"].quick-page .quick-primary-btn,
body[data-theme="dark"].quick-page .node-test-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: #fff;
}

body[data-theme="dark"].quick-page .quick-ghost-btn,
body[data-theme="dark"].quick-page .node-select-btn,
body[data-theme="dark"].quick-page .about-tab-btn,
body[data-theme="dark"].quick-page .about-close-btn,
body[data-theme="dark"].quick-page .quick-copy-best-btn,
body[data-theme="dark"].quick-page .quick-comment-sort-btn,
body[data-theme="dark"].quick-page .quick-comment-like-btn {
    border-color: rgba(84, 111, 150, 0.62);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.42);
}

/* ===== Global Controls Upgrade (2026-02-27 v25) ===== */
.quick-page {
    --quick-ctl-radius: 12px;
    --quick-ctl-border: #c8d8eb;
    --quick-ctl-surface: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    --quick-ctl-text: #1f3f6e;
    --quick-ctl-focus: rgba(22, 120, 230, 0.2);
    --quick-ctl-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.quick-page button,
.quick-page .btn,
.quick-page .quick-primary-btn,
.quick-page .quick-ghost-btn,
.quick-page .node-select-btn,
.quick-page .node-test-btn,
.quick-page .about-tab-btn,
.quick-page .about-close-btn,
.quick-page .quick-copy-best-btn,
.quick-page .quick-comment-sort-btn,
.quick-page .quick-comment-like-btn,
.quick-page input[type="button"],
.quick-page input[type="submit"],
.quick-page input[type="reset"] {
    border-radius: var(--quick-ctl-radius);
    border: 1px solid var(--quick-ctl-border);
    box-shadow: var(--quick-ctl-shadow);
    transition: transform 0.16s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.quick-page button:hover,
.quick-page .btn:hover,
.quick-page .quick-primary-btn:hover,
.quick-page .quick-ghost-btn:hover,
.quick-page .node-select-btn:hover,
.quick-page .node-test-btn:hover,
.quick-page .about-tab-btn:hover,
.quick-page .about-close-btn:hover,
.quick-page .quick-copy-best-btn:hover,
.quick-page .quick-comment-sort-btn:hover,
.quick-page .quick-comment-like-btn:hover,
.quick-page input[type="button"]:hover,
.quick-page input[type="submit"]:hover,
.quick-page input[type="reset"]:hover {
    transform: translateY(-1px);
    border-color: #9dbbe8;
    box-shadow: 0 12px 24px rgba(22, 120, 230, 0.18);
}

.quick-page button:focus-visible,
.quick-page .btn:focus-visible,
.quick-page .quick-primary-btn:focus-visible,
.quick-page .quick-ghost-btn:focus-visible,
.quick-page .node-select-btn:focus-visible,
.quick-page .node-test-btn:focus-visible,
.quick-page .about-tab-btn:focus-visible,
.quick-page .about-close-btn:focus-visible,
.quick-page .quick-copy-best-btn:focus-visible,
.quick-page .quick-comment-sort-btn:focus-visible,
.quick-page .quick-comment-like-btn:focus-visible,
.quick-page input[type="button"]:focus-visible,
.quick-page input[type="submit"]:focus-visible,
.quick-page input[type="reset"]:focus-visible {
    outline: none;
    border-color: #1678e6;
    box-shadow: 0 0 0 3px var(--quick-ctl-focus), var(--quick-ctl-shadow);
}

.quick-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"]),
.quick-page select,
.quick-page textarea {
    border-radius: var(--quick-ctl-radius);
    border: 1px solid var(--quick-ctl-border);
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"]):hover,
.quick-page select:hover,
.quick-page textarea:hover {
    border-color: #b6ccea;
}

.quick-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"]):focus,
.quick-page select:focus,
.quick-page textarea:focus {
    outline: none;
    border-color: #1678e6;
    box-shadow: 0 0 0 3px var(--quick-ctl-focus);
}

.quick-page input[type="checkbox"],
.quick-page input[type="radio"] {
    accent-color: #1678e6;
    cursor: pointer;
}

.quick-page button:disabled,
.quick-page .btn:disabled,
.quick-page input:disabled,
.quick-page select:disabled,
.quick-page textarea:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    box-shadow: none;
}

body[data-theme="dark"].quick-page {
    --quick-ctl-border: rgba(84, 111, 150, 0.64);
    --quick-ctl-surface: linear-gradient(180deg, rgba(28, 41, 66, 0.96) 0%, rgba(19, 30, 50, 0.96) 100%);
    --quick-ctl-text: #d8e8ff;
    --quick-ctl-focus: rgba(56, 189, 248, 0.28);
    --quick-ctl-shadow: 0 10px 22px rgba(2, 6, 23, 0.42);
}

body[data-theme="dark"].quick-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"]),
body[data-theme="dark"].quick-page select,
body[data-theme="dark"].quick-page textarea {
    border-color: rgba(84, 111, 150, 0.64);
    background: rgba(18, 28, 47, 0.92);
    color: #e5eeff;
}

body[data-theme="dark"].quick-page button:hover,
body[data-theme="dark"].quick-page .btn:hover,
body[data-theme="dark"].quick-page .quick-primary-btn:hover,
body[data-theme="dark"].quick-page .quick-ghost-btn:hover,
body[data-theme="dark"].quick-page .node-select-btn:hover,
body[data-theme="dark"].quick-page .node-test-btn:hover,
body[data-theme="dark"].quick-page .about-tab-btn:hover,
body[data-theme="dark"].quick-page .about-close-btn:hover,
body[data-theme="dark"].quick-page .quick-copy-best-btn:hover,
body[data-theme="dark"].quick-page .quick-comment-sort-btn:hover,
body[data-theme="dark"].quick-page .quick-comment-like-btn:hover,
body[data-theme="dark"].quick-page input[type="button"]:hover,
body[data-theme="dark"].quick-page input[type="submit"]:hover,
body[data-theme="dark"].quick-page input[type="reset"]:hover {
    border-color: rgba(56, 189, 248, 0.66);
    background: linear-gradient(180deg, rgba(33, 55, 90, 0.96) 0%, rgba(24, 40, 69, 0.96) 100%);
    color: #f1f7ff;
}

@media (max-width: 760px) {
    .quick-page button,
    .quick-page .btn,
    .quick-page .quick-primary-btn,
    .quick-page .quick-ghost-btn,
    .quick-page .node-select-btn,
    .quick-page .node-test-btn,
    .quick-page .about-tab-btn,
    .quick-page .about-close-btn,
    .quick-page .quick-copy-best-btn,
    .quick-page .quick-comment-sort-btn,
    .quick-page .quick-comment-like-btn,
    .quick-page input[type="button"],
    .quick-page input[type="submit"],
    .quick-page input[type="reset"] {
        min-height: 44px;
        padding-left: 14px;
        padding-right: 14px;
        font-size: 15px;
    }

    .quick-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"]),
    .quick-page select,
    .quick-page textarea {
        min-height: 44px;
        font-size: 16px;
    }
}

/* ===== Quick Comment Adaptive Upgrade (2026-02-27 v26) ===== */
.quick-page .quick-comment-item,
.quick-page .quick-comment-content,
.quick-page .quick-comment-content p,
.quick-page .quick-comment-content li,
.quick-page .quick-comment-content blockquote,
.quick-page .quick-comment-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.quick-page .quick-comment-content pre,
.quick-page .quick-comment-content pre code {
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}

.quick-page .quick-comment-editor-top input[type="text"] {
    min-height: 40px;
}

.quick-page .quick-reply-collapsed-hidden {
    display: none;
}

.quick-page .quick-comment-replies-group.is-expanded .quick-reply-collapsed-hidden {
    display: block;
}

.quick-page .quick-comment-replies-toggle-wrap {
    margin-top: 6px;
    display: flex;
}

.quick-page .quick-comment-replies-toggle-btn {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(138, 164, 198, 0.54);
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    color: #1f3f6e;
    font-size: calc(12px * var(--quick-font-scale));
    font-weight: 700;
}

@media (max-width: 760px) {
    .quick-page .quick-comment-editor-top input[type="text"] {
        min-height: 38px;
        padding: 0 10px;
        font-size: 15px;
    }

    .quick-page .quick-comment-editor-actions .quick-primary-btn {
        min-height: 40px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 14px;
    }

    .quick-page .quick-comment-replies-toggle-btn {
        min-height: 38px;
        width: 100%;
        font-size: 14px;
    }
}
