/*
 * ?????? ?? Web ??????
 * ?? token ??? QML:
 *   - ???? #304156 / ?? #347CAF / ?? #3A4B5C?NavigationBar.qml?
 *   - ???? #409EFF / ?? #F56C6C?CustomButton.qml ???
 *   - ??? / ???? 4px???????
 */

:root {
    --nav-bg:         #304156;
    --nav-active:     #347CAF;
    --nav-hover:      #3A4B5C;
    --nav-text:       #BEBEBE;
    --nav-text-active:#FFFFFF;

    --content-bg:     #F5F7FA;
    --card-bg:        #FFFFFF;
    --border:         #DCDFE6;
    --border-light:   #EBEEF5;
    --text-primary:   #303133;
    --text-regular:   #606266;
    --text-secondary: #909399;
    --text-placeholder:#C0C4CC;

    --brand:          #409EFF;
    --brand-dark:     #3A8EE6;
    --success:        #67C23A;
    --warning:        #E6A23C;
    --danger:         #F56C6C;
    --info:           #909399;

    --radius:         4px;
    --radius-lg:      6px;
    --shadow-card:    0 2px 8px rgba(0,0,0,0.06);
    --shadow-modal:   0 8px 32px rgba(0,0,0,0.18);

    --row-height:     32px;
    --row-height-lg:  40px;
    --font-size-sm:   12px;
    --font-size-md:   14px;
    --font-size-lg:   16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "????", "Segoe UI", Arial, sans-serif;
    font-size: var(--font-size-md);
    color: var(--text-primary);
    background: var(--content-bg);
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* -------- Boot loader -------- */
.boot-loader {
    position: fixed;
    inset: 0;
    background: var(--content-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
}
.boot-loader__spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.boot-loader__text {
    color: var(--text-regular);
    font-size: var(--font-size-md);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------- App root ???????? + ??? -------- */
.app-root {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* -------- ??????? NavigationBar.qml -------- */
.nav {
    /* ?? legacy/main.qml ? 26 ? width:100 */
    width: 100px;
    flex: 0 0 100px;
    background: var(--nav-bg);
    display: flex;
    flex-direction: column;
}
.nav__list {
    display: flex;
    flex-direction: column;
}
.nav__item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-text);
    font-size: var(--font-size-lg);
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: background-color 0.15s;
}
.nav__item:hover:not(.nav__item--spacer):not(.nav__item--active) {
    background: var(--nav-hover);
}
.nav__item--active {
    background: var(--nav-active);
    color: var(--nav-text-active);
}
.nav__item--spacer {
    cursor: default;
    pointer-events: none;
}

/* -------- ???? -------- */
.content {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
}
.page {
    position: absolute;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    display: none;
    box-sizing: border-box;
}
/* ?????? flex column ??????????????????? row */
.page--active {
    display: flex;
    flex-direction: column;
}

/* -------- ???? / ?? -------- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 16px;
}
.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    border-left: 4px solid var(--brand);
    padding-left: 8px;
    margin: 0 0 12px;
}

/* -------- ?? CustomButton ???? -------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: var(--row-height);
    padding: 0 14px;
    font-size: var(--font-size-md);
    line-height: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-regular);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}
.btn:hover { color: var(--brand); border-color: var(--brand); background: #ECF5FF; }
.btn:disabled { cursor: not-allowed; opacity: 0.6; }

.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: #e64242; border-color: #e64242; color: #fff; }

.btn--success { background: var(--success); border-color: var(--success); color: #fff; }
.btn--warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn--info    { background: var(--info);    border-color: var(--info);    color: #fff; }

.btn--sm { height: 24px; padding: 0 10px; font-size: var(--font-size-sm); }
.btn--lg { height: var(--row-height-lg); padding: 0 20px; font-size: var(--font-size-lg); }

.btn--text {
    background: transparent;
    border-color: transparent;
    color: var(--brand);
    padding: 0 4px;
}
.btn--text:hover { background: transparent; color: var(--brand-dark); text-decoration: underline; }

/* -------- ??? / ?? / ?? -------- */
.input, .select, .textarea {
    height: var(--row-height);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    width: 100%;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); }
.input::placeholder { color: var(--text-placeholder); }
/* 只读态（如云端会话下被锁定的"配置版本"）。用属性选择器而非 :read-only 伪类，
   避免误伤 disabled 输入框和不支持 readonly 属性的控件 */
.input[readonly] { background: #EDEDED; color: var(--text-secondary); cursor: not-allowed; }
.textarea {
    height: auto;
    padding: 6px 10px;
    min-height: 64px;
    resize: vertical;
    font-family: inherit;
}
.select { appearance: none; padding-right: 28px; background-image:
    linear-gradient(45deg, transparent 50%, #909399 50%),
    linear-gradient(135deg, #909399 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.field__label {
    flex: 0 0 auto;
    min-width: 96px;
    color: var(--text-regular);
    text-align: right;
    padding-right: 4px;
}
.field__ctrl { flex: 1 1 auto; }

/* -------- ?? -------- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    font-size: var(--font-size-md);
}
.table thead th {
    background: #FAFAFA;
    color: var(--text-regular);
    font-weight: 500;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    white-space: nowrap;
}
.table tbody td {
    padding: 8px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}
.table tbody tr:hover { background: #F5F7FA; }
.table .cell-actions { white-space: nowrap; }
.table .cell-actions .btn { margin-right: 4px; }

/* -------- ???? UI ??? QML loopComponent? -------- */
.loop-chosen {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    min-height: 80px;
    background: #FAFBFC;
    margin-top: 8px;
}
.loop-chosen__card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    max-width: 220px;
    height: 50px;
    padding: 0 10px;
    background: #6695FF;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 4px;
    position: relative;
}
.loop-chosen__arrow { color: #FFFFFF; font-size: 14px; }
.loop-chosen__text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loop-chosen__x {
    position: absolute; top: -8px; right: -8px;
    width: 18px; height: 18px;
    line-height: 16px; text-align: center;
    background: #FF666D; color: #FFFFFF;
    border-radius: 9px;
    font-size: 12px; font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}
.loop-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    min-height: 80px;
    max-height: 260px;
    overflow-y: auto;
}
.loop-pool__card {
    min-width: 100px;
    max-width: 160px;
    height: 36px;
    padding: 0 10px;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.loop-pool__card:hover { filter: brightness(1.1); }

/* -------- ???? UI ??? QML conditionComponent? -------- */
.cond-table .cond-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #F0F0F0;
    border-radius: 4px;
    min-height: 34px;
    background: #FFFFFF;
}
.cond-table .cond-info:hover { background: #EAEAEA; }
.cond-table .cond-logic-select {
    width: 136px;
    max-width: 100%;
}
.cond-table .cond-info__line {
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px dashed #EEE;
    white-space: normal;
    word-break: break-all;
}
.cond-table .cond-info__line:last-child { border-bottom: none; }

/* -------- Toolbar????????? -------- */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.toolbar__spacer { flex: 1 1 auto; }

/* -------- Toast -------- */
.toast-host {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    min-width: 240px;
    max-width: 420px;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-modal);
    border-left: 4px solid var(--info);
    color: var(--text-primary);
    font-size: var(--font-size-md);
    animation: toast-in 0.2s ease-out;
    pointer-events: auto;
}
.toast--success { border-left-color: var(--success); }
.toast--error   { border-left-color: var(--danger);  }
.toast--warning { border-left-color: var(--warning); }
.toast--info    { border-left-color: var(--info);    }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -------- Modal / Dialog -------- */
.modal-host {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
}
.modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    animation: fade-in 0.15s ease-out;
}
.modal__dialog {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    min-width: 360px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modal-in 0.18s ease-out;
}
.modal__header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-lg);
    font-weight: 600;
}
.modal__body {
    padding: 16px;
    overflow: auto;
    flex: 1 1 auto;
}
.modal__footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.markdown-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 8px 0 12px;
}
.markdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-md);
    background: #fff;
}
.markdown-table th,
.markdown-table td {
    border: 1px solid var(--border-light);
    padding: 8px 10px;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
}
.markdown-table th {
    background: #F2F3F5;
    color: var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
    from { transform: translateY(-8px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* -------- ?? / ??? -------- */
.list {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--card-bg);
    max-height: 100%;
    overflow: auto;
}
.list__item {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.list__item:last-child { border-bottom: none; }
.list__item--active { background: #ECF5FF; color: var(--brand); }
.list__item:hover:not(.list__item--active) { background: #F5F7FA; }

/* -------- ???????????????????????? -------- */
.list--compact .list__item {
    padding: 2px 10px;
    min-height: 26px;
    gap: 6px;
}
.list--compact .list__item .btn--sm {
    padding: 0 6px;
    height: 22px;
    line-height: 20px;
}

/* -------- ????? -------- */
.row    { display: flex; gap: 8px; align-items: center; }
.col    { display: flex; flex-direction: column; gap: 8px; }
.grow   { flex: 1 1 auto; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mb-12  { margin-bottom: 12px; }
.muted  { color: var(--text-secondary); }
.danger-text { color: var(--danger); }
.nowrap { white-space: nowrap; }
.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.badge {
    display: inline-block;
    padding: 0 6px;
    line-height: 18px;
    border-radius: 9px;
    background: #E4E7ED;
    color: var(--text-regular);
    font-size: var(--font-size-sm);
}

/* -------- ???????????/????????? -------- */
.split {
    display: flex;
    gap: 16px;
    height: 100%;
}
.split__left  { flex: 0 0 320px; display: flex; flex-direction: column; }
.split__right { flex: 1 1 auto;  display: flex; flex-direction: column; }

/* ========== ????? SchemePicker ========== */
.scheme-picker__body {
    min-width: 400px;
}
.scheme-picker__columns {
    display: flex;
    gap: 10px;
}
.scheme-picker__col {
    flex: 1 1 0;
    min-width: 220px;
    border: 1px solid #DBDBDB;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card-bg);
}
.scheme-picker__col-title {
    font-weight: 600;
    text-align: center;
    font-size: var(--font-size-md);
}
.scheme-picker__search {
    width: 100%;
}
.scheme-picker__list {
    height: 420px;
    overflow: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: #fff;
}
.scheme-picker__item {
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.12s;
}
.scheme-picker__item:last-child { border-bottom: none; }
.scheme-picker__item:hover { background: #F0F0F0; }
.scheme-picker__item--active {
    background: #ECF5FF;
    color: var(--brand);
    font-weight: 600;
}
.scheme-picker__empty {
    padding: 16px;
    text-align: center;
    font-size: var(--font-size-sm);
}

/* ========== ????? ========== */
.dc-layout {
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    min-height: 0;
    height: 100%;
}
.dc-left {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    border: 1px solid #CCCCCC;
    border-radius: var(--radius);
    background: #FFFFFF;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}
.dc-left__header {
    height: 30px;
    background: #CECECE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    flex-shrink: 0;
}
.dc-left__list {
    flex: 1 1 auto;
    overflow: auto;
}
.dc-left__item {
    height: 30px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    border-bottom: 1px solid transparent;
}
.dc-left__item--active {
    background: #E6F7FF;
    color: #1684FC;
    font-weight: 700;
}
.dc-left__item:hover:not(.dc-left__item--active) {
    background: #F5F7FA;
}
.dc-right {
    flex: 1 1 auto;
    overflow: auto;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.dc-empty {
    color: var(--text-secondary);
    padding: 40px;
    text-align: center;
}
/* ?? ConfigItem ?? */
.dc-section {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius);
    padding: 10px 14px;
}
.dc-section__title {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    border-left: 4px solid var(--brand);
    padding-left: 8px;
    margin-bottom: 10px;
}
.dc-section__note {
    color: #DC3545;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 8px;
}
.dc-section__tip {
    color: #303133;
    font-size: 12px;
    margin: 6px 0;
}
/* ??+?????? QML ? ContentTitle?? 180?+ ?? */
.dc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    min-height: 28px;
    flex-wrap: wrap;
}
.dc-row__label {
    flex: 0 0 auto;
    min-width: 180px;
    color: #303133;
    font-size: 13px;
}
.dc-row__label--wide { min-width: 260px; }
.dc-row__ctrl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* SpinBox ?????? number input */
.dc-spin {
    width: 120px;
    height: 28px;
}
.dc-spin--sm { width: 90px; }
.dc-select {
    width: 120px;
    height: 28px;
}
.dc-select--wide { width: 200px; }
.dc-scheme-btn {
    width: 120px;
    height: 28px;
    line-height: 26px;
    padding: 0 8px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius);
    background: #FFFFFF;
    cursor: pointer;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.dc-scheme-btn:hover { border-color: var(--brand); color: var(--brand); }
.dc-scheme-btn--empty { color: var(--text-placeholder); }
.dc-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.dc-todo {
    padding: 12px 16px;
    background: #FFF8E1;
    border: 1px dashed #FFC107;
    border-radius: var(--radius);
    color: #8C6D1F;
    font-size: 13px;
}

/* ========== ???? MutilSelectComboBox ========== */
.dc-multi {
    position: relative;
    display: inline-block;
}
.dc-multi__head {
    min-height: 30px;
    padding: 2px 28px 2px 8px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    background: #FFFFFF;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.dc-multi__caret {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #909399;
    font-size: 8px;
}
.dc-multi__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1 1 auto;
}
.dc-multi__tag {
    background: #ECF5FF;
    color: #409EFF;
    border: 1px solid #D4E9FC;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 18px;
}
.dc-multi__tag-x {
    cursor: pointer;
    font-weight: 700;
}
.dc-multi__tag-x:hover { color: #F56C6C; }
.dc-multi__placeholder {
    color: #C0C4CC;
    font-size: 13px;
}
.dc-multi__popup {
    position: fixed;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 240px;
    overflow: auto;
    z-index: 10000;
    display: none;
    min-width: 180px;
}
.dc-multi__item {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dc-multi__item:hover { background: #F5F7FA; }
.dc-multi__item--active { color: #409EFF; font-weight: 600; }
.dc-multi__tick { color: #409EFF; }
.dc-multi__empty {
    padding: 12px;
    text-align: center;
    color: #909399;
    font-size: 12px;
}

/* ========== ???QML Rectangle + ColorDialog? ========== */
.dc-color-swatch {
    border: 1px solid #C0C0C0;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}
.dc-color-swatch:hover { outline: 2px solid #3498db33; }

/* ========== G3???? ?? + ? ??? 2 ?? ========== */
.dc-g3-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.dc-g3-card {
    background: #FAFAFA;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    padding: 16px;
    box-sizing: border-box;
}
.dc-g3-title {
    color: #BD3124;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}
.dc-g3-grid {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    row-gap: 10px;
    align-items: center;
}
.dc-g3-label {
    font-size: 12px;
    font-weight: 700;
    color: #333333;
}
.dc-g3-cell { display: flex; align-items: center; }

.dc-g3-panel {
    position: relative;
    width: 430px;
    height: 400px;
}
.dc-g3-img {
    position: absolute;
    left: 0;
    top: 0;
    height: 400px;
    width: auto;
    pointer-events: none;
    user-select: none;
}
.dc-g3-btn {
    position: absolute;
    width: 75px;
    height: 30px;
}
.dc-scheme-btn--disabled { opacity: 0.6; cursor: not-allowed; }
.dc-g3-btn--roomcard { font-weight: 700; }
.dc-g3-keyname {
    position: absolute;
    width: 54px;
    height: 32px;
    background: rgba(0, 0, 0, 0.75);
    color: #FFFFFF;
    font-weight: 700;
    font-family: "????", sans-serif;
    font-size: 13px;
    line-height: 32px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.dc-g3-roomcard-title {
    position: absolute;
    text-align: center;
    color: #BD3124;
    font-weight: 700;
    font-size: 16px;
}

/* ========== ?????? RelayBindingList ========== */
.dc-relay-list {
    border: 1px solid #F0F0F0;
    border-radius: 3px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    margin-top: 4px;
}
.dc-relay-row {
    display: flex;
    height: 26px;
}
.dc-relay-row--head {
    background: #CECECE;
    font-weight: 700;
    font-size: 12px;
}
.dc-relay-col {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #F0F0F0;
    font-size: 12px;
    box-sizing: border-box;
}
.dc-relay-col--label { flex: 0 0 30%; }
.dc-relay-col--value { flex: 1 1 auto; }
.dc-relay-sel {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* ========== ????QML CheckBox? ========== */
.dc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    padding: 4px 10px;
}
.dc-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}
.dc-checkbox__text { color: #333333; }

/* ========== ????????? ========== */
.dc-layout-dlg__body {
    display: flex;
    gap: 20px;
    padding: 8px 4px 0 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.dc-layout-dlg__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.dc-layout-dlg__img {
    width: 420px;
    height: auto;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.dc-layout-dlg__img:hover {
    border-color: #BD3124;
    box-shadow: 0 0 0 2px rgba(189, 49, 36, 0.2);
}
.dc-layout-dlg__num {
    font-size: 12px;
    color: #666666;
}

/* ========== ????????DevicesSelecter ???? ========== */
.dc-dev-picker__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 420px;
    overflow-y: auto;
}
.dc-dev-picker__item {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    cursor: pointer;
    background: #FFFFFF;
    transition: background 0.15s, border-color 0.15s;
}
.dc-dev-picker__item:hover {
    background: #F5F5F5;
    border-color: #BD3124;
    color: #BD3124;
}

/* ========== G2 ???? ========== */
.dc-g2-root {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
}
.dc-g2-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dc-g2-note {
    font-size: 12px;
    color: #BD3124;
    padding: 6px 4px 2px 4px;
    line-height: 1.5;
}
.dc-g2-password-switch {
    appearance: none;
    position: relative;
    width: 36px;
    height: 20px;
    margin: 0;
    border-radius: 10px;
    background: #777d86;
    cursor: pointer;
}
.dc-g2-password-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
}
.dc-g2-password-switch:checked { background: var(--brand); }
.dc-g2-password-switch:checked::after { left: 19px; }
.dc-g2-password-switch:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.dc-g2-layout-btn {
    height: 28px;
    background: #FFFFFF;
    border: 1px solid #C0C0C0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}
.dc-g2-layout-btn:hover {
    border-color: #BD3124;
    color: #BD3124;
}
.dc-g2-panel {
    width: 860px;
    height: 400px;
}
.dc-g2-btn--ac {
    background: #FFE8E4 !important;
    color: #BD3124 !important;
    font-weight: 700;
    cursor: help !important;
}
.dc-g2-acgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 4px;
}
.dc-g2-dimlist {
    margin-top: 6px;
    border: 1px solid #F0F0F0;
    border-radius: 3px;
    overflow: hidden;
}
.dc-g2-dimlist__row {
    display: flex;
    height: 28px;
}
.dc-g2-dimlist__row--head {
    background: #CECECE;
    font-weight: 700;
    font-size: 12px;
}
.dc-g2-dimlist__col {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #F0F0F0;
    font-size: 12px;
    box-sizing: border-box;
    padding: 0 6px;
    min-width: 0;
}
.dc-g2-dimlist__input {
    width: 100%;
    height: 22px;
    padding: 0 6px;
    font-size: 12px;
    text-align: center;
}
.dc-g2-dimlist__scheme {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333333;
}
.dc-g2-dimlist__row:hover .dc-g2-dimlist__scheme { color: #BD3124; }
.dc-g2-apply-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.dc-g2-apply-btn {
    background: #BD3124;
    color: #FFFFFF;
    border: none;
    border-radius: 3px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
}
.dc-g2-apply-btn:hover {
    background: #A02619;
}

/* ========== GT5 ?? ========== */
.dc-gt5-root {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.dc-gt5-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.dc-gt5-col1 {
    width: 380px;
    flex: 0 0 380px;
}
.dc-gt5-col:not(.dc-gt5-col1) {
    flex: 1 1 320px;
    max-width: 560px;
}
.dc-gt5-root--two-column .dc-gt5-col:not(.dc-gt5-col1) {
    flex-basis: 520px;
    max-width: 760px;
}

.dc-mt8-config {
    width: 100%;
    min-width: 0;
}
.dc-mt8-config__tabs {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    margin-bottom: 4px;
    border-bottom: 1px solid #D9DEE7;
}
.dc-mt8-config__tab {
    min-width: 120px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: #EEF2F7;
    color: #5E6775;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.dc-mt8-config__tab:hover {
    background: #E4EDF7;
    color: #245F8C;
}
.dc-mt8-config__tab--active {
    position: relative;
    top: 1px;
    border-color: #D9DEE7;
    background: #FFFFFF;
    color: #1769AA;
}
.dc-mt8-config__pane {
    min-width: 0;
}
.dc-mt8-ebus {
    min-width: 0;
    border: 1px solid #D9DEE7;
    border-radius: 4px;
    background: #FFFFFF;
    overflow: hidden;
}
.dc-mt8-ebus__table-wrap {
    height: auto;
    max-height: calc(100vh - 130px);
    overflow: auto;
    scrollbar-gutter: stable;
}
.dc-mt8-ebus__table {
    width: 100%;
    min-width: 1040px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}
.dc-mt8-ebus__table th,
.dc-mt8-ebus__table td {
    box-sizing: border-box;
    padding: 0;
    border-right: 1px solid #DDE2E9;
    border-bottom: 1px solid #DDE2E9;
}
.dc-mt8-ebus__table thead th {
    position: sticky;
    z-index: 3;
    top: 0;
    height: 26px;
    background: #E7E9EC;
    color: #273748;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.dc-mt8-ebus__address-head,
.dc-mt8-ebus__address {
    position: sticky;
    left: 0;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    text-align: center;
    background: #F0F1F3;
    color: #303744;
}
.dc-mt8-ebus__address-head {
    z-index: 5 !important;
}
.dc-mt8-ebus__address {
    z-index: 2;
    height: 32px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.dc-mt8-ebus__bus-head,
.dc-mt8-ebus__cell {
    width: calc((100% - 44px) / 8);
    min-width: 0;
    max-width: none;
}
.dc-mt8-ebus__bus-head--a {
    color: #185CE6 !important;
}
.dc-mt8-ebus__bus-head--b {
    color: #A32121 !important;
}
.dc-mt8-ebus__cell {
    height: 32px;
    padding: 1px 3px !important;
    overflow: hidden;
    color: #303744;
    font-size: 11px;
    line-height: 28px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background: #FFFFFF;
}
.dc-mt8-ebus__cell--empty {
    color: #B3BAC4;
    background: #FBFCFD;
}
.dc-mt8-ebus__cell--configured {
    background: #F5FAFF;
    box-shadow: inset 2px 0 0 #347CAF;
}
.dc-mt8-ebus__device-name {
    display: inline-block;
    max-width: calc(100% - 76px);
    overflow: hidden;
    color: #303744;
    font-size: 11px;
    font-weight: 700;
    line-height: 28px;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}
.dc-mt8-ebus__parameter {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 3px;
    vertical-align: middle;
}
.dc-mt8-ebus__parameter .dc-spin {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 54px !important;
    height: 24px;
    min-height: 24px;
    padding: 0 2px;
    font-size: 11px;
    line-height: 22px;
}
.dc-mt8-ebus__unit {
    min-width: 10px;
    color: #596573;
    font-size: 10px;
    font-weight: 600;
    line-height: 28px;
}
.dc-gt5-hint {
    font-size: 12px;
    color: #4097E5;
    font-weight: 700;
    padding: 4px 4px 0 4px;
}
.dc-gt5-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #BD3124;
    padding-top: 6px;
}
.dc-gt5-divider {
    width: 100%;
    height: 1px;
    background: #C0C0C0;
    margin: 6px 0;
}
.dc-gt5-grid2 {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
    padding: 4px;
}
.dc-gt5-grid2__label {
    font-size: 12px;
    font-weight: 700;
    color: #333333;
    line-height: 1.4;
}

.dc-gt5-ac {
    max-width: 760px;
}
.dc-gt5-ac__row {
    display: grid;
    grid-template-columns: 170px minmax(280px, 1fr);
    align-items: start;
    column-gap: 12px;
    margin-bottom: 8px;
}
.dc-gt5-ac__label {
    min-height: 30px;
    display: flex;
    align-items: center;
    color: #303133;
    font-size: 13px;
}
.dc-gt5-ac__ctrl {
    min-width: 0;
}
.dc-gt5-ac__select {
    width: 200px;
    max-width: 100%;
}
.dc-gt5-ac__valve-select {
    width: 280px;
    max-width: 100%;
}
.dc-gt5-ac .dc-multi {
    max-width: 100%;
}
.dc-gt5-ac .dc-multi__head {
    min-height: 34px;
    align-items: flex-start;
    padding-top: 5px;
    padding-bottom: 5px;
}
.dc-gt5-ac__relay-table {
    margin: 4px 0 8px;
}
.dc-gt5-ac .dc-gt5-divider {
    margin: 12px 0 10px;
}
.dc-gt5-ac .dc-gt5-subtitle {
    margin-bottom: 8px;
}

/* humanSensing / joint ?? */
.dc-gt5-edge {
    margin-top: 4px;
    border: 1px solid #F0F0F0;
    border-radius: 3px;
    overflow: hidden;
}
.dc-gt5-edge__row {
    display: flex;
    height: 30px;
}
.dc-gt5-edge__row--head {
    background: #CECECE;
    font-weight: 700;
    font-size: 12px;
}
.dc-gt5-edge__c1, .dc-gt5-edge__c2 {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #F0F0F0;
    font-size: 12px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.dc-gt5-edge__c1 { flex: 0 0 34%; font-weight: 700; }
.dc-gt5-edge__c2 { flex: 1 1 33%; }
.dc-gt5-edge__c1--disabled { background: #EDEDED; color: #999999; }
.dc-gt5-edge__btn {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* 20 ??? powerLimit ?? */
.dc-gt5-pwr {
    border: 1px solid #F0F0F0;
    border-radius: 3px;
    overflow: hidden;
}
.dc-gt5-pwr__row {
    display: flex;
    height: 26px;
}
.dc-gt5-pwr__row--head {
    background: #CECECE;
    font-weight: 700;
    font-size: 12px;
}
.dc-gt5-pwr__col-name, .dc-gt5-pwr__col-val {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #F0F0F0;
    font-size: 12px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 700;
}
.dc-gt5-pwr__col-name { flex: 0 0 70%; }
.dc-gt5-pwr__col-val  { flex: 1 1 30%; padding: 0; }
.dc-gt5-pwr__col-name--disabled,
.dc-gt5-pwr__col-val--disabled {
    background: #EDEDED;
    color: #999999;
}

.dc-gt5-area {
    max-width: 760px;
}
.dc-gt5-area__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dc-gt5-area__row {
    display: grid;
    grid-template-columns: 170px minmax(280px, 1fr);
    align-items: start;
    column-gap: 12px;
}
.dc-gt5-area__label {
    min-height: 30px;
    display: flex;
    align-items: center;
    color: #303133;
    font-size: 13px;
}
.dc-gt5-area__ctrl {
    min-width: 0;
}
.dc-gt5-area__control {
    width: 420px;
    max-width: 100%;
}
.dc-gt5-area .dc-multi {
    max-width: 100%;
}
.dc-gt5-area .dc-multi__head {
    min-height: 34px;
    align-items: flex-start;
    padding-top: 5px;
    padding-bottom: 5px;
}
.dc-gt5-area .dc-multi__tags {
    padding-right: 4px;
}
.dc-gt5-area__subtitle {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #303133;
}

/* ?????? 3 ??? */
.dc-gt5-strategy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 4px 2px;
}
.dc-gt5-strategy__chk {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}
.dc-gt5-label-inline {
    font-size: 12px;
    font-weight: 700;
    color: #333333;
    white-space: nowrap;
}
.dc-gt5-red { color: #BD3124; }
.dc-gt5-area-strategy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #E4E7ED;
    border-radius: 6px;
    background: #FAFCFF;
}
.dc-gt5-area-strategy__main,
.dc-gt5-area-strategy__devices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}
.dc-gt5-area-strategy__main .dc-spin {
    width: 72px;
}
.dc-gt5-area-strategy__startup {
    width: 82px;
    min-width: 82px;
}
.dc-gt5-area-strategy__devices {
    padding-left: 23px;
}
.dc-gt5-area-strategy__devices .dc-multi {
    flex: 0 1 360px;
}

@media (max-width: 900px) {
    .dc-gt5-ac {
        max-width: none;
    }
    .dc-gt5-ac__row {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    .dc-gt5-ac__select,
    .dc-gt5-ac__valve-select {
        width: 100%;
    }
    .dc-gt5-area {
        max-width: none;
    }
    .dc-gt5-area__row {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    .dc-gt5-area__control {
        width: 100%;
    }
    .dc-gt5-area-strategy__devices {
        padding-left: 0;
    }
    .dc-gt5-area-strategy__devices .dc-multi {
        flex-basis: 100%;
    }
}

/* ==================== 引用追踪独立窗口 ==================== */
/* 面板承载在 window.open 弹出的子窗口里（body.ref-trace-win），铺满整个窗口 */
.ref-trace-win {
    margin: 0;
    height: 100vh;
    overflow: hidden;
}
.ref-trace-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background: var(--content-bg);
    overflow: hidden;
}

/* ---- 顶部工具栏：标题 + 胶囊页签 + 刷新 ---- */
.ref-trace-panel__toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    flex: 0 0 auto;
}
.ref-trace-panel__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ref-trace-panel__brand-bar {
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--brand), var(--nav-active));
}
.ref-trace-panel__brand-text {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}
/* 独立窗口内帮助图标常显（JS 侧调用 Help.setVisible(true)），
   不需要右上角「问号总开关」，隐藏 help.js 兜底创建的悬浮按钮 */
.ref-trace-win .help-master-toggle { display: none !important; }
.ref-trace-panel__seg {
    display: flex;
    padding: 3px;
    background: #EEF1F6;
    border-radius: 999px;
    gap: 2px;
}
.ref-trace-panel__type-btn {
    border: none;
    background: transparent;
    color: var(--text-regular);
    font-size: var(--font-size-sm);
    padding: 5px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}
.ref-trace-panel__type-btn:hover { color: var(--brand); }
.ref-trace-panel__type-btn--active {
    background: var(--card-bg);
    color: var(--brand);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.ref-trace-panel__refresh {
    margin-left: auto;
    border-radius: 999px;
    padding: 5px 18px;
}

/* ---- 左侧：搜索框 + 候选列表 ---- */
.ref-trace-panel__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}
.ref-trace-panel__side {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--card-bg);
    border-right: 1px solid var(--border-light);
}
.ref-trace-panel__search {
    flex: 0 0 auto;
    margin: 10px 10px 6px 10px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #F0F2F5;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    outline: none;
    transition: all 0.15s;
}
.ref-trace-panel__search::placeholder { color: var(--text-placeholder); }
.ref-trace-panel__search:focus {
    background: var(--card-bg);
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(64,158,255,0.15);
}
.ref-trace-panel__list {
    flex: 1 1 auto;
    overflow: auto;
    padding: 2px 0 8px 0;
}
.ref-trace-panel__item {
    margin: 1px 8px;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-regular);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.1s;
}
.ref-trace-panel__item:hover {
    background: #F0F5FF;
    color: var(--brand);
}
.ref-trace-panel__item--active,
.ref-trace-panel__item--active:hover {
    background: var(--brand);
    color: #FFF;
    font-weight: 600;
}

/* ---- 右侧：统计行 + 结果卡片表格 ---- */
.ref-trace-panel__result {
    flex: 1 1 auto;
    overflow: auto;
    padding: 12px 16px;
}
.ref-trace-panel__summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}
.ref-trace-panel__summary-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}
.ref-trace-panel__summary-count {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}
.ref-trace-panel__table {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.ref-trace-panel__row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
    transition: background 0.1s;
}
.ref-trace-panel__row:last-child { border-bottom: none; }
.ref-trace-panel__row:not(.ref-trace-panel__row--head):hover { background: #F5F9FF; }
.ref-trace-panel__row--head {
    font-weight: 600;
    color: var(--text-regular);
    background: #F5F7FA;
    position: sticky;
    top: 0;
    z-index: 1;
}
.ref-trace-panel__cell { padding: 9px 10px; }
.ref-trace-panel__cell--num  { flex: 0 0 56px; text-align: center; color: var(--text-secondary); }
.ref-trace-panel__cell--type { flex: 0 0 110px; }
.ref-trace-panel__cell--path { flex: 1 1 auto; word-break: break-all; line-height: 1.7; }

/* 类型彩色标签 */
.rt-tag {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: var(--font-size-sm);
    line-height: 18px;
    white-space: nowrap;
}
.rt-tag--blue   { color: #409EFF; background: rgba(64,158,255,0.12); }
.rt-tag--orange { color: #E6A23C; background: rgba(230,162,60,0.14); }
.rt-tag--green  { color: #67C23A; background: rgba(103,194,58,0.14); }
.rt-tag--purple { color: #9C6ADE; background: rgba(156,106,222,0.13); }
.rt-tag--teal   { color: #17A2B8; background: rgba(23,162,184,0.12); }

/* 引用位置面包屑 */
.rt-crumb {
    color: var(--text-regular);
}
.rt-crumb--last {
    color: var(--text-primary);
    font-weight: 600;
}
.rt-crumb-sep {
    margin: 0 6px;
    color: var(--text-placeholder);
}

/* 空状态（右侧居中提示） */
.ref-trace-panel__empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 72px 24px;
    color: var(--text-secondary);
}
.ref-trace-panel__empty-icon {
    font-size: 40px;
    color: var(--text-placeholder);
    line-height: 1;
}
.ref-trace-panel__empty-text { font-size: var(--font-size-md); }

/* 左侧列表内的空提示 */
.ref-trace-panel__empty { padding: 16px 14px; }
