/* v35 workspace refinement. Scoped rules preserve the existing editors. */
:root{--hub-text-muted:#596579;--hub-line:#e2e7ef;--hub-radius:10px}
body{font-size:14px;line-height:1.45}bisp-shell{font-family:var(--hub-font)}
.hub-nav a{font-size:14px;padding-top:12px;padding-bottom:12px}.hub-brand small,.hub-health,.hub-version{font-size:12px}
.hub-utilities>a,.hub-utilities>button{font-size:13px;min-height:36px}
#root table th,.grid th{font-size:13px!important;font-weight:500!important}
#root table td,.grid,.data-cell{font-size:14px}.grid td,.grid .data-cell{height:42px}
.grid .data-cell{font-weight:400}.grid .name{font-weight:500}
.quickinput{font-size:14px}.quickinput::placeholder{color:#667387;opacity:1}
.grid .quickrow td{background:#fff!important}.grid .quickrow:hover td{background:#f4f8ff!important}
.grid .hub-sheet-empty{padding:16px 12px;background:#f8fafc;color:#526076;font-size:13px;white-space:normal}
.hub-enquiry-search{width:clamp(180px,25vw,340px);height:38px;border:1px solid #cbd3df;border-radius:8px;padding:8px 12px;background:white;font-size:14px;color:#172033}
.sheetbar{min-height:52px;gap:12px}.sheetbarleft{flex-wrap:wrap}.sheetbarright{flex-wrap:wrap}.filtersummary{font-size:13px}
.footerhint{font-size:12px;color:#596579;line-height:1.5}.todaybtn{font-size:13px!important;padding:0 12px!important}
.hub-batch-row{background:#fff!important;min-height:76px;box-shadow:none;gap:20px}
.hub-batch-row:hover{border-color:#a8c7fa!important;background:#f8fbff!important}
.hub-batch-row>button>div:first-child{font-size:15px!important;font-weight:500!important}
.hub-batch-row>button>div:nth-child(2){font-size:13px!important;color:#526076!important}
.hub-batch-row>div{flex-wrap:wrap;justify-content:flex-end;max-width:48%}
.hub-batch-warning{display:inline-block;margin:6px 0 0 8px;padding:3px 9px;border-radius:6px;background:#fff3cd;color:#805500;font-size:12px;font-weight:500}
.hub-batch-row>button:focus-visible{outline:2px solid #1769d2;outline-offset:5px}
/* TWI */
body:has(#batchSelect) .sub,body:has(#batchSelect) .hero-meta,body:has(#batchSelect) .admission-meta{font-size:13px;color:#596579}
body:has(#batchSelect) .side-head .title{display:none}
body:has(#batchSelect) .field label{text-transform:none;letter-spacing:0;font-size:13px;color:#526076}
#batchSelect{margin-top:8px}#batchSearch{font-size:14px}
body:has(#batchSelect) .admission{padding:12px 14px}body:has(#batchSelect) .admission-name{font-size:14px}
body:has(#batchSelect) .content-inner{padding-top:20px}
.twi-actionbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 0;background:#f8f9fa;border-bottom:1px solid #dfe4ec}
.twi-actionbar .btn{text-decoration:none;font-size:14px;min-height:40px}
.twi-edit-note{padding:10px 12px;background:#eaf2ff;border-radius:8px;color:#244972;font-size:14px;margin:8px 0 14px}
.twi-group-title{font-size:15px;font-weight:500;color:#172033;margin:20px 0 10px}
body:has(#batchSelect) .data-grid{grid-template-columns:repeat(3,minmax(0,1fr));border-color:#e2e7ef}
body:has(#batchSelect) .data-cell{height:auto;min-height:78px;padding:12px;display:block}
body:has(#batchSelect) .data-cell label{font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;color:#526076;margin-bottom:8px}
body:has(#batchSelect) .data-cell input,body:has(#batchSelect) .data-cell textarea{font-size:14px;line-height:1.5;min-height:25px}
body:has(#batchSelect) .data-cell textarea{min-height:68px}
body:has(#batchSelect) .section-title{font-size:17px;font-weight:500}
body:has(#batchSelect) .form-name{font-size:15px;font-weight:500}body:has(#batchSelect) .form-doc,body:has(#batchSelect) .form-desc{font-size:13px;color:#596579}
#formSet{scroll-margin-top:120px}#formSet>.sub{margin-bottom:14px}
@media(max-width:1000px){body:has(#batchSelect) .data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-batch-row{align-items:flex-start!important}.hub-batch-row>div{gap:8px!important}}
@media(max-width:720px){.sheetbar{align-items:flex-start;flex-wrap:wrap;overflow:visible}.sheetbarleft{width:100%}.hub-enquiry-search{flex:1;width:auto;min-width:120px}.hub-batch-row{flex-direction:column!important;gap:10px}.hub-batch-row>div{max-width:100%;justify-content:flex-start}.hub-batch-warning{margin-left:0}.twi-actionbar .btn{flex:1;justify-content:center;font-size:13px}.twi-actionbar{position:static}body:has(#batchSelect) .data-grid{grid-template-columns:1fr}.hub-nav a{font-size:13px}.grid .data-cell{font-size:14px}.todaybtn{display:block!important}}
.compact .grid td,.compact .grid .data-cell{height:34px}.compact .grid .data-cell{padding:5px 8px}
@media(max-width:720px){.hub-version{max-width:140px;overflow-wrap:anywhere;line-height:1.3}}

/* v36: original Institute PNG, with its native proportions and white background. */
.hub-brand{gap:20px;flex-shrink:0}.hub-institute-logo{display:block;width:190px;height:auto;max-width:100%;object-fit:contain}.hub-product-name{padding-left:20px;border-left:1px solid #dfe4ec;font-size:16px;font-weight:500;white-space:nowrap}.hub-header{min-height:78px}.hub-version{font-size:11px}
@media(max-width:720px){.hub-header{gap:10px}.hub-brand{gap:10px;max-width:100%}.hub-institute-logo{width:145px}.hub-product-name{padding-left:10px;font-size:14px}.hub-utilities{margin-left:auto}.hub-version{font-size:10px}}
@media(max-width:380px){.hub-institute-logo{width:125px}.hub-product-name{font-size:13px}}
/* Frozen enquiry row number and CRM record view. */
.grid .hub-row-tools{position:sticky;left:32px;z-index:4;background:#fff;width:86px;min-width:86px;max-width:86px;text-align:center;color:#526076;font-size:12px}
.grid th.hub-row-tools{z-index:7;background:#f8fafc}
.grid .stickyname{left:118px!important}
.hub-lead-record{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:32px;height:32px;margin-left:6px;padding:0;border:0;border-radius:6px;background:#eaf2ff;color:#1558b0;cursor:pointer}
.hub-lead-record:hover{background:#d3e3fd}.hub-lead-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:12px 0}.hub-lead-fields>div{padding:12px 0;border-bottom:1px solid #e2e7ef}.hub-lead-fields dt{font-size:12px;color:#526076}.hub-lead-fields dd{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0}
@media(max-width:720px){.hub-lead-fields{grid-template-columns:1fr}}

/* v39: compact supplied star, with consistent alignment at every breakpoint. */
.hub-brand{gap:10px}.hub-institute-logo{width:36px;height:36px;max-width:none;flex:0 0 36px;border-radius:7px}.hub-product-name{padding-left:0;border-left:0;font-size:16px}.hub-header{min-height:62px}
@media(max-width:720px){.hub-institute-logo{width:32px;height:32px;flex-basis:32px}.hub-product-name{font-size:14px}}

.mail-file-option{display:flex!important;align-items:center;gap:8px;padding:7px 0}.mail-file-option input{width:auto!important;flex:none}.mail-file-option small{color:#667085}.mail-settings-grid{display:grid;gap:12px}.mail-settings-grid label{display:grid;gap:5px}.mail-settings-grid textarea{min-height:180px}.mail-resource-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}#mailSettings{background:#fff;border:1px solid #e0e5ee;padding:20px;border-radius:12px}#mailSettings input:not([type=checkbox]),#mailSettings select,#mailSettings textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #d8deea;border-radius:7px}#mailSettings h3{margin-top:18px}#mfiles{max-height:180px;overflow:auto}
.hub-batch-edit{padding:6px 12px;background:#fff;color:#1967d2;border:1px solid #dadce0;border-radius:7px;cursor:pointer;font:inherit;font-size:13px}.hub-batch-editor{width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto;box-sizing:border-box;border:1px solid #dadce0;border-radius:16px;padding:24px;font-family:inherit;color:#202124}.hub-batch-editor::backdrop{background:rgba(32,33,36,.35)}.hub-batch-editor h2{font-size:20px;margin-top:0}.hub-batch-editor label{display:grid;gap:6px;margin-bottom:14px;font-size:13px}.hub-batch-editor input,.hub-batch-editor select{width:100%;box-sizing:border-box;padding:10px;border:1px solid #dadce0;border-radius:7px;background:#fff;font:inherit}.hub-batch-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.hub-batch-editor button{padding:9px 15px;border:1px solid #dadce0;border-radius:7px;cursor:pointer}.hub-batch-editor button[type=submit]{background:#1a73e8;color:white}.hub-batch-editor button:disabled{opacity:.5;cursor:default}#editBatchStatus{color:#b3261e;font-size:13px}
.hub-draft-admissions{padding:8px 16px;border-bottom:1px solid #dadce0;max-height:40vh;overflow:auto;background:#fffdf5;flex-shrink:0}.hub-draft-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px}.hub-draft-admissions button{padding:7px 12px;border:1px solid #dadce0;border-radius:6px;background:white;color:#1967d2;cursor:pointer}.hub-draft-admissions button:disabled{opacity:.5;cursor:default}.hub-draft-scroll{overflow:auto;margin-top:10px}.hub-draft-scroll table{border-collapse:collapse;font-size:12px}.hub-draft-scroll th,.hub-draft-scroll td{padding:5px;border:1px solid #dadce0;text-align:left}.hub-draft-scroll input{padding:8px;border:1px solid #dadce0;border-radius:4px;font:inherit}.hub-draft-error{color:#b3261e;min-width:220px;white-space:normal}.hub-draft-admissions p{font-size:12px}
