:root {
    --xhs-bg: #f4f5f7;
    --xhs-surface: #ffffff;
    --xhs-border: #dfe2e7;
    --xhs-text: #25272b;
    --xhs-muted: #747981;
    --xhs-accent: #c93f46;
    --xhs-accent-hover: #b3343b;
    --xhs-success: #23845c;
    --xhs-warning: #a66b17;
    --xhs-header: #202226;
    --el-color-primary: #c93f46;
    --el-color-primary-light-3: #d97075;
    --el-color-primary-light-5: #e49a9e;
    --el-color-primary-light-7: #efc4c6;
    --el-color-primary-light-8: #f4d8da;
    --el-color-primary-light-9: #faeeee;
    --el-color-primary-dark-2: #a83339;
    --el-border-radius-base: 5px;
    --el-border-radius-small: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 1180px; min-height: 100%; }
body {
    background: var(--xhs-bg);
    color: var(--xhs-text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}
[v-cloak] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.lucide { width: 16px; height: 16px; vertical-align: -3px; }
.spin { animation: xhs-spin .9s linear infinite; }
@keyframes xhs-spin { to { transform: rotate(360deg); } }

.app-header {
    height: 58px;
    background: var(--xhs-header);
    border-bottom: 1px solid #101114;
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-brand {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-right: 36px;
    white-space: nowrap;
}
.app-nav { display: flex; height: 100%; align-items: stretch; gap: 2px; min-width: 0; }
.app-nav-link,
.app-nav-summary {
    color: #c9ccd1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    padding: 0 15px;
    border-bottom: 2px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.app-nav-link:hover,
.app-nav-summary:hover { color: #fff; background: #292c31; }
.app-nav-link.is-active,
.app-nav-group.is-active > .app-nav-summary { color: #fff; border-bottom-color: #e05a61; background: #292c31; }
.app-nav-group { position: relative; height: 100%; }
.app-nav-summary { list-style: none; cursor: pointer; user-select: none; }
.app-nav-summary::-webkit-details-marker { display: none; }
.app-nav-summary .lucide { width: 14px; height: 14px; margin: 0; transition: transform .15s; }
.app-nav-group[open] > .app-nav-summary { color: #fff; background: #292c31; }
.app-nav-group[open] > .app-nav-summary .lucide { transform: rotate(180deg); }
.app-nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    z-index: 110;
    width: 206px;
    padding: 6px;
    border: 1px solid #3b3e44;
    background: #25282d;
    box-shadow: 0 10px 24px rgba(12, 14, 17, .24);
}
.app-nav-menu a {
    min-height: 38px;
    padding: 9px 12px;
    color: #c9ccd1;
    display: flex;
    align-items: center;
    border-radius: 3px;
    line-height: 20px;
}
.app-nav-menu a:hover { color: #fff; background: #30343a; }
.app-nav-menu a.is-active { color: #fff; background: #383c43; box-shadow: inset 2px 0 #e05a61; }
.app-header-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; padding-left: 16px; }
.app-header-actions form { display: flex; margin: 0; }
.app-header-icon { width: 32px; height: 32px; padding: 0; border: 1px solid #3b3e44; border-radius: 4px; background: #292c31; color: #c9ccd1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.app-header-icon:hover, .app-header-icon.is-active { color: #fff; border-color: #666b74; background: #34373d; }
.app-header-icon .lucide { width: 16px; height: 16px; margin: 0; vertical-align: 0; }
.app-main { padding: 22px 28px 40px; }

.auth-body { min-height: 100vh; background: #eef0f3; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-panel { width: 420px; padding: 30px 32px 32px; border: 1px solid #d8dce2; border-radius: 6px; background: #fff; box-shadow: 0 12px 32px rgba(31, 35, 41, .08); }
.auth-panel-header { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 26px; }
.auth-product-mark { width: 48px; height: 48px; border-radius: 6px; background: #c93f46; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 750; }
.auth-panel-header h1 { margin: 0; font-size: 21px; line-height: 28px; }
.auth-panel-header p { margin: 3px 0 0; color: var(--xhs-muted); font-size: 13px; }
.auth-alert { margin-bottom: 18px; padding: 10px 12px; border: 1px solid #e9c8cb; border-left: 4px solid #c93f46; background: #fff6f6; color: #8d3035; line-height: 1.55; }
.auth-local-login { margin: 0; }
.auth-local-login-button { width: 100%; height: 42px; border: 1px solid #3e6f62; border-radius: 5px; background: #edf6f2; color: #245c4d; font-weight: 650; cursor: pointer; }
.auth-local-login-button:hover { border-color: #245c4d; background: #e2f0ea; }
.auth-local-login-button:disabled { border-color: #c9ccd1; background: #eef0f3; color: #8a9099; cursor: wait; }
.auth-method-divider { display: flex; align-items: center; gap: 10px; margin: 19px 0; color: #8a9099; font-size: 12px; }
.auth-method-divider::before, .auth-method-divider::after { content: ''; height: 1px; flex: 1; background: #dfe2e7; }
.auth-method-divider span { white-space: nowrap; }
.auth-challenge-meta { margin-bottom: 18px; padding: 11px 12px; border: 1px solid var(--xhs-border); background: #f7f8fa; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; }
.auth-challenge-meta span { color: var(--xhs-muted); font-size: 12px; }
.auth-challenge-meta strong { overflow: hidden; color: #40444b; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-overflow: ellipsis; }
.auth-form { display: grid; gap: 11px; }
.auth-form label { font-size: 13px; font-weight: 650; }
.auth-form input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #cfd3d9; border-radius: 5px; background: #fff; color: var(--xhs-text); font-size: 14px; letter-spacing: 0; outline: 0; }
.auth-form input[data-otp-input] { font-size: 18px; letter-spacing: 6px; }
.auth-form input[readonly] { background: #f5f6f8; color: #60646c; }
.auth-form input:focus { border-color: var(--xhs-accent); box-shadow: 0 0 0 2px rgba(201, 63, 70, .12); }
.auth-primary-button { width: 100%; height: 42px; margin-top: 3px; border: 1px solid var(--xhs-accent); border-radius: 5px; background: var(--xhs-accent); color: #fff; font-weight: 650; cursor: pointer; }
.auth-primary-button:hover { background: var(--xhs-accent-hover); }
.auth-primary-button:disabled { border-color: #c9ccd1; background: #c9ccd1; cursor: wait; }
.auth-secondary-action { margin-top: 13px; text-align: center; }
.auth-secondary-action button { border: 0; background: transparent; color: #626873; cursor: pointer; }
.auth-secondary-action button:hover { color: var(--xhs-accent); }
.auth-secondary-action button:disabled { color: #a7abb2; cursor: wait; }
.login-audit-toolbar { flex-wrap: nowrap; }
.login-audit-date-filters { grid-template-columns: repeat(2, 220px); margin-bottom: 14px; }
.audit-used-code { padding: 3px 6px; border: 1px solid #b7ddcc; border-radius: 4px; background: #eef8f3; color: #176b49; font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1px; }

.page-shell { max-width: 1680px; margin: 0 auto; }
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.page-heading { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 700; }
.page-subtitle { color: var(--xhs-muted); margin: 5px 0 0; line-height: 1.55; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.header-activity-status { display: flex; align-items: center; gap: 7px; padding-right: 2px; color: var(--xhs-accent); font-weight: 600; white-space: nowrap; }
.batch-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, max-content);
    gap: 24px;
}
.batch-page-header-main {
    min-width: 0;
}
.batch-page-header-main .page-subtitle {
    overflow-wrap: anywhere;
}
.batch-page-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    white-space: nowrap;
}

.panel {
    background: var(--xhs-surface);
    border: 1px solid var(--xhs-border);
    border-radius: 6px;
}
.panel-header {
    min-height: 48px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--xhs-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 650;
}
.panel-body { padding: 16px; }
.writing-form-section { margin-bottom: 14px; }
.writing-index-actions .el-button { width: 144px; height: 36px; margin: 0; padding: 0 16px; justify-content: center; }
.writing-settings-grid { display: grid; grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(180px, .7fr)); gap: 16px; }
.writing-settings-grid .el-form-item { margin-bottom: 0; }
.writing-source-panel { padding-top: 6px; }
.writing-source-tabs > .el-tabs__header { margin-bottom: 18px; }
.writing-source-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.writing-source-actions { display: flex; align-items: center; gap: 8px; }
.writing-source-actions .el-button { margin: 0; }
.writing-selected-notes { max-height: 336px; margin-top: 14px; overflow: auto; border-top: 1px solid var(--xhs-border); }
.writing-selected-note { min-height: 72px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--xhs-border); }
.writing-selected-note-cover { width: 48px; height: 56px; display: flex; align-items: center; justify-content: center; object-fit: cover; background: #f1f2f4; color: var(--xhs-muted); }
.writing-selected-note-cover.is-empty .lucide { width: 18px; height: 18px; }
.writing-selected-note-main { min-width: 0; }
.writing-selected-note-main strong, .writing-selected-note-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.writing-selected-note-main span { margin-top: 6px; color: var(--xhs-muted); font-size: 12px; }
.writing-selected-note-content { line-height: 18px; }
.writing-selected-note-remove { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--xhs-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.writing-selected-note-remove:hover { background: #f0f1f3; color: var(--xhs-text); }
.writing-selected-note-remove:focus-visible { outline: 2px solid var(--xhs-accent); outline-offset: 2px; }
.writing-selected-note-remove .lucide { width: 16px; height: 16px; margin: 0; }
.writing-note-picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.writing-note-picker-search { width: 390px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.writing-note-picker-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.writing-note-picker-toolbar .el-button { margin: 0; }
.writing-note-picker-toolbar-actions .muted { margin-right: 6px; }
.writing-source-note-cover { width: 64px; height: 80px; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; background: #f1f2f4; color: var(--xhs-muted); vertical-align: middle; }
.writing-source-note-cover.is-empty .lucide { width: 20px; height: 20px; }
.writing-note-picker-content { min-width: 0; display: grid; grid-template-rows: repeat(3, 20px); align-content: center; gap: 4px; padding: 7px 0; }
.writing-note-picker-title, .writing-note-picker-author, .writing-note-picker-excerpt { min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 20px; }
.writing-note-picker-title { font-size: 14px; }
.writing-note-picker-author { color: var(--xhs-muted); font-size: 12px; }
.writing-note-picker-excerpt { width: 100%; color: #4f555e; cursor: help; }
.writing-note-full-content { max-height: 360px; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--xhs-text); font: inherit; line-height: 1.7; }
.writing-note-picker-pagination { min-height: 48px; display: flex; align-items: flex-end; justify-content: flex-end; }
.writing-material-options { display: flex; flex-wrap: wrap; gap: 10px; }
.writing-material-options .el-checkbox { margin: 0; max-width: 280px; }
.writing-submit-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 14px 0; background: rgba(247, 248, 250, .96); }
.writing-prompt-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prompt-token-row { min-height: 34px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.prompt-token-row .el-tag { cursor: pointer; }
.writing-progress-panel { margin-bottom: 14px; }
.writing-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.writing-progress-summary { display: flex; align-items: center; gap: 16px; }
.writing-progress-summary > div { display: flex; align-items: baseline; gap: 10px; }
.writing-progress-summary strong { font-size: 26px; }
.writing-context-actions, .writing-output-actions { display: flex; align-items: center; gap: 8px; }
.writing-context-actions .el-button, .writing-output-actions .el-button { margin: 0; }
.writing-stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.writing-stage-grid > div { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.writing-stage-grid .el-progress { grid-column: 1 / -1; }
.writing-output-list { display: grid; gap: 14px; }
.writing-output-header { align-items: center; gap: 18px; }
.writing-output-title { display: flex; align-items: baseline; gap: 12px; }
.writing-output-title small { color: var(--xhs-muted); font-weight: 400; }
.writing-output-item h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: 0; }
.writing-output-content { white-space: pre-wrap; line-height: 1.8; }
.writing-hashtags, .writing-image-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.writing-image-links .el-button { margin: 0; }
.writing-image-section { margin: 0 0 22px; }
.writing-image-viewer { position: relative; width: min(100%, 520px); aspect-ratio: 3 / 4; margin: 0 auto; overflow: hidden; background: #f3f5f6; border: 1px solid var(--xhs-border); }
.writing-image-viewer img { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
.writing-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--xhs-muted); text-align: center; padding: 32px; }
.writing-image-placeholder svg { width: 38px; height: 38px; }
.writing-image-placeholder span { max-width: 360px; line-height: 1.6; }
.writing-image-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }
.writing-image-arrow.is-left { left: 14px; }
.writing-image-arrow.is-right { right: 14px; }
.writing-image-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; min-width: 48px; padding: 5px 9px; color: #fff; background: rgba(17, 24, 39, .72); border-radius: 4px; text-align: center; font-size: 12px; }
.writing-image-dots { display: flex; align-items: center; justify-content: center; gap: 8px; height: 26px; }
.writing-image-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c5cbd1; cursor: pointer; }
.writing-image-dots button.active { width: 20px; border-radius: 4px; background: var(--xhs-accent); }
.writing-drawer-overlay { position: fixed; inset: 0; z-index: 2200; display: flex; justify-content: flex-end; background: rgba(17, 24, 39, .44); }
.writing-drawer { width: 720px; height: 100%; overflow: auto; background: var(--xhs-surface); box-shadow: -8px 0 24px rgba(0, 0, 0, .16); }
.writing-drawer.is-wide { width: 820px; }
.writing-drawer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 24px; background: var(--xhs-surface); border-bottom: 1px solid var(--xhs-border); }
.writing-drawer-header h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.writing-drawer-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--xhs-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.writing-drawer-close:hover { background: #f0f1f3; color: var(--xhs-text); }
.writing-drawer-close:focus-visible { outline: 2px solid var(--xhs-accent); outline-offset: 2px; }
.writing-drawer-close .lucide { width: 18px; height: 18px; margin: 0; vertical-align: 0; }
.writing-drawer-content { padding: 22px 24px 32px; }
.writing-snapshot-section { padding: 4px 0 22px; }
.writing-snapshot-section + .writing-snapshot-section { padding-top: 22px; border-top: 1px solid var(--xhs-border); }
.writing-snapshot-section h3 { margin: 0 0 12px; font-size: 16px; letter-spacing: 0; }
.writing-snapshot-body { margin-left: 18px; }
.writing-snapshot-body > .muted { margin: 0; }
.writing-snapshot-list details { border-top: 1px solid var(--xhs-border); }
.writing-snapshot-list details:last-child { border-bottom: 1px solid var(--xhs-border); }
.writing-snapshot-list summary { padding: 12px 4px; cursor: pointer; font-weight: 600; }
.writing-snapshot-list pre, .writing-snapshot-text, .writing-prompt-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.75; }
.writing-snapshot-list pre { padding: 2px 24px 16px; color: #35404a; }
.writing-snapshot-text, .writing-prompt-text { padding: 14px; background: #f6f7f8; border: 1px solid var(--xhs-border); border-radius: 4px; }
.writing-prompt-accordion { border-top: 0; }
.writing-prompt-accordion .el-collapse-item__header { min-height: 58px; height: auto; padding: 10px 4px; line-height: 1.4; }
.writing-prompt-collapse-title { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.writing-prompt-collapse-title strong { flex: 0 0 auto; font-size: 15px; }
.writing-prompt-collapse-title span { min-width: 0; color: var(--xhs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.writing-prompt-panel { padding: 2px 4px 20px; }
.writing-prompt-tabs .el-tabs__header { margin-bottom: 16px; }
.writing-prompt-record-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.writing-prompt-record-header > div > strong, .writing-prompt-record-header > div > span { display: block; }
.writing-prompt-record-header > div > span { margin-top: 4px; color: var(--xhs-muted); font-size: 12px; }
.writing-prompt-hash { display: block; margin: 10px 0; color: var(--xhs-muted); font-size: 12px; overflow-wrap: anywhere; }
.writing-prompt-text.is-scrollable { max-height: 420px; overflow: auto; }
.writing-prompt-image-switch { margin-bottom: 16px; }
.writing-edit-form { margin-top: 18px; }
.writing-edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.writing-edit-actions .el-button { margin: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.muted { color: var(--xhs-muted); }
.error-text { color: var(--el-color-danger); margin: 10px 0 0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
}
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 2px 0 10px; }
.dashboard-section-heading h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.dashboard-section-heading p { margin: 3px 0 0; color: var(--xhs-muted); font-size: 12px; }
.dashboard-stat-card {
    min-height: 148px;
    padding: 17px 18px 16px;
    border: 1px solid var(--xhs-border);
    border-radius: 6px;
    background: var(--xhs-surface);
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dashboard-stat-card:hover { border-color: #c8ccd2; box-shadow: 0 7px 18px rgba(31, 35, 41, .07); transform: translateY(-1px); }
.dashboard-stat-head { display: flex; align-items: center; gap: 10px; }
.dashboard-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.dashboard-stat-icon .lucide { width: 19px; height: 19px; vertical-align: 0; }
.dashboard-stat-label { color: #4f545c; font-weight: 650; }
.dashboard-stat-value { margin-top: 15px; font-size: 30px; line-height: 1; font-weight: 750; }
.dashboard-stat-meta { margin-top: auto; padding-top: 10px; color: var(--xhs-muted); font-size: 12px; line-height: 1.4; }
.dashboard-stat-card.is-rose .dashboard-stat-icon { color: #b7353d; background: #faeeee; }
.dashboard-stat-card.is-blue .dashboard-stat-icon { color: #2e67a3; background: #edf4fb; }
.dashboard-stat-card.is-green .dashboard-stat-icon { color: #237557; background: #eaf6f0; }
.dashboard-stat-card.is-amber .dashboard-stat-icon { color: #956016; background: #fbf3e5; }
.dashboard-stat-card.is-slate .dashboard-stat-icon { color: #555e6c; background: #eef0f3; }

.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, 1fr); gap: 14px; margin-top: 18px; }
.panel-header-link { color: var(--xhs-accent); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.panel-header-link .lucide { width: 14px; height: 14px; vertical-align: 0; }
.dashboard-shortcut-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-shortcut {
    min-height: 86px;
    padding: 15px 16px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--xhs-border);
    transition: background .15s;
}
.dashboard-shortcut:nth-child(odd) { border-right: 1px solid var(--xhs-border); }
.dashboard-shortcut:nth-last-child(-n + 2) { border-bottom: 0; }
.dashboard-shortcut:hover { background: #fafbfc; }
.dashboard-shortcut-icon { width: 36px; height: 36px; border-radius: 5px; background: #f2f3f5; color: #515760; display: inline-flex; align-items: center; justify-content: center; }
.dashboard-shortcut-icon .lucide { width: 18px; height: 18px; vertical-align: 0; }
.dashboard-shortcut-copy { min-width: 0; display: grid; gap: 4px; }
.dashboard-shortcut-copy strong { color: #303238; font-size: 14px; }
.dashboard-shortcut-copy span { color: var(--xhs-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shortcut-arrow { width: 16px; height: 16px; color: #a3a8b0; vertical-align: 0; }
.dashboard-shortcut:hover .dashboard-shortcut-arrow { color: var(--xhs-accent); }
.dashboard-runtime-list { padding: 4px 16px; }
.dashboard-runtime-row { min-height: 70px; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 11px; align-items: center; border-bottom: 1px solid var(--xhs-border); }
.dashboard-runtime-row:last-child { border-bottom: 0; }
.dashboard-runtime-row > div { display: grid; gap: 5px; min-width: 0; }
.dashboard-runtime-row strong { font-size: 13px; }
.dashboard-runtime-row span:last-child { color: var(--xhs-muted); font-size: 12px; line-height: 1.45; }
.dashboard-runtime-dot { width: 8px; height: 8px; border-radius: 50%; background: #a7acb3; box-shadow: 0 0 0 3px rgba(167, 172, 179, .14); }
.dashboard-runtime-dot.is-success { background: var(--xhs-success); box-shadow: 0 0 0 3px rgba(35, 132, 92, .13); }
.dashboard-runtime-dot.is-warning { background: var(--xhs-warning); box-shadow: 0 0 0 3px rgba(166, 107, 23, .13); }
.dashboard-runtime-dot.is-info { background: #4676a9; box-shadow: 0 0 0 3px rgba(70, 118, 169, .13); }

.deployment-check-page { max-width: 1560px; }
.deployment-summary {
    min-height: 96px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid var(--xhs-border);
    border-left-width: 4px;
    background: var(--xhs-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.deployment-summary.is-pass { border-left-color: var(--xhs-success); }
.deployment-summary.is-warning { border-left-color: var(--xhs-warning); }
.deployment-summary.is-fail { border-left-color: var(--el-color-danger); }
.deployment-summary-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.deployment-summary-icon { width: 42px; height: 42px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.deployment-summary-icon .lucide { width: 23px; height: 23px; vertical-align: 0; }
.deployment-summary.is-pass .deployment-summary-icon { color: #237557; background: #eaf6f0; }
.deployment-summary.is-warning .deployment-summary-icon { color: #956016; background: #fbf3e5; }
.deployment-summary.is-fail .deployment-summary-icon { color: #b7353d; background: #faeeee; }
.deployment-summary h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.deployment-summary p { margin: 4px 0 0; color: var(--xhs-muted); font-size: 12px; }
.deployment-summary-counts { display: grid; grid-template-columns: repeat(4, 82px); gap: 8px; flex: 0 0 auto; }
.deployment-summary-counts span { min-height: 54px; padding: 8px 10px; border-left: 1px solid var(--xhs-border); color: var(--xhs-muted); font-size: 12px; display: grid; align-content: center; gap: 2px; }
.deployment-summary-counts strong { color: var(--xhs-text); font-size: 20px; line-height: 1; }

.opinion-create-panel { margin-bottom: 14px; }
.opinion-create-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.4fr) 116px; gap: 14px; align-items: end; }
.opinion-create-grid .el-form-item { margin-bottom: 0; }
.opinion-create-button { width: 116px; margin-bottom: 1px; }
.opinion-workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; min-height: 560px; }
.opinion-history { border: 1px solid var(--xhs-border); background: #fff; min-width: 0; }
.opinion-history .section-heading-row { height: 48px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--xhs-border); display: flex; align-items: center; justify-content: space-between; }
.opinion-history .section-heading-row h2 { margin: 0; font-size: 15px; }
.opinion-history-list { min-height: 160px; max-height: calc(100vh - 330px); overflow-y: auto; }
.opinion-history-item { position: relative; width: 100%; min-height: 88px; border-bottom: 1px solid var(--xhs-border); background: #fff; color: var(--xhs-text); }
.opinion-history-item:hover { background: #f7f8fa; }
.opinion-history-item.is-active { background: #eef5ff; box-shadow: inset 3px 0 0 var(--el-color-primary); }
.opinion-history-select { width: 100%; min-height: 87px; padding: 11px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; display: grid; gap: 7px; }
.opinion-history-title { padding-right: 28px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opinion-history-delete { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; }
.opinion-history-delete .lucide { width: 15px; height: 15px; }
.opinion-history-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--xhs-muted); font-size: 11px; }
.opinion-history-count { color: var(--xhs-muted); font-size: 12px; }
.opinion-results { min-width: 0; border: 1px solid var(--xhs-border); background: #fff; padding: 14px; }
.opinion-scan-conditions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--xhs-border); background: #f7f8fa; margin-bottom: 10px; }
.opinion-scan-conditions > div { min-height: 56px; padding: 9px 14px; display: grid; align-content: center; gap: 4px; min-width: 0; }
.opinion-scan-conditions > div + div { border-left: 1px solid var(--xhs-border); }
.opinion-scan-conditions span { color: var(--xhs-muted); font-size: 12px; }
.opinion-scan-conditions strong { font-size: 14px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.opinion-summary { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)) 130px; border: 1px solid var(--xhs-border); margin-bottom: 12px; }
.opinion-summary > div { min-height: 66px; padding: 10px 14px; border-right: 1px solid var(--xhs-border); display: grid; align-content: center; gap: 5px; }
.opinion-summary > div:last-child { border-right: 0; }
.opinion-summary span { color: var(--xhs-muted); font-size: 12px; }
.opinion-summary strong { font-size: 21px; line-height: 1; }
.opinion-summary-status { justify-items: start; }
.opinion-filter-toolbar { margin-top: 14px; flex-wrap: wrap; }
.opinion-filter-toolbar > .el-select { width: 145px; }
.opinion-filter-toolbar > .el-date-editor { width: 150px; }
.opinion-note-cell { display: grid; gap: 5px; min-width: 0; }
.opinion-note-cell > span { color: var(--xhs-muted); font-size: 12px; }
.opinion-note-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.opinion-note-title > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.opinion-keywords { display: flex; flex-wrap: wrap; gap: 4px; }
.opinion-comment-content { line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.opinion-comment-content mark { padding: 0 2px; color: #9f232b; background: #ffe2df; }
.opinion-avatar-placeholder { background: #eceef1; }
.deployment-check-list { border: 1px solid var(--xhs-border); background: var(--xhs-surface); }
.deployment-check-section + .deployment-check-section { border-top: 1px solid var(--xhs-border); }
.deployment-section-heading { min-height: 70px; padding: 14px 16px; background: #fafbfc; display: flex; align-items: center; gap: 11px; }
.deployment-section-icon { width: 34px; height: 34px; border-radius: 5px; background: #eef0f3; color: #555e6c; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.deployment-section-icon .lucide { width: 18px; height: 18px; vertical-align: 0; }
.deployment-section-heading h2 { margin: 0; font-size: 15px; line-height: 1.4; }
.deployment-section-heading p { margin: 3px 0 0; color: var(--xhs-muted); font-size: 12px; line-height: 1.45; }
.deployment-check-table { width: 100%; }
.deployment-check-row { min-height: 50px; display: grid; grid-template-columns: minmax(180px, 1.05fr) 94px minmax(170px, 1fr) minmax(180px, 1fr) minmax(260px, 1.55fr); align-items: center; gap: 14px; padding: 9px 16px; border-top: 1px solid #eceef1; }
.deployment-check-row.is-header { min-height: 36px; padding-top: 7px; padding-bottom: 7px; background: #f6f7f8; color: var(--xhs-muted); font-size: 12px; font-weight: 600; }
.deployment-check-row > * { min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.deployment-check-row > strong { font-size: 13px; font-weight: 650; }
.deployment-status { width: 78px; min-height: 25px; padding: 3px 7px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.deployment-status .lucide { width: 13px; height: 13px; vertical-align: 0; }
.deployment-status.is-pass { color: #237557; background: #edf7f2; border-color: #cce7da; }
.deployment-status.is-warning { color: #8b5a16; background: #fcf5e9; border-color: #ead6b4; }
.deployment-status.is-fail { color: #ad343b; background: #faeeee; border-color: #edc8ca; }
.deployment-status.is-info { color: #45698f; background: #edf3f9; border-color: #cfdfed; }
.deployment-current-value { color: #34373c; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; }
.deployment-expected-value { color: #555b64; font-size: 12px; }
.deployment-action { color: var(--xhs-muted); font-size: 12px; }
.deployment-manual-note { margin-top: 14px; padding: 13px 15px; border: 1px solid #d7e1eb; border-left: 4px solid #547a9f; background: #f4f8fb; display: flex; align-items: flex-start; gap: 10px; }
.deployment-manual-note > .lucide { width: 18px; height: 18px; margin-top: 1px; color: #547a9f; flex: 0 0 auto; vertical-align: 0; }
.deployment-manual-note > div { display: grid; gap: 4px; }
.deployment-manual-note strong { font-size: 13px; }
.deployment-manual-note span { color: #66717d; font-size: 12px; line-height: 1.55; }

.pagination-row { display: flex; justify-content: flex-end; padding-top: 14px; }
.batch-pagination-row { min-height: 32px; align-items: center; gap: 12px; }
.pagination-loading { display: inline-flex; align-items: center; gap: 5px; color: var(--xhs-muted); font-size: 12px; white-space: nowrap; }
.pagination-loading .lucide { width: 14px; height: 14px; }
.compact-form { max-width: 980px; }
.form-actions { padding-left: 120px; margin-top: 22px; }
.batch-parameter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-parameter-row .el-input-number { width: 156px; }
.advanced-filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: -2px 0 14px; }
.advanced-filter-grid .el-input-number,
.advanced-filter-grid .el-select,
.advanced-filter-grid .el-date-editor { width: 100%; }
.form-help { color: var(--xhs-muted); font-size: 12px; line-height: 1.5; }

.avatar-xs { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar-md { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cover-sm { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; display: block; background: #eceef1; }
.author-inline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.note-cell-main { min-width: 0; }
.note-cell-title { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 8px; }
.note-cell-title a { flex: 0 1 auto; font-weight: 600; color: #303238; min-width: 0; }
.note-cell-title a:hover { color: var(--xhs-accent); }
.note-cell-title .el-tag { flex: 0 0 auto; }
.batch-cover-column .cell { padding-left: 7px; padding-right: 7px; }
.stage-stack { display: grid; gap: 6px; }
.stage-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.progress-overview { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 12px; margin: 12px 0 14px; }
.progress-summary { border: 1px solid var(--xhs-border); border-radius: 6px; padding: 15px 18px; background: #fafbfc; display: flex; flex-direction: column; justify-content: center; }
.progress-summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.progress-number { font-size: 28px; font-weight: 750; }
.progress-caption { color: var(--xhs-muted); margin: 1px 0 9px; }
.progress-summary-metrics { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--xhs-border); }
.progress-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.progress-summary-row span { color: var(--xhs-muted); }
.progress-summary-row strong { font-size: 17px; }
.progress-current-stage { display: grid; gap: 3px; margin-top: 12px; padding: 9px 11px; border-radius: 4px; background: #eef3f4; }
.progress-current-stage span { color: var(--xhs-muted); font-size: 12px; }
.progress-current-stage strong { color: #385d63; font-size: 13px; }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stage-panel { min-height: 132px; border: 1px solid var(--xhs-border); border-radius: 6px; padding: 11px 12px; background: #fff; display: flex; flex-direction: column; justify-content: center; }
.stage-panel.is-complete { background: #fbfdfc; }
.stage-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.stage-title strong { font-size: 14px; }
.stage-title .muted { flex: 0 0 auto; font-size: 12px; }
.stage-panel.is-complete .stage-title .muted { color: #2f7d6d; }
.stage-status-tooltip-trigger { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.stage-status-tooltip-trigger:focus-visible { outline: 2px solid #4676a9; outline-offset: 3px; border-radius: 2px; }
.stage-status-popper { max-width: 360px; line-height: 1.7; }
.stage-progress { margin-bottom: 9px; }
.stage-panel.is-complete .stage-metrics { margin-top: 8px; }
.stage-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stage-metric { background: #f6f7f8; padding: 5px 4px; border-radius: 4px; text-align: center; }
.stage-metric strong { display: block; font-size: 17px; }
.stage-metric span { color: var(--xhs-muted); font-size: 12px; }
.stage-metric-link { display: block; color: inherit; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px #d8dee5; transition: background-color .15s ease, box-shadow .15s ease; }
.stage-metric-link strong,
.stage-metric-link span { color: inherit; }
.stage-metric-link:hover { background: #eef4fa; box-shadow: inset 0 0 0 1px #8da9c4; }
.stage-metric-link:focus-visible { outline: 2px solid #4676a9; outline-offset: 2px; }
.stage-metric-link.is-failed { box-shadow: inset 0 0 0 1px #ead9b5; }
.stage-metric-link.is-failed strong,
.stage-metric-link.is-failed span { color: #9a681d; }
.stage-metric-link.is-failed:hover { background: #fff8e8; box-shadow: inset 0 0 0 1px #cf9a3d; }
.stage-footnote { margin-top: 7px; color: var(--xhs-muted); font-size: 12px; text-align: right; }

.note-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr); gap: 18px; align-items: start; }
.note-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.note-title-block { min-width: 0; flex: 1; }
.note-title { font-size: 24px; line-height: 1.45; margin: 0; }
.note-title-tags { display: flex; align-items: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.note-title-tag-group { display: flex; align-items: center; gap: 7px; min-height: 24px; flex-wrap: wrap; }
.note-title-tag-label { min-width: 58px; color: var(--xhs-muted); font-size: 12px; }
.note-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--xhs-muted); margin: 16px 0; }
.metrics-strip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--xhs-border); border-radius: 6px; overflow: hidden; }
.metric { padding: 12px; border-right: 1px solid var(--xhs-border); }
.metric:last-child { border-right: 0; }
.metric span { display: block; color: var(--xhs-muted); font-size: 12px; }
.metric strong { display: block; margin-top: 5px; font-size: 18px; }
.ai-notice { display: grid; gap: 7px; margin-top: 14px; padding: 13px 16px 14px; border: 1px solid #edd8da; border-left: 4px solid var(--xhs-accent); border-radius: 6px; background: #fff9f9; }
.ai-notice-title { color: #3b3032; font-size: 14px; font-weight: 700; line-height: 1.4; }
.ai-notice-content { color: var(--xhs-muted); line-height: 1.75; word-break: break-word; }
.note-media { max-width: 520px; max-height: 680px; object-fit: contain; background: #f2f3f5; margin-top: 18px; border-radius: 4px; }
.note-content { white-space: pre-wrap; line-height: 1.85; margin-top: 18px; }
.comment-list { display: grid; gap: 0; max-height: calc(100vh - 210px); overflow: auto; }
.comment-header-actions { display: flex; align-items: center; gap: 8px; }
.comment-filter-button { min-width: 94px; }
.high-liked-keywords { display: -webkit-box; overflow: hidden; color: var(--xhs-success); line-height: 1.55; word-break: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.comment-item { padding: 14px 0; border-bottom: 1px solid #eceef1; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comment-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.comment-body { line-height: 1.65; margin: 9px 0 7px 38px; white-space: pre-wrap; word-break: break-word; }
.comment-foot { margin-left: 38px; color: var(--xhs-muted); display: flex; gap: 14px; font-size: 12px; }
.comment-actions { padding-top: 14px; }

.chart { width: 100%; height: 390px; }
.task-filter-toolbar .task-search-input { min-width: 240px; }
.task-overview { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)) minmax(190px, 1.5fr); gap: 8px; margin: 0 0 12px; }
.task-overview-item { min-height: 64px; padding: 9px 12px; border: 1px solid #d9dce1; border-radius: 6px; background: #fff; color: #344054; text-align: left; }
button.task-overview-item { cursor: pointer; }
button.task-overview-item:hover { border-color: #409eff; background: #f5f9ff; }
.task-overview-label { display: block; color: #667085; font-size: 12px; }
.task-overview-value { display: block; margin-top: 5px; font-size: 22px; line-height: 1.2; }
.task-overview-time { font-size: 14px; white-space: nowrap; }
.task-provider-state { display: flex; align-items: center; gap: 7px; min-height: 36px; margin: 0 0 14px; padding: 6px 10px; border: 1px solid #d9dce1; border-radius: 5px; background: #f8fafc; color: #475467; font-size: 13px; }
.task-provider-state svg { width: 16px; height: 16px; }
.task-provider-state--cooling_down { border-color: #f5c26b; background: #fff8eb; color: #8a5a00; }
.task-provider-state--verification_pending { border-color: #91caff; background: #eff8ff; color: #175cd3; }
.task-provider-state--normal { border-color: #a6d8b5; background: #f0fdf4; color: #18794e; }
.task-stalled-alert { margin: 0 0 14px; }
.task-bulk-toolbar { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 14px; padding: 7px 10px; border: 1px solid #d9dce1; border-radius: 6px; background: #f7f8fa; }
.task-selected-count { min-width: 86px; color: #475467; font-size: 13px; font-weight: 600; }
.task-bulk-toolbar .task-clear-selection { margin-left: auto; }
.task-debug-dialog .el-dialog__body { padding-top: 4px; }
.task-debug-tabs { position: relative; }
.task-debug-copy-button { position: absolute; z-index: 1; top: 0; right: 0; }
.task-debug-dialog .el-tabs__content { border: 1px solid #30343a; background: #17191d; }
.task-row-actions { display: grid; grid-template-columns: repeat(3, 32px); align-items: center; justify-content: center; gap: 8px; width: 112px; margin: 0 auto; }
.task-row-actions .el-button { margin: 0; }
.task-action-tooltip-target { display: inline-flex; width: 32px; height: 32px; }
.task-row-actions .task-action-button { width: 32px; height: 32px; padding: 6px !important; }
.task-row-actions .task-action-button .lucide { width: 16px; height: 16px; }
.task-filter-context { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; color: #667085; font-size: 13px; }
.task-filter-context .bulk-retry-button { margin-left: auto; }
.accounts-page { max-width: 1480px; }
.account-row-actions { display: flex; align-items: center; justify-content: center; gap: 8px; }
.account-row-actions .el-button { margin: 0; }
.account-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.account-dialog-actions .el-button { margin: 0; }
.writing-material-row-actions { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.writing-material-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.writing-material-row-actions .el-button, .writing-material-dialog-actions .el-button { margin: 0; }
.settings-panel-body { padding: 0; }
.settings-form-section { padding: 20px; }
.settings-form-section + .settings-form-section { border-top: 1px solid var(--xhs-border); }
.settings-form-section h2 { margin: 0 0 16px; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.settings-field { min-width: 0; }
.settings-field > label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 13px; line-height: 20px; }
.settings-field .el-segmented { width: 100%; }
.settings-number-control { display: flex; align-items: center; gap: 10px; }
.settings-number-control .el-input-number { width: 180px; }
.json-viewer { min-height: 240px; max-height: 66vh; overflow: auto; padding: 14px 16px; color: #d9dde5; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.export-file-actions { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.export-file-actions .el-button + .el-button { margin-left: 0; }
.query-parameter-text { min-height: 72px; padding: 14px 16px; border: 1px solid var(--xhs-border); border-radius: 4px; background: #f7f8fa; color: #2b2f36; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.audit-detail-dialog { margin-top: 6vh; }
.audit-detail-descriptions .el-descriptions__table { table-layout: fixed; }
.audit-detail-descriptions .el-descriptions__label.el-descriptions__cell.is-bordered-label { width: 136px; min-width: 136px; }
.audit-detail-descriptions .el-descriptions__content { min-width: 0; overflow-wrap: anywhere; }
.audit-json-viewer { min-height: 72px; max-height: 200px; margin: 0; border: 1px solid var(--xhs-border); border-radius: 4px; background: #f7f8fa; color: #2b2f36; white-space: pre-wrap; overflow-wrap: anywhere; }
.json-node { min-width: max-content; }
.json-line { min-height: 21px; white-space: pre; }
.json-children { padding-left: 20px; }
.json-toggle, .json-toggle-spacer { display: inline-block; width: 18px; height: 18px; margin: 0 2px 0 0; padding: 0; vertical-align: -4px; }
.json-toggle { position: relative; border: 0; background: transparent; cursor: pointer; }
.json-toggle::before { content: ''; position: absolute; top: 5px; left: 6px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid #8f98a6; transition: transform .12s; transform-origin: 3px 4px; }
.json-toggle.is-expanded::before { transform: rotate(90deg); }
.json-key { color: #8fc7ff; }
.json-colon, .json-bracket { color: #aeb5bf; }
.json-summary { margin: 0 6px; color: #818995; font-style: italic; }
.json-value.is-string { color: #a8d98b; }
.json-value.is-number { color: #e8b36a; }
.json-value.is-boolean { color: #d5a6ff; }
.json-value.is-null { color: #8f98a6; font-style: italic; }

.el-card { border-radius: 6px; }
.el-table { --el-table-header-bg-color: #f4f5f7; --el-table-row-hover-bg-color: #faf1f2; }
.el-table th.el-table__cell { color: #4b4f56; font-weight: 650; }
.el-table .cell { line-height: 1.45; }
.el-button + .el-button { margin-left: 0; }
.el-message-box__btns { gap: 10px; }
.el-button .lucide { margin-right: 5px; }
.el-button.is-loading .loading-hidden-icon { display: none; }
.el-tag { border-radius: 4px; }
.el-form-item__label { font-weight: 600; }

.heading-with-status { display: flex; align-items: center; gap: 10px; }
.delete-dialog-note { margin: 0 0 16px; color: var(--xhs-muted); line-height: 1.7; }
.delete-dialog-note strong { color: var(--xhs-text); }
.delete-choice-list { border-top: 1px solid var(--xhs-border); }
.delete-choice-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--xhs-border); line-height: 1.65; }
.delete-choice-item strong { color: var(--xhs-text); }
.delete-choice-item span { color: var(--xhs-muted); }
.delete-choice-item.is-danger strong { color: var(--el-color-danger); }
.delete-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.cover-empty, .media-empty, .avatar-empty { background: #eceef1; color: #9ba0a8; }
.cover-empty { display: flex; align-items: center; justify-content: center; }
.cover-empty .lucide { width: 20px; height: 20px; }
.avatar-empty { display: inline-block; }

.note-detail-panel { min-height: calc(100vh - 102px); }
.note-title-with-link { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.note-title-with-link .note-title { max-width: 820px; }
.note-detail-qr-button { width: 24px !important; height: 24px; min-height: 24px; padding: 3px !important; }
.note-detail-qr-button .lucide { width: 14px; height: 14px; }
.qr-hover { position: relative; display: inline-flex; }
.qr-button { width: 24px; height: 24px; padding: 3px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.qr-button:hover, .qr-button:focus { color: var(--xhs-accent) !important; background: transparent !important; }
.qr-button:focus, .qr-button:focus-visible { outline: 0 !important; box-shadow: none !important; }
.qr-button .lucide { margin-right: 0; }
.qr-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 30;
    width: 176px;
    padding: 13px;
    transform: translateX(-50%) translateY(-4px);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 27, 32, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s, transform .15s, visibility .15s;
}
.qr-hover:hover .qr-popup, .qr-hover:focus-within .qr-popup { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.qr-code { position: relative; width: 148px; height: 148px; }
.qr-code canvas, .qr-code img { display: block; width: 148px !important; height: 148px !important; }
.qr-popup > span { display: block; color: var(--xhs-muted); font-size: 12px; text-align: center; margin-top: 8px; }
.note-detail-content { padding-top: 4px; }
.content-heading { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--xhs-border); font-size: 16px; font-weight: 700; }
.note-gallery-wrap { position: relative; margin-top: 18px; padding-bottom: 8px; border: 1px solid var(--xhs-border); border-radius: 6px; background: #f2f3f5; overflow: hidden; }
.note-gallery-slide { height: 620px; display: flex; align-items: center; justify-content: center; }
.note-gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.note-gallery .el-carousel__container { background: #f2f3f5; }
.note-gallery .el-carousel__arrow { width: 38px; height: 38px; background: rgba(24, 27, 32, .68); }
.note-gallery .el-carousel__indicators--outside { padding: 4px 0 0; }
.gallery-counter { position: absolute; right: 14px; bottom: 16px; z-index: 3; min-width: 54px; padding: 4px 8px; border-radius: 4px; background: rgba(24, 27, 32, .68); color: #fff; font-size: 12px; text-align: center; }
.media-empty { width: 100%; min-height: 220px; margin-top: 18px; border: 1px dashed #cfd3d9; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.media-empty .lucide { width: 28px; height: 28px; }
.comment-panel { position: sticky; top: 80px; }
.comment-panel-body { padding-top: 12px; }
.comment-summary { color: var(--xhs-muted); line-height: 1.6; margin: 0 0 6px; }
.comment-head > .muted { flex: 0 0 auto; font-size: 12px; }
.comment-foot .lucide { width: 14px; height: 14px; }
.full-width { width: 100%; }

.notes-library-toolbar .el-input { max-width: none; }
.notes-library-table .el-table__row { height: 104px; }
.notes-library-table .el-table__cell { padding-top: 7px; padding-bottom: 7px; }
.notes-library-table .cell { padding-left: 5px; padding-right: 5px; }
.note-library-cover-link { display: inline-flex; width: 80px; height: 80px; }
.note-library-cover { display: block; width: 80px; height: 80px; border-radius: 4px; object-fit: cover; background: #eceef1; }
.note-library-cover-empty { align-items: center; justify-content: center; color: var(--xhs-muted); font-size: 12px; }
.note-library-info { min-width: 0; display: grid; gap: 6px; }
.note-library-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.note-library-title { min-width: 0; color: #303238; font-size: 14px; font-weight: 650; }
.note-library-title:hover { color: var(--xhs-accent); }
.note-type-qr-button { width: 20px; height: 20px; min-height: 20px; padding: 2px !important; border-radius: 4px; flex: 0 0 auto; }
.note-type-qr-button .lucide { width: 12px; height: 12px; margin-right: 0; }
.note-library-tag-row { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.note-library-meta-label { color: var(--xhs-muted); font-size: 12px; flex: 0 0 auto; }
.note-library-tag-label { margin-left: 6px; }
.note-library-author-row { display: flex; align-items: center; gap: 6px; min-width: 0; color: #555a62; font-size: 12px; }
.note-library-author-row .avatar-xs { width: 20px; height: 20px; }
.table-icon-button { width: 28px; height: 28px; padding: 5px !important; }
.table-icon-button .lucide { margin-right: 0; }
.note-library-operation-buttons { display: grid; justify-items: center; gap: 6px; white-space: nowrap; }
.note-library-operation-button { width: 92px; margin: 0 !important; }
.note-library-time { display: grid; gap: 7px; font-size: 12px; }
.note-library-time > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px; align-items: center; }
.note-library-time span { color: var(--xhs-muted); }
.note-library-time strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.note-library-qr-dialog { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.note-library-qr-code { width: 196px; height: 196px; }
.note-library-qr-code canvas, .note-library-qr-code img { display: block; width: 196px !important; height: 196px !important; border: 0; border-radius: 0; }
.note-library-qr-dialog p { width: 100%; margin: 18px 0 5px; text-align: center; font-weight: 650; }
.note-library-qr-dialog a { width: 100%; color: var(--xhs-accent); font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.xhs-note-qr { display: inline-flex; flex: 0 0 auto; }
.xhs-note-qr-button.el-button.el-button--small { width: 34px; padding: 0; }
.xhs-note-qr-button .lucide { margin-right: 0; }
.xhs-note-qr-dialog-shell { overflow: hidden; }
.xhs-note-qr-dialog-shell .el-dialog__body { padding: 10px 24px 24px; }

.report-note-title { margin: 0; font-size: 20px; line-height: 1.45; }
.report-latest-metrics { margin-top: 4px; }
.report-section { margin-top: 16px; }
.report-stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--xhs-border); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.report-stat { padding: 14px 16px; border-right: 1px solid var(--xhs-border); }
.report-stat:last-child { border-right: 0; }
.report-stat strong { display: block; font-size: 20px; }
.report-stat span { display: block; color: var(--xhs-muted); margin-top: 5px; font-size: 12px; }

.tag-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tag-summary-item { min-height: 92px; padding: 16px 18px; border: 1px solid var(--xhs-border); border-radius: 6px; background: var(--xhs-surface); display: flex; align-items: center; gap: 13px; }
.tag-summary-icon { width: 42px; height: 42px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tag-summary-icon .lucide { width: 20px; height: 20px; vertical-align: 0; }
.tag-summary-icon.is-rose { color: #b7353d; background: #faeeee; }
.tag-summary-icon.is-green { color: #237557; background: #eaf6f0; }
.tag-summary-icon.is-blue { color: #2e67a3; background: #edf4fb; }
.tag-summary-icon.is-amber { color: #956016; background: #fbf3e5; }
.tag-summary-item > div { display: grid; gap: 5px; }
.tag-summary-item strong { font-size: 25px; line-height: 1; }
.tag-summary-item span:last-child { color: var(--xhs-muted); font-size: 12px; }
.tag-chart-panel, .tag-table-panel { margin-top: 16px; }
.tag-pie-chart { width: 100%; height: 390px; min-height: 320px; }
.tag-chart-note { margin: 6px 0 0; color: var(--xhs-muted); font-size: 12px; line-height: 1.6; text-align: center; }
.tag-table-toolbar .el-input { max-width: 520px; }

.collection-account-page { max-width: 1120px; }
.account-status-body { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.account-status-copy { min-width: 0; }
.account-status-copy h2 { margin: 0 0 9px; font-size: 18px; }
.account-status-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.account-status-copy p { margin: 0; color: var(--xhs-muted); font-size: 12px; }
.account-status-meta p { display: grid; grid-template-columns: auto auto; gap: 8px; }
.account-status-copy p strong { color: var(--xhs-text); font-weight: 600; }
.account-status-copy .account-status-message { display: block; margin-top: 7px; color: #956016; }
.account-status-actions { display: flex; gap: 8px; align-items: center; }
.account-methods { display: grid; grid-template-columns: minmax(380px, 420px) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.account-method-panel { min-height: 368px; display: flex; flex-direction: column; overflow: hidden; }
.account-method-header { min-height: 70px; align-items: flex-start; }
.account-method-header h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.account-method-header p { margin: 5px 0 0; color: var(--xhs-muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.account-method-panel > .panel-body { flex: 1; }
.qr-login-body { min-height: 0; padding: 20px 24px 22px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.account-qrcode { width: 188px; height: 188px; flex: 0 0 188px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--xhs-border); background: #fff; }
.account-qrcode-placeholder { width: 46px; height: 46px; border: 1px dashed #c7cbd1; color: #aeb3bb; display: flex; align-items: center; justify-content: center; }
.account-qrcode-placeholder .lucide { width: 21px; height: 21px; margin: 0; vertical-align: 0; }
.account-qrcode canvas, .account-qrcode img { display: block; width: 188px !important; height: 188px !important; }
.qr-login-controls { width: 100%; min-height: 80px; display: flex; flex-direction: column; align-items: center; }
.qr-login-message { min-height: 20px; margin: 12px 0 10px; color: var(--xhs-muted); font-size: 13px; line-height: 20px; text-align: center; }
.qr-login-message.is-scanned, .qr-login-message.is-confirmed { color: var(--xhs-success); }
.qr-login-message.is-expired, .qr-login-message.is-failed { color: var(--el-color-danger); }
.account-import-body { display: flex; padding: 20px 22px 22px; }
.account-import-form { width: 100%; min-height: 0; display: flex; flex-direction: column; }
.account-import-form .el-form-item { flex: 1; margin-bottom: 16px; }
.account-import-form .el-form-item__content, .account-import-form .el-textarea { height: 100%; }
.account-import-form .el-textarea__inner { height: 100%; min-height: 212px !important; }
.account-import-submit { align-self: flex-start; }

.icon-only-button.el-button { width: 32px; height: 32px; padding: 0; flex: 0 0 32px; }
.icon-only-button.el-button .lucide { width: 15px; height: 15px; margin: 0; }
.el-dropdown-menu__item > .lucide { width: 16px; height: 16px; margin-right: 8px; flex: 0 0 auto; }
.monitor-create-form { max-width: 920px; }
.monitor-category-select { width: 100%; }
.monitor-share-input { width: 100%; min-width: 0; }
.monitor-share-summary { min-height: 28px; display: flex; align-items: center; justify-content: space-between; color: var(--xhs-muted); font-size: 12px; }
.monitor-share-summary strong { color: var(--xhs-text); }
.monitor-page-panel > .panel-body { padding: 0; }
.monitor-category-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 520px; transition: grid-template-columns .18s ease; }
.monitor-category-layout.is-sidebar-collapsed { grid-template-columns: 52px minmax(0, 1fr); }
.monitor-category-sidebar { min-width: 0; border-right: 1px solid var(--xhs-border); background: #f7f8fa; padding: 16px 10px; }
.monitor-category-sidebar-header { min-height: 36px; padding: 0 4px 10px; display: flex; align-items: center; justify-content: space-between; }
.monitor-category-layout.is-sidebar-collapsed .monitor-category-sidebar-header { justify-content: center; padding-inline: 0; }
.monitor-category-sidebar-header strong { font-size: 14px; }
.monitor-sidebar-header-actions { display: flex; align-items: center; gap: 6px; }
.monitor-category-list { display: grid; gap: 2px; }
.monitor-category-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 4px; }
.monitor-category-row.is-child { padding-left: 18px; }
.monitor-category-item { width: 100%; min-width: 0; height: 40px; border: 0; border-radius: 5px; padding: 0 8px; background: transparent; color: #4f555e; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 7px; text-align: left; cursor: pointer; }
.monitor-category-item:hover { background: #eceff3; color: var(--xhs-text); }
.monitor-category-item.is-active { background: #e8f1ee; color: #28695a; }
.monitor-category-item .lucide { width: 14px; height: 14px; }
.monitor-category-item span { min-width: 0; }
.monitor-category-item strong { min-width: 24px; color: inherit; font-size: 12px; text-align: right; }
.monitor-category-more.el-button { color: var(--xhs-muted); }
.monitor-plan-content { min-width: 0; padding: 18px 20px 20px; }
.monitor-plan-toolbar { min-height: 48px; margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.monitor-plan-toolbar h2 { margin: 0; font-size: 17px; line-height: 24px; }
.monitor-plan-toolbar p { margin: 4px 0 0; font-size: 12px; }
.table-link { color: #2f6f61; text-decoration: none; }
.table-link:hover { text-decoration: underline; }

.account-permission-tags { min-height: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.account-permission-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.account-permission-grid .el-checkbox { min-width: 0; height: auto; margin-right: 0; align-items: flex-start; }
.account-permission-help { margin: 7px 0 0; color: var(--xhs-muted); font-size: 12px; }
