:root {
    --primary: #5c6bc0;
    --primary-dark: #4a5ab9;
    --sidebar-bg: #1a2035;
    --sidebar-active: rgba(92, 107, 192, .2);
    --body-bg: #f5f7fb;
    --card-bg: #ffffff;
    --text: #344767;
    --muted: #7b809a;
    --line: #e9ecef;
    --success: #26a69a;
    --warning: #ffa726;
    --danger: #ef5350;
    --info: #29b6f6;
    --shadow: 0 4px 20px rgba(0, 0, 0, .04);
    --shadow-strong: 0 12px 34px rgba(28, 34, 58, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--body-bg);
    color: var(--text);
    font-size: 14px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--sidebar-bg);
    color: rgba(255, 255, 255, .7);
    padding: 0 12px 24px;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 18px 12px 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}
.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    color: #fff;
    background: var(--primary);
}
.brand-text {
    white-space: nowrap;
}
.sidebar-divider {
    border-top: 1px solid rgba(255,255,255,.1);
    margin: 0 12px 16px;
}
.sidebar-section-title {
    padding: 0 12px 8px;
    color: rgba(255,255,255,.42);
    font-size: 11px;
    font-weight: 600;
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    min-height: 44px;
    color: rgba(255,255,255,.76);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color .16s ease, background .16s ease;
}
.nav-link i {
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
    font-size: 17px;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.nav-link.is-active {
    color: #fff;
    background: var(--sidebar-active);
}
.nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 25px;
    border-radius: 0 2px 2px 0;
    background: var(--primary);
    transform: translateY(-50%);
}
.nav-group {
    margin: 2px 0;
}
.nav-group-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255,255,255,.78);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: color .16s ease, background .16s ease;
}
.nav-group-toggle:hover,
.nav-group.is-open > .nav-group-toggle:hover,
.nav-group.is-open > .nav-group-toggle {
    color: #fff;
    background: rgba(255,255,255,.06);
}
.nav-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-group-label i {
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
    font-size: 17px;
}
.nav-group-chevron {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    transition: transform .16s ease;
}
.nav-submenu {
    display: none;
    padding: 3px 0 6px 22px;
}
.nav-group.is-open .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-submenu .nav-link {
    min-height: 40px;
    padding: 8px 14px;
    color: rgba(255,255,255,.66);
    font-size: 13px;
}
.nav-submenu .nav-link i {
    font-size: 16px;
}
.nav-submenu .nav-link.is-active {
    background: #2b3765;
    color: #fff;
}
.sidebar-logout .nav-link {
    color: rgba(255,255,255,.62);
    background: transparent;
}
.sidebar-logout .nav-link:hover {
    color: #fff;
    background: rgba(239,83,80,.14);
}
.sidebar-footer-divider { margin-top: 20px; }

