/* 配置管理视图样式 */  
#config-manager-view {  
    height: 100%;  
    display: flex;  
    flex-direction: column;  
    overflow: hidden;  
}  
  
.config-layout {  
    display: flex;  
    flex: 1;  
    min-height: 0;  
    gap: 0px;  
    overflow: hidden;  
    height: calc(100vh - var(--header-height) - var(--footer-height));
    max-height: calc(100vh - var(--header-height) - var(--footer-height));  
}  
  
.config-content {  
    flex: 1;  
    overflow-y: auto;  
    padding: 0;  
    min-height: 0;  
    max-height: calc(100% - 2px);  
}    
  
.config-content::-webkit-scrollbar {  
    width: 8px;  
}  
  
.config-content::-webkit-scrollbar-track {  
    background: var(--background-color);  
    border-radius: 4px;  
}  
  
.config-content::-webkit-scrollbar-thumb {  
    background: var(--border-color);  
    border-radius: 4px;  
}  
  
.config-content::-webkit-scrollbar-thumb:hover {  
    background: var(--secondary-color);  
}  
  
.config-panel {  
    padding: 10px 15px var(--content-bottom-padding) 15px; 
    opacity: 0;  
    transition: opacity 0.2s ease;  
    display: none;  
}
  
.config-panel.active {  
    display: block;  
    opacity: 1;  
}
      
.config-header {      
    margin-bottom: 20px;      
    padding-bottom: 16px;      
    border-bottom: 1px solid var(--border-color);      
}      
      
.config-header h2 {      
    font-size: 24px;      
    font-weight: 700;      
    color: var(--text-primary);      
    margin-bottom: 8px;      
}      
      
.config-description {      
    color: var(--text-secondary);      
    font-size: 14px;      
}      
      
/* 配置表单 - 统一响应式布局 */      
.config-form {      
    width: 100%;      
    display: flex;      
    flex-direction: column;      
    gap: 24px;      
}      
      
.config-section {      
    background: var(--surface-color);      
    border: 1px solid var(--border-color);      
    border-radius: 8px;      
    padding: 20px;      
    margin-bottom: 20px;      
} 

#config-platforms .config-section {  
    padding: 16px;
    margin-bottom: 16px;
}
      
.section-title {      
    display: flex;      
    align-items: center;      
    gap: 12px;      
    font-size: 18px;      
    font-weight: 600;      
    color: var(--text-primary);      
    margin-bottom: 20px;      
}      
 
#config-platforms .section-title {  
    margin-bottom: 0px;  
}  

/* 统一的表单网格布局 */      
.form-grid {      
    display: grid;      
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));      
    gap: 16px;      
    margin-bottom: 16px;      
    width: 100%;      
}      
      
.form-group {      
    display: flex;      
    flex-direction: column;      
    gap: 8px;      
    margin-bottom: 12px;      
}      
      
.form-group label {      
    font-weight: 500;      
    color: var(--text-primary);      
    font-size: 14px;      
}      
      
/* 配置管理器专用的复选框样式 */  
.config-panel .checkbox-label {  
    display: flex;  
    align-items: center;  
    gap: 8px;  
    cursor: pointer;  
    font-size: 14px;  
    white-space: nowrap;  
    min-width: fit-content;  
}  
  
.config-panel .checkbox-custom {  
    width: 16px;  
    height: 16px;  
    border: 2px solid var(--border-color);  
    border-radius: 3px;  
    position: relative;  
    transition: all 0.2s ease;  
}  
  
.config-panel .checkbox-label input[type="checkbox"] {  
    position: absolute;  
    opacity: 0;  
    width: 0;  
    height: 0;  
    pointer-events: none;  
}  
  
.config-panel .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {  
    background: var(--primary-color);  
    border-color: var(--primary-color);  
}  
  
.config-panel .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {  
    content: '✓';  
    position: absolute;  
    top: -2px;  
    left: 2px;  
    color: white;  
    font-size: 12px;  
    font-weight: bold;  
}  
  
.config-panel .checkbox-label input[type="checkbox"]:disabled + .checkbox-custom {  
    background: var(--surface-color);  
    border-color: var(--border-color);  
    opacity: 0.5;  
    cursor: not-allowed;  
}  
  
.config-panel .checkbox-label input[type="checkbox"]:disabled:checked + .checkbox-custom {  
    background: var(--border-color);  
    border-color: var(--border-color);  
    opacity: 0.5;  
}  
  
.config-panel .checkbox-label input[type="checkbox"]:disabled:checked + .checkbox-custom::after {  
    color: rgba(255, 255, 255, 0.6);  
}  
  
.config-panel .checkbox-label:has(input[type="checkbox"]:disabled) {  
    opacity: 0.6;  
    cursor: not-allowed;  
}

.config-actions {      
    display: flex;      
    gap: 12px;      
    justify-content: flex-end;      
    padding-top: 20px;      
    border-top: 1px solid var(--border-color);      
    margin-top: 30px;      
}      

