:root{--text:#202431;--muted:#838795;--line:#eceef2;--brand:#6554c0;--soft:#f2effc;--err:#c54c58;--warn:#ad7725;--card:#fff;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--text);font-size:13px;line-height:1.6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:#fff}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:white;border:1px solid #e1e3e9;border-radius:6px;padding:6px 12px;white-space:nowrap;transition:background .15s}button:hover:not(:disabled){background:#f3f2f8}button:disabled{opacity:.42;cursor:not-allowed}.primary{background:var(--brand);border-color:var(--brand);color:white}.primary:hover:not(:disabled){background:#5847ad}.danger{color:var(--err)}input:not([type=checkbox]),select,textarea{border:1px solid #e1e3e9;border-radius:6px;padding:7px 10px;background:white;min-width:0}input[type=checkbox]{width:15px;height:15px;accent-color:var(--brand);vertical-align:middle;cursor:pointer}textarea{resize:vertical;width:100%;line-height:1.9}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #9c8adf;outline-offset:2px}fieldset{border:0;padding:0;margin:0;min-width:0}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:16px;letter-spacing:.3px}h2{font-size:24px;font-weight:650;letter-spacing:-.5px}h3{font-size:15px}header{height:70px;display:flex;align-items:center;gap:36px;padding:0 30px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:var(--brand);color:white;font-size:18px}.brand small{font-weight:400;font-size:11px;color:var(--muted);display:block;line-height:1.2;letter-spacing:1px}nav{display:flex;height:100%;gap:24px;align-items:stretch}nav button{border:0;border-radius:0;padding:0 1px;color:#717684;background:transparent;position:relative}nav button[aria-current]{color:var(--brand);font-weight:600}nav button[aria-current]:after{content:"";height:3px;position:absolute;bottom:0;left:0;right:0;background:var(--brand);border-radius:3px 3px 0 0}.spacer{flex:1}.meta,.muted,.hint{color:var(--muted);font-size:12px}.token{width:112px}header .meta{white-space:nowrap}.header-refresh{border:0;font-size:16px;padding:4px 8px}main{padding:27px 32px 50px;max-width:1800px;margin:auto}.page-head{display:flex;align-items:center;gap:14px;margin-bottom:24px}.page-head p{color:var(--muted);margin-top:5px;font-size:12px}.page-head-actions{display:flex;gap:10px;margin-left:auto}.bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:15px}.filter-bar input,.filter-bar select{border:0;background:#f7f8fa;font-size:12px;min-height:33px}.filter-bar input[type=search]{width:230px}.filter-bar .search{position:relative}.batch-bar{display:flex;align-items:center;gap:14px;min-height:43px;border-top:1px solid var(--line);font-size:12px;flex-wrap:wrap}.batch-bar button{border:0;background:transparent;font-size:12px;padding:4px 0;color:#626779}.batch-bar button:first-of-type{color:var(--brand)}.batch-bar button.danger{color:var(--err)}.batch-bar b{font-weight:500;color:#878d99;min-width:65px}.table-wrap{overflow:auto;margin:0 -1px;border-top:1px solid var(--line);min-height:360px}.data-table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}.data-table th{font-weight:500;color:#89909d;background:#fafbfc;height:39px;padding:9px 13px;text-align:left;border-bottom:1px solid var(--line)}.data-table td{height:62px;padding:9px 13px;border-bottom:1px solid #f0f1f5;vertical-align:middle}.data-table tr:hover td{background:#fcfbff}.data-table tr.is-selected td{background:#f5f2fe}.data-table .check-col{width:35px}.data-table td:first-child,.data-table th:first-child{padding-left:9px;padding-right:4px}.data-table th:nth-child(2){min-width:125px}.person-link{border:0;background:transparent!important;padding:0;display:flex;gap:9px;align-items:center;font-weight:500}.avatar{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#eaf0ff;color:#7389b3;font-size:12px;font-weight:400}.tone-1{background:#f3eaf7;color:#af82b9}.tone-2{background:#e8f4ef;color:#6a9a87}.tone-3{background:#fff0e7;color:#bf9373}.id-cell{max-width:140px;overflow:hidden;text-overflow:ellipsis;color:#979ca8;font-family:Consolas,monospace;font-size:11px}.badge{display:inline-flex;padding:2px 7px;border-radius:4px;font-size:11px;line-height:1.7;background:#f0f2f5;color:#79808d;white-space:nowrap;font-weight:400}.b-ready{background:#fef4da;color:#ac8226}.b-confirmed,.b-generating,.b-pushing{background:#eaf0ff;color:#6484c3}.b-pushed,.b-verified{background:#eaf6ef;color:#5d9776}.b-failed,.b-gen_failed,.b-blocked,.b-delivery_unknown{background:#fff0f0;color:#c47b81}.b-needs_regeneration{background:#fff3e8;color:#bc8a52}.b-simulated{background:#f0eafd;color:#8e72be}.type-tag{font-size:11px;border-radius:4px;padding:3px 7px;background:#f6f0fc;color:#a584bd}.type-tag.anniversary{background:#edf3fc;color:#7a97c3}.table-poster{display:flex;align-items:center;gap:7px;border:0;background:transparent;padding:0;font-size:11px;color:#9691af}.table-poster img{width:22px;height:39px;object-fit:cover;border-radius:2px}.row-actions{white-space:nowrap}.row-actions button{border:0;background:transparent;padding:3px 5px;color:#7a72a0;font-size:12px}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#bcc0c9;vertical-align:middle;margin-right:6px}.status-dot.active{background:#8dbba1}.empty{text-align:center;padding:55px 15px!important;color:#a0a5b0;font-size:13px}.import-panel{margin:0 0 16px;background:#fafbfc;border-radius:7px;padding:10px 14px}.import-panel>summary{cursor:pointer;font-size:12px;color:#6f7483}.import-content{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;padding-top:14px;padding-bottom:3px}.reports:empty{display:none}.report{padding:10px 13px;background:#f8f7fd;border-radius:6px;margin:12px 0;color:#706783;font-size:12px}.report.has-error{background:#fff7f5;color:#ae7065}.report summary{cursor:pointer;font-weight:500}.report ul{padding-left:20px;margin:6px 0}.report li{white-space:pre-wrap;overflow-wrap:anywhere}.report time{font-size:11px;opacity:.6;margin-left:8px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px}.field input,.field select{width:100%}.full{grid-column:1/-1}.tpl-layout{display:grid;grid-template-columns:minmax(380px,1fr) minmax(320px,.8fr);gap:70px;max-width:1150px;margin:0 auto}.tpl-form{padding:4px 0}.tpl-form>label{max-width:260px}.tpl-preview-panel{padding:20px 23px;background:#f8f9fb;border-radius:10px}.tpl-preview-panel h3{font-size:13px}.tpl-preview-panel .grid{margin-top:13px;gap:10px}.tpl-preview-panel input,.tpl-preview-panel select{font-size:12px}.preview-stage{text-align:center;min-height:270px;padding:14px;margin-top:12px;background:#eff1f5;border-radius:6px}.preview-stage img{max-width:100%;max-height:570px;display:block;margin:auto;object-fit:contain;box-shadow:0 5px 18px #25345016}.preview-stage.stale img{opacity:.65}.preview-state{font-size:11px;margin-top:10px;color:var(--muted)}.vars-grid{margin-top:18px}.save-bar{margin-top:26px;display:flex;gap:10px}.save-bar .meta{max-width:270px}.tpl-form h3{font-size:13px;margin-bottom:10px}.tpl-form .editor-section,.tpl-form .simple-section{margin-top:24px}.tpl-form code{font-size:11px}.tpl-form textarea{min-height:150px}.tpl-form .hint{line-height:1.8}#tpl-background{margin-top:15px}.panel{padding:20px 0}.error{color:var(--err);white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin-top:8px}.details-line{white-space:pre-wrap;overflow-wrap:anywhere}pre{margin:10px 0 0;background:#f7f8fa;border-radius:6px;padding:12px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.ev-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.name{font-size:18px;font-weight:600}.identity{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:12px 0 20px}.event-body{display:flex;gap:25px;align-items:flex-start}.cards{display:flex;gap:12px;flex-wrap:wrap}.thumb{width:155px;text-align:center}.thumb img{width:155px;height:280px;object-fit:contain;display:block;background:#f6f7fa;border-radius:5px}.thumb.sel img{box-shadow:0 0 0 2px #a397cf}.image-button{border:0;padding:0;background:transparent;display:block;margin:auto}.event-info{flex:1;min-width:0}.acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.acts button{font-size:12px}dialog{padding:0;border:0;border-radius:12px;max-width:min(820px,94vw);width:660px;color:var(--text);max-height:90vh;box-shadow:0 25px 90px #14254233}dialog::backdrop{background:#22263e66}dialog .dialog-head{padding:20px 23px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}dialog .dialog-body{padding:22px 23px;overflow:auto;max-height:65vh}dialog .dialog-foot{padding:15px 23px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end}#event-detail-dialog{width:800px}#zoom-dialog{width:auto;max-width:96vw;max-height:96vh;background:#fff}#zoom-img{display:block;max-width:90vw;max-height:82vh;margin:12px auto}#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);padding:10px 18px;background:#3c3a4a;color:white;border-radius:7px;z-index:100;max-width:90vw;white-space:pre-wrap;overflow-wrap:anywhere}
#tpl-vars:empty{display:none}#tpl-editor [data-te-token]{font-size:11px;border:0;background:#f4f2fa;color:#8b7da8;padding:4px 8px;margin-top:7px}#tpl-background summary{font-size:11px;color:var(--brand);cursor:pointer}#tpl-background details[open]{flex-basis:100%;padding:10px 0}#tpl-editor textarea{margin-top:7px}nav button:hover:not(:disabled){background:transparent}#tpl-editor .hint{background:#fafbfc;padding:12px 14px;border-radius:6px}
.text-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px}.text-toolbar [role=group]{display:flex;gap:3px}.text-toolbar button{font-size:11px;padding:4px 9px;border:0;background:#f7f8fa;color:#797687}.text-toolbar button[aria-pressed=true]{color:var(--brand);background:var(--soft);font-weight:600}#te-body{white-space:pre-wrap}
@media(min-width:1500px){.data-table td{height:66px}}
@media(max-width:1100px){header{gap:23px;padding:0 20px}nav{gap:20px}header label.meta{display:none}main{padding:25px 22px}.tpl-layout{gap:32px}.filter-bar{gap:8px}}
@media(max-width:760px){header{height:auto;min-height:70px;flex-wrap:wrap;gap:12px;padding:12px 16px 0}nav{order:3;width:100%;gap:0;justify-content:space-between;height:42px}nav button{padding:0 10px}main{padding:22px 16px}.page-head{margin-bottom:18px}h2{font-size:21px}.filter-bar input[type=search]{width:100%}.filter-bar input{flex-basis:100%}.filter-bar .spacer{display:none}.batch-bar{gap:12px;padding:7px 0}.tpl-layout{grid-template-columns:1fr;gap:25px}.tpl-form>label{max-width:none}.table-wrap{min-height:300px}.page-head-actions{gap:6px}.page-head-actions button{font-size:12px}.event-body{flex-direction:column}.import-content{align-items:stretch}.import-content>.field{width:100%}}

.reports-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 0}.reports-toolbar button,.report-close{border:0;background:transparent;font-size:12px;color:inherit;padding:3px 8px}.reports-toolbar button{color:var(--muted)}.report{position:relative}.report summary{padding-right:50px;overflow-wrap:anywhere}.report-close{position:absolute;top:8px;right:7px}.report ul{max-height:240px;overflow:auto}.feishu-settings{max-width:780px;padding:8px 0 22px;border-bottom:1px solid var(--line)}.feishu-settings>p{margin:8px 0 16px}.feishu-settings a{color:var(--brand);font-size:12px}.feishu-setup-help{margin-top:16px;font-size:12px;color:#6f7483}.feishu-setup-help summary{cursor:pointer}.feishu-setup-help ol{padding-left:20px}.feishu-setup-help li{margin:6px 0}@media(max-width:760px){#tab-staff .page-head{flex-wrap:wrap}#tab-staff .page-head-actions{margin-left:0;flex-wrap:wrap}.feishu-settings .grid{grid-template-columns:1fr}}

.identity-reason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;max-width:220px;min-width:130px;color:var(--muted);font-size:11px;margin-top:4px}.b-unavailable{background:#f1f3f7;color:#7b8495}

#event-detail-dialog{width:740px;max-width:94vw;overflow:hidden}#event-detail-dialog .dialog-head{padding:15px 20px}#event-detail{padding:18px 20px;max-height:72vh;overflow-y:auto;overflow-x:hidden}.event-review{min-width:0;white-space:normal}.review-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:18px}.review-heading strong{font-size:18px;font-weight:600;overflow-wrap:anywhere}.review-heading>.meta{margin-left:auto}.review-layout{display:grid;grid-template-columns:minmax(0,1fr) 146px;gap:24px;align-items:start}.review-information{min-width:0}.review-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;margin:0}.review-facts>div{min-width:0}.review-facts dt{font-size:11px;color:var(--muted);margin-bottom:4px}.review-facts dd{font-size:12px;margin:0;overflow-wrap:anywhere}.review-open-id{font-family:Consolas,monospace;font-size:11px!important}.review-instruction{margin-top:20px;font-size:12px;color:#6f7483;line-height:1.8}.review-error{margin-top:12px;font-size:12px;color:var(--err)}.review-error p{max-height:120px;overflow:auto}.review-posters{min-width:0;text-align:center}.review-posters>p{margin-bottom:7px}.review-preview{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;border:0;background:#f8f9fb;padding:9px;border-radius:6px}.review-preview img{display:block;width:auto;max-width:100%;height:176px;object-fit:contain}.review-preview span{font-size:10px;color:#817898}.review-no-poster{font-size:12px;color:var(--muted);padding:20px 0}.review-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px;margin-top:20px}.review-actions button{font-size:12px;padding:6px 10px}.review-logs pre{max-height:200px;overflow:auto}@media(max-width:560px){#event-detail{padding:16px}.review-heading>.meta{margin-left:0;flex-basis:100%}.review-layout{grid-template-columns:minmax(0,1fr) 112px;gap:14px}.review-facts{grid-template-columns:1fr;gap:12px}.review-preview{padding:6px}.review-preview img{height:136px}.review-actions{gap:6px}.review-actions button{padding:6px 8px}}@media(max-width:360px){.review-layout{grid-template-columns:minmax(0,1fr)}.review-posters{max-width:146px}}

.audit-table{min-width:1570px}.audit-table th,.audit-table td{padding-left:10px;padding-right:10px}.audit-table .audit-person{position:sticky;left:0;z-index:1;background:#fff;min-width:115px}.audit-table th.audit-person{background:#fafbfc;z-index:2}.audit-table .is-selected .audit-person{background:#f5f2fe}.audit-table .audit-person small{display:block;margin-top:4px;font-size:10px}.audit-stacked>*{display:block;margin:3px 0;width:fit-content}.audit-stacked small{font-size:10px}.audit-push-dates{min-width:172px;font-size:11px}.audit-notice{min-width:205px;max-width:250px;white-space:normal}.audit-notice-link{border:0;background:transparent;padding:0;color:#b77953;text-align:left;white-space:normal;font-size:11px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.audit-poster-cell{width:60px}.audit-poster-image{display:block;padding:0;border:0;border-radius:3px;background:transparent;cursor:zoom-in}.audit-poster-image:hover:not(:disabled){background:transparent}.audit-poster-image img{display:block;width:26px;height:52px;object-fit:contain;border-radius:3px}.audit-table .row-actions .bar{gap:3px}.audit-table td.id-cell{max-width:128px}.b-sent{background:#eaf6ef;color:#5d9776}.b-unknown{background:#fff3e8;color:#bc8a52}.b-sending{background:#eaf0ff;color:#6484c3}.b-not_sent{background:#f0f2f5;color:#79808d}.b-simulated{background:#f0eafd;color:#8e72be}
.audit-table .empty{text-align:left;padding-left:44px}
.review-people{margin:0 0 16px;padding:10px 0 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.review-search-count{font-size:12px;color:var(--muted);margin-bottom:8px}
.review-person-matches{display:flex;flex-wrap:wrap;gap:8px}
.review-person-choice{display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:0;background:#f8f9fb;text-align:left;font-size:12px;max-width:100%}
.review-person-choice>span{color:var(--muted)}
.review-person-focus{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px}
.review-person-focus strong{font-size:15px}.review-person-focus button,.review-person-states button{font-size:12px;padding:5px 9px}
.review-person-states{display:flex;gap:8px;margin-top:10px}.review-person-states button{border:0;background:#f7f8fa}
.review-person-states button[aria-pressed=true]{background:#f2edff;color:var(--brand)}
.audit-table .row-actions{position:sticky;right:0;background:white;z-index:1}.audit-table .is-selected .row-actions{background:#f5f2fe}
.audit-table th:last-child{position:sticky;right:0;z-index:2}
.preview-help{font-size:11px;color:var(--muted);line-height:1.8;margin:8px 0 14px}.background-manager{padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.background-manager h3{margin:0}.background-manager button{font-size:12px;padding:6px 10px}.background-name{font-size:12px;margin:10px 0 4px;overflow-wrap:anywhere;color:#6f7483}#background-dialog{width:500px}#background-dialog .field{margin:14px 0 7px}#background-target{margin-bottom:12px}.background-sample{height:240px;max-width:100%;margin:14px auto;background:#fff;box-shadow:0 0 0 1px var(--line);overflow:hidden}.background-sample img{display:block;width:100%;height:100%;object-fit:cover}#background-fields .hint{font-size:12px}
.tpl-layout{row-gap:24px;align-items:start}.tpl-layout>.tpl-form{min-width:0}.tpl-copy-panel{margin-top:22px}#tpl-company .hint{background:#fafbfc;padding:12px 14px;border-radius:6px;line-height:1.8}#tpl-company input{width:100%}
.font-tools{margin-top:12px;gap:9px}.font-tools button{font-size:12px}.font-help{margin-top:8px;line-height:1.7}
.staff-date-range{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.filter-bar .staff-date-range input{width:145px;min-width:0;flex:none}
.filter-bar .staff-date-range select{width:82px;min-width:0;flex:none}
#staff-filter-hint{margin:0 0 12px}
#staff-batch-dialog{width:1120px;max-width:96vw}
#staff-batch-dialog .dialog-body{max-height:70vh}
.batch-fill-bar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:16px 0}
.batch-fill-bar .field{min-width:150px}
#staff-batch-table{min-height:0;max-height:43vh}
#staff-batch-table th{position:sticky;top:0;z-index:1}
#staff-batch-table td{height:46px;padding:5px 8px}
#staff-batch-table input{width:100%;min-width:108px;font-size:12px;padding:6px;background:#fafbfc;border-color:transparent}
#staff-batch-table input:focus{background:white;border-color:#9c8adf}
#staff-batch-table input[type=date]{min-width:138px}
#staff-batch-table .open-id-input{min-width:280px}
.open-id-input,.staff-open-id{font-family:ui-monospace,Consolas,monospace}
.staff-open-id{display:block;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.employee-binding{margin-top:18px}
.employee-binding h4{margin:0 0 10px;font-size:14px}
#staff-batch-table select{min-width:80px;font-size:12px}
.batch-edit-note{margin-top:12px}
#staff-batch-dirty{align-self:center}
#tab-staff>.batch-bar{position:sticky;top:0;background:#fff;z-index:3}
.event-result-filter{display:flex;align-items:center;gap:4px}
.event-result-filter button{padding:3px 7px;border:0;background:transparent;color:var(--muted);font-size:16px}

.selection-help{font-size:11px;color:var(--muted);padding:5px 0 10px}
.data-table .selection-cell{min-width:34px;cursor:crosshair;touch-action:none}
.selection-cell input{touch-action:none}
body.is-selecting-rows{user-select:none;-webkit-user-select:none;cursor:crosshair}
.is-range-selecting .selection-cell{background:#f8f6ff}
#tab-events>.batch-bar{position:sticky;top:0;background:#fff;z-index:3}
.field-mapping .bar{margin:12px 0 6px;gap:12px;flex-wrap:wrap}
.field-mapping .hint{margin:8px 0}
.field-mapping .data-table{min-width:760px}
.field-mapping .data-table th,.field-mapping .data-table td{height:auto;padding:10px 12px;white-space:normal;vertical-align:top}
.field-mapping .data-table th:first-child{width:90px}
.field-mapping .data-table th:nth-child(3){width:90px}
.field-mapping .data-table th:last-child{width:35%}