.main {
    min-width: 0;
    min-height: 100vh;
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px 30px;
    background: rgba(245, 247, 251, .94);
    backdrop-filter: blur(10px);
}
.topbar-title { min-width: 0; }
.topbar-title strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
}
.breadcrumb-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}
.breadcrumb-line a { color: var(--primary); }
.user-chip {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 12px 6px 6px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7986cb 100%);
}
.user-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.user-label,
.user-account {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-label {
    color: var(--text);
    font-weight: 650;
}
.user-account {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.page { padding: 0 30px 30px; }
.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(233,236,239,.8);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.page-title + .panel,
.page-title + .table-wrap,
.page-title + .list-card,
.page-title + section,
.page-title + form {
    margin-top: 0;
}
.page-title h1 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 760;
}
.page-title > div:first-child { min-width: 0; }
.page-title > .btn,
.page-title > .actions,
.page-title > form {
    flex: 0 0 auto;
    margin-left: auto;
}
.subtitle {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.panel {
    margin-bottom: 22px;
    padding: 24px;
    background: var(--card-bg);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.panel h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}
.detail-list {
    display: grid;
    gap: 12px;
}
.detail-list div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 38px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1f7;
}
.detail-list div:last-child {
    border-bottom: 0;
}
.detail-list span {
    color: var(--muted);
    font-size: 13px;
}
.detail-list strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.quick-action {
    display: block;
    min-height: 108px;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(233,236,239,.75);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.quick-action:hover {
    border-color: rgba(92,107,192,.28);
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}
.quick-action strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}
.quick-action span { line-height: 1.6; }

.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 18px;
}
.stat {
    min-height: 132px;
    padding: 24px;
    color: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #5c6bc0 0%, #7986cb 100%);
}
.stat:nth-child(2) { background: linear-gradient(135deg, #26a69a 0%, #4db6ac 100%); }
.stat:nth-child(3) { background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%); }
.stat:nth-child(4) { background: linear-gradient(135deg, #29b6f6 0%, #4fc3f7 100%); }
.stat:nth-child(5) { background: linear-gradient(135deg, #7e57c2 0%, #9575cd 100%); }
.stat span {
    display: block;
    opacity: .9;
    font-size: 13px;
}
.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 32px;
    line-height: 1.1;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.search {
    display: flex;
    align-items: center;
    gap: 8px;
}
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}
th {
    padding: 14px 16px;
    color: var(--muted);
    background: #f8fafc;
    border: none;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}
td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
tbody tr:hover { background: #f8fafc; }
tr:last-child td { border-bottom: 0; }
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 10px 18px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .16s ease, box-shadow .16s ease, color .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover {
    color: var(--primary);
    border-color: #cfd5f7;
    box-shadow: 0 8px 18px rgba(92,107,192,.12);
    transform: translateY(-1px);
}
.btn-primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(92,107,192,.35);
}
.btn-prompt-preview {
    color: #fff;
    background: #14b8a6;
    border-color: #14b8a6;
}
.btn-prompt-preview:hover {
    color: #fff;
    background: #0f9f90;
    border-color: #0f9f90;
    box-shadow: 0 8px 20px rgba(20, 184, 166, .28);
}
.btn-prompt-preview:disabled {
    color: #fff;
    background: #7dd3c7;
    border-color: #7dd3c7;
    cursor: wait;
    box-shadow: none;
    transform: none;
}
.btn-danger {
    color: #fff;
    background: #ef4444;
    border-color: #ef4444;
}
.btn-danger:hover {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}
.btn-small {
    min-height: 32px;
    padding: 6px 14px;
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 28px;
    padding: 6px 12px;
    color: var(--primary);
    background: rgba(92,107,192,.15);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green { color: var(--success); background: rgba(38,166,154,.15); }
.badge-amber { color: var(--warning); background: rgba(255,167,38,.15); }
.badge-red { color: var(--danger); background: rgba(239,83,80,.15); }
.badge-info { color: var(--info); background: rgba(41,182,246,.15); }
.badge-count { color: #64748b; background: #f1f5f9; }
.badge-category { color: #7c3aed; background: #f3e8ff; }
.badge-platform { color: var(--primary); background: rgba(92,107,192,.15); }
.badge-task-type { color: #0f766e; background: #ccfbf1; }
.badge-model-name { color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; }
.badge-api-name { color: #6b7a90; background: #f7f9fc; border: 1px solid #e3eaf2; }
.badge-wire-api { color: #3f6f9f; background: #edf6ff; border: 1px solid #cfe3f7; }
.badge-model-category { color: #2f7f74; background: #eefaf7; border: 1px solid #c9ebe4; }
.badge-source-prompt { color: #7c3aed; background: #f3e8ff; }
.badge-source-workflow { color: #c2410c; background: #ffedd5; }
.badge-product { color: #0891b2; background: #e0f2fe; font-weight: 600; }
.badge-job-product { color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; font-weight: 500; }
.badge-title-product { color: #0284c7; background: #f0f9ff; border: 1px solid #bae6fd; font-weight: 500; }
.badge-title-template { color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; font-weight: 500; }
.badge-processed { color: #0f766e; background: #ccfbf1; }
.badge-unprocessed { color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; }
.badge-output-content { color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; font-weight: 500; }
.badge-output-title { color: #0f766e; background: #ecfdf5; border: 1px solid #99f6e4; font-weight: 500; }
.template-admin-table .badge-category {
    color: #7a5a2c;
    background: #fff7e8;
    border: 1px solid #f3ddb4;
    font-weight: 500;
}
.template-admin-table .badge-platform {
    color: #37617a;
    background: #eef8ff;
    border: 1px solid #cfe8f7;
    font-weight: 500;
}
.template-admin-table {
    table-layout: fixed;
}
.template-admin-table th:nth-child(1),
.template-admin-table td:nth-child(1) {
    width: 42px;
}
.template-admin-table th:nth-child(2),
.template-admin-table td:nth-child(2) {
    width: 72px;
}
.template-admin-table th:nth-child(3),
.template-admin-table td:nth-child(3) {
    width: 290px;
}
.template-admin-table th:nth-child(4),
.template-admin-table td:nth-child(4) {
    width: 170px;
}
.template-admin-table th:nth-last-child(2),
.template-admin-table td:nth-last-child(2) {
    width: 150px;
}
.template-admin-table th:last-child,
.template-admin-table td:last-child {
    width: 260px;
}
.template-admin-table td:nth-child(3) {
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.template-admin-table .list-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.template-admin-table .btn-list-action {
    min-width: 52px;
    justify-content: center;
}
.content-list-table .badge-source-prompt { color: #6d5bd0; background: #f6f4ff; border: 1px solid #e5defd; font-weight: 500; }
.content-list-table .badge-source-workflow { color: #9a6a2f; background: #fff8ed; border: 1px solid #f2dfbd; font-weight: 500; }
.content-list-table .badge-product { color: #0284c7; background: #f0f9ff; border: 1px solid #bae6fd; font-weight: 500; }
.content-list-table .badge-processed { color: #0f766e; background: #f0fdfa; border: 1px solid #99f6e4; font-weight: 500; }
.content-list-table .badge-unprocessed { color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; font-weight: 500; }
.content-list-table .badge-green { color: #0f766e; background: #f0fdfa; border: 1px solid #99f6e4; font-weight: 500; }
.content-list-table .badge-amber { color: #a16207; background: #fffbeb; border: 1px solid #fde68a; font-weight: 500; }
.content-list-table .badge-red { color: #b91c1c; background: #fff1f2; border: 1px solid #fecdd3; font-weight: 500; }
.job-list-table .badge-source-prompt { color: #6d5bd0; background: #f6f4ff; border: 1px solid #e5defd; font-weight: 500; }
.job-list-table .badge-source-workflow { color: #9a6a2f; background: #fff8ed; border: 1px solid #f2dfbd; font-weight: 500; }
.job-list-table .badge-source-manual { color: #0f766e; background: #f0fdfa; border: 1px solid #99f6e4; font-weight: 500; }
.job-list-table .badge-task-type { color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; font-weight: 500; }
.job-list-table {
    table-layout: fixed;
    min-width: 0;
}
.job-list-table th,
.job-list-table td {
    padding-left: 10px;
    padding-right: 10px;
}
.job-list-table th:nth-child(1),
.job-list-table td:nth-child(1) {
    width: 42px;
}
.job-list-table th:nth-child(2),
.job-list-table td:nth-child(2) {
    width: 56px;
}
.job-list-table th:nth-child(3),
.job-list-table td:nth-child(3) {
    width: 130px;
}
.job-list-table th:nth-child(4),
.job-list-table td:nth-child(4) {
    width: 116px;
}
.job-list-table th:nth-child(5),
.job-list-table td:nth-child(5) {
    width: 138px;
}
.job-list-table th:nth-child(6),
.job-list-table td:nth-child(6) {
    width: 116px;
}
.job-list-table th:nth-child(7),
.job-list-table td:nth-child(7),
.job-list-table th:nth-child(8),
.job-list-table td:nth-child(8) {
    width: 96px;
}
.job-list-table th:nth-child(9),
.job-list-table td:nth-child(9) {
    width: 86px;
}
.job-list-table th:nth-child(10),
.job-list-table td:nth-child(10) {
    width: 118px;
}
.job-list-table .badge-task-type {
    max-width: 118px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.job-list-table .job-list-task-name {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-list-table .badge-job-product { color: #0284c7; background: #f0f9ff; border: 1px solid #bae6fd; font-weight: 500; }
.job-list-table .badge-count { color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; font-weight: 500; }
.job-list-table .badge-green { color: #0f766e; background: #f0fdfa; border: 1px solid #99f6e4; font-weight: 500; }
.job-list-table .badge-amber { color: #a16207; background: #fffbeb; border: 1px solid #fde68a; font-weight: 500; }
.job-list-table .badge-red { color: #b91c1c; background: #fff1f2; border: 1px solid #fecdd3; font-weight: 500; }
.job-list-table .platform-badge { color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; font-weight: 500; }
.job-list-table .platform-badge-icon { color: #64748b; background: #fff; }
.job-list-table th:nth-last-child(2),
.job-list-table td:nth-last-child(2) {
    width: 138px;
    white-space: nowrap;
}
.job-list-table th:last-child,
.job-list-table td:last-child {
    width: 152px;
}
.job-list-table-image {
    width: 100%;
    min-width: 0;
}
.job-list-table-image th,
.job-list-table-image td {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
}
.job-list-table-image th:nth-child(2),
.job-list-table-image td:nth-child(2) {
    width: 42px;
}
.job-list-table-image th:nth-child(3),
.job-list-table-image td:nth-child(3) {
    width: 92px;
}
.job-list-table-image th:nth-child(4),
.job-list-table-image td:nth-child(4) {
    width: 72px;
}
.job-list-table-image th:nth-child(5),
.job-list-table-image td:nth-child(5) {
    width: 84px;
}
.job-list-table-image th:nth-child(6),
.job-list-table-image td:nth-child(6) {
    width: 68px;
}
.job-list-table-image th:nth-child(7),
.job-list-table-image td:nth-child(7) {
    width: 80px;
}
.job-list-table-image th:nth-child(8),
.job-list-table-image td:nth-child(8) {
    width: 72px;
}
.job-list-table-image th:nth-child(9),
.job-list-table-image td:nth-child(9) {
    width: 230px;
}
.job-list-table-image th:nth-child(10),
.job-list-table-image td:nth-child(10) {
    width: 76px;
}
.job-list-table-image th:nth-last-child(2),
.job-list-table-image td:nth-last-child(2) {
    width: 126px;
    white-space: nowrap;
}
.job-list-table-image th:last-child,
.job-list-table-image td:last-child {
    width: 116px;
}
.job-list-table-image .content-list-title,
.job-list-table-image .badge,
.job-list-table-image .platform-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-list-table-image .badge-task-type {
    max-width: 100%;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.job-list-table-image .badge-job-quantity { justify-content: center; min-width: 50px; max-width: none; overflow: visible; padding: 4px 8px; border-radius: 4px; text-overflow: clip; }
.job-list-table-image .list-actions {
    gap: 4px;
}
.job-list-table-image .btn-list-action {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 12px;
}
.job-image-batch-progress { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.job-image-batch-progress span { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 6px; border: 1px solid transparent; border-radius: 4px; font-size: 11px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.job-image-batch-progress .is-complete { color: #08795a; background: #effaf6; border-color: #bfe7d8; }
.job-image-batch-progress .is-generating { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.job-image-batch-progress .is-remaining { color: #9a6700; background: #fff8e6; border-color: #f1d89b; }
.process-article-table .badge-platform { color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; font-weight: 500; }
.process-article-table .badge-product { color: #0284c7; background: #f0f9ff; border: 1px solid #bae6fd; font-weight: 500; }
.process-article-table .badge-category { color: #6d5bd0; background: #f6f4ff; border: 1px solid #e5defd; font-weight: 500; }
.process-article-table .badge-count { color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; font-weight: 500; }
.content-list-title {
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
}
.content-list-table-image {
    table-layout: fixed;
    min-width: 1060px;
}
.content-list-table-image th:nth-child(1),
.content-list-table-image td:nth-child(1) {
    width: 42px;
}
.content-list-table-image th:nth-child(2),
.content-list-table-image td:nth-child(2) {
    width: 64px;
}
.content-list-table-image th:nth-child(3),
.content-list-table-image td:nth-child(3) {
    width: 116px;
}
.content-list-table-image th:nth-child(4),
.content-list-table-image td:nth-child(4) {
    width: 300px;
}
.content-list-table-image th:nth-child(5),
.content-list-table-image td:nth-child(5) {
    width: 170px;
}
.content-list-table-image th:nth-child(6),
.content-list-table-image td:nth-child(6) {
    width: 130px;
}
.content-list-table-image th:nth-child(7),
.content-list-table-image td:nth-child(7) {
    width: 152px;
}
.content-list-table-image th:nth-child(8),
.content-list-table-image td:nth-child(8) {
    width: 178px;
}
.content-image-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.content-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.content-list-table-image td:nth-child(3) > .badge {
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0 6px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}
.content-list-table-image .content-list-title,
.content-list-copy {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #334155;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.content-list-copy-clamp {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.content-publish-field {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.platform-list-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.platform-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px 5px 6px;
    color: var(--primary);
    background: rgba(92,107,192,.15);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.platform-badge-icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
    color: var(--primary);
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 28px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.field label {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
}
.field-hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.input-icon input {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus,
.input-icon:focus-within input {
    border-color: var(--line);
    box-shadow: none;
}
.field textarea {
    min-height: 112px;
    resize: vertical;
}

/* Compact model settings surface. */
.model-config-form {
    padding: 22px 24px 20px;
}
.model-config-form > h2 {
    margin-bottom: 18px;
    color: #263b63;
    font-size: 17px;
}
.model-config-form > .form-grid {
    column-gap: 16px;
    row-gap: 16px;
}
.model-config-form .field {
    gap: 7px;
}
.model-config-form .field label {
    color: #3d5276;
    font-size: 12px;
    font-weight: 700;
}
.model-config-form .field input:not([type="checkbox"]):not([type="radio"]),
.model-config-form .field select {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.model-option-section {
    margin-top: 22px;
    padding: 20px 16px 22px;
    background: #f8fafc;
    border: 1px solid #e5ebf3;
    border-radius: 11px;
}
.model-option-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.model-option-heading h3 {
    margin: 0;
    color: #31496f;
    font-size: 14px;
    line-height: 1.4;
}
.model-option-heading span {
    color: #7a879b;
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
}
.model-option-section .form-grid {
    column-gap: 16px;
    row-gap: 22px;
}
.model-option-section .field {
    gap: 10px;
}
.model-option-section[data-model-options="image"] .field {
    min-height: 74px;
}
.model-option-section .check,
.model-enabled-row .check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3d5276;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}
.model-choice-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 12px;
    min-height: 40px;
}
.model-choice {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.model-choice input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}
.model-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 36px;
    padding: 6px 13px;
    color: #60708a;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.model-choice:hover span {
    color: #4e61b8;
    border-color: #bcc8ef;
}
.model-choice input:checked + span {
    color: #4d5fb4;
    background: #eef1ff;
    border-color: #8f9ce0;
}
.model-enabled-row {
    margin-top: 16px;
    padding: 11px 13px;
    background: #f8fafc;
    border: 1px solid #e5ebf3;
    border-radius: 9px;
}
.model-config-form .form-actions {
    margin-top: 18px;
    padding-top: 15px;
}
.model-config-form .form-actions .btn {
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 12px;
}
@media (max-width: 760px) {
    .model-option-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
    .model-option-heading span {
        text-align: left;
    }
}
.rich-editor {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.rich-editor-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 46px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}
.rich-editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    color: var(--text);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}
.rich-editor-toolbar button:hover {
    color: var(--primary);
    border-color: rgba(92, 107, 192, .35);
}
.rich-editor-divider {
    width: 1px;
    height: 22px;
    margin: 0 3px;
    background: #e2e8f0;
}
.rich-editor-body {
    min-height: 520px;
    padding: 18px 20px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
    outline: none;
}
.rich-editor-body:focus {
    box-shadow: inset 0 0 0 1px rgba(92, 107, 192, .18);
}
.rich-editor-body h2 {
    margin: 20px 0 10px;
    font-size: 20px;
    line-height: 1.4;
}
.rich-editor-body p {
    margin: 0 0 14px;
}
.rich-editor-body ul,
.rich-editor-body ol {
    margin: 0 0 14px 22px;
    padding: 0;
}
.rich-editor-body blockquote {
    margin: 0 0 14px;
    padding: 10px 14px;
    color: #475569;
    background: #f8fafc;
    border-left: 3px solid var(--primary);
}
.rich-editor-body .markdown-table-wrap {
    width: 100%;
    margin: 14px 0 18px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.rich-editor-body .markdown-table,
.rich-editor-body table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 14px;
    line-height: 1.65;
}
.rich-editor-body .markdown-table th,
.rich-editor-body .markdown-table td,
.rich-editor-body table th,
.rich-editor-body table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.rich-editor-body .markdown-table th:last-child,
.rich-editor-body .markdown-table td:last-child,
.rich-editor-body table th:last-child,
.rich-editor-body table td:last-child {
    border-right: 0;
}
.rich-editor-body .markdown-table tbody tr:last-child td,
.rich-editor-body table tbody tr:last-child td {
    border-bottom: 0;
}
.rich-editor-body .markdown-table th,
.rich-editor-body table th {
    color: #334155;
    background: #f8fafc;
    font-weight: 700;
    white-space: nowrap;
}
.rich-editor-preview {
    min-height: 520px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.company-profile-form textarea {
    min-height: 132px;
    line-height: 1.7;
}
.product-profile-form textarea {
    min-height: 220px;
    line-height: 1.7;
}
.company-profile-form .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.readonly-file {
    min-height: 42px;
    padding: 10px 16px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    line-height: 1.5;
    word-break: break-all;
}
.required-star {
    color: var(--danger);
}
.asset-upload-card {
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.asset-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}
.asset-upload-head h1 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #1f2a44;
    font-size: 16px;
    font-weight: 760;
}
.asset-upload-head h1 i {
    color: var(--primary);
    font-size: 17px;
}
.asset-upload-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 26px 24px 44px;
}
.asset-upload-body .field select {
    border-radius: 10px;
}
.asset-dropzone {
    position: relative;
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 34px 24px;
    color: #1f2a44;
    background: #fff;
    border: 2px dashed #c9d4e3;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, background .16s ease;
}
.asset-dropzone:hover,
.asset-dropzone.is-dragging,
.asset-dropzone.has-file {
    background: #f8fafc;
    border-color: #6b7fd6;
}
.asset-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.asset-dropzone-icon {
    color: #1f2a44;
    font-size: 40px;
    line-height: 1;
}
.asset-dropzone-title {
    font-size: 14px;
    font-weight: 650;
}
.asset-dropzone-meta {
    color: var(--muted);
    font-size: 13px;
}
.asset-upload-progress {
    display: grid;
    gap: 10px;
}
.asset-upload-progress[hidden] {
    display: none;
}
.asset-progress-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}
.asset-progress-line strong {
    color: var(--text);
}
.asset-progress-track {
    height: 10px;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 999px;
}
.asset-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: #5c6bc0;
    border-radius: inherit;
    transition: width .12s linear;
}
.asset-progress-files {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}
.asset-upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid var(--line);
}
.asset-upload-actions .btn-list-action,
.asset-upload-head .btn-list-action {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
}
.field textarea.template-content-input {
    min-height: 620px;
    padding: 16px 18px;
    color: #1f2937;
    background: #f8fafc;
    border-color: #dbe3ef;
    border-radius: 8px;
    font-family: Consolas, "Courier New", "Microsoft YaHei", monospace;
    line-height: 1.8;
    tab-size: 4;
}
.field textarea.template-content-input::placeholder {
    color: #94a3b8;
}
.field textarea.template-content-input:focus {
    border-color: #dbe3ef;
    box-shadow: none;
}
.template-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.template-category-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px 8px 10px;
    color: #475569;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.template-category-option:hover {
    border-color: #bfdbfe;
}
.template-category-option:has(input:checked) {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #3b82f6;
}
.template-category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.template-category-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    color: #3b82f6;
    background: #eff6ff;
    border-radius: 7px;
    font-size: 14px;
}
.template-category-option:has(input:checked) .template-category-icon {
    color: #fff;
    background: #3b82f6;
}
.template-editor-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf1f7;
}
.template-editor-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr);
    gap: 18px;
    align-items: start;
}
.template-editor-main,
.template-editor-side {
    min-width: 0;
}
.template-editor-main-field {
    gap: 12px;
}
.template-editor-main-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.template-editor-textarea {
    min-height: 720px;
    font-family: Consolas, "Courier New", "Microsoft YaHei", monospace;
    line-height: 1.85;
}
.template-helper-card {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5ecf5;
    border-radius: 12px;
}
.template-helper-card + .template-helper-card {
    margin-top: 16px;
}
.template-helper-card h2 {
    margin: 0 0 12px;
    font-size: 15px;
}
.template-variable-panel-editor {
    grid-template-columns: 1fr;
}
.template-helper-list {
    margin: 0;
    padding: 0 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}
.template-variable-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
}
.template-variable-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    min-height: 74px;
    padding: 10px 12px;
    text-align: left;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.template-variable-chip span {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}
.template-variable-chip small {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}
.template-variable-chip em {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 2px 7px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity .16s ease, transform .16s ease;
}
.template-variable-chip:hover,
.template-variable-chip.is-copied {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
}
.template-variable-chip.is-copied em {
    color: #fff;
    background: #22c55e;
    opacity: 1;
    transform: translateY(0);
}
.template-variable-chip.is-copy-failed {
    background: #fff7ed;
    border-color: #fdba74;
}
.template-variable-chip.is-copy-failed em {
    color: #fff;
    background: #f97316;
    opacity: 1;
    transform: translateY(0);
}
.template-preview-content {
    min-height: 360px;
    margin: 0;
    padding: 18px;
    overflow: auto;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
    font: 14px/1.8 "Microsoft YaHei", Consolas, monospace;
}
.field-full { grid-column: 1 / -1; }
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon i {
    position: absolute;
    left: 15px;
    color: var(--muted);
    pointer-events: none;
}
.input-icon input { padding-left: 44px; }
.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
input[type="checkbox"],
input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex: 0 0 16px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #dcdfe6;
    cursor: pointer;
    outline: none;
    transition: none;
}
input[type="checkbox"] {
    border-radius: 3px;
}
input[type="radio"] {
    border-radius: 50%;
}
input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.3 8L11 1' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 11px 9px;
    background-repeat: no-repeat;
}
input[type="checkbox"]:indeterminate {
    background: #3b82f6;
    border-color: #3b82f6;
    background-image: linear-gradient(#fff, #fff);
    background-position: center;
    background-size: 8px 2px;
    background-repeat: no-repeat;
}
input[type="radio"]:checked {
    border: 5px solid #3b82f6;
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    box-shadow: none;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.admin-test-page {
    padding-bottom: 46px;
}
.admin-test-summary,
.admin-test-result-head {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.admin-test-summary > div,
.admin-test-result-head > div {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.admin-test-summary span,
.admin-test-result-head span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
}
.admin-test-summary strong,
.admin-test-result-head strong {
    color: #1f2937;
    font-weight: 600;
}
.admin-test-form {
    margin: 18px 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.admin-test-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.admin-test-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #334155;
    font-weight: 600;
}
.admin-test-form input,
.admin-test-form select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
}
.template-ai-test {
    padding-bottom: 54px;
}
.template-test-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin: 18px 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.template-test-title span,
.template-test-panel-head p,
.template-test-output-head span {
    color: #8a97a8;
    font-size: 13px;
}
.template-test-title strong {
    display: block;
    margin-top: 5px;
    color: #334155;
    font-size: 20px;
    font-weight: 700;
}
.template-test-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.template-test-tags span {
    padding: 6px 10px;
    color: #6b7280;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}
.template-test-panel {
    margin-bottom: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.template-test-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.template-test-panel-head h2,
.template-test-output-head h2 {
    margin: 0 0 4px;
    color: #334155;
    font-size: 16px;
}
.template-test-panel-head p {
    margin: 0;
}
.template-test-data-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) 126px;
    gap: 12px;
    align-items: end;
}
.template-test-data-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #64748b;
    font-weight: 500;
}
.template-test-data-form select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    color: #64748b;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    font-weight: 500;
}
.template-test-inline-submit {
    width: 126px;
    height: 40px;
    justify-content: center;
    white-space: nowrap;
}
.template-test-inline-submit.is-loading i {
    animation: template-test-spin .9s linear infinite;
}
.template-test-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}
.template-test-metrics span {
    padding: 7px 10px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}
.template-test-metrics strong {
    color: #1f2937;
}
.template-test-output-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.template-test-output-card {
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.template-test-output-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 12px;
}
.template-test-output-card pre {
    max-height: 620px;
    margin: 0;
    padding: 15px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #24324a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    line-height: 1.75;
}
.template-test-output-card:nth-child(2) pre {
    color: #64748b;
}
.template-test-empty-output {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
.template-test-loading {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
.template-test-loading strong {
    color: #475569;
    font-weight: 600;
}
.template-test-loading p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}
.template-test-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #dbeafe;
    border-top-color: #4f63c6;
    border-radius: 999px;
    animation: template-test-spin .9s linear infinite;
}
@keyframes template-test-spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 1100px) {
    .template-test-output-grid,
    .template-test-data-form {
        grid-template-columns: 1fr;
    }
    .template-test-head,
    .template-test-panel-head {
        flex-direction: column;
        align-items: stretch;
    }
    .template-test-tags {
        justify-content: flex-start;
    }
}
.admin-test-error {
    margin: 18px 0;
    padding: 13px 15px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}
.admin-test-block {
    margin-top: 16px;
}
.admin-test-block h2,
.admin-test-flow h2 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 15px;
}
.admin-test-block pre {
    max-height: 520px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #24324a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    line-height: 1.75;
}
.admin-test-flow {
    margin-top: 18px;
}
.admin-test-step {
    display: grid;
    grid-template-columns: 80px minmax(160px, 240px) 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
}
.admin-test-step span {
    color: #64748b;
}
.admin-test-step strong {
    color: #1f2937;
}
.admin-test-step em {
    color: #64748b;
    font-style: normal;
}
.admin-test-workflow-step {
    margin-top: 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.admin-test-workflow-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.admin-test-workflow-head span,
.admin-test-meta span {
    color: #64748b;
}
.admin-test-workflow-head strong {
    display: block;
    margin-top: 3px;
    color: #1f2937;
}
.admin-test-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    font-size: 12px;
}
.admin-test-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 980px) {
    .admin-test-columns,
    .admin-test-step {
        grid-template-columns: 1fr;
    }
    .admin-test-workflow-head {
        flex-direction: column;
    }
    .admin-test-meta {
        justify-content: flex-start;
    }
}
@media (max-width: 1280px) {
    .template-editor-head,
    .template-editor-shell {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .template-editor-textarea {
        min-height: 560px;
    }
}
.flash {
    margin-bottom: 18px;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    transition: opacity .22s ease, transform .22s ease;
}
.flash.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}
.flash-success { color: var(--success); background: rgba(38,166,154,.12); }
.flash-error { color: var(--danger); background: rgba(239,83,80,.12); }
.empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}
.text-muted { color: var(--muted); }

.platform-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 12px;
}
.platform-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    color: #475569;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    cursor: pointer;
}
.platform-option:hover {
    border-color: #bfdbfe;
}
.platform-option:has(input:checked) {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #3b82f6;
}
.platform-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.platform-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    color: #3b82f6;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 16px;
}
.platform-option:has(input:checked) .platform-icon {
    color: #fff;
    background: #3b82f6;
}
.platform-label {
    font-size: 13px;
    font-weight: 600;
}
.platform-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.platform-icon-small {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 6px;
    font-size: 13px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a2035 0%, #2d3a5c 100%);
}
.login-box {
    width: min(420px, 100%);
    padding: 40px;
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-logo {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #7986cb 100%);
    border-radius: 16px;
    font-size: 32px;
}
.login-box h1 {
    margin: 0 0 8px;
    color: var(--text);
    text-align: center;
    font-size: 24px;
    font-weight: 760;
}
.login-box p {
    margin: 0 0 30px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}
.login-box .field { margin-top: 14px; }
.login-box .flash { margin-top: 16px; }
.login-box .field label {
    display: block;
    margin-bottom: 8px;
    color: #25314d;
    font-size: 13px;
    font-weight: 700;
}
.login-box .input-icon {
    position: relative;
}
.login-box .input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 1;
    color: #7d8798;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}
.login-box .input-icon input {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px 10px 44px;
    color: #25314d;
    background: #f7f9fc;
    border: 1px solid #e3e8f1;
    border-radius: 9px;
    outline: none;
    box-shadow: none;
}
.login-box .input-icon input:focus {
    background: #fff;
    border-color: #bcc8ee;
    box-shadow: 0 0 0 3px rgba(92, 107, 192, .12);
}
.login-box .input-icon input:-webkit-autofill,
.login-box .input-icon input:-webkit-autofill:hover,
.login-box .input-icon input:-webkit-autofill:focus {
    -webkit-text-fill-color: #25314d;
    box-shadow: 0 0 0 1000px #f7f9fc inset;
    transition: background-color 9999s ease-out;
}
.login-box .btn {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
}

@media (max-width: 1200px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: relative;
        height: auto;
        max-height: none;
    }
    .topbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding-left: 18px;
        padding-right: 18px;
    }
    .user-chip { justify-self: start; }
    .page { padding-left: 18px; padding-right: 18px; }
    .stats,
    .grid-2,
    .form-grid,
    .company-profile-form .form-grid,
    .quick-actions { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .sidebar-brand { padding-right: 4px; }
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .page-title > .btn,
    .page-title > .actions,
    .page-title > form {
        margin-left: 0;
    }
    .toolbar,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .btn { width: 100%; }
    .user-chip {
        width: 100%;
        border-radius: 14px;
    }
    .user-label,
    .user-account { max-width: none; }
    .login-box { padding: 30px 24px; }
}

/* Reference-site list surface: card header, light filter strip and compact controls. */
.list-card {
    margin-bottom: 22px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.list-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(233,236,239,.8);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.list-card-header h1,
.list-card-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 760;
}
.list-card-header .btn { margin-left: auto; }
.list-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}
.category-tabs-wrap {
    margin-bottom: 14px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
    padding: 0 2px;
}
.category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px 8px 10px;
    color: #475569;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.category-tab:hover {
    color: #3b82f6;
    border-color: #bfdbfe;
}
.category-tab.is-active {
    color: #fff;
    background: #3b82f6;
    border-color: #3b82f6;
}
.category-tab-disabled {
    cursor: default;
    opacity: .72;
}
.category-tab-disabled:hover {
    color: #475569;
    border-color: #dcdfe6;
}
.category-tab-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    color: #3b82f6;
    background: #eff6ff;
    border-radius: 7px;
    font-size: 15px;
}
.category-tab.is-active .category-tab-icon {
    color: #3b82f6;
    background: #fff;
}
.category-tabs-primary {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    width: 100%;
    gap: 10px;
}
.category-tabs-secondary {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    width: 100%;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}
.category-tab-child {
    min-height: 42px;
    padding: 8px 16px 8px 10px;
    font-size: 13px;
}
.template-list-tabs .category-tab {
    width: 148px;
    min-width: 148px;
    padding: 8px 10px;
    box-sizing: border-box;
    white-space: nowrap;
}
.template-list-tabs .category-tab-child {
    width: 148px;
    min-width: 148px;
}
.template-list-tabs .category-tab span:not(.category-tab-icon):not(.category-tab-count) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.category-tab-count {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding: 0 4px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1;
}
.category-tab.is-active .category-tab-count {
    color: #3b82f6;
    background: #fff;
}
.template-platform-category-cell {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.template-platform-category-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 30px;
    padding: 5px 9px;
    color: #37617a;
    background: #eef8ff;
    border: 1px solid #cfe8f7;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}
.template-platform-category-label small {
    color: inherit;
    font-size: 12px;
    font-weight: 500;
}
.template-platform-category-label strong {
    color: inherit;
    font-size: 12px;
    font-weight: 600;
}
.template-platform-category-child {
    color: #7a5a2c;
    background: #fff7e8;
    border-color: #f3ddb4;
}
.template-platform-category-child strong {
    color: inherit;
}
.template-platform-category-empty {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 12px;
}
.content-platform-tabs {
    border-bottom: 1px solid #e2e8f0;
}
.content-platform-tabs + .filter-bar {
    border-radius: 0;
}
.content-platform-tabs + .table-responsive {
    border-radius: 0 0 12px 12px;
}
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow);
}
.rules-filter-bar {
    justify-content: flex-start;
}
.rules-filter-bar .inline-post-form {
    margin-left: 0;
}
.content-list-actions {
    justify-content: flex-start;
}
.filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}
.filter-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
}
.filter-summary strong { color: var(--text); }
.inline-post-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.filter-form input,
.filter-form select,
.page-size-select {
    min-height: 34px;
    padding: 6px 10px;
    color: #606266;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    outline: none;
    font-size: 13px;
}
.filter-form input { width: 220px; }
.filter-form input:focus,
.filter-form select:focus,
.page-size-select:focus {
    border-color: #dcdfe6;
    box-shadow: none;
}
.table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
}
.table-responsive:has(+ .list-card-footer) {
    border-radius: 0;
}
.list-card table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.list-card th {
    padding: 13px 16px;
    color: #7b809a;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    text-align: left;
}
.list-card td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    vertical-align: middle;
}
.list-card tbody tr:hover { background: #f8fafc; }
.list-card tbody tr:last-child td { border-bottom: 0; }
.list-card .empty { padding: 46px 20px; }
.btn-list-add,
.btn-list-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 14px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.btn-list-add { background: #3b82f6; }
.btn-list-add:hover { color: #fff; background: #2563eb; }
.btn-list-action-edit { background: #3b82f6; }
.btn-list-action-edit:hover { color: #fff; background: #2563eb; }
.btn-list-action-delete { background: #ef4444; }
.btn-list-action-delete:hover { color: #fff; background: #dc2626; }
.btn-list-action-clear { color: #78350f; background: #fbbf24; }
.btn-list-action-clear:hover { color: #78350f; background: #f59e0b; }
.btn-list-action-info { background: #06b6d4; }
.btn-list-action-info:hover { color: #fff; background: #0891b2; }
.btn-list-action-warning { background: #f59e0b; }
.btn-list-action-warning:hover { color: #fff; background: #d97706; }
.btn-list-action-success { background: #10b981; }
.btn-list-action-success:hover { color: #fff; background: #059669; }
.btn-list-action-export { background: #7c3aed; }
.btn-list-action-export:hover { color: #fff; background: #6d28d9; }
.btn-list-action-muted { color: #475569; background: #eef2f7; }
.btn-list-action-muted:hover { color: #1e293b; background: #e2e8f0; }
.btn-list-action-disabled,
.btn-list-action-disabled:hover {
    cursor: not-allowed;
    color: #94a3b8;
    background: #e2e8f0;
    box-shadow: none;
    opacity: 1;
}
.list-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}
.list-card td.list-actions {
    display: table-cell;
    white-space: nowrap;
}
.list-card td.list-actions > * {
    margin-right: 6px;
    vertical-align: middle;
}
.list-card td.list-actions > *:last-child {
    margin-right: 0;
}
.job-list-table .list-actions {
    min-width: 0;
    gap: 5px;
}
.job-list-table .btn-list-action {
    min-height: 32px;
    padding: 6px 11px;
}
.export-job-table {
    min-width: 1220px;
    table-layout: fixed;
}
.export-job-table th,
.export-job-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}
.export-job-file {
    display: block;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.export-job-type {
    min-width: 58px;
    white-space: nowrap;
}
.export-job-waiting {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 6px;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}
.job-error-cell {
    width: 112px;
    max-width: 112px;
    overflow: hidden;
    color: #7f1d1d;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.product-row td {
    color: #5f6f89;
    font-size: 13px;
    line-height: 1.65;
}
.product-name-cell {
    width: 170px;
    max-width: 170px;
}
.product-name-cell strong {
    display: block;
    overflow: hidden;
    color: #50627d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-text-cell {
    max-width: 420px;
    color: #5f6f89;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}
.product-text-cell span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-row .list-actions {
    flex-wrap: nowrap;
    min-width: 112px;
}
.product-list-table th:nth-child(5),
.product-list-table td:nth-child(5) {
    width: 220px;
}
.product-list-table th:nth-child(6),
.product-list-table td:nth-child(6) {
    width: 180px;
}
.product-list-table td:nth-child(5) > .list-actions,
.product-list-table td:nth-child(6) > .list-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}
.product-list-table td:nth-child(5) .btn-list-action,
.product-list-table td:nth-child(6) .btn-list-action {
    min-height: 32px;
    padding: 6px 11px;
    white-space: nowrap;
}
.product-list-table {
    table-layout: fixed;
}
.product-list-table th:nth-child(1),
.product-list-table td:nth-child(1) {
    width: 42px;
}
.product-list-table th:nth-child(2),
.product-list-table td:nth-child(2) {
    width: 72px;
}
.product-list-table th:nth-child(3),
.product-list-table td:nth-child(3) {
    width: 170px;
}
.product-list-table th:nth-child(4),
.product-list-table td:nth-child(4) {
    width: 110px;
}
.image-asset-grid-form {
    margin: 0;
    padding: 18px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
}
.image-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.image-asset-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.image-asset-check {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.92);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    cursor: pointer;
}
.image-asset-check input {
    pointer-events: auto;
}
.image-asset-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}
.image-asset-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.image-asset-info {
    display: grid;
    gap: 5px;
    padding: 12px 12px 13px;
    text-align: center;
}
.image-asset-info strong,
.image-asset-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.image-asset-info strong {
    color: #50627d;
    font-size: 13px;
    font-weight: 500;
}
.asset-page-bottom-spacer {
    height: 96px;
}
.image-asset-info span {
    color: #7b809a;
    font-size: 12px;
}
.image-asset-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
}
.image-asset-actions .btn-list-action {
    flex: 1 1 0;
}
.image-asset-empty {
    grid-column: 1 / -1;
}

.generated-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.generated-image-preview {
    display: grid;
    gap: 8px;
    color: #334155;
    text-decoration: none;
}

.generated-image-preview img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.generated-image-preview span {
    font-size: 13px;
    color: #64748b;
}

.job-batch-image-cell {
    min-width: 112px;
}

.job-batch-image-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 190px;
    overflow: hidden;
}

.job-batch-image-preview a {
    display: block;
    flex: 0 0 52px;
}

.job-batch-image-preview img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.job-batch-image-empty {
    color: #94a3b8;
    font-size: 12px;
}

.image-preview-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 16px;
}

.image-preview-split-column {
    min-width: 0;
}

.image-preview-split-head {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.image-preview-part,
.image-preview-linked-item {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.image-preview-part-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.image-preview-part pre,
.image-preview-linked-meta span {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.image-preview-linked-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.image-preview-pages {
    display: grid;
    gap: 14px;
}

.image-preview-page {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.image-preview-page-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border-bottom: 1px solid #e6edf5;
    background: #f8fafc;
}

.image-preview-page-head strong {
    flex: 0 0 auto;
    color: #1f3a5f;
    font-size: 14px;
}

.image-preview-page-head span {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-preview-page-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 460px);
    gap: 12px;
    padding: 14px;
    align-items: start;
}

.image-preview-page-text,
.image-preview-page-media {
    min-width: 0;
}

.image-preview-page-text pre {
    min-height: 220px;
    max-height: 420px;
    margin: 0;
    padding: 12px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
    background: #fbfdff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.image-preview-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    color: #94a3b8;
    font-size: 13px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.generated-image-preview-grid.single {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.generated-image-preview-grid.single .generated-image-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 0 auto;
}

.image-preview-page-media .generated-image-preview {
    justify-items: start;
}

.image-generation-detail {
    display: grid;
    gap: 18px;
}

.image-generation-prompt pre {
    max-height: 520px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #334155;
    font-size: 13px;
    line-height: 1.75;
    background: #fbfdff;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
}

.image-generation-images {
    display: grid;
    gap: 12px;
}

.image-generation-images-title {
    color: #1f3a5f;
    font-size: 14px;
    font-weight: 600;
}

.image-generation-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 520px));
    gap: 16px;
    align-items: start;
}

.image-generation-image {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.image-generation-image img {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .image-preview-split {
        grid-template-columns: 1fr;
    }

    .image-preview-page-body {
        grid-template-columns: 1fr;
    }
}
.workflow-step-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.workflow-step-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: 320px;
    padding: 5px 9px;
    overflow: hidden;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-step-arrow {
    color: #94a3b8;
    font-size: 13px;
}
.workflow-builder {
    display: grid;
    gap: 12px;
}
.workflow-step-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.workflow-step-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #3b82f6;
    border-radius: 50%;
    font-weight: 700;
}
.workflow-step-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.workflow-step-main strong {
    color: #1e293b;
}
.workflow-connector {
    padding-left: 50px;
    color: #64748b;
    font-size: 13px;
}
.workflow-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.workflow-template-picker {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
}
.workflow-template-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.workflow-template-no {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    color: #fff;
    background: #3b82f6;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}
.workflow-template-head strong {
    color: #1e293b;
    font-size: 14px;
}
.workflow-template-search {
    position: relative;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
}
.workflow-template-search i {
    position: absolute;
    left: 28px;
    top: 50%;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}
.workflow-template-search input {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px 8px 36px;
    color: #334155;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    outline: none;
}
.workflow-template-list {
    display: grid;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px 14px;
}
.workflow-template-option {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 58px;
    padding: 10px;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    cursor: pointer;
}
.workflow-template-option:hover {
    background: #f8fafc;
    border-color: #bfdbfe;
}
.workflow-template-option:has(input:checked) {
    background: #eff6ff;
    border-color: #3b82f6;
}
.workflow-template-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.workflow-template-radio {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
}
.workflow-template-option:has(input:checked) .workflow-template-radio {
    border: 5px solid #3b82f6;
}
.workflow-template-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.workflow-template-name {
    overflow: hidden;
    color: #1e293b;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-template-category {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-template-empty {
    padding: 28px 12px;
    color: #94a3b8;
    text-align: center;
}
.article-prompt-picker {
    display: grid;
    gap: 18px;
}
.article-picker-section {
    display: grid;
    gap: 10px;
    margin: 0;
}
.article-picker-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.article-picker-head > div {
    display: grid;
    gap: 4px;
}
.article-picker-head-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.article-generation-section {
    padding: 22px 24px;
}
.article-generation-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
    width: 100%;
}
.article-generation-field {
    display: grid;
    width: min(220px, 100%);
    gap: 10px;
}
.article-generation-field span {
    color: #243b6b;
    font-size: 13px;
    font-weight: 700;
}
.article-generation-field input {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    color: #243b6b;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    outline: none;
    font-weight: 500;
    box-shadow: none;
    transition: border-color .16s ease;
}
.article-generation-field input:hover,
.article-generation-field input:focus {
    border-color: #dbe3ef;
    outline: none;
    box-shadow: none;
}
.article-generation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 1px;
}
.generation-count-chip {
    min-height: 42px;
    padding: 0 15px;
    color: #475569;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.generation-count-chip:hover,
.generation-count-chip.is-active {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.article-generation-estimate {
    flex-basis: 100%;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}
.article-picker-head h2 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}
.article-picker-head span {
    color: #64748b;
    font-size: 12px;
}
.article-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, max-content));
    justify-content: start;
    gap: 10px;
}
.generation-bottom-spacer {
    height: 110px;
}
.prompt-template-kind-tabs {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
}
.prompt-template-kind-tabs .category-tabs {
    gap: 10px;
    padding: 0;
}
.prompt-template-kind-tabs .category-tab {
    width: 122px;
    min-width: 122px;
    padding: 8px 10px;
    box-sizing: border-box;
}
.prompt-preview-dialog {
    width: min(960px, calc(100vw - 32px));
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 54px rgba(15, 23, 42, .18);
}
.prompt-preview-dialog .modal-header {
    padding: 14px 18px;
    background: #ffffff;
}
.prompt-preview-dialog .modal-header h2 {
    font-size: 15px;
    font-weight: 650;
}
.prompt-preview-dialog.modal-dialog-large .modal-body,
.prompt-preview-dialog .modal-body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    height: min(68vh, 660px);
    min-height: 0;
    padding: 14px;
    background: #f6f8fb;
}
.prompt-preview-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    color: #536173;
    background: #fff;
    border: 1px solid #e4eaf1;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.7;
    overflow: hidden;
    word-break: break-word;
}
.prompt-preview-chip {
    display: grid;
    gap: 2px;
    max-width: 100%;
    min-width: 0;
    padding: 9px 12px;
    color: #475569;
    background: #fff;
    border-right: 1px solid #edf1f6;
    border-radius: 0;
    line-height: 1.4;
}
.prompt-preview-chip:last-child {
    border-right: 0;
}
.prompt-preview-chip b {
    color: #8a96a8;
    font-size: 12px;
    font-weight: 500;
}
.prompt-preview-chip em {
    min-width: 0;
    color: #334155;
    font-style: normal;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prompt-preview-content {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 16px 18px;
    color: #27364a;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    font-family: Consolas, "Microsoft YaHei", monospace;
    font-size: 13px;
    line-height: 1.72;
    resize: none;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}
.prompt-preview-dialog.modal-dialog-large textarea.prompt-preview-content {
    min-height: 0;
}
.prompt-preview-content:focus {
    outline: none;
    border-color: #dbe3ef;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}
.prompt-preview-dialog .modal-footer {
    padding: 12px 18px;
    background: #fff;
}
.workflow-preview-steps {
    display: grid;
    align-content: start;
    gap: 12px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}
.workflow-preview-step {
    display: grid;
    grid-template-rows: auto minmax(180px, 1fr);
    min-height: 300px;
    max-height: 430px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 7px;
}
.workflow-preview-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e7edf5;
}
.workflow-preview-step-index {
    flex: 0 0 auto;
    padding: 3px 8px;
    color: #46638a;
    background: #eaf1f9;
    border: 1px solid #d4e2f1;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
}
.workflow-preview-step-head strong {
    min-width: 0;
    color: #26364d;
    font-size: 13px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-preview-step-body {
    margin: 0;
    padding: 15px 17px;
    color: #27364a;
    background: #fff;
    font-family: Consolas, "Microsoft YaHei", monospace;
    font-size: 13px;
    line-height: 1.72;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.workflow-preview-empty {
    padding: 16px;
    color: #64748b;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 7px;
}
.workflow-preview-button {
    color: #fff;
    background: #14b8a6;
    border-color: #14b8a6;
}
.workflow-preview-button:hover {
    color: #fff;
    background: #0f9f90;
    border-color: #0f9f90;
    box-shadow: 0 8px 20px rgba(20, 184, 166, .28);
}
.article-template-grid:has(.workflow-card) {
    grid-template-columns: repeat(auto-fill, minmax(300px, max-content));
    justify-content: start;
}
.article-template-card {
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
    min-height: 60px;
    width: max-content;
    min-width: 150px;
    max-width: 220px;
    padding: 12px;
    text-align: left;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    cursor: pointer;
}
.article-template-card .template-card-icon {
    overflow: visible;
    color: #2563eb;
    background: #dbeafe;
    font-size: 15px;
}
.article-template-card .template-card-main {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}
.article-template-card.has-output-kind {
    align-items: flex-start;
    gap: 11px;
    min-height: 70px;
    padding: 12px 14px;
}
.article-template-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.1);
}
.article-template-card.is-active {
    border-color: #3b82f6;
    background: #3b82f6;
}
.template-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 8px;
}
.template-card-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.article-template-card strong {
    overflow: hidden;
    flex: 1 1 auto;
    color: #1e293b;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-template-card.is-active .template-card-icon {
    color: #2563eb;
    background: #fff;
}
.article-template-card.is-active strong,
.article-template-card.is-active span {
    color: #fff;
}
.article-template-card span {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-template-card .template-output-badge {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    flex: 0 0 auto;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.template-output-content {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.template-output-title {
    color: #0f766e;
    background: #ecfdf5;
    border-color: #99f6e4;
}
.article-template-card.is-active .template-output-badge {
    background: #fff;
}
.article-template-card.workflow-card {
    display: grid;
    grid-template-columns: 96px minmax(160px, max-content);
    align-items: center;
    gap: 10px;
    min-height: 78px;
    min-width: 300px;
    max-width: 360px;
    padding: 10px 12px;
}
.workflow-card-title {
    display: grid;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    gap: 3px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 26px;
    padding: 4px 0 4px 8px;
    color: #475569;
    background: transparent;
    border: 0;
    border-left: 3px solid #3b82f6;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
}
.workflow-card-title span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}
.workflow-card-title strong {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: normal;
    overflow: hidden;
    line-height: 1.35;
}
.article-template-card.workflow-card.is-active .workflow-card-title {
    color: #fff;
    background: transparent;
    border-left-color: #fff;
}
.article-template-card.workflow-card.is-active .workflow-card-title span,
.article-template-card.workflow-card.is-active .workflow-card-title strong {
    color: #fff;
}
.workflow-card-chain {
    display: grid;
    align-items: center;
    justify-items: start;
    gap: 3px;
    min-width: 0;
    width: 100%;
}
.workflow-card-step {
    max-width: 210px;
    width: min(100%, 210px);
    min-height: 24px;
    padding: 3px 8px;
    justify-content: flex-start;
    font-size: 12px;
}
.workflow-card-arrow {
    margin-left: 12px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1;
}
.article-template-card.workflow-card.is-active .workflow-card-step {
    color: #1d4ed8;
    background: #fff;
    border-color: #bfdbfe;
}
.article-template-card.workflow-card.is-active .workflow-card-arrow {
    color: #fff;
}
.keyword-chip-board {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
}
.keyword-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
}
.keyword-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    max-width: 260px;
    padding: 5px 9px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
}
.keyword-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.keyword-chip i {
    color: #94a3b8;
    font-size: 11px;
}
.keyword-chip:hover {
    border-color: #fca5a5;
    background: #fff7f7;
}
.keyword-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.keyword-add-row input {
    min-height: 36px;
}
.article-picker-submit {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 16px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0 !important;
    box-shadow: none;
}
.article-picker-submit .form-actions {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}
.article-picker-submit .form-actions .btn {
    width: auto;
    min-width: 86px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 13px;
}
.article-picker-submit .workflow-action-return,
.article-picker-submit .workflow-preview-button {
    width: auto;
    min-width: 86px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 13px;
}
.article-picker-submit .workflow-action-return {
    color: #475569;
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.article-picker-submit .workflow-preview-button {
    color: #fff;
    background: #14b8a6;
    border-color: #14b8a6;
}
.article-picker-submit .workflow-action-return:hover {
    color: #1e293b;
    background: #e2e8f0;
    border-color: #94a3b8;
    box-shadow: 0 6px 14px rgba(71,85,105,.14);
}
.article-picker-submit .workflow-preview-button:hover {
    color: #fff;
    background: #0f9f90;
    border-color: #0f9f90;
    box-shadow: 0 6px 16px rgba(20,184,166,.24);
}
.article-picker-submit .workflow-preview-button:disabled {
    color: #fff;
    background: #7dd3c7;
    border-color: #7dd3c7;
    box-shadow: none;
    transform: none;
}
.article-picker-submit .field {
    width: min(220px, 100%);
}
.cron-callout {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px;
    color: #fff;
    background: #28537f;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.cron-callout-head {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}
.cron-callout-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    border-radius: 8px;
    font-size: 18px;
}
.cron-callout p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    line-height: 1.7;
}
.cron-url-label {
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}
.cron-url-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 10px 8px 16px;
    background: rgba(15, 23, 42, .34);
    border-radius: 8px;
}
.cron-url-box code {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cron-copy-button,
.cron-run-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 12px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
}
.cron-copy-button:hover,
.cron-run-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .26);
}
.readonly-url-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 10px 8px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.readonly-url-box code {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.readonly-url-box .cron-copy-button {
    color: #475569;
    background: #e2e8f0;
}
.readonly-url-box .cron-copy-button:hover {
    background: #cbd5e1;
}
.task-switch-panel {
    margin-bottom: 14px;
}
.task-overview-panel {
    margin-bottom: 14px;
}
.jobs-bottom-spacer {
    height: 96px;
}
.task-overview-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}
.task-overview-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 112px;
    padding: 22px 14px 18px;
    color: #7b8494;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    text-align: center;
}
.task-overview-chip strong {
    color: #2f6bff;
    font-size: 34px;
    font-weight: 750;
    line-height: 1;
}
.task-overview-total strong { color: #2f6bff; }
.task-overview-pending strong { color: #f2a100; }
.task-overview-running strong { color: #6d7cff; }
.task-overview-success strong { color: #16a085; }
.task-overview-failed strong { color: #ef5350; }
.task-overview-running {
    color: #7b8494;
    background: #fff;
    border-color: #edf1f7;
}
.task-overview-success {
    color: #7b8494;
    background: #fff;
    border-color: #edf1f7;
}
.task-overview-failed {
    color: #7b8494;
    background: #fff;
    border-color: #edf1f7;
}
.job-batch-summary {
    display: grid;
    gap: 16px;
}
.job-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.job-summary-grid > div {
    display: grid;
    gap: 7px;
    min-height: 74px;
    padding: 12px;
    background: #fbfcfe;
    border: 1px solid #e7edf4;
    border-radius: 8px;
}
.job-summary-grid span:first-child {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}
.job-summary-grid strong {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}
.job-summary-grid .platform-badge {
    color: #64748b;
    background: #f5f8fb;
    border-color: #e1e8f0;
}
.job-summary-grid .platform-badge-icon {
    color: #94a3b8;
}
.job-summary-plain {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-weight: 400;
}
.job-batch-actions-cell {
    width: 126px;
    vertical-align: middle !important;
}
.job-batch-actions-cell .list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
}
.job-batch-actions-cell .inline-post-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.job-result-body {
    max-width: none;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}
.job-result-body span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-batch-table {
    width: 100%;
    table-layout: fixed;
    min-width: 1260px;
}
.job-batch-table .content-list-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-batch-table th:nth-child(1),
.job-batch-table td:nth-child(1) {
    width: 42px;
}
.job-batch-table th:nth-child(2),
.job-batch-table td:nth-child(2) {
    width: 68px;
}
.job-batch-table th:nth-child(3),
.job-batch-table td:nth-child(3) {
    width: 150px;
    white-space: nowrap;
}
.job-batch-table th:nth-child(4),
.job-batch-table td:nth-child(4) {
    width: 240px;
    white-space: nowrap;
}
.job-batch-table th:nth-child(5),
.job-batch-table td:nth-child(5) {
    width: 280px;
    white-space: nowrap;
}
.job-batch-table th:nth-child(6),
.job-batch-table td:nth-child(6) {
    width: 120px;
}
.job-batch-table th:nth-child(7),
.job-batch-table td:nth-child(7) {
    width: 130px;
}
.job-batch-table th:nth-child(8),
.job-batch-table td:nth-child(8) {
    width: 108px;
    white-space: nowrap;
}
.job-batch-table th:nth-child(9),
.job-batch-table td:nth-child(9) {
    width: 142px;
}
.job-batch-table th:nth-child(10),
.job-batch-table td:nth-child(10) {
    width: 126px;
}
.job-batch-table td:nth-child(3) .badge {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-batch-table-title th:nth-child(3),
.job-batch-table-title td:nth-child(3) {
    width: 150px;
}
.job-batch-table-title th:nth-child(4),
.job-batch-table-title td:nth-child(4) {
    width: 220px;
    white-space: nowrap;
}
.job-batch-table-title th:nth-child(5),
.job-batch-table-title td:nth-child(5) {
    width: 120px;
}
.job-batch-table-title th:nth-child(6),
.job-batch-table-title td:nth-child(6) {
    width: 130px;
}
.job-batch-table-title th:nth-child(7),
.job-batch-table-title td:nth-child(7) {
    width: 108px;
    white-space: nowrap;
}
.job-batch-table-title th:nth-child(8),
.job-batch-table-title td:nth-child(8) {
    width: 142px;
}
.job-batch-table-title th:nth-child(9),
.job-batch-table-title td:nth-child(9) {
    width: 126px;
}
.job-batch-table-image th:nth-child(3),
.job-batch-table-image td:nth-child(3) {
    width: 220px;
    white-space: nowrap;
}
.job-batch-table-image th:nth-child(4),
.job-batch-table-image td:nth-child(4) {
    width: 118px;
}
.job-batch-table-image th:nth-child(5),
.job-batch-table-image td:nth-child(5) {
    width: 280px;
    white-space: nowrap;
}
.job-batch-table-image th:nth-child(6),
.job-batch-table-image td:nth-child(6) {
    width: 120px;
}
.job-batch-table-image th:nth-child(7),
.job-batch-table-image td:nth-child(7) {
    width: 130px;
}
.job-batch-table-image th:nth-child(8),
.job-batch-table-image td:nth-child(8) {
    width: 108px;
}
.job-batch-table-image th:nth-child(9),
.job-batch-table-image td:nth-child(9) {
    width: 142px;
}
.job-batch-table-image th:nth-child(10),
.job-batch-table-image td:nth-child(10) {
    width: 126px;
}
.job-batch-table-image th:nth-child(4),
.job-batch-table-image td:nth-child(4) {
    width: 180px;
    white-space: nowrap;
}
.job-batch-table-image th:nth-child(5),
.job-batch-table-image td:nth-child(5) {
    width: 118px;
}
.job-batch-table-image th:nth-child(6),
.job-batch-table-image td:nth-child(6) {
    width: 220px;
    white-space: nowrap;
}
.job-batch-table-image th:nth-child(7),
.job-batch-table-image td:nth-child(7) {
    width: 120px;
}
.job-batch-table-image th:nth-child(8),
.job-batch-table-image td:nth-child(8) {
    width: 150px;
}
.job-batch-table-image th:nth-child(9),
.job-batch-table-image td:nth-child(9) {
    width: 108px;
    white-space: nowrap;
}
.job-batch-table-image th:nth-child(10),
.job-batch-table-image td:nth-child(10) {
    width: 142px;
}
.job-batch-table-image th:nth-child(11),
.job-batch-table-image td:nth-child(11) {
    width: 126px;
}
.job-batch-table-image td:nth-child(8) .badge-model-name {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.job-stage-panel {
    margin-top: 18px;
    padding: 0;
}
.job-stage-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f5f8fc;
    border: 1px solid #e3eaf2;
    border-radius: 8px;
}
.job-stage-header h2 {
    margin: 0 0 5px;
    font-size: 17px;
}
.job-prompt-table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
}
.job-prompt-table th,
.job-prompt-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
}
.job-prompt-table th:nth-child(1),
.job-prompt-table td:nth-child(1) { width: 42px; }
.job-prompt-table th:nth-child(2),
.job-prompt-table td:nth-child(2) { width: 150px; }
.job-prompt-table th:nth-child(3),
.job-prompt-table td:nth-child(3) { width: 360px; }
.job-prompt-table th:nth-child(4),
.job-prompt-table td:nth-child(4) { width: 120px; }
.job-prompt-table th:nth-child(5),
.job-prompt-table td:nth-child(5) { width: 150px; }
.job-prompt-table th:nth-child(6),
.job-prompt-table td:nth-child(6) { width: 108px; }
.job-prompt-table th:nth-child(7),
.job-prompt-table td:nth-child(7) { width: 142px; }
.job-prompt-table th:nth-child(8),
.job-prompt-table td:nth-child(8) { width: 126px; }
.job-prompt-content { overflow: hidden; }
.job-prompt-title,
.job-prompt-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-prompt-title { color: #1f2937; font-weight: 600; }
.job-prompt-text { margin-top: 4px; color: #64748b; font-size: 12px; }
.job-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.job-image-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    background: #fff;
}
.job-image-card-head,
.job-image-card-meta,
.job-image-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.job-image-card-head { align-items: flex-start; padding: 12px 12px 10px; }
.job-image-card-heading { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.job-image-card-heading > div { min-width: 0; }
.job-image-card-head strong { display: block; color: #1f2937; font-size: 13px; }
.job-image-card-id { display: block; margin-top: 3px; color: #94a3b8; font-size: 11px; }
.job-image-card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.job-image-card-preview a,
.job-image-card-preview img { display: block; max-width: 100%; height: 100%; }
.job-image-card-preview img { width: auto; object-fit: contain; }
.job-image-card-preview > span { color: #94a3b8; font-size: 12px; }
.job-image-card-body { padding: 11px 12px 8px; }
.job-image-card-title,
.job-image-card-prompt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-image-card-title { color: #334155; font-size: 13px; font-weight: 600; }
.job-image-card-prompt { margin-top: 5px; color: #64748b; font-size: 12px; }
.job-image-card-meta { justify-content: flex-start; flex-wrap: wrap; padding: 0 12px 10px; }
.job-image-card-meta .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.job-image-card-actions { justify-content: flex-end; padding: 10px 12px; border-top: 1px solid #f1f5f9; }
.job-image-card-actions { margin-top: auto; }
.job-image-workflow-panel { display: grid; gap: 16px; }
.job-image-master-detail { display: grid; grid-template-columns: minmax(560px, 620px) minmax(0, 1fr); gap: 20px; align-items: start; }
.job-image-title-sidebar { position: sticky; top: 16px; min-width: 0; border: 1px solid #d9e0e8; border-radius: 6px; background: #fff; overflow: hidden; }
.job-image-title-sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; color: #1f2937; font-size: 13px; font-weight: 700; border-bottom: 1px solid #e5e7eb; }
.job-image-title-sidebar-heading span { color: #64748b; font-size: 12px; font-weight: 600; }
.job-image-title-sidebar-list { display: grid; gap: 0; max-height: min(680px, calc(100vh - 230px)); overflow-y: auto; padding: 0; background: #fff; }
.job-image-title-sidebar-item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 5px; min-width: 0; min-height: 68px; padding: 10px 14px; color: inherit; border: 0; border-bottom: 1px solid #e5e7eb; border-radius: 0; background: #fff; text-decoration: none; transition: background .15s ease; }
.job-image-title-sidebar-item::after { position: absolute; top: 9px; bottom: 9px; left: 82px; width: 1px; background: #e5e7eb; content: ""; }
.job-image-title-sidebar-item:hover { background: #f8fafc; }
.job-image-title-sidebar-item.is-active { border: 0; border-bottom: 1px solid #dbe5ee; background: #f1f5f9; box-shadow: inset 3px 0 #334155; }
.job-image-title-sidebar-item.is-active::after { background: #cbd5e1; }
.job-image-title-sidebar-item.is-failed { background: #fff; border-color: #f2d6d6; }
.job-image-title-sidebar-item.is-failed.is-active { border: 0; border-bottom: 1px solid #f0dddd; background: #fff7f7; box-shadow: inset 3px 0 #c24141; }
.job-image-title-sidebar-item .job-image-group-kicker { grid-column: 1; grid-row: 1 / span 2; align-self: center; display: block; width: auto; height: auto; color: #64748b; background: transparent; border: 0; border-radius: 0; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.job-image-title-sidebar-item.is-active .job-image-group-kicker { color: #334155; }
.job-image-title-sidebar-item strong { grid-column: 2; grid-row: 1; min-width: 0; color: #172033; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.job-image-title-sidebar-feedback { display: flex; grid-column: 2; grid-row: 2; flex-wrap: wrap; gap: 14px; padding-left: 0; }
.job-image-title-sidebar-feedback .badge { max-width: 100%; overflow: visible; padding: 0; color: #475569; background: transparent; border: 0; font-size: 11px; font-weight: 500; text-overflow: clip; white-space: nowrap; }
.job-image-title-sidebar-status { display: flex; grid-column: 2; grid-row: 2; }
.job-image-detail-pane { min-width: 0; }
.job-image-detail-mode .job-image-title-sidebar { display: none; }
.job-image-detail-mode .job-image-master-detail { display: block; }
.job-image-title-table { width: 100%; min-width: 900px; border-collapse: collapse; background: #fff; }
.job-image-title-table th { padding: 11px 14px; color: #64748b; background: #f8fafc; border-bottom: 1px solid #dbe3eb; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.job-image-title-table td { padding: 13px 14px; color: #475569; border-bottom: 1px solid #e8edf2; font-size: 12px; vertical-align: middle; }
.job-image-title-table tbody tr:hover { background: #f8fbfd; }
.job-image-title-table td:first-child { min-width: 360px; color: #1f2937; }
.job-image-title-table td:first-child strong { display: block; overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.job-image-title-table td:first-child small { display: block; margin-top: 4px; color: #94a3b8; }
.job-image-table-index { display: block; margin-bottom: 4px; color: #64748b; font-size: 11px; }
.job-image-table-dual { display: grid; gap: 5px; color: #475569; line-height: 1.35; white-space: nowrap; }
.job-image-table-dual span:first-child { color: #64748b; }
.job-image-table-dual span:last-child { color: #64748b; font-weight: 400; }
.job-image-list-card { margin-top: 18px; }
.job-image-title-table { table-layout: fixed; min-width: 1180px; }
.job-image-title-table th:nth-child(1), .job-image-title-table td:nth-child(1) { width: 64px; }
.job-image-title-table th:nth-child(2), .job-image-title-table td:nth-child(2) { width: 360px; }
.job-image-title-table th:nth-child(3), .job-image-title-table td:nth-child(3) { width: 155px; }
.job-image-title-table th:nth-child(4), .job-image-title-table td:nth-child(4) { width: 170px; }
.job-image-title-table th:nth-child(5), .job-image-title-table td:nth-child(5) { width: 205px; }
.job-image-title-table th:nth-child(6), .job-image-title-table td:nth-child(6) { width: 225px; }
.job-image-title-table th:nth-child(7), .job-image-title-table td:nth-child(7) { width: 142px; white-space: nowrap; }
.job-image-title-table th:nth-child(8), .job-image-title-table td:nth-child(8) { width: 100px; }
.job-image-title-table td:first-child { min-width: 0; color: #64748b; }
.job-image-title-table td:nth-child(2) strong { display: block; overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.job-image-title-table td:nth-child(2) small { display: block; margin-top: 4px; color: #94a3b8; }
.job-image-table-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.job-image-table-status::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; content: ""; }
.job-image-table-status-prompt { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.job-image-table-status-prompt::before { background: #3b82f6; }
.job-image-table-status-result { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.job-image-table-status-result::before { background: #10b981; }
.job-image-table-status.is-pending,
.job-image-table-status.is-running { color: #a16207; background: #fffbeb; border-color: #fde68a; }
.job-image-table-status.is-pending::before,
.job-image-table-status.is-running::before { background: #f59e0b; }
.job-image-table-status.is-failed { color: #b91c1c; background: #fff1f2; border-color: #fecdd3; }
.job-image-table-status.is-failed::before { background: #dc2626; }
.job-image-batch-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
}
.job-image-batch-table th,
.job-image-batch-table td {
    padding-right: 10px;
    padding-left: 10px;
    color: #475569;
    font-size: 12px;
    vertical-align: middle;
}
.job-image-batch-table th:nth-child(1), .job-image-batch-table td:nth-child(1) { width: 42px; text-align: center; }
.job-image-batch-table th:nth-child(2), .job-image-batch-table td:nth-child(2) { width: 72px; }
.job-image-batch-table th:nth-child(3), .job-image-batch-table td:nth-child(3) { width: 300px; }
.job-image-batch-table th:nth-child(4), .job-image-batch-table td:nth-child(4) { width: 145px; }
.job-image-batch-table th:nth-child(5), .job-image-batch-table td:nth-child(5) { width: 165px; }
.job-image-batch-table th:nth-child(6), .job-image-batch-table td:nth-child(6) { width: 180px; }
.job-image-batch-table th:nth-child(7), .job-image-batch-table td:nth-child(7) { width: 200px; }
.job-image-batch-table th:nth-child(8), .job-image-batch-table td:nth-child(8) { width: 145px; white-space: nowrap; }
.job-image-batch-table th:nth-child(9), .job-image-batch-table td:nth-child(9) { width: 72px; }
.job-image-batch-title {
    display: block;
    overflow: hidden;
    color: #334155;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-image-batch-table .job-image-table-dual {
    overflow: hidden;
}
.job-image-batch-table .job-image-table-dual span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.job-image-batch-table .list-actions {
    gap: 4px;
}
.job-image-detail-pane .job-image-title-group { min-width: 0; }
.job-image-title-group {
    border: 1px solid #e3eaf2;
    border-radius: 8px;
    background: #fff;
}
.job-image-title-group-failed { border-color: #f2d6d6; background: #fffafb; }
.job-image-title-group-failed .job-image-group-empty { margin: 0 16px 16px; }
.job-image-group-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}
.job-image-title-group > .job-image-group-title { border-bottom: 1px solid #edf1f5; }
.job-image-group-summary-copy { min-width: 0; }
.job-image-group-summary-meta { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.job-image-group-detail { padding: 0 16px 16px; }
.job-image-group-title-summary { display: block; padding: 22px 20px 21px; background: #fff; }
.job-image-group-title-summary .job-image-group-summary-copy { width: 100%; }
.job-image-group-title h3 { margin: 0; color: var(--text); font-size: 16px; font-weight: 400; line-height: 1.5; }
.job-image-group-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; }
.job-image-group-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border: 1px solid #dfe7ef; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.job-image-group-tag-index { color: #35658f; background: #f1f7fc; border-color: #cfdfec; }
.job-image-group-keyword { color: #5f6f82; background: #f8fafc; border-color: #dfe5ec; }
.job-image-group-image-status { color: #08795a; background: #effaf6; border-color: #bfe7d8; }
.job-image-group-label { margin: 20px 0 10px; color: #526178; font-size: 13px; font-weight: 700; }
.job-image-group-prompt { min-width: 0; }
.job-image-group-prompt-list { display: grid; gap: 8px; }
.job-image-prompt-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 6px;
}
.job-image-prompt-copy { min-width: 0; overflow: hidden; color: #475569; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.job-image-group-empty { padding: 14px; color: #94a3b8; background: #f8fafc; border: 1px dashed #dde5ee; border-radius: 6px; font-size: 12px; }
.job-image-title-group .job-image-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.job-image-title-group .job-image-card-preview { height: 210px; }
.job-image-workflow-pagination { display: none; }
.job-image-title-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.job-image-title-index-card { display: grid; min-width: 0; gap: 5px; padding: 14px; color: inherit; border: 1px solid #e3eaf2; border-radius: 8px; background: #fff; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.job-image-title-index-card:hover { border-color: #a8bdd0; box-shadow: 0 2px 7px rgba(39, 72, 105, .1); }
.job-image-title-index-card-failed { border-color: #f2d6d6; background: #fffafb; }
.job-image-title-index-card strong { min-width: 0; overflow: hidden; color: #253047; font-size: 14px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.job-image-title-index-feedback { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.job-image-title-index-feedback .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-image-feedback-prompt,
.job-image-feedback-result { display: inline-flex; align-items: center; gap: 6px; color: #475569; background: transparent; border: 0; font-weight: 500; }
.job-image-feedback-prompt::before,
.job-image-feedback-result::before { width: 6px; height: 6px; border-radius: 50%; content: ""; flex: 0 0 auto; }
.job-image-feedback-prompt::before { background: #3b82f6; }
.job-image-feedback-result::before { background: #10b981; }
.job-image-title-index-feedback .is-failed::before,
.job-image-title-sidebar-feedback .is-failed::before { background: #dc2626; }
.job-image-title-index-feedback .is-failed { color: #b91c1c; background: #fff1f2; border-color: #fecdd3; }
.job-image-title-index-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: #718096; font-size: 12px; }
.job-image-title-index-meta i { margin-left: auto; color: #4f718f; }
@media (max-width: 720px) {
    .job-stage-panel { padding: 0; }
    .job-stage-header { align-items: stretch; flex-direction: column; }
    .job-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .job-image-card-preview { height: 180px; }
    .job-image-group-title { align-items: stretch; flex-direction: column; padding: 12px; gap: 10px; }
    .job-image-group-title-summary { display: block; padding: 18px 14px; }
    .job-image-group-title h3 { font-size: 14px; }
    .job-image-group-tags { align-items: flex-start; }
    .job-image-group-detail { padding: 0 12px 12px; }
    .job-image-group-summary-meta { gap: 6px; }
    .job-image-title-group-failed .job-image-group-empty { margin: 0 12px 12px; }
    .job-image-title-index { grid-template-columns: 1fr; }
    .job-image-master-detail { grid-template-columns: 1fr; gap: 12px; }
    .job-image-title-sidebar { position: static; }
    .job-image-title-sidebar-list { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 6px; }
    .job-image-title-sidebar-item { flex: 0 0 min(360px, 88vw); }
    .job-image-prompt-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .job-image-prompt-row .btn-list-action { grid-column: 2 / -1; justify-self: start; }
    .job-image-title-group .job-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.process-compare-summary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}
.process-compare-summary > div {
    display: grid;
    gap: 8px;
    min-height: 74px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.process-compare-summary span {
    color: #94a3b8;
    font-size: 12px;
}
.process-compare-summary strong {
    color: #334155;
    font-size: 13px;
}
.process-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.process-compare-panel {
    display: grid;
    gap: 14px;
}
.process-compare-panel h2,
.process-diff-panel h2 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
}
.process-compare-body {
    min-height: 360px;
    max-height: 620px;
    overflow: auto;
    padding: 16px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
    white-space: normal;
}
.process-diff-panel {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}
.process-diff-list {
    display: grid;
    gap: 10px;
}
.process-diff-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.process-diff-old,
.process-diff-new {
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
}
.process-diff-old {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.process-diff-new {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}
.compare-empty {
    color: #94a3b8;
}
@media (max-width: 1180px) {
    .task-overview-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .task-overview-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .process-compare-summary,
    .process-compare-grid,
    .process-diff-row {
        grid-template-columns: 1fr;
    }
}
.table-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}
.process-category-panel {
    margin-bottom: 16px;
}
.process-tabs-panel {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
}
.process-tabs-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 760;
}
.process-tabs-title i {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: #3b82f6;
    background: #eff6ff;
    border-radius: 7px;
    font-size: 15px;
}
.process-workbench {
    display: block;
}
.process-article-panel {
    width: 100%;
    min-width: 0;
}
.process-article-table {
    width: 100%;
    table-layout: fixed;
    min-width: 920px;
}
.process-article-table th:nth-child(1),
.process-article-table td:nth-child(1) {
    width: 42px;
}
.process-article-table th:nth-child(2),
.process-article-table td:nth-child(2) {
    width: 64px;
}
.process-article-table th:nth-child(3),
.process-article-table td:nth-child(3) {
    width: auto;
}
.process-article-table th:nth-child(4),
.process-article-table td:nth-child(4) {
    width: 86px;
}
.process-article-table th:nth-child(5),
.process-article-table td:nth-child(5),
.process-article-table th:nth-child(6),
.process-article-table td:nth-child(6) {
    width: 116px;
}
.process-article-table th:nth-child(7),
.process-article-table td:nth-child(7) {
    width: 150px;
    white-space: nowrap;
}
.process-article-table .content-list-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.process-article-table .badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.process-side {
    display: grid;
    gap: 16px;
}
.process-side-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.process-side-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 760;
}
.process-side-title i {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    color: #3b82f6;
    background: #eff6ff;
    border-radius: 8px;
}
.process-tool-list,
.process-job-list {
    display: grid;
    gap: 10px;
}
.process-tool-option {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color .16s ease, background .16s ease;
}
.process-tool-option:hover,
.process-tool-option.is-active {
    border-color: #93c5fd;
    background: #f8fbff;
}
.process-tool-option input {
    margin-top: 3px;
    flex: 0 0 auto;
}
.process-tool-option span {
    display: grid;
    gap: 3px;
}
.process-tool-option strong {
    color: var(--text);
    font-size: 13px;
}
.process-tool-option em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}
.process-job-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #eef2f7;
}
.process-job-item:last-child {
    border-bottom: 0;
}
.process-job-item strong,
.process-job-item span {
    display: block;
}
.process-job-item strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.process-job-item div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
@media (max-width: 1040px) {
    .process-workbench {
        grid-template-columns: 1fr;
    }
}
.workflow-flow-line {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 10px;
    padding: 8px 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.workflow-flow-line i {
    color: #3b82f6;
}
.workflow-canvas-panel {
    overflow: hidden;
    padding: 0;
    background: #e9ebef;
    border: 1px solid #dde2ea;
    border-radius: 8px;
}
.workflow-canvas {
    position: relative;
    min-height: 430px;
    overflow: auto;
    padding: 96px 64px;
    background-image:
        radial-gradient(circle, rgba(100, 116, 139, 0.28) 1px, transparent 1px);
    background-size: 18px 18px;
}
.workflow-graph {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    min-width: max-content;
}
.workflow-graph-node {
    position: relative;
    z-index: 1;
    width: 260px;
    min-height: 112px;
    background: #fff;
    border: 1px solid #d8deea;
    border-radius: 6px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}
.workflow-graph-node::before,
.workflow-graph-node::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    background: #3157ff;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 1px #3157ff;
}
.workflow-graph-node::before {
    left: -5px;
}
.workflow-graph-node::after {
    right: -5px;
}
.workflow-graph-node-start::before,
.workflow-graph-node-end::after {
    display: none;
}
.workflow-node-head {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 10px;
    border-bottom: 1px solid #eef2f7;
}
.workflow-node-head strong {
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-node-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #12b5cb;
    border-radius: 4px;
    font-size: 11px;
}
.workflow-graph-node-start .workflow-node-icon {
    background: #6366f1;
}
.workflow-graph-node-end .workflow-node-icon {
    background: #4f46e5;
}
.workflow-node-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 11px;
}
.workflow-node-body {
    display: grid;
    gap: 7px;
    padding: 10px;
}
.workflow-node-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 18px;
    color: #64748b;
    font-size: 12px;
}
.workflow-node-row span {
    color: #94a3b8;
}
.workflow-node-row em {
    overflow: hidden;
    color: #334155;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-graph-link {
    position: relative;
    width: 90px;
    height: 2px;
    background: #3157ff;
}
.workflow-graph-link::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #3157ff;
    border-right: 2px solid #3157ff;
    transform: translateY(-50%) rotate(45deg);
}
.workflow-graph-link span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    background: #3157ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.workflow-canvas-empty {
    position: absolute;
    left: 64px;
    bottom: 48px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    padding: 10px 12px;
}
.workflow-preview-description {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}
.business-workflow-form {
    display: grid;
    gap: 14px;
}
.business-form-sections {
    display: grid;
    gap: 14px;
}
.business-form-section {
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.business-form-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.business-form-section-head h2 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}
.business-form-section .field {
    margin: 0;
}
.workflow-edit-board {
    display: grid;
    gap: 14px;
}
.workflow-edit-toolbar {
    display: flex;
    justify-content: flex-end;
}
.workflow-edit-list {
    display: grid;
    gap: 12px;
}
.workflow-edit-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px;
    --workflow-step-color: #3b82f6;
    --workflow-step-bg: #eff6ff;
    --workflow-step-border: #bfdbfe;
    background: var(--workflow-step-bg);
    border: 1px solid var(--workflow-step-border);
    border-radius: 8px;
}
.workflow-edit-step:nth-child(6n+1) {
    --workflow-step-color: #3b82f6;
    --workflow-step-bg: #eff6ff;
    --workflow-step-border: #bfdbfe;
}
.workflow-edit-step:nth-child(6n+2) {
    --workflow-step-color: #10b981;
    --workflow-step-bg: #ecfdf5;
    --workflow-step-border: #a7f3d0;
}
.workflow-edit-step:nth-child(6n+3) {
    --workflow-step-color: #f59e0b;
    --workflow-step-bg: #fffbeb;
    --workflow-step-border: #fde68a;
}
.workflow-edit-step:nth-child(6n+4) {
    --workflow-step-color: #8b5cf6;
    --workflow-step-bg: #f5f3ff;
    --workflow-step-border: #ddd6fe;
}
.workflow-edit-step:nth-child(6n+5) {
    --workflow-step-color: #06b6d4;
    --workflow-step-bg: #ecfeff;
    --workflow-step-border: #a5f3fc;
}
.workflow-edit-step:nth-child(6n) {
    --workflow-step-color: #ef4444;
    --workflow-step-bg: #fef2f2;
    --workflow-step-border: #fecaca;
}
.workflow-edit-step-no {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--workflow-step-color);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}
.workflow-edit-step-main {
    min-width: 0;
}
.workflow-step-fields {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(130px, 170px) minmax(240px, 1fr);
    align-items: end;
    gap: 12px;
}
.workflow-selected-template {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #64748b;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}
.workflow-selected-template:hover {
    background: #f8fafc;
    border-color: #93c5fd;
}
.workflow-edit-step.has-template .workflow-selected-template {
    color: #1e293b;
    border-style: solid;
    border-color: var(--workflow-step-border);
}
.workflow-selected-template span {
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-selected-template span::after {
    content: " /";
    margin-left: 8px;
    color: #94a3b8;
    font-weight: 500;
}
.workflow-selected-template small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-edit-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 28px;
}
.workflow-edit-actions .btn-list-action {
    width: 34px;
    padding: 7px;
}
.workflow-modal-search {
    position: relative;
    margin-bottom: 16px;
}
.workflow-modal-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.workflow-modal-category-tabs-child {
    margin-top: 4px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f7;
}
.workflow-modal-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.workflow-modal-category-tab:hover {
    color: #1e293b;
    background: #eef2f7;
}
.workflow-modal-category-tab.is-active {
    color: #fff;
    background: #3b82f6;
    border-color: #3b82f6;
}
.workflow-modal-category-tab-child {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
}
.workflow-modal-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}
.workflow-modal-search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px 8px 36px;
    color: #334155;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    outline: none;
}
.workflow-modal-template-list {
    display: grid;
    gap: 8px;
    max-height: 560px;
    overflow-y: auto;
}
.workflow-modal-template-option {
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    text-align: left;
    cursor: pointer;
}
.workflow-modal-template-option:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}
.workflow-modal-template-option strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-modal-template-option span {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workflow-modal-template-option .template-output-badge {
    justify-self: start;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}
.list-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
}
.page-info {
    color: #606266;
    font-size: 13px;
}
.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}
.page-size-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}
.page-size-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    color: #475569;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}
.page-size-link:hover,
.page-size-link.is-active {
    color: #2563eb;
    background: #eff6ff;
    border-color: #93c5fd;
}
.pagination-wrapper .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    color: #3b82f6;
    background: #fff;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}
.pagination-wrapper .page-link:hover,
.pagination-wrapper .page-item.active .page-link {
    color: #fff;
    background: #3b82f6;
}
.pagination-wrapper .page-item.disabled .page-link {
    color: #c0c4cc;
    border-color: #e4e7ed;
    cursor: not-allowed;
}
.pagination-wrapper .page-ellipsis {
    padding: 0 6px;
    color: #909399;
}
.bulk-form { margin: 0; }
.bulk-form .btn-list-action { display: inline-flex; }
.list-check { vertical-align: middle; }
.tree-parent {
    color: inherit;
    font-weight: 400;
}
.tree-child {
    display: inline-block;
    padding-left: 16px;
    color: #606266;
}

.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .42);
}
.modal-mask[hidden] {
    display: none;
}
.modal-dialog {
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
}
.modal-dialog-large {
    width: min(860px, 100%);
}
.modal-dialog-large .modal-body {
    min-height: 620px;
}
.modal-dialog-large textarea {
    min-height: 320px;
}
.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}
.modal-header {
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.modal-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
}
.modal-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #606266;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
}
.modal-close:hover {
    color: #1f2937;
    background: #f1f5f9;
}
.modal-body {
    overflow-y: auto;
    padding: 20px;
}
.modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.workspace-dashboard-title {
    align-items: center;
}
.workspace-dashboard-title-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 13px;
    color: #4b5563;
    background: #f7f9fc;
    border: 1px solid #e7ebf2;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}
.workspace-dashboard-title-action:hover {
    color: #4051a8;
    border-color: #d9def6;
    background: #f4f6ff;
}
.workspace-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.workspace-dashboard-metric {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    min-height: 128px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid rgba(237, 240, 245, .95);
    border-radius: 10px;
    box-shadow: none;
}
.workspace-dashboard-metric:hover {
    box-shadow: none;
}
.workspace-dashboard-metric-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 12px;
    font-size: 21px;
    order: 2;
}
.workspace-dashboard-metric-main {
    display: grid;
    gap: 12px;
    min-width: 0;
    align-self: end;
}
.workspace-dashboard-metric-main strong {
    color: #64748b;
    font-size: 32px;
    line-height: 1;
    font-weight: 500;
}
.workspace-dashboard-metric-main em {
    color: #94a3b8;
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}
.workspace-dashboard-metric-title { background: #f4efff; border-color: #e2d7fb; }
.workspace-dashboard-metric-article { background: #edfafa; border-color: #d5efef; }
.workspace-dashboard-metric-image { background: #fff5e4; border-color: #f1dfbe; }
.workspace-dashboard-metric-video { background: #fff0f5; border-color: #f1d6e2; }
.workspace-dashboard-metric-product { background: #eef4fb; border-color: #dfe9f4; }
.workspace-dashboard-metric-job { background: #f2f5f9; border-color: #e4e9f0; }
.workspace-dashboard-metric-product .workspace-dashboard-metric-icon { color: #4f6b92; background: rgba(255, 255, 255, .58); }
.workspace-dashboard-metric-title .workspace-dashboard-metric-icon { color: #6b5b95; background: rgba(255, 255, 255, .62); }
.workspace-dashboard-metric-article .workspace-dashboard-metric-icon { color: #3b6f70; background: rgba(255, 255, 255, .62); }
.workspace-dashboard-metric-image .workspace-dashboard-metric-icon { color: #7a6538; background: rgba(255, 255, 255, .62); }
.workspace-dashboard-metric-video .workspace-dashboard-metric-icon { color: #7a5368; background: rgba(255, 255, 255, .62); }
.workspace-dashboard-metric-job .workspace-dashboard-metric-icon { color: #59616f; background: rgba(255, 255, 255, .62); }
.workspace-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 16px;
    align-items: start;
}
.workspace-dashboard-layout-bottom {
    margin-top: 16px;
}
.workspace-dashboard-panel {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(30, 41, 59, .035);
}
.workspace-dashboard-layout > .workspace-dashboard-panel {
    height: 100%;
}
.workspace-dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.workspace-dashboard-panel-head h2 {
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 720;
}
.workspace-dashboard-panel-head span,
.workspace-dashboard-panel-head a {
    color: #8a93a2;
    font-size: 12px;
    font-weight: 600;
}
.workspace-dashboard-panel-head a:hover {
    color: #4d5fc6;
}
.workspace-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.workspace-dashboard-process-grid {
    align-content: stretch;
    height: calc(100% - 35px);
}
.workspace-dashboard-process-grid .workspace-dashboard-action {
    min-height: 0;
    height: 100%;
}
.workspace-dashboard-action {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 12px;
    color: #435066;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    border-radius: 8px;
    box-shadow: none;
}
.workspace-dashboard-action:hover {
    background: #f8faff;
    border-color: #dfe5f8;
    box-shadow: none;
    transform: none;
}
.workspace-dashboard-action-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #5d6f91;
    background: #eef3f8;
    border-radius: 8px;
    font-size: 16px;
}
.workspace-dashboard-action strong,
.workspace-dashboard-action em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.workspace-dashboard-action strong {
    color: #3b4658;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.workspace-dashboard-action em {
    margin-top: 4px;
    color: #8b95a5;
    font-style: normal;
    font-size: 12px;
    line-height: 1.45;
}
.workspace-dashboard-process-action {
    background: #fbfcfb;
    border-color: #edf2ee;
}
.workspace-dashboard-process-action:hover {
    background: #f7fbf8;
    border-color: #dcebe0;
}
.workspace-dashboard-process-action .workspace-dashboard-action-icon {
    color: #587463;
    background: #edf6f0;
}
.workspace-dashboard-task-list,
.workspace-dashboard-content-list,
.workspace-dashboard-keyword-list {
    display: grid;
    gap: 8px;
}
.workspace-dashboard-task,
.workspace-dashboard-content,
.workspace-dashboard-keyword {
    display: grid;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    border-radius: 8px;
}
.workspace-dashboard-task {
    grid-template-columns: 68px minmax(0, 1fr) 52px 76px;
    gap: 10px;
}
.workspace-dashboard-task:hover,
.workspace-dashboard-content:hover,
.workspace-dashboard-keyword:hover {
    background: #f8faff;
    border-color: #dfe5f8;
}
.workspace-dashboard-task-type,
.workspace-dashboard-status,
.workspace-dashboard-content-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.workspace-dashboard-task-type {
    color: #60708a;
    background: #f0f4f8;
}
.workspace-dashboard-task-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.workspace-dashboard-task-body strong,
.workspace-dashboard-task-body em,
.workspace-dashboard-content-title,
.workspace-dashboard-content-product,
.workspace-dashboard-keyword strong,
.workspace-dashboard-keyword em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workspace-dashboard-task-body strong {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.workspace-dashboard-task-body em {
    color: #8b95a5;
    font-style: normal;
    font-size: 12px;
}
.workspace-dashboard-task-count {
    color: #7c8797;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}
.workspace-dashboard-status.is-success { color: #2f7d6b; background: #eaf7f4; }
.workspace-dashboard-status.is-running { color: #8a6a21; background: #fff6df; }
.workspace-dashboard-status.is-pending { color: #667085; background: #f1f4f8; }
.workspace-dashboard-status.is-failed { color: #b45353; background: #fff0f0; }
.workspace-dashboard-content {
    grid-template-columns: 54px minmax(0, 1fr) 104px;
    gap: 10px;
}
.workspace-dashboard-content-kind.is-title { color: #6d5f9a; background: #f3f0fb; }
.workspace-dashboard-content-kind.is-article { color: #3d7374; background: #edf8f7; }
.workspace-dashboard-content-kind.is-image { color: #7a6538; background: #fbf5e7; }
.workspace-dashboard-content-kind.is-video { color: #7a5368; background: #fbf0f5; }
.workspace-dashboard-content-title {
    color: #3b4658;
    font-weight: 650;
}
.workspace-dashboard-content-product {
    color: #8b95a5;
    font-size: 12px;
    text-align: right;
}
.workspace-dashboard-keyword {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 8px;
}
.workspace-dashboard-keyword span {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.workspace-dashboard-keyword strong {
    color: #3b4658;
    font-weight: 680;
}
.workspace-dashboard-keyword em {
    color: #9aa3b1;
    font-style: normal;
    font-size: 12px;
}
.workspace-dashboard-keyword i {
    color: #a4adba;
}
.workspace-dashboard-empty {
    min-height: 78px;
    display: grid;
    place-items: center;
    color: #9aa3b1;
    background: #fbfcfe;
    border: 1px dashed #e5eaf2;
    border-radius: 8px;
}

/* Keep the right-hand dashboard panels visually lighter and quieter. */
.workspace-dashboard-layout > .workspace-dashboard-panel:nth-child(2) .workspace-dashboard-panel-head h2,
.workspace-dashboard-layout-bottom > .workspace-dashboard-panel:nth-child(2) .workspace-dashboard-panel-head h2 {
    color: #64748b;
    font-weight: 600;
}
.workspace-dashboard-layout > .workspace-dashboard-panel:nth-child(2) .workspace-dashboard-action strong,
.workspace-dashboard-layout-bottom > .workspace-dashboard-panel:nth-child(2) .workspace-dashboard-content-title {
    color: #64748b;
    font-weight: 400;
}
.workspace-dashboard-layout > .workspace-dashboard-panel:nth-child(2) .workspace-dashboard-action em,
.workspace-dashboard-layout-bottom > .workspace-dashboard-panel:nth-child(2) .workspace-dashboard-content-product {
    color: #94a3b8;
}
.workspace-dashboard-layout > .workspace-dashboard-panel:first-child .workspace-dashboard-panel-head h2 {
    color: #64748b;
    font-weight: 600;
}
.workspace-dashboard-layout > .workspace-dashboard-panel:first-child .workspace-dashboard-action strong {
    color: #64748b;
    font-weight: 400;
}
.workspace-dashboard-layout > .workspace-dashboard-panel:first-child .workspace-dashboard-action em {
    color: #94a3b8;
}
.workspace-dashboard-layout-bottom > .workspace-dashboard-panel:first-child .workspace-dashboard-task-type {
    color: #7b8797;
}
.workspace-dashboard-layout-bottom > .workspace-dashboard-panel:first-child .workspace-dashboard-panel-head h2 {
    color: #64748b;
    font-weight: 600;
}
.workspace-dashboard-layout-bottom > .workspace-dashboard-panel:first-child .workspace-dashboard-task-body strong {
    color: #64748b;
    font-weight: 400;
}
.workspace-dashboard-layout-bottom > .workspace-dashboard-panel:first-child .workspace-dashboard-task-body em,
.workspace-dashboard-layout-bottom > .workspace-dashboard-panel:first-child .workspace-dashboard-task-count {
    color: #94a3b8;
}

.admin-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.admin-dashboard-metric {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-height: 128px;
    padding: 24px 26px;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
}
.admin-dashboard-metric-model { background: #eef4ff; border-color: #d8e4fb; }
.admin-dashboard-metric-template { background: #f3efff; border-color: #e2d7fb; }
.admin-dashboard-metric-workflow { background: #edfafa; border-color: #d5efef; }
.admin-dashboard-metric-platform { background: #fff5e4; border-color: #f1dfbe; }
.admin-dashboard-metric-icon {
    order: 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    color: #4f5d7d;
    background: rgba(255, 255, 255, .62);
    border-radius: 12px;
    font-size: 21px;
}
.admin-dashboard-metric-main {
    display: grid;
    gap: 8px;
    min-width: 0;
    align-self: end;
}
.admin-dashboard-metric-main strong {
    color: #2f3a4f;
    font-size: 32px;
    line-height: 1;
    font-weight: 760;
}
.admin-dashboard-metric-main em,
.admin-dashboard-metric-main small {
    font-style: normal;
    white-space: nowrap;
}
.admin-dashboard-metric-main em {
    color: #687386;
    font-size: 14px;
    font-weight: 650;
}
.admin-dashboard-metric-main small {
    color: #929bad;
    font-size: 12px;
    font-weight: 600;
}
.admin-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 16px;
    align-items: start;
}
.admin-dashboard-layout-bottom {
    margin-top: 16px;
}
.admin-dashboard-panel {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(30, 41, 59, .035);
}
.admin-dashboard-layout > .admin-dashboard-panel {
    height: 100%;
}
.admin-dashboard-layout-bottom > .admin-dashboard-panel {
    display: flex;
    flex-direction: column;
}
.admin-dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.admin-dashboard-panel-head h2 {
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 720;
}
.admin-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.admin-dashboard-action {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 12px;
    color: #435066;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    border-radius: 8px;
}
.admin-dashboard-action:hover,
.admin-dashboard-check:hover {
    background: #f8faff;
    border-color: #dfe5f8;
}
.admin-dashboard-action-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #5d6f91;
    background: #eef3f8;
    border-radius: 8px;
}
.admin-dashboard-action strong,
.admin-dashboard-action em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-dashboard-action strong {
    color: #3b4658;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.admin-dashboard-action em {
    margin-top: 4px;
    color: #8b95a5;
    font-style: normal;
    font-size: 12px;
    line-height: 1.45;
}
.admin-dashboard-check-list,
.admin-dashboard-call-list {
    display: grid;
    gap: 8px;
}
.admin-dashboard-check {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px;
    align-items: center;
    min-height: 52px;
    padding: 12px;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    border-radius: 8px;
}
.admin-dashboard-check span {
    min-width: 0;
    overflow: hidden;
    color: #465367;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-dashboard-check strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 7px;
    font-size: 14px;
}
.admin-dashboard-check-ok strong { color: #2f7d6b; background: #eaf7f4; }
.admin-dashboard-check-warning strong { color: #8a6a21; background: #fff6df; }
.admin-dashboard-check-danger strong { color: #b45353; background: #fff0f0; }
.admin-dashboard-call {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 58px 142px;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    padding: 10px 12px;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    border-radius: 8px;
}
.admin-dashboard-call-type,
.admin-dashboard-call-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.admin-dashboard-call-type {
    color: #60708a;
    background: #f0f4f8;
}
.admin-dashboard-call-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.admin-dashboard-call-main strong,
.admin-dashboard-call-main em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-dashboard-call-main strong {
    color: #344054;
    font-size: 13px;
}
.admin-dashboard-call-main em {
    color: #8b95a5;
    font-style: normal;
    font-size: 12px;
}
.admin-dashboard-call-status.is-success { color: #2f7d6b; background: #eaf7f4; }
.admin-dashboard-call-status.is-failed { color: #b45353; background: #fff0f0; }
.admin-dashboard-call-time {
    color: #8b95a5;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}
.admin-dashboard-runtime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex: 1;
    align-content: stretch;
}
.admin-dashboard-runtime {
    min-height: 70px;
    padding: 14px;
    background: #fbfcfe;
    border: 1px solid #eef1f6;
    border-radius: 8px;
}
.admin-dashboard-runtime span,
.admin-dashboard-runtime strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-dashboard-runtime span {
    color: #8b95a5;
    font-size: 12px;
    font-weight: 650;
}
.admin-dashboard-runtime strong {
    margin-top: 8px;
    color: #344054;
    font-size: 18px;
    font-weight: 760;
}
.admin-dashboard-empty {
    min-height: 78px;
    display: grid;
    place-items: center;
    color: #9aa3b1;
    background: #fbfcfe;
    border: 1px dashed #e5eaf2;
    border-radius: 8px;
}

@media (max-width: 1280px) {
    .workspace-dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .workspace-dashboard-layout,
    .admin-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .workspace-dashboard-title {
        align-items: stretch;
        flex-direction: column;
    }
    .workspace-dashboard-title-action {
        justify-content: center;
    }
    .workspace-dashboard-metrics,
    .workspace-dashboard-action-grid {
        grid-template-columns: 1fr;
    }
    .workspace-dashboard-task {
        grid-template-columns: 1fr auto;
    }
    .workspace-dashboard-task-type,
    .workspace-dashboard-task-body {
        grid-column: 1 / -1;
    }
    .workspace-dashboard-task-count {
        text-align: left;
    }
    .workspace-dashboard-content {
        grid-template-columns: 54px minmax(0, 1fr);
    }
    .workspace-dashboard-content-product {
        grid-column: 2;
        text-align: left;
    }
    .admin-dashboard-metrics,
    .admin-dashboard-action-grid,
    .admin-dashboard-runtime-grid {
        grid-template-columns: 1fr;
    }
    .admin-dashboard-call {
        grid-template-columns: 1fr auto;
    }
    .admin-dashboard-call-type,
    .admin-dashboard-call-main {
        grid-column: 1 / -1;
    }
    .admin-dashboard-call-time {
        text-align: left;
    }
    .category-tabs-secondary {
        gap: 6px;
    }
    .list-card-header,
    .filter-bar,
    .list-card-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .filter-form { margin-left: 0; }
    .filter-form input { width: 100%; }
    .filter-form,
    .filter-actions,
    .filter-form .btn { width: 100%; }
    .filter-actions {
        align-items: stretch;
        flex-direction: column;
        margin-left: 0;
    }
    .list-card-header .btn { margin-left: 0; }
    .list-header-actions {
        align-items: stretch;
        flex-direction: column;
        margin-left: 0;
    }
    .list-card-footer { gap: 14px; }
    .pagination-wrapper { flex-wrap: wrap; }
    .workflow-template-grid { grid-template-columns: 1fr; }
    .workflow-flow-line {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }
    .workflow-canvas {
        min-height: 0;
        padding: 28px 18px;
    }
    .workflow-graph {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        min-width: 0;
        width: 100%;
    }
    .workflow-graph-node {
        width: min(100%, 320px);
    }
    .workflow-graph-node::before,
    .workflow-graph-node::after {
        left: 50%;
        top: auto;
        bottom: -5px;
        transform: translateX(-50%);
    }
    .workflow-graph-node::before {
        top: -5px;
        bottom: auto;
    }
    .workflow-graph-node-start::before,
    .workflow-graph-node-end::after {
        display: none;
    }
    .workflow-graph-link {
        width: 2px;
        height: 46px;
    }
    .workflow-graph-link::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -2px;
        transform: translateX(-50%) rotate(135deg);
    }
    .workflow-edit-step {
        grid-template-columns: 32px minmax(0, 1fr);
    }
    .workflow-step-fields {
        grid-template-columns: 1fr;
    }
    .workflow-edit-actions {
        grid-column: 2;
        padding-top: 0;
    }
}

@media (min-width: 1201px) {
    .company-profile-form .form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.login-page .login-box .field .input-icon {
    position: relative;
    display: block;
}
.login-page .login-box .field .input-icon > i {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #7f8aa0;
    transform: translateY(-50%);
    pointer-events: none;
}
.login-page .login-box .field .input-icon > input {
    padding-left: 48px !important;
    text-indent: 0 !important;
}
