:root {
    --ink: #20232b;
    --ink-soft: #697381;
    --muted: #9aa3af;
    --line: #e5e8ec;
    --page: #f7f8fa;
    --side: #ffffff;
    --brand: #6d5ef4;
    --brand-soft: #f3f1ff;
    --brand-hover: #5b4de0;
    --danger: #c34b4b;
    --card: #ffffff;
    --radius: 8px;
    --side-width: 232px;
    --admin-content-gutter: 36px;
}

html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--page);
}

.admin-shell { min-height: 100vh; }
.admin-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--side-width);
    padding: 0;
    box-sizing: border-box;
    overflow: auto;
    background: var(--side);
    border-right: 1px solid var(--line);
}
.side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    margin: 0;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}
.brand-logo {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
}
.side-brand-copy { min-width: 0; }
.side-brand strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.side-brand small { display: block; margin-top: 1px; font-size: 10px; color: var(--ink-soft); }
.admin-nav { display: flex; flex-direction: column; gap: 16px; padding: 16px 12px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    line-height: 36px;
    margin: 0;
    padding: 0 10px;
    border-radius: 6px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.nav-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.admin-nav a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav a:hover { background: #f7f8fa; color: var(--ink); }
.admin-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 500; box-shadow: inset 2px 0 0 var(--brand); }
.admin-nav a.soon { opacity: .45; pointer-events: none; font-weight: 500; }
.nav-group {
    padding: 0 8px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-soft);
}
.nav-fold { margin: 0; }
.nav-fold > summary {
    list-style: none;
    cursor: pointer;
    height: auto;
    line-height: 1;
    padding: 0 8px 6px;
    border-radius: 6px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 600;
    user-select: none;
}
.nav-fold > summary:hover { background: transparent; color: var(--ink); }
.nav-fold > summary::-webkit-details-marker { display: none; }
.nav-fold > summary::after {
    content: '';
    float: right;
    margin-top: 3px;
    border: 4px solid transparent;
    border-top-color: var(--ink-soft);
}
.nav-fold[open] > summary::after {
    margin-top: 1px;
    margin-right: 0;
    border-left-color: transparent;
    border-top-color: var(--ink-soft);
}
.nav-fold-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}
.nav-fold-body a {
    margin: 0;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}

