/*
 * Qeel 工具页统一空白修复
 * 只处理 JS 识别出的查询主卡
 */

[data-qeel-compact-hero="1"] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding-bottom: 24px !important;

    align-content: flex-start !important;
    justify-content: flex-start !important;

    grid-auto-rows: auto !important;
    grid-template-rows: auto !important;

    overflow: visible !important;
}


/* 被识别为异常撑高的内部布局 */
[data-qeel-compact-unlock="1"] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    flex-grow: 0 !important;
    align-self: auto !important;
}


/* 真正没有内容但占据巨大高度的块 */
[data-qeel-empty-spacer="1"] {
    display: none !important;
}


/*
 * 表单自身不能因为 flex/grid 被撑到整个卡片高度
 */
[data-qeel-compact-hero="1"] form {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}


/*
 * 查询输入区域
 */
[data-qeel-compact-hero="1"] input,
[data-qeel-compact-hero="1"] textarea,
[data-qeel-compact-hero="1"] button {
    align-self: auto !important;
}