.compact-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header-row .section-title {
    margin-bottom: 0;
}

.detail-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.btn-danger {
    background: var(--error-color);
    border-color: var(--error-color);
    color: #fff;
}

/* Publish account management */
#config-wechat {
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 28px var(--content-bottom-padding);
}

#config-wechat [hidden] { display: none !important; }

#config-wechat .publish-account-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

#config-wechat .publish-account-editor-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

#config-wechat .publish-account-page-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1.35;
}

#config-wechat .publish-account-page-header p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

#config-wechat .publish-account-header-actions,
#config-wechat .publish-account-card-actions,
#config-wechat .publish-account-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#config-wechat .publish-account-header-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    white-space: nowrap;
}

#config-wechat button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#config-wechat .publish-account-icon-button {
    width: 40px;
    padding: 0;
}

#config-wechat .publish-account-feedback:empty { display: none; }
#config-wechat .publish-account-feedback {
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 6px;
    font-size: 13px;
}
#config-wechat .publish-account-feedback.is-success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
#config-wechat .publish-account-feedback.is-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }

#config-wechat .publish-account-list {
    display: grid;
    gap: 12px;
}

#config-wechat .publish-account-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 16px 18px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

#config-wechat .publish-account-platform-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #2463eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
}
#config-wechat .publish-account-platform-icon[data-platform="WECHAT"] { background: #168a53; }
#config-wechat .publish-account-platform-icon[data-platform="WORDPRESS"] { background: #28799e; }
#config-wechat .publish-account-platform-icon[data-platform="WEBHOOK"] { background: #4b5563; }

#config-wechat .publish-account-card-title,
#config-wechat .publish-account-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#config-wechat .publish-account-card-title h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.4;
}

#config-wechat .publish-account-meta {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 13px;
}

#config-wechat .publish-account-meta span + span::before { content: "·"; margin-right: 8px; color: var(--border-color); }
#config-wechat .publish-account-status {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
#config-wechat .publish-account-status.is-enabled { color: #166534; background: #dcfce7; }
#config-wechat .publish-account-status.is-disabled { color: #64748b; background: #f1f5f9; }
#config-wechat .publish-account-credential.is-ready { color: #15803d; }
#config-wechat .publish-account-credential.is-missing { color: #b45309; }

#config-wechat .publish-account-action,
#config-wechat .publish-account-back {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}
#config-wechat .publish-account-action:hover,
#config-wechat .publish-account-back:hover { color: var(--primary-color); background: var(--background-color); border-color: var(--border-color); }
#config-wechat .publish-account-action.is-danger:hover { color: var(--error-color); background: #fef2f2; border-color: #fecaca; }
#config-wechat button:focus-visible,
#config-wechat input:focus-visible,
#config-wechat select:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

#config-wechat .publish-account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 36px 20px;
    text-align: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
#config-wechat .publish-account-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--text-secondary); background: var(--background-color); border-radius: 8px; }
#config-wechat .publish-account-empty-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#config-wechat .publish-account-empty h3 { margin: 16px 0 6px; color: var(--text-primary); font-size: 16px; }
#config-wechat .publish-account-empty p { margin: 0 0 18px; color: var(--text-secondary); font-size: 13px; }

#config-wechat .publish-account-editor {
    display: grid;
    gap: 16px;
}
#config-wechat .publish-account-form-section {
    padding: 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
#config-wechat .publish-account-form-section h3 { margin: 0 0 18px; color: var(--text-primary); font-size: 16px; }
#config-wechat .publish-account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#config-wechat .publish-account-section-heading span { color: var(--text-secondary); font-size: 12px; }
#config-wechat .publish-account-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
#config-wechat .publish-account-editor-grid .form-group { margin: 0; }
#config-wechat .publish-account-editor-grid .form-control { width: 100%; min-height: 42px; }
#config-wechat .publish-account-form-actions { justify-content: flex-end; padding-top: 4px; }
#config-wechat .publish-account-form-actions .btn { min-width: 92px; min-height: 40px; }

@media (max-width: 640px) {
    #config-wechat { padding: 16px 14px var(--content-bottom-padding); }
    #config-wechat .publish-account-page-header { align-items: flex-start; flex-direction: column; gap: 12px; }
    #config-wechat .publish-account-page-header h2 { font-size: 21px; }
    #config-wechat .publish-account-page-header > div:first-child { min-width: 0; }
    #config-wechat .publish-account-header-actions { align-self: stretch; justify-content: flex-end; }
    #config-wechat .publish-account-editor-header > div:first-child { align-items: flex-start; }
    #config-wechat .publish-account-header-actions .btn-primary { padding-inline: 12px; }
    #config-wechat .publish-account-card { grid-template-columns: 42px minmax(0, 1fr); padding: 14px; }
    #config-wechat .publish-account-card-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--border-color); }
    #config-wechat .publish-account-action { width: 40px; height: 40px; }
    #config-wechat .publish-account-editor-grid { grid-template-columns: minmax(0, 1fr); }
    #config-wechat .publish-account-form-section { padding: 16px; }
    #config-wechat .publish-account-section-heading { align-items: flex-start; flex-direction: column; gap: 0; }
    #config-wechat .publish-account-form-actions .btn { flex: 1; }
}

