:root{--tc252-green:#075f46;--tc252-green-2:#0b7a59;--tc252-ink:#16362b;--tc252-muted:#64766e;--tc252-line:#d8e5df;--tc252-soft:#f4f9f6;--tc252-gold:#a77b0b;--tc252-danger:#a13b2f}
#rc252TemplateTrigger{position:fixed;right:16px;bottom:16px;z-index:100100;display:none;align-items:center;gap:9px;min-height:44px;padding:8px 13px;border:1px solid #0a684b;border-radius:12px;background:#076a49;color:#fff;box-shadow:0 14px 34px rgba(4,73,50,.28);font:800 12px/1.2 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;cursor:pointer}
body.rc183-internal #rc252TemplateTrigger,body.role-admin #rc252TemplateTrigger,body.role-staff #rc252TemplateTrigger{display:inline-flex}
#rc252TemplateTrigger .tc252-trigger-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.16);font-size:15px}
#rc252ReleaseBadge{position:fixed;left:14px;bottom:14px;z-index:100105;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:5px 11px 5px 6px;border:1px solid #82b8a2;border-radius:12px;background:rgba(255,255,255,.98);color:#164b39;box-shadow:0 10px 28px rgba(6,66,44,.2);cursor:pointer;font:700 11px/1.15 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
#rc252ReleaseBadge .tc252-release-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#076a49;color:#fff;font-size:15px}
#rc252ReleaseBadge small{display:block;color:#6d7f77;font-size:8px;font-weight:900;letter-spacing:.08em}#rc252ReleaseBadge strong{display:block;color:#084d35;font-size:12px}
.tc252-overlay{position:fixed;inset:0;z-index:13080;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(7,26,20,.72);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}.tc252-overlay.show{display:flex}
.tc252-shell{display:flex;flex-direction:column;width:min(1240px,98vw);height:min(840px,95vh);overflow:hidden;border:1px solid #c8dad2;border-radius:20px;background:#fff;box-shadow:0 36px 100px rgba(0,0,0,.36)}
.tc252-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid var(--tc252-line);background:linear-gradient(135deg,#f2faf6,#fff)}
.tc252-brand{display:flex;align-items:center;gap:12px}.tc252-brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--tc252-green);color:#fff;font-size:20px;box-shadow:0 9px 22px rgba(7,95,70,.2)}
.tc252-kicker{color:var(--tc252-green-2);font-size:9px;font-weight:900;letter-spacing:.1em}.tc252-head h2{margin:3px 0 0;color:var(--tc252-ink);font-size:20px;line-height:1.2}.tc252-head-actions{display:flex;align-items:center;gap:8px}.tc252-env{padding:5px 8px;border-radius:999px;background:#fff3d6;color:#7a5a0b;font-size:9px;font-weight:900}.tc252-env.server{background:#e4f5eb;color:#08603e}
.tc252-icon-btn{display:grid;place-items:center;width:36px;height:36px;border:1px solid #c8d8d0;border-radius:10px;background:#fff;color:#315b4b;font-size:18px;cursor:pointer}
.tc252-body{display:grid;grid-template-columns:330px minmax(0,1fr);min-height:0;flex:1}
.tc252-side{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--tc252-line);background:#f8fbf9}.tc252-side-tools{padding:15px;border-bottom:1px solid var(--tc252-line)}
.tc252-search{width:100%;height:42px;padding:9px 12px;border:1px solid #bdcec6;border-radius:10px;background:#fff;color:#162f26;font:600 12px/1.3 inherit;box-sizing:border-box}.tc252-filter-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:8px}.tc252-filter-row select{min-width:0;height:38px;padding:7px 9px;border:1px solid #c5d4cd;border-radius:9px;background:#fff;color:#28473b;font:700 11px/1.2 inherit}
.tc252-btn{min-height:38px;padding:8px 12px;border:1px solid #abc9bb;border-radius:9px;background:#fff;color:#15543d;font:800 11px/1.2 inherit;cursor:pointer}.tc252-btn:hover{border-color:#45876d}.tc252-btn.primary{border-color:var(--tc252-green);background:var(--tc252-green);color:#fff}.tc252-btn.gold{border-color:#a77b0b;background:#a77b0b;color:#fff}.tc252-btn.danger{border-color:#d9aaa2;color:var(--tc252-danger)}.tc252-btn:disabled{opacity:.5;cursor:not-allowed}
.tc252-list{flex:1;min-height:0;overflow:auto;padding:10px}.tc252-list-empty{padding:24px 15px;text-align:center;color:#71817a;font-size:12px;line-height:1.55}.tc252-template-item{display:block;width:100%;margin:0 0 8px;padding:12px;border:1px solid #d9e5df;border-radius:12px;background:#fff;text-align:left;cursor:pointer}.tc252-template-item:hover,.tc252-template-item.active{border-color:#79aa95;background:#f2faf6;box-shadow:0 7px 18px rgba(8,75,53,.08)}.tc252-template-item small{display:block;color:#0b7958;font-size:9px;font-weight:900;letter-spacing:.04em}.tc252-template-item b{display:block;margin:5px 0;color:#1a3b2e;font-size:12.5px;line-height:1.35}.tc252-template-meta{display:flex;align-items:center;gap:6px;color:#72827b;font-size:9.5px}.tc252-dot{width:6px;height:6px;border-radius:50%;background:#bf8f16}.tc252-dot.active{background:#0b8a59}
.tc252-main{min-width:0;min-height:0;overflow:auto;background:#fff}.tc252-empty{display:grid;place-items:center;height:100%;padding:40px;text-align:center;color:#657a70}.tc252-empty span{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 14px;border-radius:20px;background:#edf7f2;color:#0b7556;font-size:30px}.tc252-empty h3{margin:0 0 6px;color:#234b3b}.tc252-empty p{max-width:480px;margin:0;font-size:12px;line-height:1.6}
.tc252-detail-head{padding:18px 20px 14px;border-bottom:1px solid var(--tc252-line)}.tc252-detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.tc252-detail-title small{display:block;color:#087052;font-size:9px;font-weight:900;letter-spacing:.08em}.tc252-detail-title h3{margin:5px 0 4px;color:#153e2f;font-size:19px}.tc252-detail-title p{margin:0;color:#697b73;font-size:11px}.tc252-detail-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.tc252-status{display:inline-flex;padding:4px 7px;border-radius:999px;background:#fff2d6;color:#7b5908;font-size:9px;font-weight:900}.tc252-status.active{background:#e4f5eb;color:#096341}
.tc252-tabs{display:flex;gap:4px;margin-top:14px;overflow:auto}.tc252-tab{padding:8px 10px;border:0;border-bottom:2px solid transparent;background:transparent;color:#60736a;font:800 10.5px/1.2 inherit;white-space:nowrap;cursor:pointer}.tc252-tab.active{border-bottom-color:#087052;color:#075f46}.tc252-panel{padding:18px 20px 24px}
.tc252-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tc252-card{padding:14px;border:1px solid #dce8e2;border-radius:12px;background:#fbfdfc}.tc252-card small{display:block;color:#75857e;font-size:9px;font-weight:850;letter-spacing:.04em}.tc252-card b{display:block;margin-top:5px;color:#204839;font-size:12px;word-break:break-word}.tc252-note{margin-top:12px;padding:11px 12px;border-left:4px solid #b68b1a;border-radius:8px;background:#fff8e7;color:#6c5316;font-size:10.5px;line-height:1.55}.tc252-note.info{border-left-color:#17785a;background:#eef8f3;color:#275849}
.tc252-form{display:grid;gap:11px}.tc252-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tc252-form label{display:grid;gap:5px;color:#29493d;font-size:10px;font-weight:850}.tc252-form input,.tc252-form select,.tc252-form textarea{width:100%;box-sizing:border-box;min-height:40px;padding:8px 10px;border:1px solid #bdcec6;border-radius:9px;background:#fff;color:#18372b;font:600 11px/1.35 inherit}.tc252-form textarea{min-height:74px;resize:vertical}.tc252-form-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.tc252-table-wrap{overflow:auto;border:1px solid #d9e5df;border-radius:11px}.tc252-table{width:100%;border-collapse:collapse;min-width:680px}.tc252-table th,.tc252-table td{padding:9px;border-bottom:1px solid #e3ece7;text-align:left;vertical-align:top;font-size:10px}.tc252-table th{background:#f3f8f5;color:#31584a;font-weight:900;white-space:nowrap}.tc252-table input,.tc252-table select{width:100%;min-height:34px;padding:6px 7px;border:1px solid #c6d5ce;border-radius:7px;box-sizing:border-box;font:600 10px/1.2 inherit}.tc252-table .tc252-check{width:16px;height:16px;min-height:0}.tc252-table code{padding:3px 5px;border-radius:5px;background:#eef4f1;color:#075f46;font-size:9.5px}.tc252-table-actions{display:flex;gap:5px}.tc252-mini{min-height:30px;padding:5px 7px;border:1px solid #c7d6cf;border-radius:7px;background:#fff;color:#18513d;font:800 9px/1.1 inherit;cursor:pointer}.tc252-mini.publish{border-color:#17785a;background:#17785a;color:#fff}.tc252-mini.danger{border-color:#dbb5ae;color:#9b3c2e}
.tc252-history{display:grid;gap:9px}.tc252-history-row{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid #dce7e2;border-radius:11px;background:#fff}.tc252-version{font-size:14px;font-weight:900;color:#0b664b}.tc252-version small{display:block;color:#718079;font-size:8.5px}.tc252-history-copy b{display:block;color:#294b3e;font-size:11px}.tc252-history-copy small{display:block;margin-top:3px;color:#718179;font-size:9.5px;line-height:1.4}.tc252-history-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.tc252-editor-list{display:grid;gap:8px;margin-top:12px}.tc252-editor{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #dce7e2;border-radius:10px;background:#fff}.tc252-editor b{display:block;color:#294b3e;font-size:11px}.tc252-editor small{display:block;color:#718179;font-size:9.5px}.tc252-editor.inactive{opacity:.55}
.tc252-merge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tc252-merge-field{display:grid;gap:5px;padding:10px;border:1px solid #dbe7e1;border-radius:10px;background:#fbfdfc}.tc252-merge-field label{color:#294b3e;font-size:10px;font-weight:850}.tc252-merge-field code{color:#087052;font-size:9px}.tc252-merge-field input{width:100%;min-height:37px;padding:7px 9px;border:1px solid #c0d0c8;border-radius:8px;box-sizing:border-box;font:600 11px/1.2 inherit}
.tc252-toast{position:fixed;right:18px;top:18px;z-index:13120;width:min(390px,calc(100vw - 36px));padding:12px 14px;border:1px solid #afd0c0;border-radius:12px;background:#eff9f4;color:#1a543e;box-shadow:0 15px 40px rgba(7,64,45,.2);font:700 11px/1.45 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}.tc252-toast.error{border-color:#e0b0a9;background:#fff1ef;color:#8d3024}
.tc252-release-card{width:min(710px,96vw);max-height:90vh;overflow:auto;border:1px solid #cadbd3;border-radius:18px;background:#fff;box-shadow:0 32px 90px rgba(0,0,0,.34)}.tc252-release-head{padding:22px 24px;border-bottom:1px solid #e0eae5;background:linear-gradient(135deg,#f2faf6,#fff)}.tc252-release-head small{color:#087052;font-size:9px;font-weight:900;letter-spacing:.1em}.tc252-release-head h2{margin:6px 0;color:#143e2f;font-size:23px}.tc252-release-head p{margin:0;color:#63766d;font-size:12px}.tc252-release-body{padding:20px 24px}.tc252-release-list{display:grid;gap:9px}.tc252-release-item{display:grid;grid-template-columns:27px minmax(0,1fr);gap:9px;padding:11px;border:1px solid #dfe9e4;border-radius:10px}.tc252-release-item>span{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#e6f5ed;color:#087052;font-weight:900}.tc252-release-item b{display:block;color:#23483a;font-size:12px}.tc252-release-item small{display:block;margin-top:2px;color:#697b73;font-size:10.5px;line-height:1.5}.tc252-release-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}
@media(max-width:850px){.tc252-body{grid-template-columns:1fr}.tc252-side{max-height:260px;border-right:0;border-bottom:1px solid var(--tc252-line)}.tc252-grid,.tc252-form-grid,.tc252-merge-grid{grid-template-columns:1fr}.tc252-shell{height:96vh}.tc252-detail-top{display:block}.tc252-detail-actions{margin-top:10px;justify-content:flex-start}}
@media(max-width:560px){#rc252TemplateTrigger{right:8px;bottom:76px}#rc252TemplateTrigger .tc252-trigger-copy{display:none}#rc252ReleaseBadge{left:8px;bottom:76px}.tc252-overlay{padding:5px}.tc252-shell{width:100%;height:99vh;border-radius:12px}.tc252-head{padding:12px}.tc252-brand-icon{width:36px;height:36px}.tc252-head h2{font-size:16px}.tc252-panel,.tc252-detail-head{padding-left:13px;padding-right:13px}.tc252-history-row{grid-template-columns:65px minmax(0,1fr)}.tc252-history-actions{grid-column:1/-1;justify-content:flex-start}}
@media print{#rc252TemplateTrigger,#rc252ReleaseBadge,.tc252-overlay,.tc252-toast{display:none!important}}