.perm-tree { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.perm-branch {
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px 12px;
}
.perm-parent-row,
.perm-child {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 6px;
    padding: 8px 10px;
}
.perm-parent-row { font-size: 15px; font-weight: 700; }
.perm-parent-row:hover,
.perm-child:hover { background: #fff; }
.perm-children { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 0 8px; }
.perm-child { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.perm-parent-row:has(input:checked),
.perm-child:has(input:checked) {
    background: var(--brand-soft);
    color: var(--brand);
}
.perm-tree input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
}
.perm-tree input[type="checkbox"]:checked {
    background: var(--brand);
    border-color: var(--brand);
}
.perm-tree input[type="checkbox"]:checked::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
.perm-tree input[type="checkbox"]:indeterminate {
    background: var(--brand);
    border-color: var(--brand);
}
.perm-tree input[type="checkbox"]:indeterminate::after {
    content: '';
    width: 8px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.admin-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: stretch;
    padding: 0;
    box-sizing: border-box;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.admin-main { margin-left: var(--side-width); min-width: 0; }
.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--admin-content-gutter);
    box-sizing: border-box;
}
.admin-crumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.admin-crumb > span { flex-shrink: 0; }
.admin-crumb .nav-icon { width: 12px; height: 12px; flex: 0 0 12px; color: var(--muted); transform: rotate(-90deg); }
.admin-crumb strong { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user { display: flex; align-items: center; gap: 8px; }
.account-menu { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: #f7f8fa; border-color: var(--line); }
.account-trigger .account-avatar { width: 36px; height: 36px; flex-shrink: 0; }
.account-trigger .account-avatar .nav-icon { width: 18px; height: 18px; }
.account-trigger-copy { min-width: 0; }
.account-trigger-copy strong { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 500; }
.account-trigger-copy small { display: block; color: var(--ink-soft); font-size: 12px; line-height: 18px; }
.account-trigger > .nav-icon { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; transition: transform .15s; }
.account-trigger[aria-expanded="true"] > .nav-icon { transform: rotate(180deg); }
@media (max-width: 540px) { .account-trigger { gap: 6px; padding: 4px; } .account-trigger-copy strong { max-width: 96px; } }
.account-avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.account-avatar.is-static { cursor: default; }
.account-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    box-sizing: border-box;
    width: min(240px, calc(100vw - 24px));
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(32, 35, 43, .10);
}
.account-panel[hidden] { display: none; }
.account-panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px; margin-bottom: 6px; border-radius: 6px; background: #f7f8fa; }
.account-panel-head > div { min-width: 0; }
.account-panel-head strong { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel-head small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 12px; }
.account-panel-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.account-panel-item .nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.account-panel-item:hover, .account-panel-item:focus-visible { background: var(--brand-soft); color: var(--brand); }
.header-user .account-panel > form { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.account-panel-item.is-danger { color: #d11a2a; }
.account-panel-item.is-danger:hover { background: #fff1f1; }
.header-user form { margin: 0; }
.profile-section + .profile-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-section h3 { margin: 0 0 12px; font-size: 14px; font-weight: 500; }
.profile-section h3 small { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }

.admin-body { margin: 0 auto; padding: 20px var(--admin-content-gutter) 32px; max-width: 1600px; box-sizing: border-box; }
.admin-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.admin-page-heading-copy { min-width: 0; }
.hero-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 0; }
.admin-page-desc { margin: 4px 0 0; max-width: 48rem; color: var(--ink-soft); font-size: 14px; line-height: 24px; }
.admin-page-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-page-heading-actions:empty { display: none; }
.page-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: none;
    overflow: hidden;
}
.page-card:has(> .toolbar),
.page-card:has(> .admin-filter-grid),
.page-card:has(> .task-filter),
.page-card:has(> .filter-bar),
.page-card:has(> .finance-filters) { padding: 0; }
.page-card > .desc-muted { margin: 0; padding: 10px 16px 0; }
.page-card > .table-wrap,
.page-card > .admin-results-table,
.page-card > .publication-table { padding: 0 0 8px; }
.page-card > .admin-pager { padding: 0 16px 12px; }
.toolbar .filter-bar { background: transparent; border: 0; padding: 0; margin: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; background: #f7f8fa; border-bottom: 1px solid var(--line); }
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border-radius: 0;
    padding: 0;
}
.search-box .layui-input {
    width: 260px;
    height: 36px;
}
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #f7f8fa;
    border-radius: 0;
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid var(--line);
}
.filter-bar .layui-input {
    width: 280px;
    height: 36px;
}
.filter-bar .filter-select {
    width: 140px;
}
.zw-select { position: relative; display: inline-block; }
.zw-select-wide,
.field .zw-select,
.layui-input-block .zw-select { display: block; width: 100%; }
.search-box .zw-select-btn { background: #fff; }
.zw-select-wide .zw-select-btn,
.field .zw-select-btn,
.layui-input-block .zw-select-btn {
    width: 100%;
    min-width: 0;
    height: 40px;
}
.zw-select-wide .zw-select-menu,
.field .zw-select-menu,
.layui-input-block .zw-select-menu { min-width: 100%; }
.zw-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 132px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.zw-select-btn:hover { border-color: #c9ced5; }
.zw-select.is-open .zw-select-btn {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(109, 94, 244, .15);
}
.zw-caret {
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: var(--muted);
    margin-top: 4px;
}
.zw-select.is-open .zw-caret {
    margin-top: -2px;
    border-top-color: transparent;
    border-bottom-color: var(--brand);
}
.zw-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(26, 48, 38, .08);
    z-index: 20;
}
.zw-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.zw-option:hover { background: #f7f8fa; }
.zw-option.is-active { color: var(--brand); font-weight: 700; }
.zw-option.is-active::after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid var(--brand);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.perm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}
.perm-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.secret-box {
    background: #20232b;
    color: #f3f4f7;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
    line-height: 1.7;
}
.agent-credentials-dialog { box-sizing: border-box; width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 12px 40px rgb(0 0 0 / .15); }
.agent-credentials-dialog::backdrop { background: rgb(0 0 0 / .45); }
.agent-credentials-dialog h2 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; }
.agent-credentials-dialog header > p { margin: 6px 0 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.agent-credentials-note { padding: 12px 14px; border: 1px solid #e3ddff; border-radius: 8px; background: var(--brand-soft); font-size: 12px; line-height: 1.7; }
.agent-credentials-note strong { color: var(--brand); font-weight: 500; }
.agent-credentials-note p { margin: 4px 0 0; color: var(--ink-soft); }
.agent-credential-row { margin-top: 18px; }
.agent-credential-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.agent-credential-label strong { font-size: 13px; font-weight: 500; }
.agent-credential-row code { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8fa; font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.agent-credentials-dialog footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.agent-credentials-dialog footer > span { color: var(--muted); font-size: 12px; }
.desc-muted { color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.stat-grid > .page-card { border: 0; border-radius: 0; box-shadow: none; border-right: 1px solid var(--line); }
.stat-grid > .page-card:last-child { border-right: 0; }
.stat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.flash-ok, .flash-bad { padding: 10px 14px; margin-bottom: 14px; border-radius: 8px; }
.flash-ok { background: var(--brand-soft); color: var(--brand); }
.flash-bad { background: #fff1f1; color: var(--danger); }
.flash-ok[hidden], .flash-bad[hidden] { display: none !important; }
.admin-notifications { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); margin: 0; padding: 12px; box-sizing: border-box; width: max-content; max-width: min(544px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border: 0; background: transparent; color: var(--ink); z-index: 2147483647; pointer-events: none; }
.admin-notifications::backdrop { background: transparent; pointer-events: none; }
.admin-notification { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; font-size: 14px; font-weight: 400; line-height: 22px; pointer-events: auto; }
.admin-notification + .admin-notification { margin-top: 12px; }
.admin-notification-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; text-align: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.admin-notification.is-error .admin-notification-icon { background: #fef2f2; color: #ef4444; }
.admin-notification-message { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }

.layui-form-label { width: 90px; color: var(--ink-soft); }
.layui-form-item .layui-input-block { margin-left: 120px; }
.layui-input, .layui-textarea {
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.layui-input:hover, .layui-textarea:hover { border-color: #c9ced5; }
.layui-input:focus, .layui-textarea:focus {
    border-color: var(--brand);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(109, 94, 244, .15);
}
.layui-textarea { height: auto; min-height: 88px; }
.layui-table { margin: 0; background: transparent; }
.layui-table td, .layui-table th { border: 0; border-bottom: 1px solid var(--line); font-size: 13px; padding: 12px 16px; }
.layui-table thead tr { background: #f7f8fa; }
.layui-table thead th { color: var(--ink-soft); font-weight: 600; }
.layui-table tbody tr:hover { background: #f7f8fa !important; }
.layui-btn {
    background-color: var(--brand);
    border: 0;
    border-radius: 6px;
    height: 32px;
    line-height: 32px;
    padding: 0 14px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.layui-btn:hover { background-color: var(--brand-hover); }
.layui-btn:active { transform: none; opacity: .92; }
.layui-btn-primary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.layui-btn-primary:hover { background: #f7f8fa; color: var(--ink); border-color: #c9ced5; }
.layui-btn-danger { background-color: var(--danger); color: #fff; }
.layui-btn-danger:hover { background-color: #c85a53; }
.layui-btn-xs {
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 6px;
}
.layui-btn-xs.layui-btn-primary { background: #fff; }
.layui-badge,
.layui-badge-ok,
.layui-badge-off {
    height: 24px;
    line-height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 0;
}
.layui-badge-ok { background: var(--brand-soft); color: var(--brand); }
.layui-badge-off { background: #fdeeee; color: var(--danger); }
.layui-badge { background: #f3f1ff; color: var(--ink-soft); }
.layui-badge-gray { background: #eef0f2; color: var(--muted); }

.admin-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}
.admin-pager-total {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-item { display: inline-flex; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
}
.page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.page-item.disabled .page-link {
    color: var(--muted);
    background: #f7f8fa;
    pointer-events: none;
}
.page-link:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}
.page-item.active .page-link:hover {
    background: var(--brand-hover);
    color: #fff;
}

.playground-fields { display: flex; flex-direction: column; gap: 18px; }
.playground-fields[hidden] { display: none !important; }
.playground-composer {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8fa;
}
.playground-composer:has(> .playground-prompt:only-child) { grid-template-columns: minmax(0, 1fr); }
.playground-ref, .playground-prompt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.playground-ref { cursor: pointer; }
.playground-ref-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.playground-ref > span:not(.playground-ref-tile),
.playground-prompt > span { font-size: 12px; font-weight: 650; color: var(--ink-soft); }
.playground-ref small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.playground-ref-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 132px;
    border: 1.5px dashed #c8ddd1;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    overflow: hidden;
}
.playground-ref-plus { font-size: 32px; font-weight: 400; line-height: 1; }
.playground-ref-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.playground-ref-tile.has-image { border-style: solid; border-color: var(--brand); }
.playground-ref:hover .playground-ref-tile { border-color: var(--brand); color: var(--brand); }
.playground-prompt .prompt-box {
    border-color: #d7e8de;
    background: #fff;
    box-shadow: none;
    min-height: 132px;
    height: 132px;
}
.chip-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chip-field legend { font-size: 12px; font-weight: 650; color: var(--ink-soft); margin-bottom: 8px; }
.chip-field .layui-form-radio { display: none !important; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid #d4e6db;
    border-radius: 999px;
    background: #f7f8fa;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}
.chip:hover span { border-color: var(--brand); color: var(--brand); background: #fff; }
.chip input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(109, 94, 244, .18); }
.chip-ratio {
    display: inline-block;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    flex: 0 0 auto;
}
.chip-ratio-square { width: 10px; height: 10px; }
.chip-ratio-landscape { width: 14px; height: 9px; }
.chip-ratio-portrait { width: 9px; height: 14px; }
.playground-submit {
    position: fixed;
    left: var(--side-width);
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 20px 14px;
    border-top: 1px solid var(--line);
    background: rgba(247, 248, 250, .94);
    backdrop-filter: blur(14px);
}
.playground-submit p { margin: 0; color: var(--muted); font-size: 12px; }
.playground-submit .layui-btn { min-width: 148px; height: 42px; line-height: 42px; margin: 0; }
.playground-media { display: block; width: 100%; margin: 16px 0 0; border-radius: 12px; }
.playground-media img { display: block; max-width: 100%; border-radius: 12px; }
@media (max-width: 720px) {
    .playground-composer { grid-template-columns: minmax(0, 1fr); }
}

.app-editor { min-width: 0; }
.playground-page.app-editor { padding-bottom: 108px; }
.editor-lead { margin: -6px 0 16px; }
.app-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 16px;
    margin-bottom: 16px;
}
.app-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 16px 18px;
    margin-bottom: 16px;
    min-width: 0;
    box-shadow: none;
}
.app-panel:has(> .finance-filters),
.app-panel:has(> .admin-filter-grid) { padding-top: 0; padding-left: 0; padding-right: 0; }
.app-panel:has(> .finance-filters) > .finance-filters,
.app-panel:has(> .admin-filter-grid) > .admin-filter-grid { margin-bottom: 16px; }
.app-editor .app-panel { overflow: hidden; }
.app-form-grid > .app-panel { margin-bottom: 0; }
.app-panel-head { margin-bottom: 14px; }
.app-panel-head h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; }
.app-panel-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-grid { display: grid; gap: 12px 14px; }
.field-grid[hidden] { display: none !important; }
.field-grid > .span-2 { grid-column: 1 / -1; }
.field-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field[hidden],
.template-card textarea[hidden] { display: none !important; }
.field > span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.type-lock {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.type-lock[hidden] { display: none !important; }
.type-lock strong { font-size: 14px; }
.zw-option[hidden] { display: none !important; }
.layui-input[readonly] { color: var(--ink-soft); background: #f7f8fa; }
.field .layui-input, .field .layui-textarea, .template-card .layui-input, .template-card .layui-textarea {
    width: 100%;
    box-sizing: border-box;
}
.prompt-grid .prompt-box,
.layui-textarea.prompt-box {
    height: 140px;
    min-height: 140px;
    resize: vertical;
}
.field.span-2 { grid-column: 1 / -1; }
.table-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.table-actions form { margin: 0; }
.schema-caption { margin: 18px 0 10px; color: var(--muted); font-size: 12px; }
.schema-table { background: #f8f9fb; border-radius: 12px; overflow: hidden; }
.schema-table th, .schema-table td { padding: 10px 12px; }
.schema-table th { color: var(--muted); font-weight: 600; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.template-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8fa;
}
.template-card-title { font-size: 12px; font-weight: 650; color: var(--muted); }
.template-card .prompt-box {
    height: 112px;
    min-height: 112px;
}
.detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.detail-hero-main { min-width: 0; }
.detail-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-desc { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.detail-hero-actions { display: flex; gap: 8px; flex-shrink: 0; }
.detail-hero-actions form { margin: 0; }
.kv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.kv-list > div { min-width: 0; }
.kv-list dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.kv-list dd { margin: 0; font-size: 14px; word-break: break-all; }
.kv-list .span-2 { grid-column: 1 / -1; }
.price-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.price-stats strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 650; }
.code-block {
    margin: 0;
    padding: 14px 16px;
    background: #f7f8fa;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.result-card { margin: 0; background: #f7f8fa; border-radius: 16px; overflow: hidden; }
.result-card img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #fff; }
.result-card figcaption { padding: 10px 14px 12px; }
.result-card a { color: var(--brand); font-size: 13px; font-weight: 600; }
.confirm-mask {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(22, 42, 34, .42);
    backdrop-filter: blur(4px);
}
.confirm-mask[hidden] { display: none !important; }
.confirm-dialog {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px 24px 20px;
    box-shadow: 0 24px 60px rgba(26, 48, 38, .16);
}
.confirm-dialog h2 { margin: 0 0 10px; font-size: 18px; }
.confirm-dialog p { margin: 0 0 20px; color: var(--ink-soft); line-height: 1.7; font-size: 14px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.app-form-actions {
    position: sticky;
    bottom: 12px;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(26, 31, 44, .08);
    z-index: 5;
}
@media (max-width: 1100px) {
    .app-form-grid, .field-grid.two, .field-grid.three, .prompt-grid, .template-grid, .kv-list, .price-stats {
        grid-template-columns: 1fr;
    }
    .stat-grid, .stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-hero { flex-direction: column; }
}

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
    width: 380px;
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px 24px;
    box-shadow: 0 10px 30px rgba(28,36,48,.06);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.login-brand .brand-logo { width: 44px; height: 44px; border-radius: 14px; background: #fff; object-fit: contain; }
.login-card h1 { margin: 0; font-size: 22px; color: var(--ink); letter-spacing: .04em; }
.login-card .sub { color: var(--muted); margin-bottom: 22px; }
.login-card .layui-input { height: 42px; }
.login-card .layui-btn { height: 42px; line-height: 42px; width: 100%; }
.login-captcha-row { display: flex; gap: 10px; }
.login-captcha-row .layui-input { flex: 1; min-width: 0; }
.login-captcha {
    flex: 0 0 120px;
    width: 120px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8fa;
    cursor: pointer;
    overflow: hidden;
}
.login-captcha img { display: block; width: 120px; height: 42px; }
.login-captcha:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.risk-page { min-height: 100vh; background: var(--page); }
body.risk-locked { overflow: hidden; }
.risk-mask {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(22, 42, 34, .42);
    backdrop-filter: blur(4px);
}
.risk-mask[hidden] { display: none !important; }
.risk-dialog {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px 28px 26px;
    box-shadow: 0 24px 60px rgba(26, 48, 38, .16);
    text-align: center;
}
.risk-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 8px;
    background: #fff4e8;
    color: #d97706;
    font-size: 24px;
    font-weight: 800;
    line-height: 48px;
}
.risk-dialog h1 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.risk-dialog p { margin: 0 0 22px; color: var(--ink-soft); line-height: 1.75; font-size: 14px; }
.risk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}
.risk-btn:hover { background: var(--brand-hover); color: #fff; }

/* 应用配置与财务复用后台色板、控件和卡片间距。 */
.app-settings-grid { align-items: start; }
.app-settings-side { display: grid; gap: 16px; min-width: 0; }
.app-settings-side > .app-panel { margin: 0; }
.price-summary { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); }
.price-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-summary span { color: var(--ink-soft); font-size: 12px; }
.price-summary strong { color: var(--brand); font-size: 26px; line-height: 1.3; font-weight: 650; font-variant-numeric: tabular-nums; }
.price-summary p, .field-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; font-weight: 400; }
.finance-page .field-grid { gap: 18px 20px; }
.upload-box { padding: 18px; background: #f7f8fa; border: 1px dashed #c9ced5; border-radius: 12px; }
.file-control { display: block; width: 100%; font: inherit; font-size: 13px; color: var(--ink-soft); }
.file-control::file-selector-button { margin-right: 14px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.file-control::file-selector-button:hover { background: var(--brand-soft); }
.file-control:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
.stacked-form .field-grid { margin-bottom: 0; }
.channel-form-note { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #e3ddff; border-radius: 6px; background: var(--brand-soft); color: var(--ink-soft); font-size: 12px; font-weight: 400; line-height: 1.7; }
.channel-form-note strong { margin-right: 8px; color: var(--brand); font-weight: 500; }
.panel-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel-actions .field-help { margin: 0 auto 0 0; }
.finance-filters { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto; gap: 16px; align-items: end; margin: 0; padding: 10px 16px; background: #f7f8fa; border-bottom: 1px solid var(--line); }
.finance-filter-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.finance-filter-actions .layui-btn + .layui-btn { margin-left: 0; }
.layui-table td.table-empty { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.finance-page .layui-table td { font-variant-numeric: tabular-nums; }
.finance-code-actions { margin: 24px 0 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.finance-confirm .field { max-width: 320px; }
.finance-check { margin: 18px 0; color: var(--ink-soft); line-height: 1.7; }
.finance-check input { accent-color: var(--brand); margin-right: 6px; }
@media (max-width: 900px) {
    .app-settings-grid { grid-template-columns: minmax(0, 1fr); }
    .finance-filters { grid-template-columns: minmax(0, 1fr); }
}
.price-summary.span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) {
    .admin-side { position: relative; width: 100%; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-main { margin-left: 0; }
    .side-brand { height: 48px; margin-bottom: 0; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 12px; }
    .nav-fold { margin: 0; flex: 1 1 auto; }
    .nav-fold > summary { padding: 0 8px 6px; }
    .admin-header { position: sticky; left: auto; height: 58px; padding: 0; }
    .stat-grid, .stat-grid-4 { grid-template-columns: minmax(0, 1fr); }
    .stat-grid > .page-card { border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-body { margin-left: 0; padding: 12px 16px 32px; }
    .playground-submit { left: 0; padding: 12px 16px 14px; }
    .app-panel { padding: 18px 16px; }
    .app-form-actions { flex-wrap: wrap; }
    .schema-table { table-layout: fixed; overflow-wrap: anywhere; }
    .table-wrap { overflow-x: auto; }
}
.proof-preview { display: flex; align-items: center; gap: 18px; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line); }
.proof-preview[hidden], .proof-thumbnail[hidden] { display: none; }
.proof-thumbnail { flex: 0 0 auto; width: 120px; height: 100px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: zoom-in; }
.proof-thumbnail img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.proof-preview-info { min-width: 0; }
.proof-preview-info strong { font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }
.proof-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.proof-preview-actions .layui-btn + .layui-btn { margin-left: 0; }
.proof-dialog { margin: auto; padding: 20px; width: min(900px, calc(100vw - 64px)); max-height: 85vh; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: #fff; }
.proof-dialog::backdrop { background: rgba(20, 40, 30, .55); }
.proof-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.proof-dialog h3 { font-size: 16px; font-weight: 650; }
.proof-dialog > img { display: block; max-width: 100%; max-height: 68vh; object-fit: contain; margin: auto; }
@media (max-width: 480px) { .proof-preview { align-items: flex-start; flex-direction: column; } }
.saved-proof { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f7f8fa; }
.saved-proof h3 { margin: 0 0 14px; font-size: 14px; font-weight: 650; }
.saved-proof img { display: block; width: auto; max-width: min(100%, 480px); max-height: 360px; object-fit: contain; border-radius: 8px; cursor: zoom-in; }

/* 后台统一数字步进器：保持原生数值校验与键盘操作。 */
.number-control { position: relative; width: 100%; min-width: 0; }
.number-control > input[type="number"] { width: 100%; padding-right: 52px; appearance: textfield; -moz-appearance: textfield; }
.number-control > input::-webkit-inner-spin-button,
.number-control > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.number-control-actions { position: absolute; top: 5px; right: 5px; bottom: 5px; width: 34px; display: grid; grid-template-rows: 1fr 1fr; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--brand-soft); }
.number-control-button { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--brand); cursor: pointer; transition: background .15s, color .15s; }
.number-control-button + .number-control-button { border-top: 1px solid var(--line); }
.number-control-button i { width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: translateY(2px) rotate(45deg); }
.number-control-down i { transform: translateY(-2px) rotate(225deg); }
.number-control-button:hover:not(:disabled) { background: var(--brand); color: white; }
.number-control-button:active:not(:disabled) { background: var(--brand-hover); }
.number-control-button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.number-control-button:disabled { color: #b7c8be; background: #f6f9f7; cursor: not-allowed; }
.number-control:focus-within > .layui-input { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,158,106,.10); }
@media (max-width: 700px) {
    .number-control > input[type="number"] { min-height: 48px; }
    .number-control-actions { top: 3px; bottom: 3px; width: 40px; }
}

/* 应用上线检查沿用后台主题。 */
.publication-check ul { margin: 12px 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.8; list-style: disc; }
.publication-check .proof-preview-actions { margin-top: 16px; flex-wrap: wrap; }
.table-actions button:disabled { opacity: .45; cursor: not-allowed; }
.publication-table { overflow-x: auto; }
.publication-table .layui-table { min-width: 920px; width: 100%; }
.publication-table th, .publication-table td { white-space: nowrap; vertical-align: middle; }
.publication-table .app-identity { white-space: normal; width: 28%; max-width: 260px; overflow-wrap: anywhere; }
.app-identity strong { display: block; font-weight: 500; }
.app-identity > span { display: block; font-size: 12px; margin-top: 4px; }
.publication-table .table-actions { gap: 6px; }
.publication-table .table-actions .layui-btn { margin-left: 0; }
.publication-summary .publication-report-button { display: block; width: fit-content; height: 24px; line-height: 22px; padding: 0 8px; margin: 6px 0 0; font-size: 12px; font-weight: 500; color: var(--brand); background: var(--brand-soft); border: 1px solid #e2ddff; border-radius: 4px; }
.publication-summary .publication-report-button:hover { color: var(--brand-hover); background: #eae6ff; border-color: #c6bdff; }
.publication-report-hint { display: block; color: var(--brand); font-size: 12px; margin-top: 5px; }
.publication-dialog { box-sizing: border-box; max-height: calc(100vh - 48px); overflow-y: auto; width: min(480px, calc(100vw - 48px)); padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 6px 16px rgb(0 0 0 / .08), 0 3px 6px rgb(0 0 0 / .12); }
.publication-dialog::backdrop { background: rgb(0 0 0 / .45); }
.publication-dialog ul { padding-left: 20px; margin: 18px 0; line-height: 1.8; list-style: disc; }

@media (max-width: 700px) {
    .publication-page .toolbar { align-items: stretch; flex-direction: column; }
    .publication-page .search-box { width: 100%; min-width: 0; box-sizing: border-box; flex-wrap: wrap; }
    .publication-page .search-box .layui-input { width: 100%; min-width: 0; }
    .publication-page .search-box .zw-select { flex: 1; min-width: 0; }
    .publication-page .toolbar > .layui-btn { align-self: flex-start; }
}

/* 后台独立筛选字段与可检索下拉框。 */
.admin-filter-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; align-items: end; gap: 8px; margin: 0; padding: 10px 16px; background: #f7f8fa; border-bottom: 1px solid var(--line); }
.task-filter { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 10px 16px; background: #f7f8fa; border-bottom: 1px solid var(--line); }
.task-filter-row, .task-filter-more { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) auto; align-items: end; gap: 8px; }
.task-filter-more { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.task-filter-more[hidden] { display: none !important; }
.task-filter-more .span-2 { grid-column: span 2; }
.task-filter .field { min-width: 0; margin: 0; }
.task-filter .field > span { font-size: 12px; margin-bottom: 5px; }
.task-filter .layui-input, .task-filter .zw-select-btn { width: 100%; min-width: 0; height: 36px; font-size: 13px; padding-left: 10px; }
.task-filter .zw-select-btn { padding-right: 25px; }
.task-filter .admin-filter-actions { display: flex; gap: 6px; align-items: end; }
.admin-filter-grid .field { min-width: 0; margin: 0; }
.admin-filter-grid .field > span { font-size: 12px; margin-bottom: 5px; }
.admin-filter-grid .layui-input, .admin-filter-grid .zw-select-btn { width: 100%; min-width: 0; height: 36px; font-size: 13px; padding-left: 10px; }
.admin-filter-grid .zw-select-btn { padding-right: 25px; }
.admin-filter-actions { display: flex; gap: 6px; align-items: end; }
.admin-filter-grid .layui-btn { height: 36px; line-height: 36px; padding: 0 12px; margin: 0; white-space: nowrap; }
.channel-filter-grid { grid-template-columns: minmax(180px, 1.3fr) minmax(180px, 1fr) minmax(120px, .7fr) auto; }
.filter-create { justify-self: end; }
.zw-select > .zw-select-search { cursor: text; box-sizing: border-box; width: 100%; padding-right: 30px; text-overflow: ellipsis; }
.zw-search-caret { position: absolute; right: 14px; top: 50%; margin-top: -3px; pointer-events: none; }
.zw-select-options { max-height: 240px; overflow-y: auto; }

.zw-select-search:focus { border-color: var(--brand); }
.zw-option[hidden], .zw-select-empty[hidden] { display: none !important; }
.zw-select-options .zw-option { height: auto; min-height: 34px; white-space: normal; overflow-wrap: anywhere; }
.zw-select-empty { padding: 8px; }
.admin-results-table { overflow-x: auto; }
.admin-results-table table { min-width: 960px; width: 100%; table-layout: auto; }
.admin-results-table th, .admin-results-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
.admin-results-table .layui-badge { white-space: nowrap; }
.task-ids { min-width: 0; }
.task-ids code { display: block; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.task-ids span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 1100px) { .admin-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .filter-create { justify-self: start; } .task-filter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .task-filter-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .task-filter-row, .task-filter-more { grid-template-columns: minmax(0, 1fr); } .task-filter-more .span-2 { grid-column: 1 / -1; } .task-filter .admin-filter-actions { flex-wrap: wrap; } }

@media (max-width: 700px) {
    .agent-list-page .toolbar { align-items: stretch; flex-direction: column; }
    .agent-list-page .search-box { min-width: 0; width: 100%; box-sizing: border-box; }
    .agent-list-page .search-box .layui-input { min-width: 0; width: auto; flex: 1; }
    .agent-list-page .toolbar > .layui-btn { align-self: flex-start; }
}

/* 资金业务结果与历史记账过程。 */
.ledger-account-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.ledger-account-summary > div { padding: 16px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 12px; }
.ledger-account-summary span, .ledger-account-summary small { display: block; color: var(--ink-soft); font-size: 12px; }
.ledger-account-summary strong { display: block; margin: 8px 0; font-size: 20px; color: var(--brand); }
.ledger-business-table { overflow-x: auto; }
.ledger-business-table table { min-width: 760px; width: 100%; }
.ledger-business-note { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.ledger-business-table strong { font-weight: 500; }
.ledger-nowrap, .ledger-amount { white-space: nowrap; }
.ledger-amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger-step { border-left: 3px solid var(--brand); background: #f7fbf9; border-radius: 0 12px 12px 0; padding: 18px; margin-top: 16px; }
.ledger-step header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ledger-step p { margin: 10px 0; line-height: 1.6; }
.ledger-snapshot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 700px) { .ledger-account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ledger-snapshot { grid-template-columns: 1fr; } }

/* DRAMA-AI admin chrome: 232/64px navigation, 32px controls, 960px editor. */
body { font-size: 14px; line-height: 1.5714285714; }
.side-brand-copy { flex: 1; }
.side-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-side { display: flex; flex-direction: column; overflow: hidden; z-index: 40; transition: width 180ms ease; }
.side-brand { flex-shrink: 0; }
.admin-nav { overflow: auto; scrollbar-width: none; flex: 1; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-main { transition: margin-left 180ms ease; }
.nav-fold > summary { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 20px; }
.nav-fold > summary::after { content: none; }
.nav-fold > summary .nav-icon { width: 12px; height: 12px; flex-basis: 12px; transition: transform 180ms ease; }
.nav-fold:not([open]) > summary .nav-icon { transform: rotate(-90deg); }
.nav-fold-body { margin-top: 5.6px; }
.side-toggle, .side-mobile-toggle, .admin-editor-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); background: #fff; cursor: pointer; }
.side-toggle:hover, .side-mobile-toggle:hover, .admin-editor-close:hover { background: var(--page); color: var(--ink); }
.side-mobile-toggle { display: none; width: 36px; height: 36px; }
.header-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.side-backdrop { position: fixed; inset: 0; border: 0; background: rgb(0 0 0 / .45); z-index: 35; }
.side-backdrop[hidden] { display: none; }
.layui-btn, .layui-input, .zw-select-btn { font-size: 14px; border-radius: 7px; font-weight: 400; }
.layui-input, .zw-select-wide .zw-select-btn, .field .zw-select-btn, .layui-input-block .zw-select-btn { height: 32px; }
.zw-select-btn { height: 32px; }
.zw-caret, .zw-select.is-open .zw-caret { width: 6px; height: 6px; margin-top: -3px; border: solid var(--muted); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.zw-select.is-open .zw-caret { margin-top: 3px; transform: rotate(225deg); }
.zw-select-menu { max-height: 280px; overflow-y: auto; box-shadow: 0 6px 16px rgb(0 0 0 / .08), 0 3px 6px rgb(0 0 0 / .12); }
.zw-option { font-size: 14px; border-radius: 4px; }
.zw-option.is-active { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.layui-table th { font-size: 12px; }
.layui-table td { font-size: 14px; line-height: 22px; border-bottom-color: #f0f0f1; }
.layui-table thead th { position: relative; }
.layui-table thead th:not(:last-child)::after { position: absolute; right: 0; top: 50%; width: 1px; height: 16px; background: var(--line); content: ''; transform: translateY(-50%); }
.admin-results-table .table-actions { white-space: nowrap; }
.task-ids { max-width: 230px; }
.task-ids code, .task-ids span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-ids code { font-family: inherit; font-size: 13px; }
.admin-results-table td:first-child { max-width: 240px; }
.page-link { height: 32px; min-width: 32px; border-color: transparent; border-radius: 6px; box-sizing: border-box; font-size: 14px; font-weight: 400; }
.page-item.active .page-link, .page-item.active .page-link:hover { background: #fff; color: var(--brand); border-color: var(--brand); font-weight: 600; }
.page-item.disabled .page-link { background: #fff; }
.page-link:hover { background: var(--page); color: var(--ink); border-color: transparent; }
.admin-pager-total { font-size: 14px; color: var(--ink-soft); }
.admin-filter-grid, .task-filter-row, .task-filter-more, .finance-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-filter-grid .field, .task-filter .field, .finance-filters .field { flex: 0 1 180px; }
.admin-filter-grid .field:first-child, .task-filter-row .field:first-child, .finance-filters .field:first-child { flex: 1 1 280px; max-width: 576px; }
.admin-filter-grid .field > span, .task-filter .field > span, .finance-filters .field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-filter-grid .layui-input, .admin-filter-grid .zw-select-btn, .task-filter .layui-input, .task-filter .zw-select-btn, .finance-filters .layui-input, .finance-filters .zw-select-btn { height: 32px; font-size: 14px; font-weight: 400; }
.admin-filter-grid .layui-btn { height: 32px; line-height: 32px; }
.admin-filter-actions, .finance-filter-actions { align-items: center; gap: 8px; }
.admin-filter-actions .layui-btn + .layui-btn { margin-left: 0; }
.task-filter-more { padding-top: 10px; border-top: 1px solid var(--line); }
.task-filter-more .span-2 { flex-basis: 360px; }
.field > span { font-size: 14px; font-weight: 400; color: var(--ink); }
.field-grid { gap: 24px 16px; }
.layui-input[readonly], .layui-input:disabled { background: #f5f5f5; color: #bfbfbf; }
.perm-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.perm-branch { padding: 0; overflow: hidden; background: #fff; }
.perm-parent-row { padding: 16px; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--page); font-size: 14px; font-weight: 600; }
.perm-children { padding: 0; gap: 0; }
.perm-child { min-height: 42px; box-sizing: border-box; padding: 10px 16px; border-bottom: 1px solid #f0f0f1; border-radius: 0; font-size: 13px; color: var(--ink); }
.perm-parent-row:has(input:checked), .perm-child:has(input:checked) { background: transparent; color: var(--ink); }
.perm-parent-row:has(input:checked) { background: var(--page); }
.perm-children > .desc-muted { margin: 0; padding: 10px 16px; font-size: 12px; background: var(--page); }
.perm-tree input[type="checkbox"] { width: 16px; height: 16px; border-radius: 4px; }
.perm-tree input:disabled { background: #f5f5f5; opacity: .5; cursor: not-allowed; }
.admin-editor-dialog { position: fixed; inset: 0; width: min(960px, calc(100vw - 24px)); height: min(830px, calc(100dvh - 24px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 6px 16px rgb(0 0 0 / .08), 0 3px 6px rgb(0 0 0 / .12); overflow: hidden; }
.admin-editor-dialog::backdrop { background: rgb(0 0 0 / .45); }
.admin-editor-dialog.is-loading { opacity: 0; pointer-events: none; }
.admin-editor-dialog iframe { display: block; border: 0; width: 100%; height: 100%; }
.admin-detail-status { margin-bottom: 16px; }
.channel-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.channel-key-hint { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.admin-detail-status .channel-status { display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; }
.channel-key-note { color: var(--ink-soft); font-size: 12px; line-height: 20px; }
.channel-key-hint:hover, .channel-key-hint:focus { background: var(--brand-soft); color: var(--brand); }
.channel-key-tooltip { position: fixed; z-index: 20; box-sizing: border-box; width: min(200px, calc(100vw - 16px)); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); box-shadow: 0 6px 16px rgb(0 0 0 / .08); text-align: left; font-size: 12px; font-weight: 400; line-height: 20px; white-space: normal; visibility: hidden; opacity: 0; pointer-events: none; }
.channel-key-hint:hover .channel-key-tooltip, .channel-key-hint:focus .channel-key-tooltip { visibility: visible; opacity: 1; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.admin-detail-grid dt { margin-bottom: 6px; color: var(--ink-soft); font-size: 12px; }
.admin-detail-grid dd { margin: 0; color: var(--ink); line-height: 22px; overflow-wrap: anywhere; }
.admin-detail-wide { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-detail-grid code { font-size: 13px; }
.admin-detail-help { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 12px; }
.admin-detail-secret { margin-bottom: 24px; }
.admin-detail-section { margin-top: 24px; }
.admin-detail-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.admin-detail-section h3 span { padding: 0 7px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 400; }
.admin-detail-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.admin-detail-table .layui-table { margin: 0; width: 100%; }
.admin-detail-table td { overflow-wrap: anywhere; }
.admin-detail-table .admin-detail-empty { padding: 24px 16px; text-align: center; color: var(--muted); }
.admin-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.admin-detail-actions:empty { display: none; }
.admin-detail-actions .layui-btn { margin: 0; }
@media (max-width: 540px) {
    .admin-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
}
.admin-editor-close { position: absolute; right: 12px; top: 12px; z-index: 1; border: 0; background: transparent; }
.has-editor-open { overflow: hidden; }
.admin-embedded { background: #fff; }
.admin-embedded .admin-side, .admin-embedded .admin-header, .admin-embedded .side-backdrop { display: none; }
.admin-embedded .admin-main { margin-left: 0; }
.admin-embedded .admin-body { padding: 20px 24px 0; }
.admin-embedded .admin-page-heading { padding-right: 24px; margin-bottom: 24px; }
.admin-embedded .hero-title { font-size: 16px; line-height: 24px; }
.admin-embedded .admin-page-desc { font-size: 12px; line-height: 20px; }
.admin-embedded .page-card { border: 0; padding: 0; overflow: visible; }
.admin-embedded .panel-actions, .admin-embedded .app-form-actions { position: sticky; bottom: 0; z-index: 10; margin: 24px -24px 0; padding: 12px 24px 20px; background: #fff; border-top: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (min-width: 1024px) {
    .is-sidebar-collapsed .admin-side { width: 64px; }
    .is-sidebar-collapsed .admin-main { margin-left: 64px; }
    .is-sidebar-collapsed .side-brand { justify-content: center; }
    .is-sidebar-collapsed .brand-logo, .is-sidebar-collapsed .side-brand-copy, .is-sidebar-collapsed .admin-nav a span, .is-sidebar-collapsed summary { display: none; }
    .is-sidebar-collapsed .admin-nav { gap: 12px; padding: 16px 12px; }
    .is-sidebar-collapsed .nav-fold-body { display: flex; gap: 8px; margin-top: 0; }
    .is-sidebar-collapsed .nav-fold:not(:first-child) { padding-top: 12px; border-top: 1px solid var(--line); }
    .is-sidebar-collapsed .admin-nav a { justify-content: center; width: 40px; height: 40px; box-sizing: border-box; padding: 0; }
    .is-sidebar-collapsed .side-toggle .nav-icon { transform: rotate(180deg); }
}
@media (max-width: 1279px) { :root { --admin-content-gutter: 32px; } }
@media (max-width: 1023px) {
    :root { --admin-content-gutter: 24px; }
    .admin-side { position: fixed; width: 232px; height: 100dvh; border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform 180ms ease; }
    .is-mobile-open .admin-side { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .side-mobile-toggle { display: inline-flex; }
    .side-brand { height: 58px; }
    .side-toggle { display: none; }
    .admin-nav { flex-direction: column; flex-wrap: nowrap; gap: 16px; padding: 16px 12px; }
    .nav-fold { flex: none; }
    .admin-body { padding: 20px 24px 32px; }
    .field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .admin-body { padding: 12px; }
    .admin-header-inner { padding: 0 14px; }
    .admin-crumb { display: none; }
    .hero-title { font-size: 18px; }
    .admin-page-desc { font-size: 12px; line-height: 20px; }
    .admin-filter-grid .field, .task-filter .field, .finance-filters .field { flex: 1 1 140px; }
    .field-grid.two, .perm-tree { grid-template-columns: 1fr; }
    .admin-embedded .admin-body { padding: 20px 16px 0; }
    .admin-embedded .panel-actions, .admin-embedded .app-form-actions { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .admin-side, .admin-main, .nav-fold .nav-icon { transition: none; } }
.admin-embedded .admin-editor-body { display: flex; flex-direction: column; height: 100dvh; }
.admin-editor-body > .admin-page-heading { flex-shrink: 0; }
.admin-editor-body > .page-card, .admin-editor-body > .app-editor { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.admin-embedded .admin-editor-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.admin-editor-fields { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 2px 2px 16px; }
.admin-embedded .admin-editor-form > .panel-actions { position: static; flex-shrink: 0; margin-top: 0; }
.admin-embedded .app-panel { border-radius: 8px; padding: 16px; }
.app-form .app-profile-panel { padding: 12px 16px; margin-bottom: 12px; }
.app-profile-panel > .field { flex-direction: row; align-items: center; gap: 12px; }
.app-profile-panel > .field > span { flex-shrink: 0; }
.app-profile-panel > .field > .zw-select { flex: 1; min-width: 0; }
.app-profile-panel > .field-help { margin: 6px 0 0; }
.admin-embedded .app-panel-head { font-size: 14px; }
/* Workbench cards keep their own spacing instead of inheriting list-card padding. */
.dashboard-overview { display: flex; flex-direction: column; gap: 20px; }
.dashboard-metric { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.dashboard-metric:last-child { border-right: 0; }
.dashboard-metric-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 12px; line-height: 20px; }
.metric-value { margin: 12px 0 8px; font-size: 24px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-metric-detail { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 20px; }
.dashboard-details-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.dashboard-section { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.dashboard-section-head { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.dashboard-section-head h2 { margin: 0; font-size: 15px; line-height: 24px; font-weight: 600; }
.dashboard-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-account-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px; }
.dashboard-account-item + .dashboard-account-item { border-left: 1px solid var(--line); }
.dashboard-label, .dashboard-detail { color: var(--ink-soft); font-size: 12px; line-height: 20px; }
.dashboard-account-item strong { color: var(--ink); font-size: 15px; line-height: 24px; font-weight: 500; overflow-wrap: anywhere; }
.dashboard-shortcuts { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 20px; }
.dashboard-shortcuts .layui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; line-height: 34px; padding: 0 12px; margin: 0; }
.dashboard-environment { display: grid; grid-template-columns: minmax(180px, .5fr) minmax(0, 1fr); gap: 16px; margin: 0; padding: 16px 20px; }
.dashboard-environment > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.dashboard-environment dt { font-size: 12px; color: var(--ink-soft); }
.dashboard-environment dd { margin: 0; font-size: 14px; color: var(--ink); }
.dashboard-environment-note { margin: 0; padding: 0 20px 16px; color: var(--ink-soft); font-size: 12px; line-height: 20px; }
.dashboard-environment-note code { padding: 2px 4px; border-radius: 4px; background: var(--page); }
@media (max-width: 1100px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-metric:nth-child(2) { border-right: 0; }
    .dashboard-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .dashboard-details-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
    .dashboard-overview, .dashboard-details-grid { gap: 12px; }
    .dashboard-metric { padding: 16px; }
    .dashboard-account-grid, .dashboard-environment { grid-template-columns: minmax(0, 1fr); }
    .dashboard-account-item + .dashboard-account-item { border-left: 0; border-top: 1px solid var(--line); }
    .dashboard-section-head, .dashboard-account-item, .dashboard-shortcuts { padding: 16px; }
    .dashboard-environment { padding: 16px; }
    .dashboard-environment-note { padding: 0 16px 16px; }
}
.layui-table td.table-actions { display: table-cell; }
.layui-table td.table-actions form { display: inline-block; }
.layui-table td.table-actions > * { margin-right: 4px; }
.table-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table-identity-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--page); color: var(--muted); }
.table-identity-copy strong, .table-cell-primary { display: block; color: var(--ink); font-size: 14px; font-weight: 500; }
.table-identity-copy small, .table-cell-secondary { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 20px; }
.confirm-dialog { box-sizing: border-box; width: min(420px, calc(100vw - 32px)); margin: auto; color: var(--ink); border: 0; padding: 24px; box-shadow: 0 6px 16px rgb(0 0 0 / .08), 0 3px 6px rgb(0 0 0 / .12); }
.confirm-dialog::backdrop { background: rgb(0 0 0 / .45); }
.confirm-dialog h2 { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 12px; }
.confirm-dialog p { line-height: 22px; margin-bottom: 24px; }
.layui-badge-ok { background: #edf6f0; color: #29845a; }
.layui-badge-off { background: #fbefef; color: var(--danger); }
.layui-badge-gray { background: #f5f5f5; color: var(--ink-soft); }

.admin-editor-content { display: flow-root; }
.admin-editor-body > .flash-ok, .admin-editor-body > .flash-bad { flex-shrink: 0; }
.admin-embedded .app-editor .app-panel { overflow: visible; }
.zw-select .zw-select-menu.is-floating { position: fixed; min-width: 0; box-sizing: border-box; z-index: 100; }
.publication-check-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.publication-check-head h3 { margin: 0; font-size: 14px; line-height: 22px; font-weight: 600; }
.admin-embedded .app-panel.publication-check { padding: 12px 16px; background: var(--page); }
.publication-check ul { margin: 8px 0; font-size: 12px; line-height: 20px; }
.publication-check .field-help { margin-top: 6px; }
.publication-check-note { margin: 8px 0 0; font-size: 12px; line-height: 20px; color: var(--ink-soft); }
.publication-dialog h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.publication-dialog ul { color: var(--ink-soft); font-size: 14px; line-height: 22px; margin: 16px 0 24px; }
.publication-dialog-actions { display: flex; justify-content: flex-end; margin: 0; }