/* Unified creation preference pages */
.settings-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.settings-control-grid .form-group,
.settings-control-grid .form-group-third {
    width: auto;
    min-width: 0;
    margin: 0;
}

.settings-action-row {
    position: sticky;
    bottom: 0;
    z-index: 4;
    align-items: center;
    min-height: 68px;
    margin-top: 20px;
    padding: 14px 0;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.settings-action-row .btn {
    min-height: 40px;
    min-width: 96px;
}

.config-panel > .workspace-page-header {
    margin-bottom: 20px;
}

.config-panel > .workspace-page-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

@media (max-width: 640px) {
    .settings-control-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .settings-action-row .btn {
        flex: 1;
    }
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.config-empty-state {
    padding: 18px 20px;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    background: var(--surface-color);
}

.style-profile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.style-profile-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.style-profile-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.style-profile-card.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.04);
}

.style-profile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.style-profile-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.style-profile-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.style-profile-card-summary {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.style-profile-detail-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.style-profile-detail-item {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--background-color);
}

.style-profile-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.style-profile-detail-value {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: transparent;
}

.style-profile-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.4fr) minmax(180px, 0.7fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-color);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.style-profile-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.style-profile-row.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.04);
}

.style-profile-row-main,
.style-profile-row-summary,
.style-profile-row-tags {
    min-width: 0;
}

.style-profile-row .style-profile-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.style-profile-row-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.6;
}

.style-profile-row-tags {
    max-height: 52px;
    overflow: hidden;
}

.style-profile-row-actions {
    justify-content: flex-end;
    margin-top: 0;
    white-space: nowrap;
}

.style-profile-detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.26);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.style-profile-detail-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.style-profile-detail-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(680px, calc(100vw - 72px));
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: -24px 0 48px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.22s ease;
}

.style-profile-detail-drawer.is-open {
    transform: translateX(0);
}

.style-profile-detail-header {
    position: sticky;
    top: -20px;
    z-index: 1;
    margin: -20px -20px 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

body.style-profile-detail-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .style-profile-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
    }

    .style-profile-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .style-profile-detail-drawer {
        width: 100vw;
        padding: 16px;
    }

    .style-profile-detail-header {
        top: -16px;
        margin: -16px -16px 16px;
        padding: 14px 16px;
    }

    .style-profile-detail-header .detail-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

#style-profile-detail-section select.form-control,
#style-profile-detail-section input.form-control[type="number"] {
    width: 100%;
}

.style-risk-panel {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-color);
}

.style-risk-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.style-risk-summary {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.style-risk-summary.safe {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
    color: #0f766e;
}

.style-risk-summary.warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
}

.style-risk-summary.danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.style-risk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.style-risk-item {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}

.style-risk-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.style-risk-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.style-risk-item-level {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.style-risk-item-level.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.style-risk-item-level.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.style-risk-item-body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    word-break: break-word;
}

.style-profile-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.style-profile-card-actions .btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.style-profile-card-actions .btn.btn-danger {
    margin-left: auto;
}

.style-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.style-profile-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--hover-background);
    color: var(--text-secondary);
    font-size: 12px;
}
      
.required {      
    color: var(--error-color);      
}      
      
/* 统一的行布局 */      
.form-row {      
    display: flex;      
    gap: 12px;      
    margin-bottom: 16px;      
    flex-wrap: wrap;      
}      
      
.form-group-half {      
    flex: 1;      
    min-width: 200px;      
    margin-bottom: 0;      
}      
      
.form-group-quarter {      
    flex: 1;      
    min-width: 150px;      
    margin-bottom: 0;      
}      
      
.form-group-full {      
    width: 100%;      
}      
      
/* 响应式处理 - 只在真正小屏幕时生效 */      
@media (max-width: 1200px) {      
    .form-grid {      
        grid-template-columns: 1fr;      
    }      
}      
      
@media (max-width: 800px) {      
    .form-row {      
        flex-direction: column;      
        gap: 12px;      
    }      
          
    .form-group-half,      
    .form-group-quarter {      
        min-width: auto;      
    }      
}      
      
.form-help {      
    font-size: 12px;      
    color: var(--text-secondary);      
    margin: 0;      
}

/* 三分之一宽度布局 - 支持自适应 */  
.form-group-third {  
    flex: 1;  
    min-width: 180px;  
    margin-bottom: 0;  
}  
  
/* 标准模式下的优化 */  
@media (min-width: 1200px) {  
    .form-group-third {  
        flex: 0 1 calc(33.333% - 8px);  
    }  
}  
  
/* 最大化模式下的自适应 */  
@media (min-width: 1600px) {  
    .form-group-third {  
        flex: 1;  
        min-width: 200px;  
    }  
}  
  
