/* One list surface; this route uses the breadcrumb as its compact page heading. */
.sy-admin .sy-template-rule-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:52px;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:26px;color:var(--sy-text,#43516a)}
.sy-admin .sy-template-rule.is-expanded .sy-template-rule-text{display:block;max-height:none}
.sy-admin .sy-template-token{display:inline;padding:2px 6px;margin:0 3px;border:1px solid #d6e9e5;border-radius:4px;background:#f3faf8;color:#408578;font-size:12px;white-space:nowrap}
.sy-admin .sy-template-list .sy-template-toggle{height:24px;padding:0;margin-top:5px;border:0;background:transparent;color:var(--sy-primary,#6175fc);font-size:12px}
.sy-admin .sy-template-toggle::after{content:'⌄';margin-left:6px}
.sy-admin .sy-template-toggle[aria-expanded=true]::after{content:'⌃'}
.sy-admin .sy-template-toggle[hidden]{display:none!important}
.sy-admin .sy-template-list{margin:0;min-width:0;width:100%;border:1px solid var(--sy-border,#e8ecf3);border-radius:8px;background:var(--sy-surface,#fff);overflow:hidden;color:var(--sy-text,#344054);box-shadow:none}
.sy-admin .sy-template-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;padding:13px 18px;border-bottom:1px solid var(--sy-border,#e8ecf3)}
.sy-admin .sy-template-toolbar>span{font-size:12px;line-height:20px;color:var(--sy-muted,#8b94a7)}
.sy-admin .sy-template-toolbar>span>b{font-weight:500;color:var(--sy-text,#344054);margin:0 2px;font-variant-numeric:tabular-nums}
.sy-admin .sy-template-list button{width:auto;min-width:0;min-height:0;margin:0;box-shadow:none;font-family:inherit;font-weight:400;letter-spacing:0;line-height:20px;white-space:nowrap;cursor:pointer}
.sy-admin .sy-template-list button::after{display:none}
.sy-admin .sy-template-list .sy-template-create{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;height:34px;min-height:34px;padding:6px 13px;border:1px solid var(--sy-primary,#5f7cf4);border-radius:6px;background:var(--sy-primary,#5f7cf4);color:#fff;font-size:13px}
.sy-admin .sy-template-list .sy-template-create:hover{filter:brightness(1.04)}
.sy-admin .sy-template-table-scroll{overflow:auto;max-width:100%;overscroll-behavior:contain}
.sy-admin .sy-template-table{table-layout:fixed;width:100%;min-width:640px;border-collapse:collapse;border-spacing:0;margin:0;background:transparent;font-variant-numeric:tabular-nums}
.sy-admin .sy-template-name-col{width:23%}.sy-admin .sy-template-status-col{width:96px}.sy-admin .sy-template-action-col{width:78px}
.sy-admin .sy-template-table thead th{font-size:12px;font-weight:400;line-height:20px;color:var(--sy-muted,#8b94a7);background:var(--sy-surface-alt,#f8f9fc);padding:11px 18px;text-align:left;white-space:nowrap;border:0;border-bottom:1px solid var(--sy-border,#e8ecf3)}
.sy-admin .sy-template-table tbody th,.sy-admin .sy-template-table tbody td{font-size:13px;font-weight:400;line-height:21px;color:var(--sy-text,#43516a);padding:15px 18px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid var(--sy-border,#edf0f5);background:transparent}
.sy-admin .sy-template-table tbody th{font-weight:500;overflow-wrap:anywhere}
.sy-admin .sy-template-table tbody tr:last-child>th,.sy-admin .sy-template-table tbody tr:last-child>td{border-bottom:0}
.sy-admin .sy-template-table tbody tr:hover>th,.sy-admin .sy-template-table tbody tr:hover>td{background:var(--sy-surface-alt,#fafbfe)}
.sy-admin .sy-template-content{margin:0;padding:0;border:0;background:transparent;min-width:0;max-width:100%}
.sy-admin .sy-template-content>summary{display:block;list-style:none;cursor:pointer;padding:0;margin:0;min-width:0}
.sy-admin .sy-template-content>summary::-webkit-details-marker{display:none}
.sy-admin .sy-template-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:42px;font-size:13px;line-height:21px;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--sy-muted,#8692a6)}
.sy-admin .sy-template-expand{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--sy-primary,#5f7cf4);line-height:18px;margin-top:5px}
.sy-admin .sy-template-expand::before{content:'展开内容'}.sy-admin .sy-template-expand::after{content:'⌄';font-size:11px;line-height:16px;color:var(--sy-muted,#97a5b9)}
.sy-admin .sy-template-content[open] .sy-template-preview{display:none}.sy-admin .sy-template-content[open] .sy-template-expand{margin-top:0;margin-bottom:7px}
.sy-admin .sy-template-content[open] .sy-template-expand::before{content:'收起内容'}.sy-admin .sy-template-content[open] .sy-template-expand::after{content:'⌃'}
.sy-admin .sy-template-full{margin:0;font-size:13px;line-height:1.8;color:var(--sy-muted,#8692a6);white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400}
.sy-admin .sy-template-state{display:inline-flex;align-items:center;gap:6px;min-height:21px;font-size:12px;line-height:21px;font-weight:400;white-space:nowrap;color:#45a58b;background:transparent;padding:0;border:0;border-radius:0}
.sy-admin .sy-template-state>i{width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:currentColor}.sy-admin .sy-template-state.is-disabled{color:var(--sy-muted,#a0a9b8)}
.sy-admin .sy-template-list .sy-template-edit{display:inline-flex;align-items:center;justify-content:flex-start;height:24px;min-height:24px;padding:0;border:0;border-radius:3px;background:transparent;color:var(--sy-primary,#5f7cf4);font-size:13px}
.sy-admin .sy-template-list .sy-template-edit:hover{text-decoration:underline}
.sy-admin .sy-template-list button:focus-visible,.sy-admin .sy-template-content>summary:focus-visible{outline:2px solid var(--sy-primary,#7e9beb);outline-offset:3px}
.sy-admin .sy-template-table .sy-template-empty{text-align:center;padding:42px 18px;color:var(--sy-muted,#8b94a7);font-size:13px}
@media(max-width:1199px){.sy-admin .sy-template-name-col{width:25%}.sy-admin .sy-template-table thead th,.sy-admin .sy-template-table tbody th,.sy-admin .sy-template-table tbody td{padding-left:14px;padding-right:14px}.sy-admin .sy-template-status-col{width:82px}.sy-admin .sy-template-action-col{width:68px}}

/* One compact toolbar for count and template actions. */
.sy-admin #syTemplateList>.sy-template-toolbar{box-sizing:border-box;min-height:56px;padding:10px 18px;gap:10px 16px}
.sy-admin #syTemplateList .sy-template-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;min-width:0}
.sy-admin #syTemplateList .sy-template-list-actions>.sy-benefit-tools{display:flex;align-items:center;margin:0;padding:0}
.sy-admin #syTemplateList .sy-template-list-actions button{box-sizing:border-box;height:34px;min-height:34px;padding:6px 12px;font-size:12px;line-height:20px}
.sy-admin #syTemplateList .sy-template-list-actions .ghost-btn{border:1px solid var(--sy-border,#e4e8f0);border-radius:6px;background:var(--sy-surface,#fff);color:var(--sy-text,#475569)}
.sy-admin #syTemplateList .sy-template-table thead th{padding-top:9px;padding-bottom:9px}
.sy-admin #syTemplateList .sy-template-table tbody tr{height:56px}
.sy-admin #syTemplateList .sy-template-table tbody :is(th,td){padding-top:10px;padding-bottom:10px;vertical-align:middle}
.sy-admin #syTemplateList .sy-template-rule-text{font-size:12px;line-height:22px;max-height:44px}
.sy-admin #syTemplateList .sy-template-rule.is-expanded .sy-template-rule-text{max-height:none}
@media(max-width:640px){.sy-admin #syTemplateList>.sy-template-toolbar{padding:10px 14px;flex-wrap:wrap}.sy-admin #syTemplateList .sy-template-list-actions{gap:8px;flex-wrap:wrap}}
