:root{--tms-primary:#1f4f8a;--tms-primary-2:#2f6fb5;--tms-bg:#f5f7fb;--tms-card:#fff;--tms-line:#dce3ec;--tms-text:#172033;--tms-muted:#687386;--tms-soft:#eef4fb;--tms-success:#16794d;--tms-danger:#a33a3a;--tms-radius:16px;--tms-shadow:0 10px 30px rgba(31,79,138,.08)}
.tms-page{max-width:1440px}.tms-admin-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 22px;padding:22px 24px;border:1px solid var(--tms-line);border-radius:var(--tms-radius);background:linear-gradient(135deg,#fff,#f4f8fd);box-shadow:var(--tms-shadow)}.tms-admin-heading h1{margin:4px 0 6px!important;font-size:28px!important}.tms-admin-heading p{margin:0;color:var(--tms-muted)}.tms-eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--tms-primary-2)}
.tms-form{max-width:1220px;background:transparent;margin:16px 0 30px}.tms-modern-form{border:0;padding:0}.tms-form-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;background:linear-gradient(135deg,#163b69,#2c6aac);color:#fff;padding:24px 26px;border-radius:20px;box-shadow:0 16px 36px rgba(22,59,105,.18);margin-bottom:18px}.tms-form-hero h2{color:#fff!important;border:0!important;margin:4px 0 6px!important;padding:0!important}.tms-form-hero p{margin:0;color:rgba(255,255,255,.82)}.tms-code-badge{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);border-radius:999px;font-weight:700;white-space:nowrap}
.tms-section{background:var(--tms-card);border:1px solid var(--tms-line);border-radius:var(--tms-radius);padding:22px;margin:0 0 18px;box-shadow:var(--tms-shadow)}.tms-section-title{display:flex;gap:12px;align-items:center;border-bottom:1px solid #edf1f6;padding-bottom:14px;margin-bottom:18px}.tms-section-title>span{display:flex;width:34px;height:34px;border-radius:50%;align-items:center;justify-content:center;background:var(--tms-primary);color:#fff;font-weight:800;flex:0 0 auto}.tms-section-title h2{margin:0!important;padding:0!important;border:0!important;font-size:20px!important}.tms-section-title p{margin:4px 0 0;color:var(--tms-muted)}
.tms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:12px 0}.tms-grid label,.tms-plan-grid label{display:flex;flex-direction:column;gap:7px;font-weight:650;color:var(--tms-text)}.tms-grid input,.tms-grid select,.tms-grid textarea,.tms-plan-grid textarea,.tms-admin-form input,.tms-admin-form select,.tms-admin-form textarea{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #cfd8e5!important;border-radius:10px!important;min-height:40px;padding:8px 10px!important;background:#fff;transition:border-color .18s,box-shadow .18s}.tms-grid input:focus,.tms-grid select:focus,.tms-grid textarea:focus,.tms-plan-grid textarea:focus,.tms-admin-form input:focus,.tms-admin-form select:focus,.tms-admin-form textarea:focus{border-color:var(--tms-primary-2)!important;box-shadow:0 0 0 3px rgba(47,111,181,.12)!important;outline:0}.tms-grid small,.tms-section small{color:var(--tms-muted);font-weight:400;line-height:1.45}.tms-span-2{grid-column:span 2}.tms-wallet{min-height:120px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tms-upload-field{position:relative}.tms-profile-preview{width:76px;height:76px;object-fit:cover;border-radius:16px;border:3px solid #eef3f8;margin-bottom:4px}.tms-upload-panel{padding:16px;border:1px dashed #aebed2;background:#f8fbff;border-radius:14px}.tms-upload-panel p{margin:8px 0 0;color:var(--tms-muted)}
.tms-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 16px}.tms-info-grid>div{padding:14px 16px;background:var(--tms-soft);border:1px solid #d9e5f2;border-radius:12px}.tms-info-grid strong{color:var(--tms-primary)}.tms-info-grid p{margin:5px 0 0;color:#526073;line-height:1.55}.tms-scope-box{padding:16px;margin:12px 0;border:1px solid var(--tms-line);background:#fbfcfe;border-radius:14px}.tms-scope-box h2,.tms-scope-box h3{margin:0 0 10px!important}.tms-switch-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:13px 15px;border:1px solid #d7e5f3;background:#f2f7fc;border-radius:12px;margin:12px 0;font-weight:650!important}.tms-switch-row input{width:auto!important;min-height:0!important}.tms-scope-hidden{display:none!important}
.tms-checklist{display:grid;gap:9px;padding:14px;background:#f7f9fc;border:1px solid var(--tms-line);border-radius:12px}.tms-checklist label{display:flex;align-items:flex-start;gap:9px;font-weight:500}.tms-checklist input{margin-top:3px}.tms-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tms-sticky-actions{position:sticky;bottom:12px;z-index:20;display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border:1px solid var(--tms-line);box-shadow:0 14px 40px rgba(23,32,51,.14);padding:12px 14px;border-radius:14px}.tms-sticky-actions span{color:var(--tms-muted)}.tms-primary-btn{min-height:42px!important;padding:0 20px!important;border-radius:10px!important}
.tms-note{padding:13px 15px;background:#f0f6fc;border-left:4px solid var(--tms-primary-2);margin:14px 0;border-radius:8px;color:#33445a}.tms-success-banner{max-width:1180px;padding:13px 16px;margin:14px 0;background:#edf9f3;border:1px solid #bfe7d2;border-radius:12px;color:var(--tms-success);font-weight:700}.tms-muted{color:var(--tms-muted)}.tms-private{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
.tms-photo-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.tms-photo-item{display:flex!important;flex-direction:column;gap:6px;font-weight:400!important;align-items:center;padding:8px;border:1px solid var(--tms-line);border-radius:12px;background:#fff}.tms-photo-item img{width:116px;height:116px;object-fit:cover;border-radius:9px}.tms-photo-item span{font-size:12px;white-space:nowrap}.tms-photo-item input{width:auto!important}
.tms-list-heading{display:flex;justify-content:space-between;align-items:end;margin:28px 0 12px}.tms-list-heading h2{margin:0}.tms-list-heading p{margin:4px 0 0;color:var(--tms-muted)}.tms-member-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tms-member-card{background:#fff;border:1px solid var(--tms-line);border-radius:16px;box-shadow:var(--tms-shadow);overflow:hidden}.tms-member-card header{display:flex;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(180deg,#fff,#f8fbfe);border-bottom:1px solid #edf1f5}.tms-member-card header img,.tms-avatar-placeholder{width:52px;height:52px;border-radius:14px;object-fit:cover;flex:0 0 auto}.tms-avatar-placeholder{display:flex;align-items:center;justify-content:center;background:#e7f0fa;color:var(--tms-primary);font-size:22px;font-weight:800}.tms-member-card header>div{flex:1}.tms-member-card h3{margin:0 0 4px;font-size:17px}.tms-member-code{font-size:12px;color:var(--tms-muted)}.tms-member-fields{padding:8px 18px 16px}.tms-field-row{display:grid;grid-template-columns:180px 1fr;gap:14px;padding:11px 0;border-bottom:1px solid #f0f2f5}.tms-field-row:last-child{border-bottom:0}.tms-field-row>b{color:#33445a}.tms-stack{display:grid;gap:7px}.tms-stack>div{display:grid;gap:2px}.tms-stack span{color:var(--tms-muted);font-size:12px}.tms-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tms-contact-grid>span{display:flex;flex-direction:column;gap:2px;padding:8px 10px;background:#f7f9fc;border-radius:9px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.tms-contact-grid small{font-family:inherit;color:var(--tms-muted)}.tms-empty{padding:24px;text-align:center;border:1px dashed var(--tms-line);border-radius:14px;color:var(--tms-muted)}
.tms-table-wrap{overflow:auto;border-radius:14px;border:1px solid var(--tms-line);background:#fff}.tms-modern-table{border:0!important;box-shadow:none!important}.tms-modern-table th{background:#f5f8fc!important;color:#35445a;font-weight:700}.tms-modern-table th,.tms-modern-table td{padding:11px 12px!important;vertical-align:middle}.tms-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:750}.tms-status.is-active{background:#e9f8f0;color:var(--tms-success)}.tms-status.is-inactive{background:#f4f4f4;color:#777}.tms-position-editor{margin-top:20px;padding:20px;background:#fff;border:1px solid var(--tms-line);border-radius:16px;box-shadow:var(--tms-shadow)}.tms-check-card{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;padding:12px;border:1px solid var(--tms-line);border-radius:10px;background:#fafcff}.tms-check-card input{width:auto!important;min-height:0!important}.tms-admin-form{background:#fff;border:1px solid var(--tms-line);border-radius:16px;padding:18px;box-shadow:var(--tms-shadow)}.tms-shortcodes{display:grid;grid-template-columns:max-content 1fr;gap:8px 14px;align-items:center}.tms-shortcodes code{padding:5px 8px;border-radius:7px}
.tms-stat-row{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.tms-stat{background:#fff;border:1px solid var(--tms-line);border-radius:12px;padding:13px 18px;min-width:100px;text-align:center;box-shadow:var(--tms-shadow)}.tms-stat strong{display:block;font-size:21px}.tms-stat span{font-size:12px;color:var(--tms-muted)}.tms-gps-status{font-size:12px;color:var(--tms-muted)}
/* Organization chart: connectors are anchored to the exact horizontal center of each card. */
.tms-org-chart{overflow:auto;padding:24px 14px;background:#fff;border:1px solid var(--tms-line);border-radius:16px;margin-top:18px;box-shadow:var(--tms-shadow)}.tms-org-title{text-align:center;font-weight:800;margin-bottom:20px;color:var(--tms-text)}.tms-org-chart ul{padding-top:24px;position:relative;display:flex;justify-content:center;align-items:flex-start;margin:0;padding-left:0}.tms-org-chart li{list-style:none;text-align:center;position:relative;padding:24px 10px 0}.tms-org-chart li::before,.tms-org-chart li::after{content:'';position:absolute;top:0;width:50%;height:24px;border-top:2px solid #bec9d6;box-sizing:border-box}.tms-org-chart li::before{right:50%}.tms-org-chart li::after{left:50%;border-left:2px solid #bec9d6}.tms-org-chart li:only-child::before,.tms-org-chart li:only-child::after{display:none}.tms-org-chart li:only-child{padding-top:0}.tms-org-chart li:first-child::before,.tms-org-chart li:last-child::after{border-top:0}.tms-org-chart li:last-child::before{border-right:2px solid #bec9d6;border-radius:0 8px 0 0}.tms-org-chart li:first-child::after{border-radius:8px 0 0 0}.tms-org-chart ul ul::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-1px);height:24px;border-left:2px solid #bec9d6;box-sizing:border-box}.tms-org-chart li>.tms-org-card{margin-left:auto;margin-right:auto;position:relative;box-sizing:border-box}.tms-org-card{display:flex;gap:10px;align-items:center;text-align:left;min-width:230px;max-width:300px;background:#fff;border:1px solid #cbd5e1;border-radius:13px;padding:11px;box-shadow:0 5px 16px rgba(23,32,51,.07)}.tms-org-card img{width:48px;height:48px;border-radius:50%;object-fit:cover}.tms-org-card strong,.tms-org-card span,.tms-org-card small{display:block}.tms-org-card strong{color:var(--tms-primary)}.tms-org-card small{color:var(--tms-muted);margin-top:3px}.tms-position-code{display:inline-block;min-width:38px;padding:2px 6px;margin-right:4px;border-radius:6px;background:#edf2f7;color:#253247;text-align:center}.tms-org-card em{display:block;font-size:12px;color:#526073;font-style:normal;margin:2px 0}.tms-position-template{min-width:245px}.tms-org-group{border-style:dashed;background:#f8fafc}.tms-org-chart>.tms-org-root{padding-top:0}.tms-org-chart>.tms-org-root>li{padding-top:0}.tms-org-chart>.tms-org-root>li::before,.tms-org-chart>.tms-org-root>li::after{display:none}
@media(max-width:1100px){.tms-member-list{grid-template-columns:1fr}.tms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tms-contact-grid{grid-template-columns:1fr}}
@media(max-width:782px){.tms-grid,.tms-plan-grid,.tms-info-grid{grid-template-columns:1fr}.tms-span-2{grid-column:auto}.tms-section{padding:16px}.tms-form-hero{align-items:flex-start;flex-direction:column}.tms-field-row{grid-template-columns:1fr;gap:5px}.tms-sticky-actions{position:static;align-items:flex-start;flex-direction:column}.tms-org-card{min-width:190px}.tms-org-chart{padding:12px 4px}.tms-admin-heading{padding:18px}.tms-admin-heading h1{font-size:24px!important}}

/* v2.4.0 — horizontal member directory, larger actions, validation states */
.tms-required{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:#fff0f0;color:#9d2f2f;font-size:11px;font-weight:800}
.tms-error-banner{max-width:1180px;padding:13px 16px;margin:14px 0;background:#fff2f2;border:1px solid #f0c4c4;border-radius:12px;color:#9a2f2f;font-weight:700}
.tms-primary-btn{min-height:52px!important;padding:0 30px!important;font-size:16px!important;font-weight:800!important;border-radius:12px!important;box-shadow:0 8px 18px rgba(31,79,138,.18)!important}
.tms-clear-form{min-height:52px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 24px!important;border-radius:12px!important;font-weight:700!important;text-decoration:none!important}
.tms-term-grid{align-items:end}.tms-term-grid input[readonly]{background:#f4f7fb!important;color:#33445a;font-weight:700}
.tms-directory-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--tms-line);border-radius:16px;background:#fff;box-shadow:var(--tms-shadow)}
.tms-directory-table{width:100%;min-width:1500px;border-collapse:separate;border-spacing:0;color:var(--tms-text);font-size:13px}
.tms-directory-table thead th{position:sticky;top:0;z-index:2;padding:14px 13px;background:#edf4fb;border-bottom:1px solid #d8e2ee;text-align:left;vertical-align:bottom;white-space:nowrap;font-size:13px;color:#26384e}
.tms-directory-table thead th>span{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;margin-right:6px;border-radius:50%;background:var(--tms-primary);color:#fff;font-size:11px;font-weight:800}
.tms-directory-table thead th small{display:block;margin-top:6px;color:#657487;font-weight:500;white-space:normal;line-height:1.35;max-width:330px}
.tms-directory-table tbody td{padding:14px 13px;border-bottom:1px solid #edf1f5;border-right:1px solid #f0f3f7;vertical-align:top;background:#fff;line-height:1.45}
.tms-directory-table tbody tr:nth-child(even) td{background:#fbfcfe}.tms-directory-table tbody tr:hover td{background:#f5f9fd}.tms-directory-table tbody tr:last-child td{border-bottom:0}.tms-directory-table tbody td:last-child{border-right:0}
.tms-directory-table th:nth-child(1),.tms-directory-table td:nth-child(1){min-width:190px}.tms-directory-table th:nth-child(2),.tms-directory-table td:nth-child(2){min-width:120px}.tms-directory-table th:nth-child(3),.tms-directory-table td:nth-child(3){min-width:330px}.tms-directory-table th:nth-child(4),.tms-directory-table td:nth-child(4){min-width:330px}.tms-directory-table th:nth-child(5),.tms-directory-table td:nth-child(5){min-width:220px}.tms-directory-table th:nth-child(6),.tms-directory-table td:nth-child(6){min-width:230px}
.tms-name-cell strong,.tms-name-cell small{display:block}.tms-name-cell small{margin-top:5px;color:var(--tms-muted)}
.tms-table-stack-item{padding:0 0 10px;margin:0 0 10px;border-bottom:1px dashed #dce4ed}.tms-table-stack-item:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}.tms-table-stack-item strong,.tms-table-stack-item small{display:block}.tms-table-stack-item small{margin-top:4px;color:#596a7f}
.tms-contact-table{display:grid;gap:7px}.tms-contact-table>div{display:grid;grid-template-columns:84px 1fr;gap:8px;align-items:center}.tms-contact-table b{font-size:12px;color:#526073}.tms-contact-table code{padding:4px 7px;background:#f2f5f9;border-radius:7px;color:#33445a;letter-spacing:.08em;white-space:nowrap}
.tms-action-col{width:88px;min-width:88px!important;text-align:center!important}.tms-action-col .button{white-space:nowrap}
@media(max-width:782px){.tms-sticky-actions{gap:10px}.tms-primary-btn,.tms-clear-form{width:100%!important}.tms-directory-table-wrap{border-radius:12px}.tms-directory-table{min-width:1420px}}


/* v2.5.0 — member management, top reset action, lateral advisory/secretary staff */
.tms-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.tms-clear-top{background:#fff!important;color:#24415f!important;border-color:rgba(255,255,255,.7)!important;box-shadow:none!important}.tms-clear-top:hover{background:#f3f7fb!important;color:#163b69!important}
.tms-member-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:8px}.tms-member-actions .button{margin:0!important}.tms-delete-btn{color:#a33a3a!important;border-color:#dfb8b8!important}.tms-member-inactive-row td{opacity:.68;background:#f7f7f7!important}.tms-scope-only{display:block!important;font-size:13px!important;color:#33445a!important}
.tms-org-unit{position:relative;display:inline-block;vertical-align:top}.tms-org-unit>.tms-org-card{margin-left:auto;margin-right:auto}.tms-org-avatar-placeholder{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#e7f0fa;color:var(--tms-primary);font-size:20px;font-weight:800}.tms-org-staff{position:absolute;left:calc(100% + 18px);top:0;display:flex;flex-direction:column;gap:9px;z-index:3}.tms-org-staff::before{content:'';position:absolute;left:-18px;top:25px;width:18px;border-top:2px solid #bec9d6}.tms-org-staff-card{min-width:190px!important;max-width:210px!important;background:#f8fbff!important;border-style:dashed!important}.tms-position-structure .tms-org-staff-card small{color:#607086}.tms-org-chart li.tms-has-staff-node{padding-left:225px;padding-right:225px}
.tms-org-card>div:not(.tms-org-avatar-placeholder){min-width:0}.tms-org-card strong{line-height:1.3}.tms-org-card span{margin-top:4px;color:#526073}
@media(max-width:782px){.tms-hero-actions{width:100%;justify-content:space-between}.tms-clear-top{width:auto!important;min-width:150px}.tms-org-chart li.tms-has-staff-node{padding-left:205px;padding-right:205px}.tms-org-staff-card{min-width:170px!important;max-width:180px!important}}

.tms-directory-table .tms-action-col{min-width:230px!important;width:230px!important}.tms-directory-table .tms-action-col .tms-status{justify-content:center}.tms-directory-table .tms-member-actions{min-width:210px}

/* v2.6.0 — compact non-overlapping org chart + centered lateral staff */
.tms-org-compact{padding:12px 8px;overflow:auto}
.tms-org-compact .tms-org-title{margin-bottom:10px;font-size:13px;line-height:1.3}
.tms-org-compact ul{padding-top:14px}
.tms-org-compact li{padding:14px 4px 0}
.tms-org-compact li::before,.tms-org-compact li::after{height:14px}
.tms-org-compact ul ul::before{height:14px}
.tms-org-compact .tms-org-unit{position:relative;display:flex;justify-content:center;align-items:center;margin:0 auto}
.tms-org-compact .tms-org-unit-lateral{display:grid;grid-template-columns:minmax(108px,1fr) auto minmax(108px,1fr);gap:5px;align-items:center;width:100%;max-width:410px}
.tms-org-compact .tms-org-center{display:flex;justify-content:center;min-width:0}
.tms-org-compact .tms-org-side{position:static;display:flex;flex-direction:column;gap:4px;min-width:0;z-index:auto}
.tms-org-compact .tms-org-side-left{align-items:flex-end}.tms-org-compact .tms-org-side-right{align-items:flex-start}
.tms-org-compact .tms-org-card{min-width:145px;max-width:176px;padding:6px 7px;gap:6px;border-radius:9px;box-shadow:0 3px 10px rgba(23,32,51,.06);font-size:11px;line-height:1.25}
.tms-org-compact .tms-org-card img,.tms-org-compact .tms-org-avatar-placeholder{width:34px;height:34px;font-size:14px;flex:0 0 34px}
.tms-org-compact .tms-org-card strong{font-size:11px;line-height:1.2}.tms-org-compact .tms-org-card span{font-size:10px;line-height:1.2;margin-top:2px}
.tms-org-compact .tms-org-staff-card{min-width:100px!important;max-width:122px!important;padding:5px 6px!important;background:#f8fbff!important;border-style:dashed!important}
.tms-org-compact .tms-org-staff-card img,.tms-org-compact .tms-org-staff-card .tms-org-avatar-placeholder{width:28px;height:28px;flex-basis:28px;font-size:12px}
.tms-org-compact li.tms-has-staff-node{padding-left:4px;padding-right:4px}
.tms-position-structure .tms-org-unit-lateral{max-width:350px;grid-template-columns:minmax(92px,1fr) auto minmax(92px,1fr)}
.tms-position-structure .tms-position-template{min-width:118px;max-width:148px;padding:5px 7px;text-align:center}
.tms-position-structure .tms-org-staff-card{min-width:84px!important;max-width:98px!important}
.tms-position-structure .tms-org-card strong{font-size:10.5px}.tms-position-structure .tms-org-card em{font-size:8.5px;line-height:1.1;margin-top:2px;color:#6b7788}
/* Old absolute staff rules are intentionally neutralized in v2.6. */
.tms-org-staff{position:static!important;left:auto!important;top:auto!important;display:flex!important}.tms-org-staff::before{display:none!important}

@media(max-width:782px){
  .tms-org-compact{padding:8px 5px;overflow:hidden}
  .tms-org-compact .tms-org-title{font-size:12px;margin-bottom:8px}
  .tms-org-compact ul,.tms-org-compact ul ul{display:block!important;padding-top:0!important;margin:0!important}
  .tms-org-compact ul ul{padding-left:10px!important;border-left:1px solid #d9e2ec}
  .tms-org-compact li{padding:5px 0 0 5px!important;text-align:left!important;width:auto!important}
  .tms-org-compact li::before,.tms-org-compact li::after,.tms-org-compact ul ul::before{display:none!important}
  .tms-org-compact .tms-org-unit{justify-content:flex-start;width:100%;max-width:100%}
  .tms-org-compact .tms-org-unit-lateral{grid-template-columns:minmax(72px,1fr) minmax(112px,1.25fr) minmax(72px,1fr);gap:3px;width:100%;max-width:100%}
  .tms-org-compact .tms-org-card{min-width:0!important;max-width:100%!important;width:100%;padding:5px;gap:4px;border-radius:8px}
  .tms-org-compact .tms-org-card img,.tms-org-compact .tms-org-avatar-placeholder{width:28px;height:28px;flex-basis:28px;font-size:11px}
  .tms-org-compact .tms-org-card strong{font-size:10px}.tms-org-compact .tms-org-card span{font-size:9px}
  .tms-org-compact .tms-org-staff-card{min-width:0!important;max-width:100%!important;width:100%!important;padding:4px!important}
  .tms-org-compact .tms-org-staff-card img,.tms-org-compact .tms-org-staff-card .tms-org-avatar-placeholder{width:23px;height:23px;flex-basis:23px;font-size:9px}
  .tms-position-structure .tms-org-unit-lateral{grid-template-columns:minmax(64px,1fr) minmax(105px,1.3fr) minmax(64px,1fr);max-width:100%}
  .tms-position-structure .tms-org-card em{display:none}
}
@media(min-width:783px){
  .tms-org-compact .tms-org-unit-lateral{grid-template-columns:minmax(82px,1fr) auto minmax(82px,1fr);max-width:340px}
  .tms-position-structure .tms-org-unit-lateral{grid-template-columns:minmax(70px,1fr) auto minmax(70px,1fr);max-width:292px}
  .tms-position-structure .tms-position-template{min-width:108px;max-width:136px}
  .tms-position-structure .tms-org-staff-card{min-width:68px!important;max-width:84px!important}
}

/* v2.7.0 — public first-time registration */
.tms-hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.tms-public-entry{max-width:1180px;margin:0 0 18px;padding:20px 22px;border:1px solid #d8e5f2;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#eef6ff);box-shadow:0 8px 24px rgba(31,79,138,.07);display:flex;align-items:center;justify-content:space-between;gap:20px}
.tms-public-entry h2{margin:3px 0 7px;font-size:22px;line-height:1.25;color:#173b66}.tms-public-entry p{margin:0;max-width:720px;color:#52677d;line-height:1.55}.tms-public-entry-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.tms-public-entry-actions .button{min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 18px!important;border-radius:10px!important;font-weight:750!important;text-decoration:none!important}.tms-public-entry.is-logged{background:#f5fbf7;border-color:#d5eadc}.tms-public-entry.is-logged h2{color:#235b3c}
@media(max-width:782px){.tms-public-entry{padding:16px;align-items:flex-start;flex-direction:column}.tms-public-entry h2{font-size:19px}.tms-public-entry-actions{width:100%;display:grid;grid-template-columns:1fr}.tms-public-entry-actions .button{width:100%!important}}


/* v2.8 registration result */
.tms-registration-result{margin:18px 0 22px;padding:22px;border:1px solid #d9e2ec;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.08)}
.tms-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.tms-result-head h2{margin:3px 0 6px;font-size:24px}.tms-result-head p{margin:0;color:#64748b}
.tms-result-status{display:inline-flex;align-items:center;padding:8px 13px;border-radius:999px;background:#ecfdf3;color:#16794b;font-weight:800;white-space:nowrap}
.tms-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tms-result-item{padding:12px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;min-width:0}
.tms-result-item small{display:block;color:#64748b;margin-bottom:4px}.tms-result-item strong{display:block;overflow-wrap:anywhere}
.tms-result-password{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:16px;letter-spacing:.03em}
.tms-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.tms-result-note{margin:12px 0 0;color:#64748b;font-size:13px}
@media(max-width:700px){.tms-registration-result{padding:16px}.tms-result-head{display:block}.tms-result-status{margin-top:10px}.tms-result-grid{grid-template-columns:1fr}.tms-result-actions .button{width:100%;text-align:center}}


/* v2.9.0 — instant login credential popup */
.tms-login-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px}
.tms-login-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.68);backdrop-filter:blur(5px)}
.tms-login-modal-card{position:relative;z-index:1;width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:22px;padding:26px;box-shadow:0 30px 80px rgba(15,23,42,.35);border:1px solid rgba(255,255,255,.35)}
.tms-login-modal-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 0 12px;background:#ecfdf3;color:#16834f;font-size:28px;font-weight:900}
.tms-login-modal-card h2{margin:4px 0 8px;font-size:26px;line-height:1.25;color:#15375f}
.tms-login-modal-lead{margin:0 0 18px;color:#52677d;line-height:1.6}
.tms-login-credentials{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.tms-login-credentials>div{padding:14px;border:1px solid #dbe5ef;border-radius:14px;background:#f8fbff;min-width:0}
.tms-login-credentials small{display:block;color:#64748b;margin-bottom:5px}
.tms-login-credentials strong{display:block;overflow-wrap:anywhere;font-size:16px}
.tms-copy-password{margin-top:9px;border:0;border-radius:8px;padding:7px 10px;background:#e7f0fb;color:#174d83;font-weight:700;cursor:pointer}
.tms-login-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px;margin:14px 0;padding:13px 14px;border-radius:13px;background:#f8fafc;color:#52677d}
.tms-login-summary span{min-width:0}.tms-login-summary strong{color:#243b53;overflow-wrap:anywhere}
.tms-login-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.tms-login-modal-actions .button{min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;border-radius:11px!important;padding:8px 14px!important;text-decoration:none!important;font-weight:800!important}
@media(max-width:650px){.tms-login-modal{padding:10px}.tms-login-modal-card{padding:18px;border-radius:17px}.tms-login-modal-card h2{font-size:21px}.tms-login-credentials,.tms-login-summary,.tms-login-modal-actions{grid-template-columns:1fr}.tms-login-modal-actions .button{width:100%!important}}

/* v2.11.0 — assets restored + admin member tools + hardened responsive charts */
.tms-member-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0 14px;padding:14px;background:#fff;border:1px solid var(--tms-line);border-radius:14px;box-shadow:var(--tms-shadow)}
.tms-member-tools-main{display:flex;flex:1 1 680px;gap:8px;align-items:center;flex-wrap:wrap}.tms-search-box{display:flex;align-items:center;gap:7px;flex:1 1 320px;min-width:240px;padding:0 10px;border:1px solid #cfd8e5;border-radius:10px;background:#fff}.tms-search-box input{width:100%;min-height:38px;border:0!important;box-shadow:none!important;outline:0;background:transparent}.tms-column-picker{position:relative}.tms-column-picker>summary{cursor:pointer;list-style:none;padding:8px 12px;border:1px solid #cfd8e5;border-radius:8px;background:#fff;font-weight:650}.tms-column-picker-grid{position:absolute;right:0;top:calc(100% + 6px);z-index:50;min-width:220px;padding:10px;background:#fff;border:1px solid #d6dee8;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.14);display:grid;gap:7px}.tms-column-picker-grid label{white-space:nowrap}.tms-inline-export-form{display:inline-flex;margin:0}.tms-import-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 28px;padding:16px 18px;border:1px solid #dce3ec;border-radius:14px;background:#f8fbff}.tms-import-panel h3{margin:0 0 4px}.tms-import-panel p{margin:0;color:#657487}.tms-import-panel form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tms-select-col{width:44px!important;min-width:44px!important;text-align:center!important}.tms-directory-table [data-tms-col][hidden]{display:none!important}.tms-directory-table tbody tr.tms-filter-hidden{display:none!important}.tms-directory-table tbody tr.tms-selected-row td{background:#edf7ff!important}
/* WordPress/theme resets must not break the chart into bulleted lists. */
.tms-org-chart ul,.tms-org-chart ol{list-style:none!important}.tms-org-chart li{list-style:none!important}.tms-org-chart li::marker{content:''!important}.tms-org-chart .tms-org-root{display:flex!important;justify-content:center!important;align-items:flex-start!important;margin:0!important;padding-left:0!important}.tms-org-chart .tms-org-root ul{display:flex!important;justify-content:center!important;align-items:flex-start!important;margin:0!important;padding-left:0!important;padding-top:14px!important}.tms-org-chart .tms-org-card{box-sizing:border-box!important}.tms-org-chart .tms-org-card img{display:block!important;max-width:none!important}.tms-position-structure,.tms-org-chart{max-width:100%;box-sizing:border-box}.tms-org-chart{font-family:inherit;color:var(--tms-text)}
@media(max-width:782px){.tms-member-tools{align-items:stretch}.tms-member-tools-main{display:grid;grid-template-columns:1fr 1fr}.tms-search-box{grid-column:1/-1;min-width:0}.tms-member-tools-main .button{width:100%;text-align:center}.tms-column-picker,.tms-inline-export-form,.tms-member-tools>a.button{width:100%}.tms-column-picker>summary,.tms-inline-export-form .button,.tms-member-tools>a.button{width:100%;box-sizing:border-box;text-align:center}.tms-column-picker-grid{position:static;margin-top:6px}.tms-import-panel{align-items:stretch;flex-direction:column}.tms-import-panel form{display:grid;grid-template-columns:1fr}.tms-import-panel input[type=file],.tms-import-panel .button{width:100%}.tms-org-chart .tms-org-root,.tms-org-chart .tms-org-root ul{display:block!important;padding-top:0!important}.tms-org-chart .tms-org-root ul{padding-left:10px!important}}

/* v2.12.0 — required field clarity + configurable admin columns */
.tms-field-required{display:inline;color:#d63638;font-size:16px;font-weight:900;line-height:1;margin-right:4px}
.tms-required-inline{display:block;margin:7px 0 5px;color:#9a2f2f;font-size:12px;font-weight:700}.tms-required-inline b{color:#d63638;font-size:16px}
.tms-client-error{position:relative;z-index:30}
.tms-column-settings{max-width:760px;margin:10px 0 18px}.tms-column-settings table{margin-top:10px}.tms-column-settings th:first-child,.tms-column-settings td:first-child{width:70px;text-align:center}.tms-column-settings th:last-child,.tms-column-settings td:last-child{width:110px;text-align:center}
.tms-table-avatar,.tms-avatar-mini{width:42px;height:42px;border-radius:10px;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:#e7f0fa;color:#1f4f8a;font-weight:800}
.tms-directory-table td[data-tms-col="email"],.tms-directory-table td[data-tms-col="member_code"]{overflow-wrap:anywhere}
.tms-modern-form label:not(.tms-photo-item):not(.tms-switch-row){position:relative}
.tms-modern-form label:not(.tms-photo-item):not(.tms-switch-row)>.tms-field-required{position:absolute;top:-3px;right:3px;z-index:2;margin:0;background:#fff;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;box-shadow:0 0 0 1px rgba(214,54,56,.12)}


/* v2.13.0 — modern first-login popup */
.tms-login-modal-card-modern{width:min(680px,100%);padding:0!important;overflow:hidden!important;border:0!important;border-radius:26px!important;background:#fff!important;box-shadow:0 30px 90px rgba(8,31,61,.34)!important}
.tms-login-hero{display:flex;align-items:center;gap:16px;padding:26px 28px 23px;background:linear-gradient(135deg,#123d70 0%,#1e5a98 58%,#2473b9 100%);color:#fff}
.tms-login-avatar{flex:0 0 68px;width:68px;height:68px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#dcecff);color:#153f70;font-size:31px;font-weight:900;box-shadow:0 10px 28px rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.9)}
.tms-login-hero-copy{min-width:0}.tms-login-hero-copy h2{margin:6px 0 5px!important;color:#fff!important;font-size:25px!important;letter-spacing:-.2px}.tms-login-hero-copy p{margin:0;color:#dbeaff;line-height:1.55;font-size:14px}
.tms-login-success-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);font-size:12px;font-weight:800;letter-spacing:.2px}.tms-login-success-dot{width:8px;height:8px;border-radius:50%;background:#5ee39d;box-shadow:0 0 0 4px rgba(94,227,157,.15)}
.tms-login-account-panel{margin:22px 24px 14px;padding:0;border:1px solid #dbe6f1;border-radius:18px;overflow:hidden;background:#f8fbff}
.tms-login-account-row,.tms-login-password-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px}.tms-login-account-row{border-bottom:1px solid #e0e8f1}.tms-login-account-panel small,.tms-login-member-meta small{display:block;color:#708195;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.45px;margin-bottom:3px}.tms-login-account-panel strong{display:block;color:#15375f;font-size:16px;overflow-wrap:anywhere}
.tms-account-badge{padding:5px 9px;border-radius:999px;background:#e9f3ff;color:#1b5f9d;font-size:10px;font-weight:900;letter-spacing:.8px}.tms-copy-password-modern{margin:0!important;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;border:1px solid #bfd4e9!important;background:#fff!important;color:#164f85!important;border-radius:10px!important;padding:8px 11px!important;font-weight:800!important}
.tms-login-member-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:0 24px 18px;padding:15px 17px;border-radius:16px;background:#f7f9fc;border:1px solid #e5ebf2}.tms-login-member-meta strong{color:#263b52;overflow-wrap:anywhere}.tms-status-active{color:#16834f!important}
.tms-login-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 24px 16px}.tms-action-btn{display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:78px;padding:13px 14px;border-radius:16px;text-decoration:none!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.tms-action-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(16,45,78,.12)}.tms-action-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:21px;font-weight:900}.tms-action-btn b{display:block;font-size:15px;line-height:1.3}.tms-action-btn small{display:block;margin-top:3px;font-size:11px;line-height:1.35;opacity:.78}.tms-action-arrow{font-size:28px;line-height:1;font-weight:300;text-align:right}
.tms-action-edit{background:linear-gradient(145deg,#1768a9,#1d78bb);color:#fff!important;border:1px solid #1768a9}.tms-action-edit .tms-action-icon{background:rgba(255,255,255,.16);color:#fff}.tms-action-logout{background:#fff7f7;color:#9b2c2c!important;border:1px solid #f0c7c7}.tms-action-logout .tms-action-icon{background:#fee7e7;color:#b42323}
.tms-login-help-row{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin:2px 24px 17px;color:#687a8d;font-size:13px}.tms-login-help-row a{font-weight:800;color:#1b63a0;text-decoration:none}.tms-login-help-row a:hover{text-decoration:underline}
.tms-login-security-note{display:flex;gap:10px;align-items:flex-start;margin:0;padding:14px 24px 17px;background:#f6f9fc;border-top:1px solid #e4ebf2;color:#617285}.tms-login-security-note>span{font-size:16px;margin-top:1px}.tms-login-security-note p{margin:0;font-size:12px;line-height:1.5}.tms-login-security-note strong{color:#344b64}
@media(max-width:650px){.tms-login-modal-card-modern{border-radius:20px!important}.tms-login-hero{padding:20px 18px;gap:12px;align-items:flex-start}.tms-login-avatar{flex-basis:54px;width:54px;height:54px;border-radius:17px;font-size:25px}.tms-login-hero-copy h2{font-size:20px!important}.tms-login-hero-copy p{font-size:13px}.tms-login-account-panel{margin:16px 15px 11px}.tms-login-account-row,.tms-login-password-row{padding:13px 14px}.tms-login-member-meta{grid-template-columns:1fr;margin:0 15px 14px;padding:13px 14px}.tms-login-primary-actions{grid-template-columns:1fr;margin:0 15px 14px}.tms-action-btn{min-height:70px}.tms-login-help-row{margin:2px 15px 14px}.tms-login-security-note{padding:13px 16px 15px}}
\n\n/* v2.14.0 — always-visible logged-in profile / logout controls */\n.tms-member-accountbar{max-width:1180px;margin:0 0 14px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d7e3ef;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#f5f9fd 100%);box-shadow:0 8px 24px rgba(20,55,90,.08)}\n.tms-member-account-id{display:flex;align-items:center;gap:11px;min-width:0}.tms-member-account-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:14px;object-fit:cover;border:2px solid #fff;box-shadow:0 4px 14px rgba(20,55,90,.14)}.tms-member-account-avatar-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#1a5f9d,#2f83c6);color:#fff;font-size:20px;font-weight:900}.tms-member-account-id>div{min-width:0}.tms-member-account-id strong{display:block;color:#173b66;font-size:15px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:430px}.tms-member-account-id small{display:block;margin-top:2px;color:#66798c;font-size:11.5px;overflow-wrap:anywhere}.tms-member-account-id .tms-eyebrow{font-size:9px;margin-bottom:2px}\n.tms-member-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.tms-normal-profile-btn,.tms-normal-logout-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 15px;border-radius:11px;text-decoration:none!important;font-size:13px;font-weight:800;line-height:1;transition:transform .15s ease,box-shadow .15s ease}.tms-normal-profile-btn{background:linear-gradient(135deg,#1768a9,#2783c6);border:1px solid #1768a9;color:#fff!important;box-shadow:0 5px 14px rgba(23,104,169,.16)}.tms-normal-profile-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(23,104,169,.23)}.tms-normal-logout-btn{background:#fff5f5;border:1px solid #efc4c4;color:#a12626!important}.tms-normal-logout-btn:hover{transform:translateY(-1px);background:#ffeded;box-shadow:0 7px 16px rgba(161,38,38,.10)}.tms-profile-info-compact{margin-top:0!important}\n#tms-member-profile-form{scroll-margin-top:18px}\n@media(max-width:782px){.tms-member-accountbar{align-items:stretch;flex-direction:column;padding:12px}.tms-member-account-id strong{max-width:calc(100vw - 105px)}.tms-member-account-actions{display:grid;grid-template-columns:1fr;gap:8px}.tms-normal-profile-btn,.tms-normal-logout-btn{width:100%;box-sizing:border-box;min-height:46px}.tms-profile-info-compact{padding:14px 16px!important}.tms-profile-info-compact h2{font-size:18px!important}}\n

/* v2.15.0 — clickable own profile image in Org Chart; other profiles stay private */
.tms-org-profile-link{display:block;position:relative;text-decoration:none!important;border-radius:14px;outline:none}
.tms-org-profile-link img,.tms-org-profile-link .tms-org-avatar-placeholder{display:block}
.tms-org-profile-link.is-owner{cursor:pointer}
.tms-org-profile-link.is-owner:after{content:'✎';position:absolute;right:-5px;bottom:-5px;width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:#1768a9;color:#fff;border:2px solid #fff;font-size:12px;font-weight:900;box-shadow:0 4px 10px rgba(23,104,169,.28)}
.tms-org-profile-link.is-owner:hover img,.tms-org-profile-link.is-owner:hover .tms-org-avatar-placeholder{transform:translateY(-1px);box-shadow:0 7px 18px rgba(23,104,169,.25)}
.tms-org-profile-link.is-owner img,.tms-org-profile-link.is-owner .tms-org-avatar-placeholder{transition:transform .15s ease,box-shadow .15s ease}
.tms-org-profile-link.is-locked{cursor:not-allowed}
.tms-org-profile-link.is-locked:after{content:'🔒';position:absolute;right:-5px;bottom:-5px;width:23px;height:23px;display:grid;place-items:center;border-radius:999px;background:#fff;color:#516276;border:1px solid #d8e1ea;font-size:11px;box-shadow:0 3px 9px rgba(30,55,80,.12)}
.tms-profile-access-toast{position:fixed;z-index:999999;left:50%;bottom:28px;transform:translate(-50%,20px);max-width:min(92vw,520px);padding:13px 16px;border-radius:13px;background:#172f4c;color:#fff;font-size:13px;font-weight:700;line-height:1.45;box-shadow:0 14px 40px rgba(15,35,60,.25);opacity:0;pointer-events:none;transition:.2s ease}
.tms-profile-access-toast.is-show{opacity:1;transform:translate(-50%,0)}
@media(max-width:600px){.tms-profile-access-toast{bottom:16px;width:calc(100vw - 28px);box-sizing:border-box}}


/* v2.16.0 — compact required marks, complete member columns, directory profile privacy + responsive details */
.tms-field-required{position:static!important;display:inline!important;width:auto!important;height:auto!important;margin:0 4px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#d63638!important;font-size:11px!important;font-weight:800!important;line-height:1!important;vertical-align:super!important}
.tms-required-inline{font-size:11px!important;margin:5px 0 4px!important}.tms-required-inline b{font-size:11px!important;font-weight:800!important}
.tms-modern-form label:not(.tms-photo-item):not(.tms-switch-row)>.tms-field-required{position:static!important;display:inline!important;width:auto!important;height:auto!important;background:transparent!important;box-shadow:none!important}
.tms-column-settings{max-width:1100px!important}.tms-column-settings-scroll{max-height:620px;overflow:auto;border:1px solid #dbe3ec;border-radius:12px;background:#fff}.tms-column-settings-scroll table{margin:0!important}.tms-column-settings-scroll thead th{position:sticky;top:0;z-index:2;background:#f2f6fb}.tms-column-settings code{font-size:11px;color:#66788b}
.tms-block-muted{display:block;margin-top:3px;color:#738296;font-size:11px}.tms-cell-plain{display:block;white-space:normal;overflow-wrap:anywhere}.tms-cell-details{max-width:300px}.tms-cell-details summary{cursor:pointer;color:#1b5f9d;font-weight:700;white-space:normal;overflow-wrap:anywhere}.tms-cell-details>div{margin-top:7px;white-space:normal;overflow-wrap:anywhere;color:#405267}.tms-photo-count{white-space:nowrap}
.tms-member-profile-cell{display:flex;align-items:center;justify-content:center;min-width:52px}.tms-member-profile-link{display:inline-block;position:relative;text-decoration:none!important;border-radius:12px;outline:none}.tms-member-profile-link .tms-table-avatar,.tms-member-profile-link .tms-avatar-mini{display:flex;transition:transform .15s ease,box-shadow .15s ease}.tms-member-profile-link.is-owner{cursor:pointer}.tms-member-profile-link.is-owner:after{content:'✎';position:absolute;right:-6px;bottom:-5px;width:21px;height:21px;display:grid;place-items:center;border-radius:999px;background:#1768a9;color:#fff;border:2px solid #fff;font-size:10px;font-weight:900;box-shadow:0 3px 8px rgba(23,104,169,.28)}.tms-member-profile-link.is-owner:hover .tms-table-avatar,.tms-member-profile-link.is-owner:hover .tms-avatar-mini{transform:translateY(-1px);box-shadow:0 7px 16px rgba(23,104,169,.22)}.tms-member-profile-link.is-locked{cursor:not-allowed}.tms-member-profile-link.is-locked:after{content:'🔒';position:absolute;right:-6px;bottom:-5px;width:21px;height:21px;display:grid;place-items:center;border-radius:999px;background:#fff;color:#516276;border:1px solid #d8e1ea;font-size:9px;box-shadow:0 3px 8px rgba(30,55,80,.12)}
.tms-public-member-table{min-width:1080px!important}.tms-public-member-table th[data-tms-col="profile"],.tms-public-member-table td[data-tms-col="profile"]{width:72px!important;min-width:72px!important;text-align:center}.tms-public-member-table th[data-tms-col="name"],.tms-public-member-table td[data-tms-col="name"]{min-width:180px!important}.tms-public-member-table th[data-tms-col="position"],.tms-public-member-table td[data-tms-col="position"]{min-width:250px!important}.tms-public-member-table th[data-tms-col="responsibility"],.tms-public-member-table td[data-tms-col="responsibility"]{min-width:240px!important}.tms-public-member-table th[data-tms-col="term"],.tms-public-member-table td[data-tms-col="term"]{min-width:170px!important}.tms-public-member-table th[data-tms-col="contact"],.tms-public-member-table td[data-tms-col="contact"]{min-width:190px!important}.tms-photo-head{display:inline-flex!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:12px!important}
.tms-more-col{display:none!important;width:52px!important;min-width:52px!important;text-align:center!important}.tms-member-more-button{width:36px;height:36px;display:grid;place-items:center;margin:auto;border:1px solid #cbd7e4;border-radius:10px;background:#fff;color:#1d5f9d;font-size:22px;line-height:1;cursor:pointer}.tms-member-more-button:hover,.tms-member-more-button[aria-expanded="true"]{background:#eaf4ff;border-color:#8fb7db}.tms-member-detail-row{display:none!important}.tms-member-detail-row td{padding:0!important;background:#f7fbff!important}.tms-member-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}.tms-member-detail-grid>div{min-width:0;padding:10px;border:1px solid #e1e8f0;border-radius:10px;background:#fff}.tms-member-detail-grid small{display:block;margin-bottom:5px;color:#64758a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.3px}
.tms-admin-member-table td{max-width:320px;overflow-wrap:anywhere}.tms-admin-member-table .tms-contact-table{min-width:170px}
@media(max-width:1024px){.tms-public-member-table{min-width:0!important;width:100%!important;table-layout:auto}.tms-public-member-table th[data-tms-col="pi"],.tms-public-member-table td[data-tms-col="pi"],.tms-public-member-table th[data-tms-col="responsibility"],.tms-public-member-table td[data-tms-col="responsibility"],.tms-public-member-table th[data-tms-col="term"],.tms-public-member-table td[data-tms-col="term"],.tms-public-member-table th[data-tms-col="contact"],.tms-public-member-table td[data-tms-col="contact"]{display:none!important}.tms-public-member-table .tms-more-col{display:table-cell!important}.tms-public-member-table th[data-tms-col="position"],.tms-public-member-table td[data-tms-col="position"]{min-width:190px!important}.tms-member-detail-row.is-open{display:table-row!important}.tms-directory-table-wrap{overflow-x:hidden!important}}
@media(max-width:650px){.tms-public-member-table thead th{padding:9px 7px!important;font-size:11px!important}.tms-public-member-table tbody td{padding:9px 7px!important;font-size:12px!important}.tms-public-member-table th[data-tms-col="profile"],.tms-public-member-table td[data-tms-col="profile"]{width:60px!important;min-width:60px!important}.tms-public-member-table th[data-tms-col="name"],.tms-public-member-table td[data-tms-col="name"]{min-width:115px!important}.tms-public-member-table th[data-tms-col="position"],.tms-public-member-table td[data-tms-col="position"]{min-width:130px!important}.tms-table-avatar,.tms-avatar-mini{width:38px!important;height:38px!important}.tms-member-detail-grid{grid-template-columns:1fr;padding:9px}.tms-more-col{width:44px!important;min-width:44px!important}.tms-member-more-button{width:32px;height:32px;font-size:20px}}
.tms-member-detail-row.tms-filter-hidden{display:none!important}

/* v2.17.0 — command chain guidance + member self-export */
.tms-command-chain-box{margin:16px 0 18px;padding:16px;border:2px solid #f1b64b;border-radius:14px;background:linear-gradient(135deg,#fffaf0,#fff5df);box-shadow:0 8px 22px rgba(196,132,22,.09)}
.tms-command-chain-head{display:flex;gap:11px;align-items:flex-start}.tms-command-icon{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f3a927;color:#fff;font-size:20px;font-weight:900;box-shadow:0 4px 12px rgba(220,145,20,.2)}
.tms-command-chain-head strong{display:block;color:#7b4b00;font-size:15px;line-height:1.35}.tms-command-chain-head p{margin:4px 0 0;color:#5f5140;font-size:12px;line-height:1.55}
.tms-command-warning{margin:12px 0;padding:11px 13px;border-left:4px solid #d63638;border-radius:8px;background:#fff0f0;color:#8d2224;font-size:12px;font-weight:650;line-height:1.55}.tms-command-warning strong{color:#b42325}
.tms-command-select{display:block;margin:0!important;color:#6b4300!important;font-weight:800!important}.tms-command-select select{margin-top:7px!important;background:#fff!important;border-color:#dfa637!important;box-shadow:0 0 0 2px rgba(239,178,64,.12)!important}
.tms-normal-export-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;border-radius:11px;text-decoration:none!important;font-size:13px;font-weight:800;line-height:1;background:#eef7ff;border:1px solid #a9c9e5;color:#15598e!important;transition:transform .15s ease,box-shadow .15s ease}.tms-normal-export-btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(21,89,142,.12)}.tms-normal-export-btn span{display:inline-grid;place-items:center;min-width:30px;height:21px;padding:0 4px;border-radius:6px;background:#1768a9;color:#fff;font-size:9px;letter-spacing:.3px}.tms-normal-export-btn.is-doc{background:#f2fbf5;border-color:#acd8b8;color:#28713d!important}.tms-normal-export-btn.is-doc span{background:#319151}
@media(max-width:782px){.tms-command-chain-box{padding:13px}.tms-command-chain-head strong{font-size:14px}.tms-member-account-actions .tms-normal-export-btn{width:100%;box-sizing:border-box;min-height:46px}}

/* v2.18 Pi Coin legal/informational notice */
.tms-pi-legal-note{margin:14px 0 0;padding:13px 15px;border:1px solid #f0cf74;border-left:4px solid #c58a00;border-radius:10px;background:#fffaf0;color:#5d4a12;font-size:12.5px;line-height:1.65}.tms-pi-legal-note strong{color:#7a5700}.tms-wallet+small{display:block;margin-top:6px;color:#8a2b2d!important}


/* v2.19.0 — easy Social fields */
.tms-social-guide{margin:0 0 16px;padding:12px 14px;border:1px solid #b9d9f2;border-left:4px solid #2271b1;border-radius:10px;background:#f4faff;color:#28445c;font-size:12.5px;line-height:1.65}.tms-social-guide strong{color:#0f5d96}.tms-social-guide b{color:#193b55}
.tms-social-preview{display:none;margin-top:7px;padding:7px 9px;border-radius:8px;font-size:11.5px;line-height:1.45;font-weight:650}.tms-social-preview:not(:empty){display:block}.tms-social-preview.is-ok{background:#eef9f1;border:1px solid #b8dfc1;color:#216b35}.tms-social-preview.is-warn{background:#fff7e8;border:1px solid #edd18c;color:#7a5612}.tms-social-preview.is-pending{background:#f4f5f6;border:1px solid #d8dadd;color:#59616a}.tms-social-preview a{display:inline-block;margin-left:4px;font-weight:800;text-decoration:none}.tms-social-preview.is-ok a{color:#176a32}.tms-social-preview.is-warn a{color:#8a5c00}
.tms-social-input{padding-right:34px!important;background-image:linear-gradient(45deg,transparent,transparent)}

/* v2.20.0 — Auto command chain + Admin Quick Edit */
.tms-command-auto-box{border-color:#b8c3d1!important;background:linear-gradient(135deg,#f6f8fb,#eef2f6)!important;box-shadow:none!important}
.tms-command-auto-box .tms-command-icon{background:#7b8796!important;box-shadow:none!important}
.tms-command-auto-box .tms-command-chain-head strong{color:#334155!important}
.tms-command-auto-box .tms-command-chain-head p{color:#607086!important}
.tms-command-auto-box .tms-command-warning{background:#fff8e7;border-left-color:#e2a31b;color:#6d541c}
.tms-command-auto-field input[readonly]{background:#e8edf3!important;border-color:#c5cfdb!important;color:#334155!important;font-weight:700;cursor:not-allowed}
.tms-command-auto-field small{display:block;margin-top:7px;font-weight:650!important}
.tms-command-auto-box.is-found .tms-command-auto-field small,.tms-command-auto-box.is-top .tms-command-auto-field small{color:#18794e!important}
.tms-command-auto-box.is-missing .tms-command-auto-field small,.tms-command-auto-box.is-multiple .tms-command-auto-field small{color:#b45309!important}
.tms-command-auto-box.is-manual{border-color:#8b5cf6!important;background:linear-gradient(135deg,#f7f4ff,#f0ebff)!important}
.tms-command-auto-box.is-manual .tms-command-auto-field small{color:#6d28d9!important}
.tms-member-actions-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;min-width:400px!important}
.tms-member-actions-grid .button{display:flex!important;align-items:center;justify-content:center;gap:4px;min-height:30px;height:auto!important;padding:4px 7px!important;line-height:1.2!important;font-size:11px!important;text-align:center;white-space:normal!important}
.tms-member-actions-grid .tms-qa-command{border-color:#7c3aed!important;color:#6d28d9!important;background:#faf7ff!important}
.tms-member-actions-grid .tms-qa-all{font-weight:700!important}
.tms-directory-table .tms-action-col{min-width:430px!important;width:430px!important}
.tms-quick-editor{margin:16px 0 22px;padding:20px;background:#fff;border:2px solid #315f91;border-radius:16px;box-shadow:0 12px 30px rgba(30,64,100,.10)}
.tms-quick-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #dbe3ec}
.tms-quick-editor-head h2{margin:4px 0 4px!important;font-size:24px!important}.tms-quick-editor-head p{margin:0;color:#607086}
.tms-quick-form{box-shadow:none!important;border:0!important;padding:0!important}
.tms-quick-form>label{display:flex;flex-direction:column;gap:7px;max-width:850px;font-weight:700}.tms-quick-form select,.tms-quick-form input{max-width:850px!important}
.tms-quick-radio{display:block!important;padding:11px 13px;margin:7px 0;border:1px solid #d4dce6;border-radius:10px;background:#f8fafc;font-weight:500!important}
.tms-quick-radio input{width:auto!important;min-height:0!important;margin-right:7px!important}
.tms-command-admin-card{padding:13px 15px;margin:10px 0 14px;background:#f3f7fb;border:1px solid #d6e0eb;border-radius:12px}.tms-command-admin-card p{margin:4px 0}
.tms-manual-badge,.tms-auto-badge{display:inline-flex;margin-left:8px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800}.tms-manual-badge{background:#f1e8ff;color:#6d28d9}.tms-auto-badge{background:#e7f7ef;color:#18794e}
.tms-quick-single-field{max-width:850px}.tms-quick-single-field label{display:flex;flex-direction:column;gap:7px;font-weight:700}.tms-quick-single-field select{max-width:100%!important}
.tms-quick-save-row{margin-top:16px!important}.tms-quick-save-row .button-primary{min-width:220px;min-height:42px}
@media(max-width:782px){.tms-member-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:280px!important}.tms-directory-table .tms-action-col{min-width:300px!important;width:300px!important}.tms-quick-editor-head{flex-direction:column}.tms-quick-editor{padding:14px}}

/* v2.25.0 */
.tms-org-title{text-align:center!important;margin:0 auto 18px!important;display:block;width:100%;font-weight:800}
.tms-public-directory-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px;padding:12px;border:1px solid #dce6ef;border-radius:12px;background:#f8fbfe}
.tms-public-directory-tools .tms-search-box{flex:1 1 280px}
.tms-command-auto-box.is-auto-loading{border-color:#8fb9df;background:#f4f9ff}
.tms-command-auto-box.is-auto-found{border-color:#69b88b;background:#f3fff8}
.tms-command-auto-box.is-auto-warning{border-color:#e2ad51;background:#fff9ed}
.tms-upload-feedback{margin-top:8px;padding:8px 10px;border-radius:8px;background:#f2f7fb;color:#31506d;font-size:12px}
.tms-upload-feedback:empty{display:none}.tms-upload-feedback.is-warning{background:#fff3df;color:#8a5a00}
.tms-dashboard-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:18px 0}
.tms-dashboard-card{background:#fff;border:1px solid #dce6ef;border-radius:14px;padding:16px;box-shadow:0 3px 12px rgba(20,50,80,.06);display:flex;flex-direction:column;gap:5px}
.tms-dashboard-card .dashicons{color:#2774a8}.tms-dashboard-card strong{font-size:28px;line-height:1.1}.tms-dashboard-card small{color:#66788a;font-weight:600}
.tms-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.tms-dashboard-panel{background:#fff;border:1px solid #dce6ef;border-radius:14px;padding:16px}.tms-dashboard-panel h2{margin-top:0}
@media(max-width:782px){.tms-dashboard-grid{grid-template-columns:1fr}.tms-public-directory-tools .button{flex:1 1 auto}.tms-org-title{font-size:18px}}

/* v2.26.0 — visible search, centered top org node, dashboard/version, upload queue */
.tms-search-tools-v226{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:2!important}
.tms-search-tools-v226 .tms-search-box{display:flex!important;align-items:center!important;min-width:260px!important}
.tms-search-tools-v226 input[type=search]{display:block!important;width:100%!important;min-height:40px!important}
.tms-search-tools-v226 .button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important}
.tms-org-chart>.tms-org-root{display:flex!important;justify-content:center!important;align-items:flex-start!important;width:max-content!important;min-width:100%!important;margin-left:auto!important;margin-right:auto!important}
.tms-org-chart>.tms-org-root>li{margin-left:auto!important;margin-right:auto!important}
.tms-org-chart>.tms-org-root>li>.tms-org-unit,.tms-org-chart>.tms-org-root>li>.tms-org-unit-lateral{margin-left:auto!important;margin-right:auto!important;justify-content:center!important}
.tms-auto-parent-refresh{margin-top:9px!important;border-color:#9aa8b8!important;color:#334155!important;background:#fff!important;font-weight:700!important}
.tms-preupload-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.tms-preupload-chip{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;max-width:250px;padding:7px 9px;border:1px solid #b9dfc7;border-radius:10px;background:#f1fbf5}.tms-preupload-chip img{grid-row:1/3;width:42px;height:42px;object-fit:cover;border-radius:7px}.tms-preupload-chip b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tms-preupload-chip em{font-size:10px;color:#247447;font-style:normal;font-weight:800}.tms-version-notice{margin-top:8px!important}
@media(max-width:782px){.tms-search-tools-v226{display:grid!important;grid-template-columns:1fr 1fr!important}.tms-search-tools-v226 .tms-search-box{grid-column:1/-1!important;min-width:0!important}.tms-org-chart>.tms-org-root{width:100%!important;min-width:100%!important}.tms-org-chart>.tms-org-root>li>.tms-org-unit,.tms-org-chart>.tms-org-root>li>.tms-org-unit-lateral{justify-content:center!important}}

/* v2.29.0 — Chain Health dashboard + true responsive Org Chart */
.tms-chain-health-panel{margin:18px 0;padding:18px;border:1px solid #d9e4ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(20,55,90,.06)}
.tms-chain-health-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.tms-chain-health-head h2{margin:0 0 4px}.tms-chain-health-head p{margin:0;color:#637487}.tms-chain-health-actions{display:flex;gap:8px;flex-wrap:wrap}.tms-chain-health-actions form{margin:0}.tms-chain-ok{padding:14px 16px;border:1px solid #b7dfc5;border-radius:12px;background:#f0fbf4;color:#24663b;font-weight:800}.tms-missing-summary{margin:12px 0 16px}.tms-missing-summary h3{margin:0 0 8px;font-size:14px}.tms-missing-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}.tms-missing-summary-card{padding:10px 12px;border:1px solid #f0d0a3;border-radius:11px;background:#fffaf1}.tms-missing-summary-card strong,.tms-missing-summary-card span,.tms-missing-summary-card small{display:block}.tms-missing-summary-card span{margin-top:3px;color:#53657a}.tms-missing-summary-card small{margin-top:5px;color:#9a5c00;font-weight:700}.tms-chain-table-wrap{overflow:auto;border:1px solid #e1e8ef;border-radius:12px}.tms-chain-health-table{border:0!important}.tms-chain-health-table td{vertical-align:top}.tms-chain-status{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.4px;background:#eef2f6;color:#4c5b6a}.tms-chain-status.is-missing{background:#fff0ef;color:#aa3029}.tms-chain-status.is-waiting{background:#fff8df;color:#8a6500}.tms-chain-status.is-multiple{background:#fff0d9;color:#9a5700}.tms-chain-status.is-found{background:#eaf8ef;color:#287145}.tms-chain-reason{margin-top:6px;max-width:340px;font-size:12px;line-height:1.45;color:#46586b}.tms-chain-actions-cell{min-width:250px}.tms-chain-inline-form{display:inline-block;margin:0 5px 5px 0}.tms-chain-manual-form{display:grid;grid-template-columns:minmax(170px,1fr) auto;gap:5px;margin:0 0 5px}.tms-chain-manual-form select{max-width:320px;width:100%}

/* Tablet: keep hierarchy readable without desktop-sized cards. */
@media(max-width:1024px) and (min-width:783px){
  .tms-org-chart{padding:14px 8px!important}.tms-org-compact .tms-org-card{min-width:125px!important;max-width:155px!important}.tms-org-compact .tms-org-unit-lateral{grid-template-columns:minmax(95px,1fr) auto minmax(95px,1fr)!important;max-width:360px!important}.tms-org-compact .tms-org-staff-card{min-width:88px!important;max-width:110px!important}.tms-org-compact li{padding-left:3px!important;padding-right:3px!important}
}

/* Mobile: change the organization chart from a PC tree to a vertical card hierarchy. */
@media(max-width:782px){
  .tms-chain-health-head{flex-direction:column}.tms-chain-health-actions{display:grid;grid-template-columns:1fr;width:100%}.tms-chain-health-actions .button{width:100%}.tms-chain-table-wrap{overflow:visible;border:0}.tms-chain-health-table,.tms-chain-health-table tbody,.tms-chain-health-table tr,.tms-chain-health-table td{display:block!important;width:100%!important;box-sizing:border-box}.tms-chain-health-table thead{display:none!important}.tms-chain-health-table tr{margin:0 0 12px;border:1px solid #dfe7ef;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 4px 14px rgba(20,55,90,.05)}.tms-chain-health-table td{position:relative;padding:9px 10px 9px 118px!important;border:0!important;border-bottom:1px solid #edf1f5!important;min-height:38px}.tms-chain-health-table td:last-child{border-bottom:0!important}.tms-chain-health-table td:before{content:attr(data-label);position:absolute;left:10px;top:9px;width:98px;color:#6c7d8f;font-size:10px;font-weight:800}.tms-chain-actions-cell{min-width:0!important}.tms-chain-inline-form{display:block;margin:0 0 6px}.tms-chain-inline-form .button,.tms-chain-actions-cell>a.button{width:100%;text-align:center}.tms-chain-manual-form{grid-template-columns:1fr}.tms-chain-manual-form select,.tms-chain-manual-form .button{max-width:none;width:100%}

  .tms-org-chart{padding:10px!important;overflow:visible!important;max-width:100%!important}
  .tms-org-chart>.tms-org-root,.tms-org-chart>.tms-org-root ul,.tms-org-chart .tms-org-root,.tms-org-chart .tms-org-root ul{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
  .tms-org-chart .tms-org-root ul{margin:8px 0 0 14px!important;padding-left:10px!important;width:calc(100% - 14px)!important;border-left:2px solid #dce6f0!important}
  .tms-org-chart li,.tms-org-compact li{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:7px 0 0 0!important;text-align:left!important;box-sizing:border-box!important}
  .tms-org-chart li::before,.tms-org-chart li::after,.tms-org-chart ul::before,.tms-org-compact li::before,.tms-org-compact li::after,.tms-org-compact ul ul::before{display:none!important}
  .tms-org-chart .tms-org-unit,.tms-org-chart .tms-org-unit-lateral,.tms-org-compact .tms-org-unit,.tms-org-compact .tms-org-unit-lateral{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;gap:6px!important}
  .tms-org-chart .tms-org-center{order:1!important;display:block!important;width:100%!important;min-width:0!important}
  .tms-org-chart .tms-org-side-left{order:2!important}.tms-org-chart .tms-org-side-right{order:3!important}
  .tms-org-chart .tms-org-side,.tms-org-compact .tms-org-side{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;align-items:stretch!important;margin:0!important}
  .tms-org-chart .tms-org-card,.tms-org-compact .tms-org-card,.tms-org-chart .tms-org-staff-card,.tms-org-compact .tms-org-staff-card{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:8px!important;gap:8px!important;border-radius:10px!important;text-align:left!important}
  .tms-org-chart .tms-org-staff-card,.tms-org-compact .tms-org-staff-card{grid-template-columns:30px minmax(0,1fr)!important;padding:7px!important;background:#f8fbff!important}
  .tms-org-chart .tms-org-card img,.tms-org-chart .tms-org-avatar-placeholder,.tms-org-compact .tms-org-card img,.tms-org-compact .tms-org-avatar-placeholder{width:38px!important;height:38px!important;min-width:38px!important;flex-basis:38px!important;border-radius:50%!important}
  .tms-org-chart .tms-org-staff-card img,.tms-org-chart .tms-org-staff-card .tms-org-avatar-placeholder,.tms-org-compact .tms-org-staff-card img,.tms-org-compact .tms-org-staff-card .tms-org-avatar-placeholder{width:30px!important;height:30px!important;min-width:30px!important;flex-basis:30px!important}
  .tms-org-chart .tms-org-card strong,.tms-org-compact .tms-org-card strong{font-size:12px!important;line-height:1.3!important}.tms-org-chart .tms-org-card span,.tms-org-compact .tms-org-card span{font-size:10.5px!important;line-height:1.3!important;overflow-wrap:anywhere}
  .tms-org-title{font-size:17px!important;line-height:1.35!important;padding:0 4px!important;margin-bottom:8px!important}
}
@media(max-width:480px){
  .tms-org-chart .tms-org-side,.tms-org-compact .tms-org-side{grid-template-columns:1fr!important}
  .tms-org-chart .tms-org-root ul{margin-left:9px!important;width:calc(100% - 9px)!important;padding-left:8px!important}
  .tms-chain-health-table td{padding-left:10px!important;padding-top:30px!important}.tms-chain-health-table td:before{width:auto;right:10px;top:8px}
}


/* v2.30.0 — restore readable mobile position-template cards (pre-v2.23 behavior). */
@media(max-width:782px){
  /* Position-template cards do not contain an avatar. Do not reserve the 38px avatar grid column. */
  .tms-position-structure .tms-position-template,
  .tms-position-structure .tms-org-card.tms-position-template,
  .tms-position-structure .tms-org-staff-card.tms-position-template{
    display:block!important;
    grid-template-columns:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    padding:10px 12px!important;
    line-height:1.35!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  .tms-position-structure .tms-position-template>div{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .tms-position-structure .tms-position-template strong,
  .tms-position-structure .tms-position-template em{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    hyphens:none!important;
  }
  .tms-position-structure .tms-position-template strong{
    font-size:14px!important;
    line-height:1.35!important;
  }
  .tms-position-structure .tms-position-template em{
    display:block!important;
    margin-top:3px!important;
    font-size:11px!important;
    line-height:1.3!important;
  }
  /* Main position first, support roles below it. */
  .tms-position-structure .tms-org-unit-lateral{
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    width:100%!important;
    max-width:100%!important;
  }
  .tms-position-structure .tms-org-center{order:1!important;width:100%!important}
  .tms-position-structure .tms-org-side-left{order:2!important}
  .tms-position-structure .tms-org-side-right{order:3!important}
  .tms-position-structure .tms-org-side{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
  }
}
@media(max-width:520px){
  .tms-position-structure .tms-org-side{grid-template-columns:1fr!important}
  .tms-position-structure .tms-position-template{padding:9px 11px!important}
  .tms-position-structure .tms-position-template strong{font-size:13px!important}
}

/* v2.31 virtual supervisor placeholders */
.tms-command-auto-box.is-auto-placeholder,.tms-command-auto-box.is-placeholder{border-color:#d7a53a!important;background:#fff9e8!important}.tms-command-auto-box.is-auto-placeholder #tms-self-parent-display,.tms-command-auto-box.is-placeholder #tms-self-parent-display{background:#fffdf5!important;color:#7a5700!important;font-weight:800}.tms-org-placeholder-card{border:2px dashed #d7a53a!important;background:#fffaf0!important;box-shadow:none!important}.tms-org-placeholder-card strong{color:#8a6200!important}.tms-org-placeholder-card span{font-weight:700}.tms-org-placeholder-card em{display:block!important;margin-top:4px!important;color:#9a6b00!important;font-style:normal!important;font-size:11px!important}.tms-org-placeholder-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff0bf;font-size:22px;flex:0 0 auto}

/* v2.33 Security & Stability */
.tms-turnstile-wrap{margin:18px 0;padding:14px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fbff}.tms-turnstile-wrap small{display:block;margin-top:8px;color:#64748b}.tms-set-password-btn{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:0 16px!important;font-weight:700!important}.tms-page .tms-version-notice code{white-space:nowrap}
@media(max-width:640px){.tms-turnstile-wrap{overflow-x:auto}.tms-login-password-row{gap:10px;align-items:flex-start!important;flex-direction:column!important}.tms-set-password-btn{width:100%;box-sizing:border-box}}

/* v2.36 Privacy Request */
.tms-privacy-self{margin:18px 0;padding:18px;border:1px solid #dbe4ef;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.06)}
.tms-privacy-self-head h3{margin:4px 0 6px;font-size:20px}.tms-privacy-self-head p{margin:0;color:#64748b}
.tms-privacy-status{margin:14px 0;padding:12px 14px;border-radius:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.tms-privacy-status.is-pending{background:#fff7db;border:1px solid #f0cf67;color:#7a5700}.tms-privacy-status.is-rejected{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}.tms-privacy-status span{font-size:13px}
.tms-privacy-delete-details{margin-top:14px;border:1px solid #fecaca;border-radius:14px;background:#fffafa;overflow:hidden}.tms-privacy-delete-details>summary{cursor:pointer;padding:13px 15px;font-weight:800;color:#b42318}.tms-privacy-delete-details>div,.tms-privacy-delete-details>form{margin:0 15px 15px}.tms-privacy-warning{padding:12px;background:#fff;border:1px solid #fee2e2;border-radius:10px}.tms-privacy-delete-details textarea{width:100%;margin-top:6px}.tms-privacy-confirm{display:flex!important;gap:8px;align-items:flex-start;margin:12px 0!important}.tms-privacy-confirm input{margin-top:3px!important}.tms-privacy-delete-btn,.tms-privacy-cancel-btn{border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.tms-privacy-delete-btn{background:#b42318;color:#fff}.tms-privacy-cancel-btn{background:#fff;border:1px solid #d0d7de;color:#334155}.tms-privacy-admin-form{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.tms-privacy-admin-form input[type=text]{min-width:180px}
@media(max-width:640px){.tms-privacy-self{padding:14px;border-radius:14px}.tms-privacy-admin-form{flex-direction:column;align-items:stretch}.tms-privacy-admin-form input,.tms-privacy-admin-form .button{width:100%}}


/* v2.37 Multi-position member UI */
.tms-multi-position-section{margin-top:24px}
.tms-multi-position-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin:14px 0 18px}
.tms-position-card{border:1px solid #d9e2ef;background:#fff;border-radius:16px;padding:16px;box-shadow:0 5px 18px rgba(15,23,42,.06)}
.tms-position-card.is-primary{border-color:#d4a72c;box-shadow:0 0 0 2px rgba(212,167,44,.10),0 6px 20px rgba(15,23,42,.07)}
.tms-position-card.is-inactive{opacity:.7;background:#f8fafc}
.tms-position-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.tms-position-card h3{margin:5px 0 1px;font-size:17px;line-height:1.35}.tms-position-card-head small{color:#64748b}
.tms-position-badge{display:inline-flex;padding:3px 9px;border-radius:999px;background:#eef2ff;color:#334155;font-size:11px;font-weight:700}.tms-position-card.is-primary .tms-position-badge{background:#fff6d8;color:#7a5a00}
.tms-position-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.tms-position-meta div{background:#f8fafc;border-radius:10px;padding:9px 10px}.tms-position-meta dt{font-size:11px;color:#64748b;margin-bottom:3px}.tms-position-meta dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.tms-position-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.tms-position-actions form{margin:0}
.tms-add-position{border:1px solid #d9e2ef;border-radius:14px;background:#fff;overflow:hidden}.tms-add-position>summary{cursor:pointer;padding:14px 16px;font-weight:800;background:#f8fafc}.tms-add-position[open]>summary{border-bottom:1px solid #e2e8f0}.tms-add-position form{padding:16px}
@media(max-width:640px){.tms-multi-position-list{grid-template-columns:1fr}.tms-position-meta{grid-template-columns:1fr}.tms-position-actions,.tms-position-actions form,.tms-position-actions .button{width:100%}.tms-position-actions .button{text-align:center;justify-content:center}.tms-position-card-head{align-items:center}}


/* v2.39.0 - focused PDF/DOC report exports */
.tms-report-export-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;padding:10px 12px;border:1px solid #d7e3ee;border-radius:10px;background:#f8fbfe}
.tms-report-export-bar>strong{margin-right:4px;color:#173f61}.tms-report-export-bar .description{width:100%;margin-top:2px}.tms-report-export-bar form{margin:0}.tms-report-pdf{font-weight:800!important}.tms-report-doc{font-weight:800!important}


/* v2.41.1 - make PDF/DOC export controls unmistakably visible on Members page */
.tms-report-export-prominent{width:100%;box-sizing:border-box;padding:14px 16px!important;margin:14px 0!important;border:2px solid #8fb9dc!important;background:linear-gradient(135deg,#f5fbff,#eef7ff)!important;box-shadow:0 6px 18px rgba(23,79,125,.08)}
.tms-report-export-title{display:flex;align-items:center;gap:10px;min-width:250px;margin-right:auto}.tms-report-export-title>.dashicons{width:34px;height:34px;font-size:28px;color:#1768a9}.tms-report-export-title strong{display:block;font-size:15px;color:#123f68}.tms-report-export-title small{display:block;margin-top:2px;color:#607386;font-weight:500}.tms-report-export-buttons{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.tms-report-export-buttons .button{min-height:38px;font-weight:800}.tms-report-export-prominent>.description{flex:0 0 100%;margin:2px 0 0!important;color:#4d6578}.tms-report-export-top{position:relative}.tms-report-export-list{margin-top:6px!important}
.tms-member-actions-grid>.tms-report-pdf,.tms-member-actions-grid>.tms-report-doc{font-weight:900!important;border-width:2px!important}
@media(max-width:782px){.tms-report-export-prominent{display:block!important}.tms-report-export-title{margin:0 0 12px}.tms-report-export-buttons{display:grid;grid-template-columns:1fr 1fr}.tms-report-export-buttons form,.tms-report-export-buttons .button{width:100%!important;box-sizing:border-box;text-align:center}.tms-report-export-prominent>.description{margin-top:10px!important}}
@media(max-width:480px){.tms-report-export-buttons{grid-template-columns:1fr}}


/* v2.41.2 - front-end report column on IIAT GCV leadership/member directory */
.tms-report-send-col{min-width:142px;text-align:center!important;vertical-align:middle!important}
.tms-report-send-col>span{display:block;font-weight:800;color:#173f61;line-height:1.25}.tms-report-send-col>small{display:block;margin-top:2px;color:#64748b;font-size:10px}
.tms-front-report-actions{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}
.tms-front-report-button{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:30px;padding:4px 8px;border-radius:8px;border:1px solid #b8c7d6;font-size:11px;font-weight:900;line-height:1;text-decoration:none!important;box-sizing:border-box}
.tms-front-report-button.is-enabled{background:#fff;color:#174f7d;border-color:#8fb9dc;box-shadow:0 2px 6px rgba(23,79,125,.08)}
.tms-front-report-button.is-enabled.is-pdf{background:#1768a9;color:#fff;border-color:#1768a9}.tms-front-report-button.is-enabled:hover{filter:brightness(.96)}
.tms-front-report-button.is-disabled{background:#e5e7eb!important;color:#9ca3af!important;border-color:#d1d5db!important;cursor:not-allowed;box-shadow:none!important;opacity:.82;user-select:none}
.tms-front-report-export{margin-bottom:14px!important}
@media(max-width:782px){.tms-report-send-col{min-width:128px}.tms-front-report-actions{gap:4px}.tms-front-report-button{min-width:44px;padding:4px 6px}}

/* v2.41.3 — first-column report review workflow */
.tms-public-member-table th.tms-report-send-col.is-first{
  min-width:220px!important;width:220px!important;max-width:240px!important;
  background:#eaf4ff!important;color:#123f68!important;border-left:1px solid #c8dced!important;border-right:2px solid #8fb9dc!important;
  text-align:center!important;vertical-align:middle!important;white-space:normal!important;
}
.tms-public-member-table th.tms-report-send-col.is-first>span{display:block!important;color:#123f68!important;font-weight:900!important;font-size:13px!important;line-height:1.35!important;text-shadow:none!important;opacity:1!important}
.tms-public-member-table th.tms-report-send-col.is-first>small{display:block!important;color:#486b89!important;font-size:10px!important;line-height:1.3!important;margin-top:3px!important;opacity:1!important}
.tms-public-member-table td.tms-report-send-col.is-first{min-width:220px!important;width:220px!important;max-width:240px!important;background:#f8fbff!important;border-right:2px solid #d1e3f2!important;padding:8px!important}
.tms-front-report-cell-inner{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;box-sizing:border-box}
.tms-front-report-actions{display:grid!important;grid-template-columns:repeat(3,minmax(46px,1fr));gap:5px!important;width:100%;max-width:205px}
.tms-front-report-button{min-width:0!important;width:100%!important;min-height:31px!important;padding:5px 7px!important;font-size:11px!important}
.tms-front-report-button.is-view{background:#fff7dd!important;color:#72510b!important;border-color:#e3c66a!important}
.tms-front-report-button.is-doc{background:#f7fbff!important;color:#174f7d!important;border-color:#8fb9dc!important}
.tms-review-status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:4px 10px;border-radius:999px;font-weight:900;font-size:11px;line-height:1.2;border:1px solid transparent}
.tms-review-status-badge.is-pending{background:#fff4cc;color:#775700;border-color:#efd983}
.tms-review-status-badge.is-passed{background:#e5f7ea;color:#176b34;border-color:#9ed7ad}
.tms-review-status-badge.is-failed{background:#fde9e9;color:#a12626;border-color:#efb4b4}
.tms-own-file-badge{display:inline-block;padding:2px 7px;border-radius:999px;background:#e9f1ff;color:#22538a;font-size:10px;font-weight:800}
.tms-review-status-form{width:100%;max-width:205px;margin:0!important}
.tms-review-status-form label{display:grid!important;grid-template-columns:auto 1fr;align-items:center;gap:5px;margin:0!important;font-size:10px!important;color:#45657f!important}
.tms-review-status-form select{width:100%!important;min-height:30px!important;padding:3px 24px 3px 7px!important;font-size:11px!important;border:1px solid #b7ccde!important;border-radius:7px!important;background:#fff!important;color:#173f61!important}
.tms-review-status-readonly{width:100%;max-width:205px;box-sizing:border-box;padding:5px 7px;border:1px solid #d4dae0;border-radius:7px;background:#eceff2;color:#8a939d;font-size:10px;font-weight:700}
.tms-public-member-table tr:target td.tms-report-send-col.is-first{box-shadow:inset 0 0 0 2px #2f7fbd}
@media(min-width:783px){
  .tms-public-member-table th.tms-report-send-col.is-first,.tms-public-member-table td.tms-report-send-col.is-first{position:sticky;left:0;z-index:3}
  .tms-public-member-table th.tms-report-send-col.is-first{z-index:7}
}
@media(max-width:782px){
  .tms-public-member-table th.tms-report-send-col.is-first,.tms-public-member-table td.tms-report-send-col.is-first{min-width:176px!important;width:176px!important;max-width:190px!important;padding:6px!important}
  .tms-front-report-actions{grid-template-columns:repeat(3,minmax(40px,1fr));gap:3px!important}
  .tms-front-report-button{font-size:10px!important;padding:4px!important}
  .tms-review-status-form label{grid-template-columns:1fr!important;gap:2px}
  .tms-review-status-form label>span{display:none}
}


/* v2.41.4 — clearer first report column + bilingual TH/EN report controls */
.tms-public-member-table th.tms-report-send-col.is-first,
.tms-public-member-table td.tms-report-send-col.is-first{min-width:310px!important;width:310px!important;max-width:330px!important}
.tms-public-member-table th.tms-report-send-col.is-first{padding:10px 8px!important;background:#dcecff!important;text-align:center!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:normal!important}
.tms-public-member-table th.tms-report-send-col.is-first .tms-report-title-main{display:block!important;font-size:16px!important;line-height:1.3!important;font-weight:950!important;color:#0d3e6c!important;white-space:nowrap!important}
.tms-public-member-table th.tms-report-send-col.is-first .tms-report-title-sub{display:block!important;font-size:14px!important;line-height:1.3!important;font-weight:900!important;color:#184f7e!important;white-space:nowrap!important;margin-top:2px!important}
.tms-public-member-table th.tms-report-send-col.is-first>small{font-size:11px!important;font-weight:800!important;color:#365f82!important;white-space:nowrap!important}
.tms-front-report-lang-row{display:grid;grid-template-columns:54px minmax(0,1fr);gap:6px;align-items:center;width:100%;max-width:286px}
.tms-report-lang-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:35px;border-radius:8px;font-size:12px;font-weight:950;line-height:1.05;border:1px solid #b7ccde;background:#edf6ff;color:#174f7d}
.tms-report-lang-badge small{display:block;margin-top:3px;font-size:8px;font-weight:800;color:#587895;white-space:nowrap}
.tms-report-lang-badge.is-en{background:#f4f1ff;color:#513c8c;border-color:#cfc4ed}
.tms-front-report-lang-row .tms-front-report-actions{display:grid!important;grid-template-columns:repeat(3,minmax(52px,1fr))!important;width:100%!important;max-width:none!important;gap:4px!important}
.tms-front-report-cell-inner{gap:7px!important}
.tms-report-export-language{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;padding:8px 10px;border:1px solid #d9e4ef;border-radius:9px;background:#f8fbfe}
.tms-report-export-language>strong{min-width:94px;color:#173f61}.tms-report-export-language .tms-report-export-buttons{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:782px){
 .tms-public-member-table th.tms-report-send-col.is-first,.tms-public-member-table td.tms-report-send-col.is-first{min-width:270px!important;width:270px!important;max-width:285px!important}
 .tms-public-member-table th.tms-report-send-col.is-first .tms-report-title-main{font-size:14px!important}
 .tms-public-member-table th.tms-report-send-col.is-first .tms-report-title-sub{font-size:12px!important}
 .tms-front-report-lang-row{grid-template-columns:46px minmax(0,1fr);gap:4px;max-width:254px}
 .tms-front-report-lang-row .tms-front-report-actions{grid-template-columns:repeat(3,minmax(46px,1fr))!important;gap:3px!important}
 .tms-report-lang-badge{font-size:10px;min-height:32px}.tms-report-lang-badge small{font-size:7px}
}

/* v2.42 — quick contact + translation workflow */
.tms-public-member-table th.tms-report-send-col.is-first,
.tms-public-member-table td.tms-report-send-col.is-first{min-width:350px!important;width:350px!important;max-width:370px!important}
.tms-contact-quick{width:100%;max-width:318px;box-sizing:border-box;margin:1px auto 0;padding:7px;border:1px solid #d8e5ef;border-radius:9px;background:#f7fbff}
.tms-contact-quick-title{display:block;margin:0 0 5px;font-size:10px;font-weight:900;line-height:1.2;color:#49677f;text-align:center}
.tms-contact-quick-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%}
.tms-contact-btn{display:flex;align-items:center;justify-content:center;min-height:28px;padding:4px 6px;border-radius:7px;text-decoration:none!important;font-size:10px;font-weight:900;line-height:1.15;background:#245d8a;color:#fff!important;border:1px solid transparent;box-sizing:border-box;text-align:center}
.tms-contact-btn.is-line{background:#06c755}.tms-contact-btn.is-facebook{background:#315f9a}.tms-contact-btn.is-telegram{background:#2a86b9}.tms-contact-btn.is-twitter{background:#263541}
.tms-contact-btn.is-disabled{background:#e7ebef!important;color:#929ba4!important;border-color:#d9dee3!important;cursor:not-allowed}
.tms-translation-setting-note{padding:8px 10px;border-left:4px solid #2a86b9;background:#f5faff}
@media(max-width:782px){
 .tms-public-member-table th.tms-report-send-col.is-first,.tms-public-member-table td.tms-report-send-col.is-first{min-width:300px!important;width:300px!important;max-width:315px!important}
 .tms-contact-quick{max-width:278px;padding:5px}.tms-contact-btn{font-size:9px;padding:4px 3px}.tms-contact-quick-title{font-size:9px}
}


/* v2.42.3 — Admin Members: same first-position Edit control on desktop/tablet/mobile */
.tms-admin-directory-wrap{overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch;max-width:100%;position:relative}
.tms-admin-member-table{width:max-content!important;min-width:100%!important;table-layout:auto!important}
.tms-admin-member-table .tms-admin-edit-col{width:94px!important;min-width:94px!important;max-width:94px!important;text-align:center!important;vertical-align:middle!important;background:#f7fbff!important}
.tms-admin-member-table thead .tms-admin-edit-col{background:#dcecff!important;color:#173f61!important}
.tms-admin-edit-head{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-weight:900;white-space:nowrap}
.tms-admin-front-edit-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:78px!important;min-height:38px!important;height:auto!important;padding:7px 8px!important;box-sizing:border-box!important;border-radius:9px!important;font-weight:900!important;line-height:1.15!important;text-align:center!important;white-space:nowrap!important;text-decoration:none!important}
.tms-admin-member-table tbody tr:hover .tms-admin-edit-col{background:#eef7ff!important}
@media(min-width:783px){
  .tms-admin-member-table th.tms-admin-edit-col,.tms-admin-member-table td.tms-admin-edit-col{position:sticky!important;left:0!important;z-index:4!important;box-shadow:2px 0 0 #d7e3ef}
  .tms-admin-member-table th.tms-admin-edit-col{z-index:8!important}
}
@media(max-width:782px){
  .tms-admin-directory-wrap{overflow-x:auto!important;overscroll-behavior-x:contain}
  .tms-admin-member-table{min-width:max-content!important}
  .tms-admin-member-table th.tms-admin-edit-col,.tms-admin-member-table td.tms-admin-edit-col{position:sticky!important;left:0!important;z-index:6!important;width:88px!important;min-width:88px!important;max-width:88px!important;padding:7px 5px!important;box-shadow:3px 0 8px rgba(23,63,97,.12)}
  .tms-admin-member-table th.tms-admin-edit-col{z-index:12!important}
  .tms-admin-front-edit-btn{width:72px!important;min-height:44px!important;padding:8px 5px!important;font-size:12px!important;border-radius:10px!important}
  .tms-admin-member-table .tms-select-col{min-width:48px!important;width:48px!important;text-align:center!important}
  .tms-admin-member-table thead th,.tms-admin-member-table tbody td{font-size:12px}
}


/* v2.43.0 — Section 6 answer assistant + temporary email */
.tms-ai-section-note{margin:4px 0 18px;padding:12px 14px;border:1px solid #b9d8ef;border-left:5px solid #2a86b9;border-radius:10px;background:#f5fbff;color:#294d69;line-height:1.55}
.tms-ai-help{margin:7px 0 16px}.tms-ai-suggest-btn{display:inline-flex!important;align-items:center;gap:5px;min-height:36px!important;border-color:#8ebcdb!important;background:#f4faff!important;color:#174f7d!important;font-weight:800!important;border-radius:8px!important}.tms-ai-suggest-btn:hover{background:#e8f5ff!important}.tms-ai-help-status{margin-left:8px;color:#62798a;font-size:12px}.tms-ai-result{margin-top:8px;padding:12px;border:1px solid #bfd7e8;border-radius:10px;background:#fff;box-shadow:0 5px 16px rgba(26,77,115,.07)}.tms-ai-result[hidden]{display:none!important}.tms-ai-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#173f61}.tms-ai-result-head .button-link{font-size:12px}.tms-ai-suggestion-text{padding:11px 12px;border-radius:8px;background:#f3f9fe;border:1px solid #d9eaf5;color:#213f55;line-height:1.65;white-space:normal}.tms-ai-guidance{margin-top:8px;padding:9px 11px;border-radius:8px;background:#fff8e8;border:1px solid #ecd69b;color:#67521b;line-height:1.55}.tms-ai-reference{margin-top:7px;font-size:11px;color:#61788a}.tms-ai-disclaimer{margin:7px 0;font-size:11px;color:#7a6060}.tms-ai-apply{margin-top:4px!important;font-weight:800!important}.tms-plan-grid .tms-ai-help{margin:6px 0 2px}.tms-plan-grid .tms-ai-suggest-btn{width:100%;justify-content:center;white-space:normal}.tms-email-input-row{display:flex;align-items:stretch;gap:7px}.tms-email-input-row>input{flex:1;min-width:0}.tms-generate-temp-email{flex:0 0 auto;min-height:40px!important;white-space:nowrap}.tms-temp-email-note{display:block!important;margin-top:5px!important;padding:6px 8px;border-radius:7px;background:#fff8df;color:#755b08!important}.tms-temp-email-note.is-active{background:#e8f6ea;color:#236238!important}
@media(max-width:782px){.tms-ai-suggest-btn{width:100%;justify-content:center;min-height:42px!important}.tms-ai-help-status{display:block;margin:5px 0 0}.tms-ai-result{padding:10px}.tms-ai-result-head{align-items:flex-start}.tms-ai-apply{width:100%;min-height:42px}.tms-email-input-row{flex-direction:column}.tms-generate-temp-email{width:100%;min-height:42px!important}}

/* v2.44 — bilingual position selection + explicit position-area labels on cards */
.tms-position-area-card{display:flex;flex-wrap:wrap;gap:6px 10px;margin:9px 0 3px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#334155;font-size:12px;line-height:1.35}
.tms-position-area-card span{display:inline-flex!important;align-items:baseline;gap:4px;margin:0!important}
.tms-position-area-card b{font-weight:800;color:#174f7d}
.tms-position-area-card i{font-style:normal;color:#334155}
.tms-org-card .tms-position-area-card{display:block;margin:4px 0 0;padding:4px 6px;border-radius:6px;font-size:9px;line-height:1.25;background:#f8fafc}
.tms-org-card .tms-position-area-card span{display:block!important;margin:1px 0!important;white-space:normal}
.tms-org-card .tms-position-area-card b{font-size:9px}
.tms-org-card .tms-position-area-card i{font-size:9px}
.tms-org-card .tms-org-area-path{margin-top:4px}
@media(max-width:640px){.tms-position-card>.tms-position-area-card{display:grid;grid-template-columns:1fr;gap:4px}.tms-position-card>.tms-position-area-card span{display:flex!important}}

/* v2.44.3 Org Chart scope controls + Admin-only export */
.tms-org-toolbar{display:flex;gap:12px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;margin:16px 0;padding:14px;border:1px solid #dcdcde;border-radius:12px;background:#fff}
.tms-org-filter-form,.tms-org-export-actions{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.tms-org-filter-form label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.tms-org-filter-form select{min-width:180px;max-width:320px}
.tms-org-export-actions small{align-self:center;color:#777}
.tms-org-export-disabled,.tms-org-export-disabled:disabled{opacity:.48!important;filter:grayscale(1);cursor:not-allowed!important;background:#e5e5e5!important;color:#888!important;border-color:#ccc!important}
@media print{.tms-org-toolbar,.tms-page>form,.tms-note,.tms-org-export-actions{display:none!important}.tms-org-chart{overflow:visible!important;transform:none!important}.tms-org-card{break-inside:avoid}}

/* v2.44.4 — Members sort UI */
.tms-sort-link{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none;font-weight:700}.tms-sort-link:hover,.tms-sort-link:focus{color:var(--tms-primary);text-decoration:none}.tms-sort-link>span{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;margin-right:2px;border-radius:50%;background:var(--tms-primary);color:#fff;font-size:11px;font-weight:800}.tms-sort-link>.tms-photo-head{width:auto!important;height:auto!important;margin:0!important;padding:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:12px!important}.tms-sort-arrow{font-size:11px;opacity:.65}.tms-sort-link.is-active .tms-sort-arrow{opacity:1;color:var(--tms-primary)}
.tms-member-sort-form{display:inline-flex;gap:7px;align-items:flex-end;flex-wrap:wrap;padding:7px 9px;border:1px solid #d7e0ea;border-radius:10px;background:#f8fbff}.tms-member-sort-form label{display:grid;gap:3px}.tms-member-sort-form label>span{font-size:11px;font-weight:700;color:#5b6b7f}.tms-member-sort-form select{min-height:34px;max-width:260px}
@media(max-width:782px){.tms-member-sort-form{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;width:100%;box-sizing:border-box}.tms-member-sort-form button{grid-column:1/-1;width:100%}.tms-member-sort-form select{width:100%;max-width:none}}


/* v2.44.7 — keep real Org Chart cards readable after full Envoy + area labels. */
@media(min-width:1025px){
  .tms-org-compact:not(.tms-position-structure) .tms-org-card{min-width:170px;max-width:215px}
  .tms-org-compact:not(.tms-position-structure) .tms-org-staff-card{min-width:155px!important;max-width:195px!important}
  .tms-org-compact:not(.tms-position-structure) .tms-org-unit-lateral{grid-template-columns:minmax(155px,195px) minmax(170px,215px) minmax(155px,195px);gap:8px;max-width:620px}
  .tms-org-compact:not(.tms-position-structure) .tms-org-card strong,
  .tms-org-compact:not(.tms-position-structure) .tms-org-card span{overflow-wrap:break-word;word-break:normal}
}
@media(max-width:1024px) and (min-width:783px){
  .tms-org-compact:not(.tms-position-structure) .tms-org-card{min-width:145px!important;max-width:180px!important}
  .tms-org-compact:not(.tms-position-structure) .tms-org-staff-card{min-width:132px!important;max-width:165px!important}
  .tms-org-compact:not(.tms-position-structure) .tms-org-unit-lateral{grid-template-columns:minmax(132px,165px) minmax(145px,180px) minmax(132px,165px)!important;gap:6px!important;max-width:530px!important}
}

/* v2.44.8 — full Org Chart titles, exam application, review/progress workflow */
.tms-org-position-full{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;overflow-wrap:anywhere!important;max-height:none!important}
.tms-org-apply-card{color:inherit!important;text-decoration:none!important;border:1.5px dashed #dd981d!important;background:#fffaf0!important;cursor:pointer!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.tms-org-apply-card:hover,.tms-org-apply-card:focus{transform:translateY(-1px);box-shadow:0 7px 18px rgba(183,119,0,.16)!important;border-color:#bf7b00!important;text-decoration:none!important}
.tms-org-apply-card .tms-org-placeholder-icon{flex:0 0 auto}
.tms-org-apply-card em{color:#8a5b00!important;font-weight:700!important}
.tms-org-apply-cta{display:inline-block!important;margin-top:5px;padding:3px 6px;border-radius:6px;background:#06c755;color:#fff!important;font-size:8.5px!important;line-height:1.2!important;font-weight:900!important}
@media(min-width:1025px){
  .tms-org-compact:not(.tms-position-structure) .tms-org-card{min-width:190px!important;max-width:250px!important}
  .tms-org-compact:not(.tms-position-structure) .tms-org-staff-card{min-width:180px!important;max-width:235px!important}
  .tms-org-compact:not(.tms-position-structure) .tms-org-unit-lateral{grid-template-columns:minmax(180px,235px) minmax(190px,250px) minmax(180px,235px)!important;max-width:760px!important}
}

.tms-report-person{display:grid;grid-template-columns:46px minmax(0,1fr);gap:8px;align-items:center;width:100%;max-width:318px;padding:7px 8px;box-sizing:border-box;border:1px solid #d6e4ef;border-radius:10px;background:#fff;text-align:left}
.tms-report-person img,.tms-report-person-avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:#e7f0fa;color:#174f7d;font-weight:900;font-size:16px}
.tms-report-person strong{display:block;color:#123f68;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.tms-report-person small{display:block;margin-top:2px;color:#718096;font-size:9px;line-height:1.2}
.tms-report-title-progress{display:block!important;margin-top:5px!important;padding-top:5px!important;border-top:1px solid #b9d2e7;color:#72510b!important;font-size:11px!important;font-weight:900!important;white-space:normal!important}
.tms-progress1-box{width:100%;max-width:318px;box-sizing:border-box;padding:7px 8px;border:1px solid #e2cf8f;border-radius:9px;background:#fffaf0;color:#5e4a13;text-align:left}
.tms-progress1-box>strong{display:block;margin-bottom:5px;font-size:10px;line-height:1.25;color:#6b510a}
.tms-progress1-form{margin:0!important}
.tms-progress1-form label{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;padding:5px 7px!important;border-radius:7px!important;background:#fff!important;border:1px solid #d9c477!important;color:#4b3a0d!important;font-size:11px!important;font-weight:900!important;cursor:pointer!important}
.tms-progress1-form input[type="checkbox"]{width:18px!important;height:18px!important;margin:0!important}
.tms-progress1-readonly,.tms-progress1-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900;line-height:1.2}
.tms-progress1-readonly.is-sent,.tms-progress1-badge.is-sent{background:#e5f7ea;color:#176b34;border:1px solid #9ed7ad}
.tms-progress1-readonly.is-pending,.tms-progress1-badge.is-pending{background:#f1f3f5;color:#6b7280;border:1px solid #d4d8dd}
.tms-progress1-box>small{display:block;margin-top:4px;color:#7a6b3b;font-size:8.5px}
.tms-review-filter-label{display:grid!important;gap:3px!important;min-width:145px}.tms-review-filter-label>span{font-size:11px;font-weight:700;color:#5b6b7f}.tms-review-filter-label select{min-height:36px!important;width:100%}

@media(max-width:650px){
  .tms-public-member-table th[data-tms-col="profile"],.tms-public-member-table td[data-tms-col="profile"],
  .tms-public-member-table th[data-tms-col="name"],.tms-public-member-table td[data-tms-col="name"]{display:none!important}
  .tms-public-member-table th.tms-report-send-col.is-first,.tms-public-member-table td.tms-report-send-col.is-first{min-width:248px!important;width:248px!important;max-width:260px!important}
  .tms-report-person{grid-template-columns:40px minmax(0,1fr);gap:6px;padding:6px;max-width:236px}
  .tms-report-person img,.tms-report-person-avatar{width:40px;height:40px;font-size:14px}
  .tms-report-person strong{font-size:11px}.tms-report-person small{font-size:8px}
  .tms-progress1-box{max-width:236px}
}

/* v2.44.9 — position application + compact Org Chart browsing */
.tms-status.is-application{background:#fff4d6!important;color:#7a4a00!important;border:1px solid #e7bd55!important;font-weight:800!important}
.tms-member-application-row{background:#fffdf5!important}
.tms-position-application-form{max-width:1180px;margin:18px auto 32px}
.tms-application-hero{padding:18px 20px;margin:0 0 18px;border:1px solid #c9dcef;border-radius:14px;background:linear-gradient(135deg,#f7fbff,#fffdf7);box-shadow:0 6px 20px rgba(32,73,110,.07)}
.tms-application-hero h2{margin:4px 0 3px;color:#123f68;line-height:1.35}
.tms-application-hero p{margin:6px 0;color:#526579}
.tms-application-en{font-weight:800;color:#2e5f89!important}
.tms-application-target{display:inline-block;margin-top:8px;padding:7px 10px;border-radius:9px;background:#fff4d6;border:1px solid #ead08a;color:#6f520c}
.tms-application-position-card{display:grid;gap:3px;margin:0 0 14px;padding:12px 14px;border:1px solid #c9dcef;border-left:4px solid #2c6ca3;border-radius:10px;background:#f8fbff}
.tms-application-position-card b{font-size:15px;color:#123f68;overflow-wrap:anywhere}
.tms-application-position-card span{font-size:12px;color:#4f6c86;overflow-wrap:anywhere}
.tms-application-position-card small{font-size:11px;color:#708399}
.tms-fixed-application-area{padding:11px 12px;border-radius:9px;background:#fff;border:1px solid #d9e4ee;font-weight:800;color:#294d6e}
.tms-application-success{display:grid;grid-template-columns:58px minmax(0,1fr);gap:14px;max-width:960px;margin:18px auto;padding:20px;border:1px solid #9ad1a8;border-radius:14px;background:#f4fff7;box-shadow:0 8px 24px rgba(26,113,54,.08)}
.tms-application-success-icon{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1e8e3e;color:#fff;font-size:28px;font-weight:900}
.tms-application-success h2{margin:3px 0 5px;color:#155f2c}
.tms-application-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.tms-application-summary-grid>div{padding:9px 10px;border:1px solid #cfe5d5;border-radius:9px;background:#fff;min-width:0}
.tms-application-summary-grid small{display:block;color:#687b6e;font-size:10px}
.tms-application-summary-grid strong{display:block;color:#244b30;overflow-wrap:anywhere}
.tms-line-step{margin-top:14px;padding:14px;border-radius:11px;background:#fff;border:1px solid #b9dec3}
.tms-line-step>strong{display:block;color:#146c2e;font-size:14px}
.tms-line-step pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;padding:10px;border:1px solid #dce9df;border-radius:8px;background:#fafdfb;font-family:inherit;font-size:12px;line-height:1.55}
.tms-line-step-actions{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0}
.tms-line-step-actions .button-primary{background:#06c755!important;border-color:#06a846!important}
.tms-line-step>small{display:block;color:#6a756d;line-height:1.45}
.tms-org-toolbar .tms-org-filter-form label{min-width:190px}
.tms-org-toolbar .tms-org-filter-form select{max-width:340px}
.tms-org-apply-card .tms-org-position-full,.tms-position-template .tms-org-position-full{font-size:10px!important;line-height:1.3!important}
@media(max-width:782px){
  .tms-application-success{grid-template-columns:1fr;padding:14px}
  .tms-application-success-icon{width:44px;height:44px;font-size:24px}
  .tms-application-summary-grid{grid-template-columns:1fr}
  .tms-position-application-form .tms-grid{grid-template-columns:1fr!important}
  .tms-line-step-actions{display:grid;grid-template-columns:1fr}
  .tms-line-step-actions .button{width:100%;text-align:center;justify-content:center}
  .tms-org-toolbar .tms-org-filter-form label,.tms-org-toolbar .tms-org-filter-form select{width:100%;max-width:none}
}

/* v2.44.10 — position application LINE workflow */
.tms-application-consent{display:flex;gap:9px;align-items:flex-start;margin:14px 0;padding:12px 14px;border:1px solid #d5e8da;border-radius:10px;background:#f7fcf8;font-weight:600;line-height:1.5}
.tms-application-consent input{margin-top:4px;flex:0 0 auto}
.tms-line-api-status{margin:9px 0;padding:9px 11px;border-radius:8px;background:#f4f7f5;color:#47564b}
.tms-line-api-status.is-ok{background:#edf9f0;color:#146c2e;border:1px solid #b9dec3}
.tms-line-api-status.is-error{background:#fff7ed;color:#9a4b00;border:1px solid #ffd7a3}
.tms-line-auto-open{margin-top:8px;color:#59635d}

/* v2.44.11 — vacancy browser, front review sorting, responsive progress label */
.tms-vacancy-panel{margin:16px 0 20px;padding:14px;border:1px solid #d8e2ea;border-radius:14px;background:#fbfdff;box-shadow:0 4px 14px rgba(33,73,110,.04)}
.tms-vacancy-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.tms-vacancy-panel-head h3{margin:2px 0 4px;color:#173f61;font-size:18px;line-height:1.3}
.tms-vacancy-panel-head p{margin:0;color:#5c6f81;font-size:12px;line-height:1.5}
.tms-vacancy-total{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;background:#eef6ff;color:#215b89;border:1px solid #c8dfef;font-size:11px;font-weight:900;white-space:nowrap}
.tms-vacancy-level{margin-top:12px}.tms-vacancy-level>h4{margin:0 0 8px;color:#244e70;font-size:13px}
.tms-vacancy-area{margin:8px 0;border:1px solid #dde5ec;border-radius:10px;background:#fff;overflow:hidden}
.tms-vacancy-area>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;cursor:pointer;background:#f6f9fc;color:#274b68;font-weight:800;list-style:auto}
.tms-vacancy-area>summary b{font-size:10px;padding:3px 7px;border-radius:999px;background:#fff1ce;color:#7a5200;border:1px solid #e7ca7b;white-space:nowrap}
.tms-vacancy-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;padding:10px}
.tms-vacancy-card{min-width:0!important;max-width:none!important;width:100%!important;box-sizing:border-box!important;display:flex!important;align-items:flex-start!important;gap:9px!important;text-align:left!important}
.tms-vacancy-card>div:last-child{min-width:0;flex:1}
.tms-vacancy-card .tms-org-position-full{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important}
.tms-vacancy-area-path{display:block;margin-top:3px;color:#6c7c88;font-size:9px;line-height:1.35;overflow-wrap:anywhere}
.tms-vacancy-performance-note{margin:8px 0 12px;padding:8px 10px;border-radius:8px;background:#fff8e5;border:1px solid #ecd492;color:#6b5311;font-size:11px;line-height:1.5}
.tms-front-review-sort-form{margin:0!important;display:flex;align-items:flex-end;gap:6px;flex:0 1 auto}
.tms-front-review-sort-form label{display:grid!important;gap:3px!important;margin:0!important;min-width:215px}
.tms-front-review-sort-form label>span{font-size:10px;font-weight:800;color:#53697d}
.tms-front-review-sort-form select{min-height:36px!important;max-width:280px!important;width:100%!important}
.tms-report-title-progress,.tms-progress1-box>strong{width:100%!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;line-break:auto!important}
.tms-report-title-progress{font-size:clamp(9px,1vw,11px)!important;line-height:1.25!important}
.tms-progress1-box{max-width:100%!important;overflow:hidden}
.tms-progress1-box>strong{font-size:clamp(9px,.95vw,10.5px)!important;line-height:1.3!important}
@media(max-width:782px){
  .tms-vacancy-card-grid{grid-template-columns:1fr}
  .tms-vacancy-area>summary{padding:9px 10px}
  .tms-front-review-sort-form{width:100%}
  .tms-front-review-sort-form label{width:100%;min-width:0}
  .tms-front-review-sort-form select{max-width:none!important}
}
@media(max-width:480px){
  .tms-public-member-table th.tms-report-send-col.is-first,.tms-public-member-table td.tms-report-send-col.is-first{min-width:224px!important;width:224px!important;max-width:232px!important}
  .tms-report-person,.tms-progress1-box{max-width:212px!important}
  .tms-report-title-progress{font-size:9px!important;padding-left:2px!important;padding-right:2px!important}
  .tms-progress1-box>strong{font-size:9px!important}
}

/* v2.44.12 — clearer reviewer controls, collapsible member UI, province-down applications */
.tms-front-review-sort-prominent{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 13px;border:2px solid #2b6f9f;border-radius:12px;background:#f2f8fd;box-shadow:0 4px 12px rgba(25,86,132,.08)}
.tms-front-review-sort-title{display:grid;gap:1px;min-width:190px}.tms-front-review-sort-title strong{font-size:14px;line-height:1.2;color:#174f7d;letter-spacing:.01em}.tms-front-review-sort-title small{font-size:10px;color:#60798e}
.tms-front-review-sort-prominent .tms-front-review-sort-form{margin-left:auto!important}.tms-front-review-sort-prominent .tms-front-review-sort-form label>span{font-size:11px!important;color:#294f6c!important}.tms-front-review-sort-prominent .tms-front-review-sort-form select{min-height:40px!important;border:1px solid #8db7d4!important;border-radius:8px!important;background:#fff!important;font-weight:800!important;color:#153f60!important}

.tms-profile-editor-shell,.tms-member-directory-shell{max-width:1180px;margin:14px 0;border:1px solid #d9e3ec;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(24,60,92,.05);overflow:hidden}
.tms-profile-editor-shell>summary,.tms-member-directory-shell>summary{display:flex;align-items:center;gap:10px;padding:13px 15px;cursor:pointer;list-style:none;background:#f7fafc;color:#173f61;user-select:none}
.tms-profile-editor-shell>summary::-webkit-details-marker,.tms-member-directory-shell>summary::-webkit-details-marker{display:none}.tms-profile-editor-shell>summary>span,.tms-member-directory-shell>summary>span{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:#e8f2fa;font-size:17px}.tms-profile-editor-shell>summary>div,.tms-member-directory-shell>summary>div{min-width:0}.tms-profile-editor-shell>summary strong,.tms-member-directory-shell>summary strong{display:block;font-size:14px;line-height:1.3}.tms-profile-editor-shell>summary small,.tms-member-directory-shell>summary small{display:block;margin-top:2px;color:#687d90;font-size:10.5px;line-height:1.35}.tms-profile-editor-shell>summary:after,.tms-member-directory-shell>summary:after{content:'เปิดดู';margin-left:auto;padding:4px 8px;border-radius:999px;border:1px solid #c8d8e5;background:#fff;color:#45667f;font-size:10px;font-weight:800;white-space:nowrap}.tms-profile-editor-shell[open]>summary:after,.tms-member-directory-shell[open]>summary:after{content:'ซ่อน'}
.tms-profile-editor-content,.tms-member-directory-shell-content{padding:14px}.tms-profile-editor-content>.tms-profile-info-compact{margin-top:0!important}

/* The progress label itself must stay clean with no filled background. */
.tms-progress1-box{background:transparent!important}.tms-progress1-box>strong,.tms-report-title-progress{background:transparent!important;background-image:none!important;box-shadow:none!important}.tms-progress1-box>strong{padding:0!important}

/* Country/Region vacancies are visible but applications begin at Province level. */
.tms-vacancy-card-noapply{cursor:default!important;border-style:dashed!important;background:#f8fafc!important;color:inherit!important}.tms-vacancy-card-noapply:hover{transform:none!important;box-shadow:none!important}.tms-vacancy-card-noapply em{color:#6e7f8f!important}.tms-vacancy-card-noapply .tms-org-placeholder-icon{background:#eef2f5!important;color:#647789!important}

.tms-contact-btn.is-email{background:#566b7c!important}

@media(max-width:782px){
  .tms-front-review-sort-prominent{align-items:stretch;padding:10px}.tms-front-review-sort-prominent .tms-front-review-sort-form{margin-left:0!important;width:100%}.tms-front-review-sort-prominent .tms-front-review-sort-form label{width:100%;min-width:0}.tms-front-review-sort-prominent .tms-front-review-sort-form select{max-width:none!important;width:100%!important}
  .tms-profile-editor-shell,.tms-member-directory-shell{border-radius:11px}.tms-profile-editor-shell>summary,.tms-member-directory-shell>summary{padding:11px 12px}.tms-profile-editor-content,.tms-member-directory-shell-content{padding:10px}
}


/* v2.44.14 — reliably collapsed MEMBER PROFILE + prominent community-leader invitation sharing */
.tms-profile-editor-shell,.tms-member-directory-shell{border-width:2px!important;box-shadow:0 10px 26px rgba(23,63,97,.10)!important}
.tms-profile-editor-shell>summary,.tms-member-directory-shell>summary{min-height:68px;padding:14px 16px!important;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.tms-profile-editor-shell>summary{background:linear-gradient(135deg,#164f7d,#2379b3)!important;color:#fff!important}
.tms-member-directory-shell>summary{background:linear-gradient(135deg,#146b64,#1a8a80)!important;color:#fff!important}
.tms-profile-editor-shell>summary:hover,.tms-member-directory-shell>summary:hover{filter:brightness(1.035);box-shadow:inset 0 0 0 999px rgba(255,255,255,.02)}
.tms-profile-editor-shell>summary>span,.tms-member-directory-shell>summary>span{width:44px!important;height:44px!important;flex-basis:44px!important;border-radius:13px!important;background:rgba(255,255,255,.17)!important;color:#fff!important;font-size:21px!important;border:1px solid rgba(255,255,255,.32)}
.tms-profile-editor-shell>summary strong,.tms-member-directory-shell>summary strong{font-size:16px!important;line-height:1.35!important;color:#fff!important}
.tms-profile-editor-shell>summary small,.tms-member-directory-shell>summary small{font-size:11px!important;line-height:1.45!important;color:rgba(255,255,255,.86)!important}
.tms-collapsible-kicker{display:block;margin-bottom:2px;font-size:9px;line-height:1;letter-spacing:.11em;color:rgba(255,255,255,.74);font-weight:900}
.tms-profile-editor-shell>summary:after,.tms-member-directory-shell>summary:after{padding:7px 11px!important;border:1px solid rgba(255,255,255,.72)!important;background:#fff!important;font-size:10px!important;box-shadow:0 3px 9px rgba(0,0,0,.08)}
.tms-profile-editor-shell>summary:after{content:'เปิดแก้ไขข้อมูล'!important;color:#164f7d!important}
.tms-member-directory-shell>summary:after{content:'เปิดรายชื่อสมาชิก'!important;color:#146b64!important}
.tms-profile-editor-shell[open]>summary:after,.tms-member-directory-shell[open]>summary:after{content:'ซ่อนส่วนนี้'!important}
.tms-profile-editor-shell[open]>summary,.tms-member-directory-shell[open]>summary{border-bottom-left-radius:0;border-bottom-right-radius:0}
.tms-normal-profile-btn{min-height:48px!important;padding:0 18px!important;font-size:14px!important;box-shadow:0 8px 18px rgba(23,104,169,.24)!important}

.tms-vacancy-card-shell{display:flex;flex-direction:column;gap:7px;min-width:0;width:100%;box-sizing:border-box}
.tms-vacancy-card-shell>.tms-org-card{margin:0!important}
.tms-position-invite{width:100%;box-sizing:border-box;border:1px solid #d6e2ec;border-radius:9px;background:#fff;overflow:hidden;text-align:left}
.tms-position-invite>summary{list-style:none;cursor:pointer;padding:7px 9px;background:#f5f9fc;color:#27506f;font-size:10px;line-height:1.25;font-weight:900;display:flex;align-items:center;gap:5px}
.tms-position-invite>summary::-webkit-details-marker{display:none}.tms-position-invite>summary:after{content:'＋';margin-left:auto;font-size:13px}.tms-position-invite[open]>summary:after{content:'−'}
.tms-position-invite-body{padding:8px}.tms-position-invite-body p{margin:0 0 7px!important;color:#5b6f81!important;font-size:9px!important;line-height:1.45!important}.tms-position-invite-body>small{display:block;margin-top:7px;color:#7b8792;font-size:8px;line-height:1.4}
.tms-position-invite-actions{display:flex;gap:5px;flex-wrap:wrap}
.tms-invite-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:5px 8px;border:0;border-radius:7px;text-decoration:none!important;font:inherit;font-size:9px!important;line-height:1!important;font-weight:900!important;cursor:pointer;color:#fff!important;box-sizing:border-box}
.tms-invite-btn.is-line{background:#06a847}.tms-invite-btn.is-facebook{background:#315f9b}.tms-invite-btn.is-telegram{background:#277fb6}.tms-invite-btn.is-twitter{background:#25313d}.tms-invite-btn.is-email{background:#566b7c}.tms-invite-btn.is-copy{background:#eef3f7;color:#35556f!important;border:1px solid #cbd8e2}
.tms-invite-btn:hover,.tms-invite-btn:focus{filter:brightness(.96);text-decoration:none!important}
.tms-org-vacancy-node{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:190px;max-width:250px;margin:0 auto}
.tms-org-vacancy-node>.tms-org-card{width:100%!important;max-width:none!important;min-width:0!important}
.tms-org-vacancy-node>.tms-position-invite{max-width:250px}
@media(max-width:782px){
  .tms-profile-editor-shell>summary,.tms-member-directory-shell>summary{min-height:64px;padding:12px!important;align-items:center!important}.tms-profile-editor-shell>summary>span,.tms-member-directory-shell>summary>span{width:40px!important;height:40px!important;flex-basis:40px!important}.tms-profile-editor-shell>summary strong,.tms-member-directory-shell>summary strong{font-size:14px!important}.tms-profile-editor-shell>summary small,.tms-member-directory-shell>summary small{font-size:10px!important}.tms-profile-editor-shell>summary:after,.tms-member-directory-shell>summary:after{font-size:9px!important;padding:6px 8px!important}
  .tms-org-vacancy-node{width:100%;min-width:0;max-width:none}.tms-org-vacancy-node>.tms-position-invite{max-width:none}.tms-position-invite-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tms-invite-btn{width:100%}
}
@media(max-width:480px){
  .tms-profile-editor-shell>summary,.tms-member-directory-shell>summary{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important}.tms-profile-editor-shell>summary:after,.tms-member-directory-shell>summary:after{grid-column:1/-1;margin-left:0!important;text-align:center;width:100%;box-sizing:border-box}.tms-position-invite-actions{grid-template-columns:1fr 1fr}
}
@media print{.tms-position-invite{display:none!important}}


/* v2.44.14 — hard-close large front-end panels until the details element is explicitly opened. */
.tms-profile-editor-shell:not([open])>.tms-profile-editor-content,
.tms-member-directory-shell:not([open])>.tms-member-directory-shell-content{display:none!important}
.tms-profile-editor-shell[open]>.tms-profile-editor-content,
.tms-member-directory-shell[open]>.tms-member-directory-shell-content{display:block!important}

/* v2.44.14 — community leadership invitation CTA. */
.tms-position-invite{border:2px solid #0a8f57!important;border-radius:13px!important;box-shadow:0 8px 22px rgba(12,96,68,.12)!important;background:#fff!important}
.tms-position-invite>summary{min-height:54px!important;padding:10px 12px!important;background:linear-gradient(135deg,#08764b,#0aa765)!important;color:#fff!important;font-size:12px!important;line-height:1.25!important;gap:9px!important}
.tms-position-invite>summary:after{color:#fff!important;font-size:16px!important}
.tms-invite-summary-icon{width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.28);font-size:18px}
.tms-invite-summary-copy{display:block;min-width:0}.tms-invite-summary-copy b{display:block;color:#fff!important;font-size:12px;line-height:1.3}.tms-invite-summary-copy small{display:block;margin-top:2px;color:rgba(255,255,255,.86)!important;font-size:9px;line-height:1.3}
.tms-position-invite-body{padding:10px!important;background:#fbfefd!important}
.tms-invite-message-preview{margin:0 0 9px;padding:9px 10px;border:1px solid #d9e8e1;border-radius:9px;background:#fff;color:#35584b;font-size:9px;line-height:1.5;max-height:145px;overflow:auto}
.tms-position-invite-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
.tms-invite-btn{width:100%;min-height:34px!important;padding:6px 8px!important;font-size:9px!important;gap:4px}
.tms-invite-btn.is-messenger{background:#1769e0!important}.tms-invite-btn.is-copy-link{background:#eef4f8!important;color:#31546c!important;border:1px solid #c7d8e3!important}.tms-invite-btn.is-share-more{background:#6c4fc7!important;color:#fff!important}
.tms-invite-platform-note{display:block!important;margin-top:8px!important;color:#63786f!important;font-size:8px!important;line-height:1.45!important}
@media(max-width:560px){.tms-position-invite>summary{min-height:58px!important}.tms-invite-summary-copy b{font-size:11px}.tms-invite-actions{grid-template-columns:1fr!important}.tms-invite-btn{min-height:38px!important;font-size:10px!important}.tms-invite-message-preview{max-height:120px}}

/* v2.44.15 — truly collapsed MY ACCOUNT / MEMBER PROFILE and persistent access actions. */
.tms-profile-editor-shell{margin-bottom:10px!important}
.tms-profile-editor-shell:not([open])>.tms-profile-editor-content{display:none!important;height:0!important;max-height:0!important;overflow:hidden!important;padding:0!important;margin:0!important;border:0!important;visibility:hidden!important}
.tms-profile-editor-shell[open]>.tms-profile-editor-content{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;visibility:visible!important;padding:14px!important}
.tms-profile-editor-shell>summary{position:relative!important}
.tms-profile-editor-shell>summary strong{font-size:17px!important}
.tms-profile-editor-shell>summary:after{content:'เปิด MY ACCOUNT / แก้ไขข้อมูล'!important;min-width:170px;text-align:center}
.tms-profile-editor-shell[open]>summary:after{content:'ยุบ / ซ่อนข้อมูล'!important}
.tms-profile-editor-content>.tms-member-accountbar{margin:0 0 12px!important;max-width:none!important}
.tms-persistent-auth-actions{max-width:1180px;margin:10px 0 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tms-persistent-auth-actions>a{min-height:52px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:13px;text-decoration:none!important;font-size:13px;line-height:1.3;text-align:center;box-sizing:border-box;box-shadow:0 8px 20px rgba(28,61,92,.10);transition:transform .15s ease,box-shadow .15s ease}
.tms-persistent-auth-actions>a:hover,.tms-persistent-auth-actions>a:focus{transform:translateY(-1px);box-shadow:0 11px 24px rgba(28,61,92,.15);text-decoration:none!important}
.tms-auth-primary{background:linear-gradient(135deg,#145a8d,#237fbd);border:1px solid #145a8d;color:#fff!important}
.tms-auth-reset{background:#fff;border:2px solid #d4a33b;color:#6f500d!important}

/* v2.44.15 — invitation belongs visually to the same vacancy card as the Apply CTA. */
.tms-vacancy-card-shell{gap:0!important;border-radius:14px;overflow:hidden;box-shadow:0 9px 24px rgba(65,72,72,.10);background:#fff}
.tms-vacancy-card-shell>.tms-org-apply-card{border-radius:14px 14px 0 0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;box-shadow:none!important}
.tms-position-invite.tms-position-invite-attached{margin-top:-1px!important;border-radius:0 0 14px 14px!important;border-top-width:1px!important;box-shadow:none!important}
.tms-position-invite.tms-position-invite-attached>summary{border-radius:0!important;min-height:58px!important;background:linear-gradient(135deg,#08734a,#0aa867)!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy b{font-size:13px!important;letter-spacing:.01em}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy small{font-size:9.5px!important}
.tms-invite-message-preview{max-height:240px!important;padding:12px!important;font-size:10px!important;line-height:1.6!important}
.tms-invite-preview-title{font-size:15px;line-height:1.35;font-weight:950;color:#075f3e;margin:0 0 9px;padding-bottom:7px;border-bottom:1px solid #d9e8e1}
.tms-invite-message-preview p{font-size:10px!important;line-height:1.6!important;margin:0 0 9px!important;color:#3f5f53!important}
.tms-invite-preview-meta{display:grid;gap:5px;margin:7px 0 10px;padding:9px 10px;border-radius:9px;background:#eef9f3;border:1px solid #cce7d8}
.tms-invite-preview-meta strong{display:block;font-size:11.5px;line-height:1.45;color:#0a5b3e}
.tms-invite-preview-link{display:block;margin:7px 0 10px;padding:7px 8px;border-radius:7px;background:#f5f8fb;border:1px solid #dce5ec;font-size:9px;line-height:1.4;overflow-wrap:anywhere;text-decoration:none!important}
.tms-invite-message-preview>small{display:block;font-size:8.8px;line-height:1.5;color:#667b71}
.tms-invite-preview-tagline{margin-top:9px;font-size:9px;font-weight:900;letter-spacing:.06em;color:#315d4c;text-align:center}
.tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
.tms-invite-btn{min-height:54px!important;flex-direction:column!important;gap:4px!important;border-radius:10px!important;font-size:9px!important;padding:6px 4px!important}
.tms-invite-btn b{display:block;font-size:8.5px;line-height:1.15;color:inherit!important;white-space:nowrap}
.tms-social-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.18);font-weight:950;font-size:14px;line-height:1}
.tms-social-icon.is-line{font-size:7px;letter-spacing:-.02em}.tms-social-icon.is-facebook{font-family:Arial,sans-serif;font-size:20px}.tms-social-icon.is-email{font-size:15px}.tms-social-icon.is-copy,.tms-social-icon.is-more{font-size:14px}
.tms-invite-btn.is-facebook{background:#1877f2!important}.tms-invite-btn.is-copy-link{background:#eef4f8!important;color:#31546c!important;border:1px solid #c7d8e3!important}.tms-invite-btn.is-share-more{background:#6c4fc7!important;color:#fff!important}

@media(max-width:782px){
  .tms-profile-editor-shell[open]>.tms-profile-editor-content{padding:10px!important}
  .tms-profile-editor-shell>summary strong{font-size:15px!important}
  .tms-profile-editor-shell>summary:after{min-width:0!important}
  .tms-persistent-auth-actions{grid-template-columns:1fr;gap:8px}
  .tms-persistent-auth-actions>a{min-height:50px;font-size:12px}
  .tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .tms-invite-btn{min-height:52px!important;padding:5px 2px!important}
  .tms-invite-btn b{font-size:7.7px}
  .tms-social-icon{width:25px;height:25px}
  .tms-invite-message-preview{max-height:260px!important}
  .tms-invite-preview-title{font-size:14px}
  .tms-invite-preview-meta strong{font-size:11px}
}
@media(max-width:390px){
  .tms-position-invite-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}


/* v2.44.16 — explicit, theme-independent collapse for the complete MEMBER PROFILE / sections 1–7 / save button. */
.tms-profile-explicit-collapse{max-width:1180px;margin:14px 0 10px;border:2px solid #174f7d;border-radius:15px;background:#fff;box-shadow:0 10px 26px rgba(23,63,97,.10);overflow:hidden}
.tms-profile-explicit-collapse .tms-profile-editor-toggle{width:100%;min-height:72px;margin:0;padding:14px 16px;border:0;border-radius:0;background:linear-gradient(135deg,#164f7d,#2379b3);color:#fff;display:flex;align-items:center;gap:11px;text-align:left;cursor:pointer;font:inherit;box-sizing:border-box}
.tms-profile-explicit-collapse .tms-profile-toggle-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.32);border-radius:13px;background:rgba(255,255,255,.12);font-size:21px;line-height:1}
.tms-profile-explicit-collapse .tms-profile-toggle-copy{display:block;min-width:0;flex:1}
.tms-profile-explicit-collapse .tms-profile-toggle-copy .tms-collapsible-kicker{display:block;margin:0 0 2px;color:#dff2ff;font-size:10px;line-height:1.2;font-weight:900;letter-spacing:.08em}
.tms-profile-explicit-collapse .tms-profile-toggle-copy strong{display:block;color:#fff;font-size:17px;line-height:1.35;font-weight:900}
.tms-profile-explicit-collapse .tms-profile-toggle-copy small{display:block;margin-top:3px;color:rgba(255,255,255,.86);font-size:11px;line-height:1.4}
.tms-profile-explicit-collapse .tms-profile-toggle-state{flex:0 0 auto;min-width:170px;padding:8px 11px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:#fff;color:#164f7d;font-size:10px;font-weight:900;line-height:1.25;text-align:center;box-shadow:0 3px 9px rgba(0,0,0,.08)}
.tms-profile-explicit-collapse:not(.is-open)>.tms-profile-editor-content,
.tms-profile-explicit-collapse>.tms-profile-editor-content[hidden]{display:none!important;height:0!important;max-height:0!important;overflow:hidden!important;padding:0!important;margin:0!important;border:0!important;visibility:hidden!important}
.tms-profile-explicit-collapse.is-open>.tms-profile-editor-content{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;visibility:visible!important;padding:14px!important}
.tms-profile-explicit-collapse .tms-profile-editor-content>.tms-member-accountbar{margin:0 0 12px!important;max-width:none!important}

/* v2.44.16 — clean social actions: bare icons with no icon background; the invitation remains one visual set with Apply. */
.tms-position-invite-actions{align-items:start!important}
.tms-position-invite-actions .tms-invite-btn{background:transparent!important;border:0!important;box-shadow:none!important;color:#365467!important;min-height:58px!important;padding:6px 3px!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:5px!important;border-radius:9px!important}
.tms-position-invite-actions .tms-invite-btn:hover,.tms-position-invite-actions .tms-invite-btn:focus{background:#f3f7fa!important;filter:none!important;transform:translateY(-1px)}
.tms-position-invite-actions .tms-invite-btn b{color:#365467!important;font-size:8.5px!important;line-height:1.15!important;white-space:nowrap}
.tms-position-invite-actions .tms-social-icon{width:auto!important;height:30px!important;min-width:30px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:22px!important;line-height:1!important;font-weight:950!important;padding:0!important}
.tms-position-invite-actions .tms-social-icon.is-line{color:#06a847!important;font-family:Arial,sans-serif;font-size:9px!important;letter-spacing:-.04em;border:2px solid currentColor!important;border-radius:8px!important;width:31px!important;height:24px!important;align-self:center}
.tms-position-invite-actions .tms-social-icon.is-facebook{color:#1877f2!important;font-family:Arial,sans-serif;font-size:28px!important;font-weight:950!important}
.tms-position-invite-actions .tms-social-icon.is-telegram{color:#229ed9!important;font-size:24px!important;transform:rotate(-12deg)}
.tms-position-invite-actions .tms-social-icon.is-twitter{color:#111!important;font-size:24px!important}
.tms-position-invite-actions .tms-social-icon.is-email{color:#b14f34!important;font-size:24px!important}
.tms-position-invite-actions .tms-social-icon.is-copy{font-size:21px!important}
.tms-position-invite-actions .tms-social-icon.is-more{color:#6c4fc7!important;font-size:25px!important}

@media(max-width:782px){
  .tms-profile-explicit-collapse .tms-profile-editor-toggle{padding:12px!important;min-height:68px}
  .tms-profile-explicit-collapse .tms-profile-toggle-copy strong{font-size:15px}
  .tms-profile-explicit-collapse .tms-profile-toggle-state{min-width:0;padding:7px 9px}
  .tms-profile-explicit-collapse.is-open>.tms-profile-editor-content{padding:10px!important}
}
@media(max-width:520px){
  .tms-profile-explicit-collapse .tms-profile-editor-toggle{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px}
  .tms-profile-explicit-collapse .tms-profile-toggle-icon{width:40px;height:40px;flex-basis:40px}
  .tms-profile-explicit-collapse .tms-profile-toggle-state{grid-column:1/-1;width:100%;box-sizing:border-box}
  .tms-position-invite-actions .tms-invite-btn b{font-size:7.8px!important}
}


/* v2.44.17 — persistent account actions live above the collapsed MEMBER PROFILE panel. */
.tms-persistent-auth-actions{max-width:1180px;margin:0 0 12px!important;position:relative;z-index:2}
.tms-persistent-auth-actions.is-logged-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.tms-auth-logout{background:#fff!important;border:2px solid #c95050!important;color:#9b2525!important}
.tms-auth-logout:hover,.tms-auth-logout:focus{background:#fff8f8!important;color:#7d1717!important}
@media(max-width:900px){.tms-persistent-auth-actions.is-logged-actions{grid-template-columns:1fr 1fr!important}.tms-persistent-auth-actions.is-logged-actions .tms-auth-logout{grid-column:1/-1}}
@media(max-width:560px){.tms-persistent-auth-actions,.tms-persistent-auth-actions.is-logged-actions{grid-template-columns:1fr!important}.tms-persistent-auth-actions.is-logged-actions .tms-auth-logout{grid-column:auto}}

/* v2.44.18 — Vacancy Finder + one-link vacancy invitation hub. */
.tms-org-vacancy-shortcut{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tms-vacancy-find-button{font-weight:900!important;border-color:#0a8f57!important;color:#075f3e!important;background:#effaf5!important}
.tms-vacancy-copy-button{font-weight:800!important}
.tms-vacancy-hub{margin:18px 0;padding:16px;border:1px solid #d3e2dd;border-radius:16px;background:#fbfefd;box-shadow:0 8px 26px rgba(22,83,61,.07)}
.tms-vacancy-hub-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.tms-vacancy-hub-head h2{margin:3px 0 5px;color:#0b5f43;font-size:22px;line-height:1.25}
.tms-vacancy-hub-head p{margin:0;color:#587066;font-size:12px;line-height:1.55}
.tms-vacancy-share-box{margin:12px 0 14px;padding:13px;border:2px solid #0b9560;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(11,149,96,.08)}
.tms-vacancy-share-copy{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}
.tms-vacancy-share-icon{font-size:26px;line-height:1;flex:0 0 auto}
.tms-vacancy-share-copy>div{min-width:0}.tms-vacancy-share-copy strong{display:block;color:#075f3e;font-size:15px;line-height:1.3}.tms-vacancy-share-copy small{display:block;margin-top:3px;color:#60786e;font-size:10px;line-height:1.45}.tms-vacancy-share-copy a{display:block;margin-top:7px;padding:7px 9px;border:1px solid #d7e5df;border-radius:8px;background:#f6faf8;color:#25614a;font-size:9px;line-height:1.35;overflow-wrap:anywhere;text-decoration:none!important}
.tms-vacancy-share-actions{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-items:start}
.tms-vacancy-share-actions .tms-invite-btn{background:transparent!important;border:0!important;box-shadow:none!important;color:#365467!important;min-height:58px!important;padding:6px 3px!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:5px!important;border-radius:9px!important}
.tms-vacancy-share-actions .tms-invite-btn:hover,.tms-vacancy-share-actions .tms-invite-btn:focus{background:#f3f7fa!important;filter:none!important;transform:translateY(-1px)}
.tms-vacancy-share-actions .tms-invite-btn b{color:#365467!important;font-size:8.5px!important;line-height:1.15!important;white-space:nowrap}
.tms-vacancy-share-actions .tms-social-icon{width:auto!important;height:30px!important;min-width:30px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:22px!important;line-height:1!important;font-weight:950!important;padding:0!important}
.tms-vacancy-share-actions .tms-social-icon.is-line{color:#06a847!important;font-family:Arial,sans-serif;font-size:9px!important;letter-spacing:-.04em;border:2px solid currentColor!important;border-radius:8px!important;width:31px!important;height:24px!important;align-self:center}
.tms-vacancy-share-actions .tms-social-icon.is-facebook{color:#1877f2!important;font-family:Arial,sans-serif;font-size:28px!important}.tms-vacancy-share-actions .tms-social-icon.is-telegram{color:#229ed9!important;font-size:24px!important;transform:rotate(-12deg)}.tms-vacancy-share-actions .tms-social-icon.is-twitter{color:#111!important;font-size:24px!important}.tms-vacancy-share-actions .tms-social-icon.is-email{color:#b14f34!important;font-size:24px!important}.tms-vacancy-share-actions .tms-social-icon.is-copy{font-size:21px!important}.tms-vacancy-share-actions .tms-social-icon.is-more{color:#6c4fc7!important;font-size:25px!important}
.tms-vacancy-search-form{display:grid;grid-template-columns:minmax(280px,1fr) minmax(150px,220px) auto;gap:10px;align-items:end;margin:14px 0;padding:13px;border:1px solid #d8e5df;border-radius:12px;background:#f5faf7}
.tms-vacancy-search-form label{display:grid;gap:5px;margin:0}.tms-vacancy-search-form label>span{font-size:10px;font-weight:900;color:#365a4c}.tms-vacancy-search-form input,.tms-vacancy-search-form select{width:100%;min-height:40px;border-radius:9px!important}.tms-vacancy-search-form .button{min-height:40px;font-weight:900!important}
.tms-vacancy-search-empty{display:grid;gap:4px;padding:18px;border:1px dashed #cbdad4;border-radius:12px;background:#fff;text-align:center}.tms-vacancy-search-empty strong{font-size:14px;color:#365a4c}.tms-vacancy-search-empty span{font-size:10px;color:#6a7e75;line-height:1.5}
.tms-vacancy-search-result-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0 8px}.tms-vacancy-search-result-head strong{font-size:14px;color:#0b6848}.tms-vacancy-search-result-head span{font-size:10px;color:#687b73}
.tms-vacancy-search-limit{margin:8px 0;padding:8px 10px;border:1px solid #ead69d;border-radius:9px;background:#fff9e9;color:#705b19;font-size:10px;line-height:1.45}
.tms-vacancy-search-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;align-items:start}
@media(max-width:900px){.tms-vacancy-share-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.tms-vacancy-search-form{grid-template-columns:1fr 180px}.tms-vacancy-search-form .button{grid-column:1/-1}}
@media(max-width:560px){.tms-org-vacancy-shortcut{width:100%}.tms-org-vacancy-shortcut .button{flex:1 1 140px;text-align:center}.tms-vacancy-hub{padding:11px}.tms-vacancy-hub-head h2{font-size:18px}.tms-vacancy-share-copy strong{font-size:13px}.tms-vacancy-share-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.tms-vacancy-search-form{grid-template-columns:1fr;padding:10px}.tms-vacancy-search-form .button{grid-column:auto;width:100%}.tms-vacancy-search-grid{grid-template-columns:1fr}}
@media(max-width:390px){.tms-vacancy-share-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.tms-vacancy-share-actions .tms-invite-btn b{font-size:7.8px!important}}
@media print{.tms-vacancy-share-box,.tms-vacancy-search-form,.tms-org-vacancy-shortcut{display:none!important}}


/* v2.44.19 — admin-only Vacancy Finder entry points + compact leadership invitation preview. */
.tms-admin-vacancy-shortcut{padding:8px 10px;border:1px solid #cfe3da;border-radius:10px;background:#f7fbf9}
.tms-admin-vacancy-shortcut .tms-admin-only-badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 8px;border-radius:999px;background:#243b53;color:#fff;font-size:9px;font-weight:900;letter-spacing:.08em}
.tms-admin-vacancy-shortcut small{color:#61756d;font-size:9px;line-height:1.4}
.tms-invite-message-preview{max-height:none!important;padding:9px!important;line-height:1.4!important}
.tms-invite-preview-title{font-size:14px!important;line-height:1.25!important;margin:0 0 6px!important;padding-bottom:5px!important}
.tms-invite-preview-meta{display:flex!important;flex-wrap:wrap;gap:4px 8px!important;margin:4px 0 6px!important;padding:6px 8px!important}
.tms-invite-preview-meta strong{font-size:10.5px!important;line-height:1.3!important}
.tms-invite-message-preview p{font-size:9.5px!important;line-height:1.4!important;margin:0 0 6px!important}
.tms-invite-preview-cta b{color:#075f3e}
.tms-invite-preview-purpose{color:#60756b!important}
.tms-invite-preview-link{display:inline-flex!important;align-items:center;justify-content:center;margin:1px 0 6px!important;padding:7px 10px!important;border:1px solid #0a8f57!important;border-radius:8px!important;background:#effaf5!important;color:#075f3e!important;font-size:10px!important;line-height:1.2!important;overflow-wrap:normal!important;text-decoration:none!important}
.tms-invite-message-preview>small{font-size:8.2px!important;line-height:1.35!important}
.tms-invite-preview-tagline{margin-top:6px!important;font-size:8.2px!important}
@media(max-width:560px){.tms-invite-preview-meta{display:grid!important;gap:3px!important}.tms-invite-preview-link{display:flex!important;width:100%;box-sizing:border-box}.tms-admin-vacancy-shortcut{width:100%;box-sizing:border-box}.tms-admin-vacancy-shortcut small{width:100%}}


/* v2.44.20 — modern compact invite UI for vacant-position sharing. */
.tms-position-invite.tms-position-invite-attached{border:1px solid #d5e6dc!important;background:#fff!important;box-shadow:0 10px 26px rgba(22,73,56,.08)!important}
.tms-position-invite.tms-position-invite-attached>summary{min-height:50px!important;padding:12px 14px!important;background:linear-gradient(135deg,#0b8553,#12a56c)!important;gap:10px!important}
.tms-position-invite.tms-position-invite-attached>summary:after{font-size:18px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-icon{width:auto;height:auto;flex:0 0 auto;background:transparent!important;border:0!important;border-radius:0!important;font-size:19px;box-shadow:none!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy b{font-size:14px!important;letter-spacing:-.01em}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy small{font-size:10px!important}
.tms-position-invite.tms-position-invite-attached .tms-position-invite-body{padding:12px!important;background:linear-gradient(180deg,#fbfefd 0%,#f5fbf8 100%)!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-message-preview{margin:0 0 10px;padding:12px;border:1px solid #d9e8e0;border-radius:14px;background:#fff;display:grid;gap:9px;max-height:none;overflow:visible;box-shadow:0 4px 14px rgba(33,82,63,.05)}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-head{display:grid;gap:2px}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-title{margin:0;color:#0d5d42;font-size:17px;line-height:1.2;font-weight:900;letter-spacing:-.02em}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-subtitle{margin:0;color:#668074;font-size:11px;line-height:1.35}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-meta{display:grid;gap:8px}
.tms-position-invite.tms-position-invite-attached .tms-invite-chip{display:grid;gap:3px;padding:9px 10px;border-radius:11px;border:1px solid #d6e5dd;background:#f7fbf8}
.tms-position-invite.tms-position-invite-attached .tms-invite-chip b{font-size:10px;line-height:1;color:#55766a;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.tms-position-invite.tms-position-invite-attached .tms-invite-chip strong{font-size:13px;line-height:1.35;color:#1b4535;font-weight:900}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-cta{margin:0;color:#2f4d42;font-size:12px;line-height:1.45;font-weight:700}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:999px;background:linear-gradient(135deg,#0a8e57,#12b16f);color:#fff!important;text-decoration:none!important;font-size:13px;line-height:1;font-weight:900;box-shadow:0 10px 22px rgba(18,146,96,.22)}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-link:hover,.tms-position-invite.tms-position-invite-attached .tms-invite-preview-link:focus{transform:translateY(-1px);filter:brightness(.98)}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-note{display:block;color:#617c72;font-size:10px;line-height:1.5}
.tms-position-invite.tms-position-invite-attached .tms-position-invite-actions{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px!important;align-items:start}
.tms-position-invite.tms-position-invite-attached .tms-invite-btn{width:100%;min-height:60px!important;padding:6px 2px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#335468!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:5px!important;border-radius:10px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-btn:hover,.tms-position-invite.tms-position-invite-attached .tms-invite-btn:focus{background:#eff6f2!important;filter:none!important;transform:translateY(-1px)}
.tms-position-invite.tms-position-invite-attached .tms-invite-btn b{font-size:9px!important;line-height:1.2!important;color:#335468!important;white-space:nowrap}
.tms-position-invite.tms-position-invite-attached .tms-social-icon{width:auto!important;height:auto!important;min-width:0!important;display:block!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;font-size:25px!important;line-height:1!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-line{color:#06a847!important;font-family:Arial,sans-serif;font-size:10px!important;font-weight:900!important;letter-spacing:-.05em;border:2px solid currentColor!important;border-radius:8px!important;width:34px!important;height:26px!important;display:grid!important;place-items:center!important;margin:0 auto}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-facebook{color:#1877f2!important;font-family:Arial,sans-serif;font-size:30px!important;font-weight:900!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-telegram{color:#229ed9!important;font-size:27px!important;transform:rotate(-12deg)}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-twitter{color:#111!important;font-size:27px!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-email{color:#b65a37!important;font-size:24px!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-copy{color:#6c8191!important;font-size:22px!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-more{color:#7154d1!important;font-size:26px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-platform-note{display:block;margin-top:6px;color:#71847b;font-size:9px!important;line-height:1.45!important;text-align:center}
@media(max-width:900px){.tms-position-invite.tms-position-invite-attached .tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.tms-position-invite.tms-position-invite-attached>summary{padding:11px 12px!important}.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy b{font-size:13px!important}.tms-position-invite.tms-position-invite-attached .tms-invite-message-preview{padding:10px}.tms-position-invite.tms-position-invite-attached .tms-invite-preview-title{font-size:15px}.tms-position-invite.tms-position-invite-attached .tms-invite-chip strong{font-size:12px}.tms-position-invite.tms-position-invite-attached .tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:380px){.tms-position-invite.tms-position-invite-attached .tms-position-invite-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* v2.44.21 — compact invitation teaser. Show only title + exam note until user opens the share panel. */
.tms-position-invite.tms-position-invite-attached>summary{
  min-height:64px!important;
  padding:11px 12px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  background:linear-gradient(135deg,#087c50 0%,#0ca96a 100%)!important;
  border-radius:0!important;
}
.tms-position-invite.tms-position-invite-attached>summary:after{display:none!important;content:none!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-icon{
  width:34px!important;height:34px!important;display:grid!important;place-items:center!important;
  color:#fff!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.25)!important;
  border-radius:11px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-modern-icon{width:21px;height:21px;display:block}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy{display:grid!important;gap:3px!important;min-width:0!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy b{
  font-size:14px!important;line-height:1.28!important;font-weight:900!important;color:#fff!important;letter-spacing:-.01em!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy small{
  display:block!important;margin:0!important;font-size:9.5px!important;line-height:1.4!important;color:rgba(255,255,255,.88)!important;font-weight:600!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-expand-hint{
  min-width:44px;height:28px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;background:#fff;color:#08764b;font-size:10px;font-weight:900;line-height:1;
  box-shadow:0 3px 9px rgba(0,0,0,.10);white-space:nowrap;
}
.tms-position-invite.tms-position-invite-attached[open] .tms-invite-expand-hint:before{content:'ปิด';font-size:10px}
.tms-position-invite.tms-position-invite-attached[open] .tms-invite-expand-hint{font-size:0}
.tms-position-invite.tms-position-invite-attached:not([open])>.tms-position-invite-body{display:none!important}
.tms-position-invite.tms-position-invite-attached[open]>.tms-position-invite-body{display:block!important}
@media(max-width:560px){
  .tms-position-invite.tms-position-invite-attached>summary{grid-template-columns:30px minmax(0,1fr) auto!important;gap:8px!important;padding:10px!important}
  .tms-position-invite.tms-position-invite-attached .tms-invite-summary-icon{width:30px!important;height:30px!important;border-radius:9px!important}
  .tms-position-invite.tms-position-invite-attached .tms-invite-modern-icon{width:18px;height:18px}
  .tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy b{font-size:12.5px!important}
  .tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy small{font-size:8.5px!important;line-height:1.35!important}
  .tms-position-invite.tms-position-invite-attached .tms-invite-expand-hint{min-width:39px;height:26px;padding:0 7px;font-size:9px}
}


/* v2.44.22 — stronger contrast + modern grouped square icons inside the same vacancy card. */
.tms-vacancy-card-shell{border:1px solid #d7e5dd!important;border-radius:18px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 12px 28px rgba(31,65,51,.10)!important}
.tms-vacancy-card-shell>.tms-org-apply-card{border:0!important;border-radius:0!important;box-shadow:none!important}
.tms-position-invite.tms-position-invite-attached{margin-top:0!important;border:0!important;border-top:1px solid #dfe9e3!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(180deg,#f9fcfa 0%,#f4faf7 100%)!important}
.tms-position-invite.tms-position-invite-attached>summary{background:linear-gradient(135deg,#0d8a58 0%,#11a86a 100%)!important;min-height:60px!important;padding:12px 14px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-icon{width:40px!important;height:40px!important;border-radius:12px!important;background:rgba(255,255,255,.18)!important;border:1px solid rgba(255,255,255,.24)!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-modern-icon{width:22px!important;height:22px!important}
.tms-position-invite.tms-position-invite-attached .tms-position-invite-body{padding:14px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-message-preview{padding:14px!important;border-radius:16px!important;gap:10px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-chip{padding:10px 11px!important;border-radius:12px!important;background:#f6fbf8!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:46px!important;padding:0 16px!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,#0b7d4f 0%,#0fa365 100%)!important;color:#ffffff!important;font-size:14px!important;line-height:1.1!important;font-weight:900!important;letter-spacing:-.01em!important;box-shadow:0 12px 26px rgba(16,146,96,.22)!important;text-shadow:0 1px 0 rgba(0,0,0,.10)!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-link b,.tms-position-invite.tms-position-invite-attached .tms-invite-preview-link span{color:#ffffff!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-preview-link:hover,.tms-position-invite.tms-position-invite-attached .tms-invite-preview-link:focus{filter:brightness(1.03)!important;transform:translateY(-1px)!important}
.tms-position-invite.tms-position-invite-attached .tms-position-invite-actions{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))!important;gap:8px!important;margin-top:2px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-btn{min-height:86px!important;padding:8px 6px 10px!important;background:#ffffff!important;border:1px solid #dbe7e1!important;border-radius:16px!important;box-shadow:0 8px 18px rgba(39,71,57,.06)!important;justify-content:center!important;gap:8px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-btn:hover,.tms-position-invite.tms-position-invite-attached .tms-invite-btn:focus{background:#f8fcfa!important;border-color:#bdd6ca!important;box-shadow:0 10px 20px rgba(39,71,57,.10)!important;transform:translateY(-1px)!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-btn b{font-size:10px!important;line-height:1.25!important;color:#355365!important;white-space:normal!important;text-align:center!important;font-weight:800!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:14px!important;font-size:20px!important;line-height:1!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-line{background:linear-gradient(135deg,#06c755,#00a53c)!important;color:#fff!important;border:0!important;font-size:10px!important;font-weight:900!important;letter-spacing:-.03em!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-facebook{background:linear-gradient(135deg,#1c74f6,#0f56c7)!important;color:#fff!important;font-family:Arial,sans-serif!important;font-size:26px!important;font-weight:900!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-telegram{background:linear-gradient(135deg,#37aee2,#1f8fbe)!important;color:#fff!important;font-size:22px!important;transform:none!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-twitter{background:linear-gradient(135deg,#353535,#121212)!important;color:#fff!important;font-size:21px!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-email{background:linear-gradient(135deg,#e67d4f,#c75f30)!important;color:#fff!important;font-size:21px!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-copy{background:linear-gradient(135deg,#8ca0af,#6f8596)!important;color:#fff!important;font-size:19px!important}
.tms-position-invite.tms-position-invite-attached .tms-social-icon.is-more{background:linear-gradient(135deg,#8a63f0,#6848c8)!important;color:#fff!important;font-size:22px!important}
.tms-position-invite.tms-position-invite-attached .tms-invite-platform-note{margin-top:8px!important;font-size:9px!important;text-align:center!important}
@media(max-width:560px){
  .tms-vacancy-card-shell{border-radius:16px!important}
  .tms-position-invite.tms-position-invite-attached>summary{padding:11px 12px!important;min-height:58px!important}
  .tms-position-invite.tms-position-invite-attached .tms-invite-summary-icon{width:36px!important;height:36px!important;border-radius:11px!important}
  .tms-position-invite.tms-position-invite-attached .tms-invite-preview-link{min-height:44px!important;font-size:13px!important}
  .tms-position-invite.tms-position-invite-attached .tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
  .tms-position-invite.tms-position-invite-attached .tms-invite-btn{min-height:80px!important;border-radius:14px!important}
  .tms-position-invite.tms-position-invite-attached .tms-social-icon{width:40px!important;height:40px!important;border-radius:13px!important}
}


/* v2.44.23 — center the Share CTA under the invite copy and highlight it in a yellow frame. */
.tms-position-invite.tms-position-invite-attached>summary{
  grid-template-columns:42px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
  row-gap:8px!important;
  align-items:center!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-icon{
  grid-column:1!important;
  grid-row:1!important;
  align-self:center!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy{
  grid-column:2!important;
  grid-row:1!important;
  text-align:left!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy b{
  font-size:14px!important;
  line-height:1.25!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy small{
  margin-top:3px!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-expand-hint{
  grid-column:1 / -1!important;
  grid-row:2!important;
  justify-self:center!important;
  min-width:96px!important;
  height:34px!important;
  padding:0 18px!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#fff6b7 0%,#ffd95a 100%)!important;
  border:2px solid #e4ad10!important;
  color:#6a4a00!important;
  font-size:12px!important;
  font-weight:950!important;
  box-shadow:0 5px 12px rgba(129,88,0,.18),inset 0 1px 0 rgba(255,255,255,.75)!important;
}
.tms-position-invite.tms-position-invite-attached .tms-invite-expand-hint:before{
  content:'↗'!important;
  margin-right:6px!important;
  font-size:13px!important;
}
.tms-position-invite.tms-position-invite-attached[open] .tms-invite-expand-hint:before{
  content:'×'!important;
  margin-right:6px!important;
  font-size:15px!important;
}
.tms-position-invite.tms-position-invite-attached[open] .tms-invite-expand-hint{
  font-size:12px!important;
}
.tms-position-invite.tms-position-invite-attached[open] .tms-invite-expand-hint::after{
  content:' ปิด'!important;
}
@media(max-width:560px){
  .tms-position-invite.tms-position-invite-attached>summary{
    grid-template-columns:38px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:8px!important;
    row-gap:8px!important;
  }
  .tms-position-invite.tms-position-invite-attached .tms-invite-summary-copy b{font-size:12.5px!important}
  .tms-position-invite.tms-position-invite-attached .tms-invite-expand-hint{min-width:88px!important;height:32px!important;font-size:11px!important}
}


/* v2.44.24 — one yellow vacancy card footer with only Apply + Share visible. */
.tms-vacancy-card-shell,
.tms-org-vacancy-node{background:#fffaf0!important;border-color:#dfbd62!important}
.tms-vacancy-card-shell>.tms-org-apply-card,
.tms-org-vacancy-node>.tms-org-apply-card{border-bottom:0!important}
.tms-vacancy-action-block{width:100%;box-sizing:border-box;background:#fff4c9;border-top:1px solid #e2c369;padding:10px 11px 11px}
.tms-vacancy-action-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch}
.tms-vacancy-apply-button,.tms-vacancy-share-toggle{appearance:none;width:100%;min-height:42px;padding:8px 10px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none!important;font:inherit;font-size:12px!important;line-height:1.1!important;font-weight:900!important;cursor:pointer;box-sizing:border-box;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.tms-vacancy-apply-button{background:linear-gradient(135deg,#0b8553,#11aa6b)!important;border:1px solid #087348!important;color:#fff!important;box-shadow:0 6px 14px rgba(13,126,82,.18)}
.tms-vacancy-apply-button b,.tms-vacancy-apply-button span{color:#fff!important}
.tms-vacancy-share-toggle{background:linear-gradient(180deg,#fff7bf,#ffd95d)!important;border:2px solid #d9a711!important;color:#614500!important;box-shadow:0 6px 14px rgba(142,101,0,.14)}
.tms-vacancy-share-toggle b,.tms-vacancy-share-toggle span{color:#614500!important}
.tms-vacancy-apply-button:hover,.tms-vacancy-apply-button:focus,.tms-vacancy-share-toggle:hover,.tms-vacancy-share-toggle:focus{transform:translateY(-1px);filter:brightness(1.02);text-decoration:none!important}
.tms-vacancy-share-toggle.is-open{background:#fff!important;border-color:#cfa110!important}
.tms-vacancy-action-block>.tms-position-invite-body{margin-top:10px;padding:12px!important;border:1px solid #e5ca78!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.tms-vacancy-action-block>.tms-position-invite-body[hidden]{display:none!important}
.tms-vacancy-action-block>.tms-position-invite-body.is-open{display:block!important}
/* Kill all legacy green teaser/summary UI in v2.44.24. */
.tms-vacancy-action-block .tms-invite-summary-icon,.tms-vacancy-action-block .tms-invite-summary-copy,.tms-vacancy-action-block .tms-invite-expand-hint{display:none!important}
.tms-vacancy-action-block .tms-invite-message-preview{margin:0 0 10px!important;padding:12px!important;border:1px solid #e5e8e6!important;border-radius:12px!important;background:#fbfdfc!important;display:grid!important;gap:8px!important;max-height:none!important;overflow:visible!important}
.tms-vacancy-action-block .tms-invite-preview-title{font-size:15px!important;color:#174f3a!important;font-weight:900!important}
.tms-vacancy-action-block .tms-invite-preview-note{font-size:10px!important;line-height:1.45!important;color:#6a756f!important}
.tms-vacancy-action-block .tms-position-invite-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(68px,1fr))!important;gap:8px!important}
@media(max-width:560px){
  .tms-vacancy-action-block{padding:9px}
  .tms-vacancy-action-row{grid-template-columns:1fr 1fr;gap:7px}
  .tms-vacancy-apply-button,.tms-vacancy-share-toggle{min-height:40px;font-size:11px!important;padding:7px 6px}
  .tms-vacancy-action-block>.tms-position-invite-body{padding:10px!important}
  .tms-vacancy-action-block .tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}


/* v2.44.25 — modern compact social tiles + clearer Position / Area detail cards. */
.tms-vacancy-action-block .tms-invite-preview-meta{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin:2px 0!important;
}
.tms-vacancy-action-block .tms-invite-chip{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
  row-gap:3px!important;
  align-items:center!important;
  padding:11px 12px!important;
  border:1px solid #dfe7e3!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbf9 100%)!important;
  box-shadow:0 7px 18px rgba(30,68,52,.07)!important;
  min-width:0!important;
}
.tms-vacancy-action-block .tms-invite-chip:before{
  grid-column:1!important;
  grid-row:1 / 3!important;
  width:42px!important;
  height:42px!important;
  border-radius:13px!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  font-size:20px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:0 6px 14px rgba(0,0,0,.12)!important;
}
.tms-vacancy-action-block .tms-invite-chip.is-position:before{
  content:'★'!important;
  background:linear-gradient(135deg,#d9940c,#f2be3b)!important;
}
.tms-vacancy-action-block .tms-invite-chip.is-area:before{
  content:'⌖'!important;
  background:linear-gradient(135deg,#247bc4,#48a8e9)!important;
}
.tms-vacancy-action-block .tms-invite-chip>b{
  grid-column:2!important;
  grid-row:1!important;
  margin:0!important;
  color:#75847c!important;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:.03em!important;
}
.tms-vacancy-action-block .tms-invite-chip>strong{
  grid-column:2!important;
  grid-row:2!important;
  margin:0!important;
  color:#153d30!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:900!important;
  overflow-wrap:anywhere!important;
}
.tms-vacancy-action-block .tms-invite-chip.is-area>strong{
  color:#214d69!important;
  font-size:12.5px!important;
}

.tms-vacancy-action-block .tms-position-invite-actions{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(62px,1fr))!important;
  gap:7px!important;
  align-items:stretch!important;
  margin-top:4px!important;
}
.tms-vacancy-action-block .tms-position-invite-actions .tms-invite-btn{
  min-width:0!important;
  min-height:82px!important;
  padding:8px 4px!important;
  border:1px solid #dfe7e3!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 6px 16px rgba(31,71,53,.06)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  color:#355365!important;
  text-decoration:none!important;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important;
}
.tms-vacancy-action-block .tms-position-invite-actions .tms-invite-btn:hover,
.tms-vacancy-action-block .tms-position-invite-actions .tms-invite-btn:focus{
  transform:translateY(-2px)!important;
  border-color:#c8d8d0!important;
  background:#fcfefd!important;
  box-shadow:0 10px 22px rgba(31,71,53,.11)!important;
}
.tms-vacancy-action-block .tms-position-invite-actions .tms-invite-btn>b{
  color:#355365!important;
  font-size:9.5px!important;
  line-height:1.15!important;
  font-weight:800!important;
  text-align:center!important;
  white-space:normal!important;
}
.tms-vacancy-action-block .tms-position-invite-actions .tms-social-icon{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border:0!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  margin:0 auto!important;
  color:#fff!important;
  font-weight:950!important;
  line-height:1!important;
  box-shadow:0 6px 14px rgba(0,0,0,.13)!important;
  transform:none!important;
}
.tms-vacancy-action-block .tms-social-icon.is-line{
  background:linear-gradient(135deg,#08c75a,#00a83f)!important;
  font-family:Arial,sans-serif!important;
  font-size:10px!important;
  letter-spacing:-.04em!important;
}
.tms-vacancy-action-block .tms-social-icon.is-facebook{
  background:linear-gradient(135deg,#247df7,#0f58c9)!important;
  font-family:Arial,sans-serif!important;
  font-size:29px!important;
}
.tms-vacancy-action-block .tms-social-icon.is-telegram{
  background:linear-gradient(135deg,#43b9e9,#268fc0)!important;
  font-size:24px!important;
}
.tms-vacancy-action-block .tms-social-icon.is-twitter{
  background:linear-gradient(135deg,#3a3a3a,#111)!important;
  font-size:23px!important;
}
.tms-vacancy-action-block .tms-social-icon.is-email{
  background:linear-gradient(135deg,#ed8858,#ca5f31)!important;
  font-size:22px!important;
}
.tms-vacancy-action-block .tms-social-icon.is-copy{
  background:linear-gradient(135deg,#8ca2b2,#687f90)!important;
  font-size:20px!important;
}
.tms-vacancy-action-block .tms-social-icon.is-more{
  background:linear-gradient(135deg,#8c68ef,#6748c8)!important;
  font-size:24px!important;
}

@media(max-width:900px){
  .tms-vacancy-action-block .tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .tms-vacancy-action-block .tms-invite-preview-meta{grid-template-columns:1fr!important;gap:8px!important}
  .tms-vacancy-action-block .tms-invite-chip{grid-template-columns:40px minmax(0,1fr)!important;padding:10px!important}
  .tms-vacancy-action-block .tms-invite-chip:before{width:38px!important;height:38px!important;border-radius:12px!important;font-size:18px!important}
  .tms-vacancy-action-block .tms-invite-chip>strong{font-size:13px!important}
  .tms-vacancy-action-block .tms-invite-chip.is-area>strong{font-size:12px!important}
  .tms-vacancy-action-block .tms-position-invite-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
  .tms-vacancy-action-block .tms-position-invite-actions .tms-invite-btn{min-height:76px!important;border-radius:14px!important}
  .tms-vacancy-action-block .tms-position-invite-actions .tms-social-icon{width:42px!important;height:42px!important;min-width:42px!important;border-radius:13px!important}
}
@media(max-width:370px){
  .tms-vacancy-action-block .tms-position-invite-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}


/* v2.44.26 — simplify share preview: Position only, no Area card, force natural horizontal Thai text. */
.tms-vacancy-action-block .tms-invite-preview-meta{
  display:block!important;
  margin:2px 0!important;
}
.tms-vacancy-action-block .tms-invite-chip.is-position{
  display:block!important;
  padding:11px 12px!important;
  border:1px solid #dfe7e3!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  min-width:0!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}
.tms-vacancy-action-block .tms-invite-chip.is-position:before{display:none!important;content:none!important}
.tms-vacancy-action-block .tms-invite-chip.is-position>b{
  display:block!important;
  margin:0 0 4px!important;
  color:#6a7a72!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:800!important;
  writing-mode:horizontal-tb!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.tms-vacancy-action-block .tms-invite-chip.is-position>strong{
  display:block!important;
  margin:0!important;
  color:#163f31!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:900!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
.tms-vacancy-action-block .tms-invite-chip.is-area{display:none!important}
@media(max-width:560px){
  .tms-vacancy-action-block .tms-invite-chip.is-position{padding:10px!important}
  .tms-vacancy-action-block .tms-invite-chip.is-position>strong{font-size:14px!important}
}