/* 小屏幕下堆叠布局 */  
@media (max-width: 800px) {  
    .form-group-third {  
        flex: 1 1 100%;  
        min-width: auto;  
    }  
}

/* 平台列表容器 */  
.platform-list-container {  
    background: var(--surface-color);  
    border-radius: 8px;  
    padding: 16px;  
    margin-top: 12px;  
}  

#config-platforms .platform-list-container {  
    margin-top: 0;  
    padding: 8px 0; 
} 

/* 平台表格 */  
.platform-table {  
    width: 100%;  
    border-collapse: collapse;  
    background: var(--surface-color);  /* 修改:默认使用surface-color */  
    border-radius: 6px;  
    overflow: hidden;  
}  
  
.platform-table thead {  
    background: var(--surface-color);  
}  
  
.platform-table th {  
    padding: 12px 16px;  
    text-align: left;  
    font-weight: 600;  
    color: var(--text-primary);  
    border-bottom: 2px solid var(--border-color);  
}  
  
.platform-table .col-enabled {  
    width: 100px;
    text-align: center;  
}  
  
.platform-table .col-platform {  
    width: 200px;
}  
  
.platform-table .col-weight {  
    width: 250px;  
}  
  
.platform-table .col-description {  
    width: auto;  
    min-width: 250px;  
}  
  
.platform-table tbody tr {  
    background: var(--surface-color); 
    border-bottom: 1px solid var(--border-color);  
    transition: background-color 0.2s;  
}  
  
.platform-table tbody tr:hover {  
    background: var(--background-color);
}  
  
.platform-table tbody tr:last-child {  
    border-bottom: none;  
}  
  
.platform-table td {  
    padding: 12px 16px;  
    color: var(--text-secondary);  
}  
  
/* 启用列居中对齐 */  
.platform-table td:first-child .checkbox-label {  
    justify-content: center;  
    margin: 0;  
    width: 100%;  
}  
  
.platform-table td:first-child {  
    text-align: center;  
    vertical-align: middle;  
} 
  
/* 平台名称样式 */  
.platform-table .platform-name {  
    font-weight: 500;  
    color: var(--text-primary);  
}  
  
/* 平台权重输入框 */  
.platform-table .platform-weight-input {  
    width: 120px;  
    padding: 8px 12px;  
    border: 1px solid var(--border-color);  
    border-radius: 4px;  
    background: var(--background-color);  
    color: var(--text-primary);  
    font-size: 14px;  
    transition: border-color 0.2s;  
}  
  
.platform-table .platform-weight-input:focus {  
    outline: none;  
    border-color: var(--primary-color);  
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);  
}  
  
.platform-table .platform-weight-input:disabled {  
    background: var(--surface-color);  
    cursor: not-allowed;  
    opacity: 0.6;  
}  
  
/* 说明文字样式 */  
.platform-table .platform-description {  
    color: var(--text-tertiary);  
    font-size: 13px;  
}  
  
/* 响应式优化 */  
@media (max-width: 1200px) {  
    .platform-table .col-description {  
        display: none;  
    }  
      
    .platform-table .col-weight {  
        width: auto;  
    }  
}  
  
@media (max-width: 800px) {  
    .platform-table .col-enabled {  
        width: 80px; 
    }  
      
    .platform-table .col-platform {  
        width: 150px; 
    }   
      
    .platform-table th,  
    .platform-table td {  
        padding: 8px 12px;  
    }  
}

/* 微信凭证容器 */  
#wechat-credentials-container {  
    display: flex;  
    flex-direction: column;  
    gap: 20px;  
}  
  
/* 凭证卡片 */  
.wechat-credential-card {  
    background: var(--surface-color);  
    border: 1px solid var(--border-color);  
    border-radius: 8px;  
    padding: 20px;  
    position: relative;  
}  
  
/* 凭证标题栏 */  
.credential-header {  
    display: flex;  
    justify-content: space-between;  
    align-items: center;  
    margin-bottom: 16px;  
    padding-bottom: 12px;  
    border-bottom: 1px solid var(--border-color);  
}  
  
.credential-title {  
    font-size: 16px;  
    font-weight: 600;  
    color: var(--text-primary);  
}  
  
.credential-delete-btn {  
    padding: 6px 12px;  
    background: var(--error-color);  
    color: white;  
    border: none;  
    border-radius: 4px;  
    cursor: pointer;  
    font-size: 13px;  
    transition: opacity 0.2s;  
}  
  
.credential-delete-btn:hover {  
    opacity: 0.8;  
}  
  
.credential-delete-btn:disabled {  
    background: var(--border-color);  
    cursor: not-allowed;  
    opacity: 0.5;  
}  
  
/* 凭证表单布局 */  
.credential-form {  
    display: flex;  
    flex-direction: column;  
    gap: 16px;  
}  
  
/* 群发选项特殊布局 */  
.sendall-options {  
    display: flex;  
    gap: 24px; 
    align-items: flex-start;  
    flex-wrap: wrap;  
}  
  
