.lwh-workspace{background:#f1f5fb;min-height:72vh;padding:34px 0 66px;color:#132c4a;font-size:14px}
.mw-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px;flex-wrap:wrap}
.mw-identity{display:flex;align-items:center;gap:16px}
.mw-identity img{object-fit:contain;border-radius:14px;background:#e5efff;box-shadow:0 4px 18px #264d9420}
.mw-identity small{letter-spacing:.12em;font-size:10px;color:#2254b1;font-weight:800}
.mw-identity h1{font-size:clamp(23px,3vw,34px);line-height:1.15;margin:5px 0;font-weight:800;color:#0e3267}
.mw-identity p{margin:2px 0;color:#567090}
.mw-pill{border-radius:30px;background:#e2ebfa;color:#26559d;padding:9px 13px;font-size:12px;font-weight:700}
.mw-pill.ok{background:#dcf5e8;color:#16643b}.mw-pill.error{background:#ffebe9;color:#982e2e}
.mw-grid{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(310px,.93fr);gap:22px;align-items:start}
.mw-card{border:1px solid #dce5f0;background:#fff;border-radius:17px;padding:26px;box-shadow:0 13px 35px #0d396108}
.mw-card input[type=file],.mw-card select{width:100%;border:1px solid #c6d8ec;background:#fff;color:#173757;border-radius:9px;padding:12px;margin-top:9px;font:inherit}
.mw-card select:disabled{background:#eef2f7;color:#7386a3}.mw-label{font-weight:800;color:#153c72}.mw-label b{color:#135ab9;margin-right:3px}
.mw-muted{font-size:12px;color:#667f98;line-height:1.65}
.mw-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:19px 0}
.mw-fields label,.mw-card details label{display:block;font-size:12px;font-weight:800;color:#143d70}
.mw-card details{font-size:12px;color:#385776;margin:14px 0}.mw-card details summary{cursor:pointer;font-weight:700}
.mw-source-info{white-space:pre-wrap;background:#f4f7fc;border:1px solid #e0eaf5;padding:13px;border-radius:10px;margin:17px 0;color:#345a81;line-height:1.55}
.mw-check{display:flex;align-items:flex-start;gap:9px;margin:15px 0;font-size:12px;line-height:1.55;color:#415d78}.mw-check input{flex-shrink:0;margin-top:3px}
.mw-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.mw-btn{border:0;border-radius:9px;padding:13px 15px;font-weight:800;cursor:pointer;font-size:13px}
.mw-btn.blue{background:#1357bd;color:#fff}.mw-btn.green{background:#138451;color:#fff}.mw-btn.outline{border:1px solid #b8cce7;background:white;color:#184c8c;margin-top:12px}
.mw-btn:disabled{opacity:.46;cursor:not-allowed}
.mw-status{white-space:pre-wrap;background:#e8eff8;border-radius:9px;padding:13px;margin-top:17px;line-height:1.55;color:#3e5676}
.mw-status.error{background:#fff0ed;color:#a0242c}.mw-status.ok{background:#e5f5eb;color:#145b35}
.mw-aside h2{font-size:21px;color:#153b74;margin-top:1px}.mw-aside ol{padding-left:22px;color:#36556f;line-height:1.8}
.mw-aside li{padding-left:3px;margin-bottom:9px}.mw-aside h3{color:#153b74}.mw-warning{background:#fdf5e5;border-left:3px solid #d59c3d;padding:12px;border-radius:6px;color:#745226;line-height:1.55}
.mw-summary{white-space:pre-wrap;background:#f4f7fc;padding:13px;border-radius:8px;font-size:12px;line-height:1.6}
#resultTable{overflow:auto;max-height:330px;margin-top:12px}#resultTable table{width:100%;font-size:11px;border-collapse:collapse}#resultTable td,#resultTable th{border-bottom:1px solid #e5ecf5;text-align:left;padding:8px 6px;white-space:nowrap}
@media(max-width:820px){.mw-grid{grid-template-columns:1fr}.mw-card{padding:18px}.mw-fields{grid-template-columns:1fr}}

/* V22.1: isolate the faculty workspace from legacy ERP global form rules. */
.lwh-workspace, .lwh-workspace * { box-sizing:border-box; }
.lwh-workspace .container { min-width:0; }
.lwh-workspace .mw-grid, .lwh-workspace .mw-card,
.lwh-workspace .mw-check, .lwh-workspace .mw-check span { min-width:0; }
.lwh-workspace .mw-check { display:grid; grid-template-columns:18px minmax(0,1fr); align-items:start; column-gap:11px; margin:18px 0; width:100%; line-height:1.55; }
.lwh-workspace .mw-check input[type="checkbox"] { width:18px !important; height:18px; min-width:18px; max-width:18px; margin:1px 0 0 !important; padding:0; flex:none; accent-color:#1357bd; box-shadow:none; }
.lwh-workspace .mw-check span { display:block; width:auto; max-width:100%; overflow-wrap:break-word; font-weight:500; }
.lwh-workspace .mw-card input[type="file"] { max-width:100%; min-width:0; overflow:hidden; }
.lwh-workspace .mw-card select { max-width:100%; min-width:0; }
.lwh-workspace .mw-actions .mw-btn { min-width:0; width:100%; }
.lwh-workspace .mw-source-info,.lwh-workspace .mw-status,.lwh-workspace .mw-summary { overflow-wrap:anywhere; }
.lwh-workspace .mw-aside p { overflow-wrap:break-word; }
.lwh-workspace #bridgeReconnect { margin:6px 0 0; font-size:12px; padding:8px 11px; }
@media(max-width:980px){ .lwh-workspace .mw-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:480px){ .lwh-workspace .mw-actions { grid-template-columns:1fr; } .lwh-workspace .mw-heading { align-items:flex-start; } }

.lwh-workspace .mw-bridge-state { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.lwh-workspace [hidden] { display:none !important; }

/* V22.3: compact, logo-free workspace heading. Site-wide branding remains in the navbar. */
.lwh-workspace .mw-heading{margin-bottom:20px;gap:12px 24px}
.lwh-workspace .mw-title{min-width:0}
.lwh-workspace .mw-title h1{margin:0 0 5px;font-size:clamp(23px,2.2vw,29px);line-height:1.18;letter-spacing:-.02em;font-weight:750;color:#103767}
.lwh-workspace .mw-title p{margin:0;color:#627891;font-size:13px;line-height:1.45}
@media(max-width:620px){.lwh-workspace .mw-heading{align-items:flex-start}.lwh-workspace .mw-bridge-state{justify-content:flex-start}}

/* Google Sheets destination: self-contained, responsive, does not change TCS controls. */
.lwh-workspace .mw-google{margin-top:22px}
.lwh-workspace .mw-google-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:17px}
.lwh-workspace .mw-google-head h2{color:#123b72;margin:0 0 5px;font-size:22px}
.lwh-workspace .mw-google-head p{color:#607996;margin:0;font-size:13px;line-height:1.5}
.lwh-workspace .mw-google-tag{color:#1552a4;background:#e6f0ff;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:800;white-space:nowrap}
.lwh-workspace .mw-google-grid{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);gap:24px}
.lwh-workspace .mw-google-grid>div,.lwh-workspace .mw-google-grid aside{min-width:0}
.lwh-workspace .mw-google-grid label{display:block;font-size:12px;font-weight:750;color:#163d71;margin-top:9px}
.lwh-workspace .mw-google-grid input[type=url],.lwh-workspace .mw-google-grid input[type=text],.lwh-workspace .mw-google-grid input#gsManualCol,.lwh-workspace .mw-google-grid select{display:block;width:100%;min-width:0;border:1px solid #c6d8ec;border-radius:9px;background:white;color:#163757;padding:11px;font:inherit;margin:7px 0 0}
.lwh-workspace .mw-google-row{display:grid;grid-template-columns:1fr 1.3fr;align-items:end;gap:10px;margin:10px 0}
.lwh-workspace .mw-google-row .mw-btn{min-height:41px;margin:0;width:100%}
.lwh-workspace .mw-google-help{border-left:1px solid #e1eaf5;padding-left:22px}
.lwh-workspace .mw-google-help h3{color:#153b74;margin:0 0 11px;font-size:18px}
.lwh-workspace .mw-google-help ol{padding-left:21px;color:#3e5872;line-height:1.7}
.lwh-workspace .mw-google-help li{margin-bottom:8px}
.lwh-workspace #gsResultTable{max-height:340px;overflow:auto}
.lwh-workspace #gsResultTable table{width:100%;border-collapse:collapse;font-size:11px}
.lwh-workspace #gsResultTable th,.lwh-workspace #gsResultTable td{padding:8px 6px;white-space:nowrap;text-align:left;border-bottom:1px solid #e1eaf2}
@media(max-width:950px){.lwh-workspace .mw-google-grid{grid-template-columns:1fr}.lwh-workspace .mw-google-help{padding:15px 0 0;border-left:0;border-top:1px solid #e1eaf5}}
@media(max-width:540px){.lwh-workspace .mw-google-row{grid-template-columns:1fr}.lwh-workspace .mw-google-head h2{font-size:19px}}

/* V25: distinct source file controls for Google Sheets; TCS controls stay independent. */
.lwh-workspace .mw-google-source{padding:17px 17px 7px;border:1px solid #d9e6f6;border-radius:13px;background:#f8fbff;margin-bottom:20px}
.lwh-workspace .mw-google-source .mw-label{font-size:14px}
.lwh-workspace .mw-google-source input[type=file]{width:100%;margin-top:12px;background:#fff}
.lwh-workspace .mw-google-source .mw-fields{margin:14px 0 10px}
.lwh-workspace .mw-google-source .mw-source-info{margin:14px 0}
.lwh-workspace .mw-google-tip{margin:4px 0 10px}
.lwh-workspace .mw-google-destination{padding-top:4px}
.lwh-workspace .mw-google-reg{margin:12px 0}
.lwh-workspace .mw-google-reg select{margin-top:8px}
.lwh-workspace #gsSourceInfo{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}

/* V25.1: safe, no-OAuth destination-grid clipboard fallback for XLSX compatibility mode. */
.lwh-workspace .mw-sheet-fallback{margin:15px 0;padding:17px;border:1px solid #d8e3f4;border-radius:11px;background:#f8fbff;color:#2d5278}
.lwh-workspace .mw-sheet-fallback h4{margin:0 0 7px;color:#113c74;font-size:15px}
.lwh-workspace .mw-sheet-fallback p,.lwh-workspace .mw-sheet-fallback li{font-size:12px;line-height:1.6}
.lwh-workspace .mw-sheet-fallback ol{padding-left:19px;margin:7px 0 12px}
.lwh-workspace .mw-sheet-fallback textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:78px;padding:11px;border:1px solid #b8d0ef;border-radius:9px;background:white;color:#23435f;font:12px/1.4 monospace;resize:vertical}
.lwh-workspace .mw-sheet-fallback .mw-btn{margin:10px 0 6px}
.lwh-workspace .mw-sheet-fallback code{font-size:12px;color:#1959a5}


/* V26 local Excel-to-Excel workflow. Isolated from the existing TCS interface. */
.lwh-workspace .mw-offline{margin-top:22px}
.lwh-workspace .mw-offline .mw-google-head h2{font-size:22px}
.lwh-workspace .mw-offline-stage{background:#f8fbff;border:1px solid #e0eaf7;border-radius:12px;padding:17px;margin-bottom:15px}
.lwh-workspace .mw-offline-stage .mw-fields{margin:14px 0}
.lwh-workspace .mw-offline-stage input[type=file]{margin:10px 0 2px}
.lwh-workspace .mw-offline-stage label,.lwh-workspace .mw-offline-settings label,.lwh-workspace .mw-offline-strong{display:block;font-size:12px;font-weight:750;color:#153b70}
.lwh-workspace .mw-offline-stage select{width:100%;border:1px solid #c6d8ec;border-radius:9px;padding:11px;background:#fff;color:#163757;margin-top:8px}
.lwh-workspace .mw-offline-stage select:disabled{background:#f0f4f9;color:#8191a5}
.lwh-workspace .mw-offline-stage details{margin:10px 0}
.lwh-workspace .mw-offline .mw-source-info{margin:12px 0 0}
.lwh-workspace .mw-offline-settings input[type=number]{width:100%;padding:10px;margin:7px 0 0;border:1px solid #c6d8ec;border-radius:9px;background:#fff;color:#163757}
.lwh-workspace .mw-offline-settings .mw-check{margin:14px 0}
.lwh-workspace .mw-offline-results{max-height:330px;overflow:auto;margin-top:10px}
.lwh-workspace .mw-offline-results table{border-collapse:collapse;font-size:11px;width:100%}
.lwh-workspace .mw-offline-results td,.lwh-workspace .mw-offline-results th{padding:8px;text-align:left;border-bottom:1px solid #e1e9f3;white-space:nowrap}
.lwh-workspace .mw-offline .mw-btn.outline{margin-bottom:6px}
.lwh-workspace .mw-optional-google{background:#fff;border:1px solid #dbe6f2;border-radius:13px;padding:14px;margin-top:22px}
.lwh-workspace .mw-optional-google>summary{font-weight:750;color:#395d83;cursor:pointer;font-size:13px}
.lwh-workspace .mw-optional-google .mw-google{margin-top:15px;box-shadow:none}

.lwh-workspace .mw-local-sub{display:none}
.lwh-excel-mode .lwh-workspace .mw-normal-sub,.lwh-excel-mode .lwh-workspace .mw-grid,.lwh-excel-mode .lwh-workspace .mw-bridge-state,.lwh-excel-mode .lwh-workspace .mw-optional-google{display:none !important}
.lwh-excel-mode .lwh-workspace .mw-local-sub{display:block}
.lwh-excel-mode .lwh-workspace .mw-offline{margin-top:0}