.sendall-options .form-group {  
    margin-bottom: 0;  
    min-width: 120px;
}  
  
/* 标签组ID输入框 */  
.tag-id-input {  
    width: 150px;  
    padding: 8px 12px;  
    height: 38px; 
    line-height: 1.5; 
    box-sizing: border-box;  
}  
  
/* 增强禁用状态的视觉反馈 */  
.form-control:disabled,  
.tag-id-input:disabled {  
    background: var(--surface-color);  
    color: var(--text-tertiary);  
    cursor: not-allowed;  
    opacity: 0.6;  
    border-color: var(--border-color);  
}  
  
/* 禁用状态下的占位符文字 */  
.form-control:disabled::placeholder,  
.tag-id-input:disabled::placeholder {  
    color: var(--text-tertiary);  
    opacity: 0.5;  
}  
  
/* 群发选项中的输入框统一样式 */  
.sendall-options .form-control {  
    padding: 8px 12px; 
    height: 38px;  
    line-height: 1.5;  
}
  
/* 禁用状态下的标签文字 */  
.checkbox-label:has(input[type="checkbox"]:disabled) {  
    opacity: 0.6;  
    cursor: not-allowed;  
}  
  
/* 为普通label添加禁用状态支持 */  
.form-group:has(input:disabled) label {  
    opacity: 0.6;  
    color: var(--text-tertiary);  
}  
  
/* 确保form-help在输入框禁用时也变暗 */  
.form-group:has(input:disabled) .form-help {  
    opacity: 0.6;  
}

/* 确保三列布局在较小屏幕下也能正常显示 */  
@media (max-width: 1200px) {  
    .credential-form .form-row .form-group-third {  
        flex: 1 1 calc(50% - 6px);  /* 两列布局 */  
        min-width: 200px;  
    }  
}  
  
@media (max-width: 800px) {  
    .credential-form .form-row .form-group-third {  
        flex: 1 1 100%;  /* 单列布局 */  
        min-width: auto;  
    }  
      
    .sendall-options {  
        flex-direction: column;  
        gap: 12px;  
    }  
}

/* 未保存更改提示样式 */  
.btn.has-changes {  
    animation: configPulse 2s infinite;  
}  
  
@keyframes configPulse {  
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }  
    50% { box-shadow: 0 0 0 4px rgba(255, 152, 0, 0); }  
}  
    
/* API提供商卡片容器 */    
#api-providers-container {    
    display: flex;    
    flex-direction: column;    
    gap: 16px;    
}

/* 图片API提供商卡片容器 */  
#img-api-providers-container {  
    display: flex;  
    flex-direction: column;  
    gap: 16px; 
}  
  
/* AIForge LLM提供商卡片容器 */  
#aiforge-llm-providers-container {  
    display: flex;  
    flex-direction: column;  
    gap: 16px; 
}

/* API提供商卡片 */    
.api-provider-card {    
    background: var(--surface-color);    
    border: 2px solid var(--border-color);    
    border-radius: 8px;    
    padding: 20px;    
    transition: all 0.2s;    
}    
    
.api-provider-card.active {    
    border-color: var(--primary-color);    
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);    
}    
    
/* 提供商卡片头部 */    
.provider-header {    
    display: flex;    
    justify-content: space-between;    
    align-items: center;    
    margin-bottom: 16px;    
    padding-bottom: 12px;    
    border-bottom: 1px solid var(--border-color);    
}    
    
.provider-title-group {    
    display: flex;    
    align-items: center;    
    gap: 12px;    
}    
    
.provider-name {    
    font-size: 18px;    
    font-weight: 600;    
    color: var(--text-primary);    
}    
    
.provider-badge {    
    padding: 4px 12px;    
    border-radius: 12px;    
    font-size: 12px;    
    font-weight: 500;    
}    
    
.provider-badge.active {    
    background: var(--primary-color);    
    color: white;    
}    
    
.provider-badge.inactive {    
    background: var(--border-color);    
    color: var(--text-secondary);    
}    
    
.provider-toggle-btn {    
    padding: 6px 16px;    
    background: transparent;    
    border: 1px solid var(--primary-color);    
    color: var(--primary-color);    
    border-radius: 4px;    
    cursor: pointer;    
    font-size: 13px;    
    transition: all 0.2s;    
}    
    
.provider-toggle-btn:hover {    
    background: var(--primary-color);    
    color: white;    
}    
    
.provider-toggle-btn.active {    
    background: var(--primary-color);    
    color: white;    
}    
    
/* 提供商表单 */    
.provider-form {    
    display: flex;    
    flex-direction: column;    
    gap: 16px;    
}    
    
/* 只读字段样式 */    
.form-control[readonly] {    
    background: var(--surface-color);    
    color: var(--text-tertiary);    
    cursor: not-allowed;    
}    
    
/* 信息提示框样式 */    
.config-notice {      
    display: flex;      
    gap: 12px;      
    padding: 12px 16px;      
    background: rgba(33, 150, 243, 0.08);
    border-left: 4px solid #64b5f6;
    border-radius: 4px;      
    margin-top: 20px;      
}          

/* 添加暗色模式适配 */  
[data-theme="dark"] .config-notice {  
    background: rgba(33, 150, 243, 0.15);  
    border-left-color: #64b5f6;  
} 
  
[data-theme="dark"] .notice-icon {  
    stroke: #64b5f6;
} 

.notice-icon {      
    width: 20px;      
    height: 20px;      
    flex-shrink: 0;      
    stroke: #64b5f6;  
    fill: none;      
    stroke-width: 2;      
}     
      
.notice-content {      
    flex: 1;      
    font-size: 13px;      
    color: var(--text-secondary);      
}   
    
.notice-content ul {    
    margin: 4px 0 0 0;    
    padding-left: 20px;    
}    
    
.notice-content li {    
    margin: 2px 0;    
}

/* 微信公众号配置页面的 notice 间距调整 */ 
#config-wechat .config-notice {  
    margin-top: 0;  
}

/* 当 config-notice 前面是 config-section 时,减小间距 */  
.config-section + .config-notice {  
    margin-top: 0;  
}  
  
/* 当 config-notice 前面是 form-row 时,减小间距 */  
.form-row + .config-notice {  
    margin-top: 4px;  
}

/* 自定义下拉框容器 */    
.editable-select {    
    position: relative;    
    width: 100%;    
}    

.form-control,  
select.form-control {  
    padding: 8px 12px; 
    height: 38px; 
    line-height: 1.5;  
    box-sizing: border-box;  
}

/* 当前选中值显示 */    
.select-display {  
    padding: 8px 12px;  
    height: 38px;  
    line-height: 1.5;  
    border: 1px solid var(--border-color);  
    border-radius: 4px;  
    background: var(--background-color);  
    cursor: pointer;  
    user-select: none;  
    box-sizing: border-box;  
    display: flex;  
    align-items: center;  
    font-size: 14px; 
}     
    
.select-display:hover {    
    border-color: var(--primary-color);    
}    
    
/* 下拉选项容器 */    
.select-dropdown {    
    position: absolute;    
    top: 100%;    
    left: 0;    
    right: 0;    
    max-height: 300px;    
    overflow-y: auto;    
    background: var(--surface-color);    
    border: 1px solid var(--border-color);    
    border-radius: 4px;    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);    
    z-index: 1000;    
    margin-top: 4px;    
}    
    
/* 选项 */    
.select-option {  
    padding: 10px 12px;  
    cursor: pointer;  
    transition: background 0.2s;  
    font-size: 14px;   
}   
    
.select-option:hover {    
    background: var(--background-color);    
}    
    
/* 输入框 */    
.select-input {    
    width: 100%;    
    padding: 10px 12px;    
    border: none;    
    outline: none;    
    background: var(--background-color);    
}    
    
/* 右键菜单 */  
.context-menu {  
    position: fixed;  
    background: var(--surface-color);  
    border: 1px solid var(--border-color);  
    border-radius: 4px;  
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);  
    z-index: 10000;  
    min-width: 80px;
}  
  
.context-menu-item {  
    padding: 8px 16px;  
    cursor: pointer;  
    transition: background 0.2s;  
    text-align: center;
}   
    
.context-menu-item:hover {    
    background: var(--background-color);    
}  
  
/* "-- 请添加 --"选项特殊样式 */    
.select-option-add {  
    color: var(--primary-color);  
    font-weight: 500;  
    border-bottom: 1px solid var(--border-color);  
    font-size: 14px; 
}    
    
.select-option-add:hover {    
    background: var(--primary-color);    
    color: white;    
}

.select-dropdown::-webkit-scrollbar {    
    width: 8px;    
}    
    
.select-dropdown::-webkit-scrollbar-track {    
    background: var(--background-color);    
    border-radius: 4px;    
}    
    
.select-dropdown::-webkit-scrollbar-thumb {    
    background: var(--border-color);    
    border-radius: 4px;    
}    
    
.select-dropdown::-webkit-scrollbar-thumb:hover {    
    background: var(--secondary-color);    
}

.select-display:focus {    
    outline: none;    
    border-color: var(--primary-color);    
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);    
}

.form-group-third {  
    flex: 0 0 calc(33.333% - 11px);  
    min-width: 0;  
}  
  
@media (max-width: 1200px) {  
    .form-group-third {  
        flex: 0 0 calc(50% - 8px); /* 中等屏幕显示两列 */  
    }  
}  
  
@media (max-width: 800px) {  
    .form-group-third {  
        flex: 0 0 100%; /* 小屏幕显示一列 */  
    }  
}

/* ========== 维度分组卡片 ========== */  
.dimension-group-card {  
    background: var(--card-background);  
    border: 1px solid var(--border-color);  
    border-radius: 8px;  
    margin-bottom: 16px;  
    overflow: hidden;  
    transition: box-shadow 0.2s;  
}  
  
.dimension-group-card:hover {  
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  
}  
  
/* 卡片头部 */  
.dimension-group-header {  
    display: flex;  
    justify-content: space-between;  
    align-items: center;  
    padding: 16px;  
    background: var(--surface-color);  
    border-bottom: 1px solid var(--border-color);  
    cursor: pointer;  
    user-select: none;  
}  
  
.dimension-group-header:hover {  
    background: var(--hover-color);  
}  
  
.dimension-group-title-group {  
    display: flex;  
    align-items: center;  
    gap: 12px;  
}  
  
.dimension-group-title-group i {  
    font-size: 20px;  
    color: var(--primary-color);  
}  
  
.dimension-group-name {  
    font-size: 16px;  
    font-weight: 600;  
    color: var(--text-primary);  
}  
  
.dimension-count-badge {  
    background: var(--primary-color);  
    color: white;  
    padding: 2px 8px;  
    border-radius: 12px;  
    font-size: 12px;  
    font-weight: 500;  
}  
  
.dimension-toggle-icon {    
    font-size: 18px;    
    color: var(--text-secondary);    
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);    
}    
    
.dimension-toggle-icon.rotated {    
    transform: rotate(180deg);    
}
  
/* 卡片内容 */  
.dimension-group-content {    
    max-height: 2000px;    
    overflow: hidden;    
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),   
                padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);    
    padding: 16px;    
}    
    
.dimension-group-content.collapsed {    
    max-height: 0;    
    padding: 0 16px;    
}
  
/* ========== 维度配置行 ========== */  
.dimension-row {  
    display: flex;  
    align-items: center;  
    gap: 12px;  
    padding: 12px 0;  
    border-bottom: 1px solid var(--border-light);  
}  
  
.dimension-row:last-child {  
    border-bottom: none;  
}  
  
/* 维度启用复选框 */  
.dimension-row .dimension-checkbox {  
    flex: 0 0 auto;  
    width: 18px;  
    height: 18px;  
    cursor: pointer;  
}  
  
/* 维度名称标签 */  
.dimension-row .dimension-name-label {  
    flex: 0 0 auto;  
    min-width: 90px;  
    max-width: 110px;  
    font-size: 14px;  
    color: var(--text-secondary);  
    font-weight: 500;  
}  
  
/* 预设选项下拉框 - 使用3的比例(约55%宽度) */  
.dimension-row .dimension-select {  
    flex: 3;  
    min-width: 180px;  
    height: 38px;  
    padding: 8px 12px;  
    font-size: 14px;  
    line-height: 1.5;  
    border: 1px solid var(--border-color);  
    border-radius: 4px;  
    background: var(--background-color);  
    color: var(--text-primary);  
}  
  
.dimension-row .dimension-select:disabled {  
    background: var(--surface-color);  
    color: var(--text-tertiary);  
    opacity: 0.6;  
    cursor: not-allowed;  
}  
  
/* 自定义输入框 - 使用2的比例(约35%宽度) */  
.dimension-row .dimension-custom-input {  
    flex: 2;  
    min-width: 150px;  
    height: 38px;  
    padding: 8px 12px;  
    font-size: 14px;  
    line-height: 1.5;  
    border: 1px solid var(--border-color);  
    border-radius: 4px;  
    background: var(--background-color);  
    color: var(--text-primary);  
}  
  
.dimension-row .dimension-custom-input:disabled {  
    background: var(--surface-color);  
    color: var(--text-tertiary);  
    opacity: 0.6;  
    cursor: not-allowed;  
}  
  
.dimension-row .dimension-custom-input::placeholder {  
    color: var(--text-tertiary);  
}  
  
/* ========== 响应式布局 ========== */  
@media (max-width: 1200px) {  
    .dimension-row {  
        flex-wrap: wrap;  
    }  
      
    .dimension-row .dimension-name-label {  
        flex: 0 0 100%;  
        margin-bottom: 8px;  
    }  
      
    .dimension-row .dimension-select,  
    .dimension-row .dimension-custom-input {  
        flex: 1 1 calc(50% - 6px);  
    }  
}  
  
@media (max-width: 800px) {  
    .dimension-row {  
        flex-direction: column;  
        align-items: stretch;  
        gap: 8px;  
    }  
      
    .dimension-row .dimension-checkbox {  
        align-self: flex-start;  
    }  
      
    .dimension-row .dimension-name-label {  
        margin-bottom: 4px;  
    }  
      
    .dimension-row .dimension-select,  
    .dimension-row .dimension-custom-input {  
        flex: 1 1 100%;  
        min-width: 0;  
        width: 100%;  
    }  
}  
  
/* ========== 全局设置区域 ========== */  
.creative-global-settings {  
    background: var(--card-background);  
    border: 1px solid var(--border-color);  
    border-radius: 8px;  
    padding: 20px;  
    margin-bottom: 20px;  
}  
  
.creative-global-settings .form-row {  
    display: flex;  
    gap: 12px;  
    margin-bottom: 16px;  
    flex-wrap: wrap;  
}  
  
.creative-global-settings .form-group {  
    flex: 1;  
    min-width: 200px;  
}  
  
/* 滑块控件样式 */  
.slider-container {    
    display: flex;    
    align-items: center;    
    gap: 12px;    
    margin: 0;
} 
  
.slider-container input[type="range"] {    
    flex: 1;    
    height: 6px;    
    border-radius: 3px;    
    background: var(--border-color);
    outline: none;    
    transition: background 0.2s;    
}    
  
/* 悬停时稍微加深 */  
.slider-container input[type="range"]:hover {    
    background: rgba(127, 127, 127, 0.15);
}  
  
/* 暗色模式下的特殊处理 */  
[data-theme="dark"] .slider-container input[type="range"] {    
    background: rgba(255, 255, 255, 0.1);
}  
  
[data-theme="dark"] .slider-container input[type="range"]:hover {    
    background: rgba(255, 255, 255, 0.15);    
}  
  
/* 滑块按钮保持主题色 */  
.slider-container input[type="range"]::-webkit-slider-thumb {    
    appearance: none;    
    width: 16px;    
    height: 16px;    
    border-radius: 50%;    
    background: var(--primary-color);    
    cursor: pointer;    
    transition: transform 0.2s, box-shadow 0.2s;    
}    
  
.slider-container input[type="range"]::-webkit-slider-thumb:hover {    
    transform: scale(1.1);    
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);    
}  
  
.slider-container input[type="range"]::-moz-range-thumb {    
    width: 16px;    
    height: 16px;    
    border-radius: 50%;    
    background: var(--primary-color);    
    cursor: pointer;    
    border: none;    
    transition: transform 0.2s, box-shadow 0.2s;    
}    
  
.slider-container input[type="range"]::-moz-range-thumb:hover {    
    transform: scale(1.1);    
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);    
}
  
.slider-value {    
    min-width: 50px;    
    padding: 4px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-align: center;    
    font-size: 14px;    
    font-weight: 600;    
    display: inline-block;
}

.config-mobile-navigation {
    display: none;
}

.style-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.workspace-page-header > .style-manager-header {
    width: 100%;
    padding-bottom: 0;
    border-bottom: 0;
}

.style-manager-header h2 {
    margin: 0;
    font-size: 24px;
}

.style-manager-source-tabs {
    display: flex;
    gap: 22px;
    padding: 18px 0 0;
    border-bottom: 1px solid var(--border-color);
}

.style-manager-source-tabs button {
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-secondary);
    background: transparent;
    font-size: 15px;
    cursor: pointer;
}

.style-manager-source-tabs button.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.preset-view[hidden] { display: none !important; }

.preset-editor-view { max-width: 1040px; margin: 0 auto; }

.preset-editor-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border-color); }

.preset-editor-heading h2,
.preset-editor-heading p { margin: 0; }

.preset-editor-heading p { margin-top: 5px; }

.preset-editor { display: grid; gap: 16px; margin-top: 18px; }

.preset-editor-section { padding: 18px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-background); }

.preset-editor-section h3 { margin: 0; font-size: 17px; }

.preset-section-heading,
.preset-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.creation-preset-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.creation-preset-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-background);
}

.creation-preset-item.is-default {
    border-color: var(--primary-color);
}

.preset-item-main {
    min-width: 0;
}

.preset-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.preset-item-meta,
.preset-item-main p,
.preset-state {
    margin-top: 8px;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.preset-default-badge {
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    font-size: 12px;
}

.preset-item-actions {
    justify-content: flex-end;
    flex: 0 0 auto;
}

.preset-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 0;
}

.preset-form-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.preset-default-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preset-field-wide { grid-column: 1 / -1; }

.preset-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 20px; }

@media (max-width: 900px) {
    .config-layout {
        flex-direction: column;
    }

    .config-content {
        width: 100%;
    }

    .config-mobile-navigation {
        display: grid;
        gap: 6px;
        padding: 12px 10px 0;
        font-size: 13px;
        color: var(--text-secondary);
    }

    #config-mobile-nav {
        width: 100%;
        min-width: 0;
    }

    .style-manager-header {
        align-items: flex-start;
    }

    .style-manager-source-tabs {
        gap: 16px;
    }

    .preset-form-grid {
        grid-template-columns: 1fr;
    }

    .preset-field-wide { grid-column: auto; }

    .preset-editor-header { grid-template-columns: 1fr auto; }

    .preset-editor-heading { grid-column: 1 / -1; grid-row: 1; }

    #creation-preset-back { grid-column: 1; grid-row: 2; justify-self: start; }

    #creation-preset-cancel { grid-column: 2; grid-row: 2; }

    .preset-editor-footer { align-items: stretch; flex-direction: column; }

    .preset-editor-footer .btn { min-height: 40px; }

    .creation-preset-item {
        flex-direction: column;
    }

    .preset-item-actions {
        justify-content: flex-start;
    }
}
