#mapStudioRoot{font-size:14px;line-height:1.45;--ms-table-font:14px}
#mapStudioRoot .ms-grid{font-size:var(--ms-table-font)!important}
#mapStudioRoot .ms-no-inspector .ms-inspector,#mapStudioRoot.ms-no-inspector .ms-inspector{display:none}
#mapStudioRoot.ms-no-inspector .ms-workarea{grid-template-columns:1fr}
#mapStudioRoot [hidden]{display:none!important}
.ms-span2{grid-column:1/-1}.ms-change-fields textarea{width:100%;min-height:90px;font:15px/1.6 Consolas,monospace;padding:10px;border:1px solid #9cb5ab;border-radius:5px}
#msSearchResults{max-height:40vh;overflow:auto}.ms-check-label{display:flex;align-items:center;gap:10px;margin:12px 0}
.ms-diff-table{border-collapse:collapse;width:100%;font:14px Consolas,monospace}.ms-diff-table td,.ms-diff-table th{padding:10px;border-bottom:1px solid #c7d5cc;text-align:right}.ms-diff-table th{position:sticky;top:0;background:#e4efea}.ms-diff-table small{display:block;font:12px/1.5 system-ui;color:#45625a}.ms-diff-table button{border:0;background:none;color:#12639c;font:700 14px Consolas,monospace;cursor:pointer}.ms-diff-table input{width:18px;height:18px;accent-color:#12639c}
#mapStudioRoot .ms-layout{grid-template-columns:260px minmax(0,1fr)}
#mapStudioRoot .ms-main{min-width:0}
#mapStudioRoot .ms-workarea{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-width:0;align-items:stretch}
#mapStudioRoot .ms-viewport{height:clamp(510px,64vh,850px);min-width:0;position:relative}
#mapStudioRoot .ms-viewport canvas{aspect-ratio:1100/650;max-height:100%;max-width:100%}
#mapStudioRoot .ms-inspector{border-left:1px solid #b7c7c0;background:#f9fcfb;overflow:auto;max-height:clamp(510px,64vh,850px);padding:20px;color:#143d49;font-size:15px}
.ms-inspector header{border-bottom:1px solid #c7d5d0;padding-bottom:16px}.ms-inspector h3{font-size:19px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}.ms-inspector h4{font-size:15px;margin:0 0 12px}.ms-inspector header p{font-size:14px;line-height:1.5;color:#45605a;margin:0;overflow-wrap:anywhere}.ms-detail-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.3px;color:#186a9e}.ms-inspector section{padding:18px 0;border-bottom:1px solid #c7d5d0}.ms-value-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ms-value-pair>div{border:1px solid #c4d6d8;border-radius:6px;padding:10px;background:#eaf3f8}.ms-value-pair span{display:block;font-size:12px;font-weight:800;color:#45626e}.ms-value-pair strong{display:block;font:700 20px/1.5 Consolas,monospace;overflow-wrap:anywhere;color:#12639c}.ms-detail-unit{margin:7px 0;font-size:14px;font-weight:700}.ms-inspector dl{margin:0}.ms-detail-field{display:grid;grid-template-columns:minmax(80px,.85fr) minmax(0,1.15fr);gap:10px;padding:7px 0;border-bottom:1px solid #e0e9e5}.ms-detail-field dt{font-size:13px;color:#41605c}.ms-detail-field dd{font:14px/1.55 Consolas,monospace;margin:0;text-align:right;color:#0b3448;overflow-wrap:anywhere}.ms-detail-technical{padding-top:18px}.ms-detail-technical summary{font-size:15px;font-weight:800;cursor:pointer}.ms-definition-id{font:12px/1.6 Consolas,monospace;color:#3e605c;overflow-wrap:anywhere;background:#e9f0ee;padding:10px;border-radius:4px}.ms-detail-notes{color:#775500;font-size:13px}
#mapStudioRoot .ms-maphead h3{font-size:20px;line-height:1.4}#mapStudioRoot .ms-maphead p{font-size:13px;color:#355a64}#mapStudioRoot .ms-mapitem{font-size:14px;line-height:1.4;padding:11px 9px}#mapStudioRoot .ms-mapitem small{font-size:11px;color:#43635f}#mapStudioRoot .ms-tree summary{font-size:14px;padding:13px 5px}#mapStudioRoot .ms-grid{font-size:13px}#mapStudioRoot .ms-grid td button{min-height:36px}#mapStudioRoot .ms-grid th{font-size:12px;color:#244d50}#mapStudioRoot .ms-grid th[data-row],#mapStudioRoot .ms-grid th[data-column]{cursor:pointer}#mapStudioRoot .ms-grid th[data-row]:hover,#mapStudioRoot .ms-grid th[data-column]:hover{background:#c4dff2}
#mapStudioRoot .ms-open-tab button{font-size:13px;padding:12px}#mapStudioRoot .ms-cursor{font-size:13px;line-height:1.6;white-space:normal}#mapStudioRoot .ms-tabs button{font-size:14px}#mapStudioRoot .ms-edit label,#mapStudioRoot .ms-data-tools{font-size:13px}#mapStudioRoot .ms-edit small{font-size:12px;line-height:1.5;color:#46635d}
.ms-methodbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:12px;background:#edf3f0;border-bottom:1px solid #baccc2}.ms-methodbar .btn,.ms-methodbar select{font-size:13px;min-height:36px;padding:7px 11px}.ms-methodbar select{border:1px solid #a1b8ae;background:#fff;border-radius:4px}
#mapStudioRoot .ms-dialog{width:min(720px,92vw);max-width:920px;max-height:90vh;font-size:15px;padding:26px;background:#f7fbf9;color:#143949}#mapStudioRoot .ms-dialog h3{font-size:23px;margin:0 0 18px}#mapStudioRoot .ms-dialog p{font-size:15px;line-height:1.6}#mapStudioRoot .ms-dialog dt{font-size:14px}#mapStudioRoot .ms-dialog dd{font-size:15px;line-height:1.7}#mapStudioRoot .ms-dialog .btn{min-height:40px;font-size:14px}
.ms-change-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ms-change-fields label,.ms-similar-targets>label{display:flex;flex-direction:column;gap:9px;font-size:14px;font-weight:700}.ms-change-fields input:not([type=checkbox]),.ms-change-fields select,.ms-similar-targets select{width:100%;height:46px;padding:10px;border:1px solid #9cb5ab;border-radius:5px;background:white;font-size:16px;color:#173f49}.ms-change-fields label:has(input[type=checkbox]){flex-direction:row;align-items:center;font-weight:500}.ms-change-preview{padding:15px;margin-top:18px;border:1px solid #b7d0df;background:#e7f2fa;border-radius:6px;font-size:15px;line-height:1.6;min-height:64px}.ms-similar-targets{margin-top:18px}.ms-similar-list{max-height:320px;overflow:auto;border:1px solid #b8cbc1;margin-top:12px;border-radius:5px}.ms-similar-list>label{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid #d1ded7;font-size:15px;cursor:pointer}.ms-similar-list small{display:block;font:12px/1.6 Consolas,monospace;color:#45645f}.ms-similar-list input{width:19px;height:19px;accent-color:#1467ac}.is-similar .ms-change-fields{display:none}
#mapStudioRoot .ms-context-menu{width:310px;max-height:85vh;overflow:auto;padding:6px;z-index:15000}#mapStudioRoot .ms-context-menu button{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px;min-height:39px;padding:9px 12px}#mapStudioRoot .ms-context-menu kbd{font:11px/1.4 system-ui;color:#63766e;white-space:nowrap}.ms-context-menu hr{border:0;border-top:1px solid #ccd8d1;margin:5px 0}
#mapStudioRoot .ms-wide-dialog{width:min(960px,94vw)}.ms-difference-row{display:grid;grid-template-columns:110px 65px minmax(0,1fr);gap:12px;width:100%;padding:12px;text-align:left;border:0;border-bottom:1px solid #cbdad2;background:#f5faf7;color:#163d4c;font-size:14px;cursor:pointer}.ms-difference-row:hover{background:#dcecf8}.ms-difference-row code{overflow-wrap:anywhere}#msDifferenceList{max-height:55vh;overflow:auto}
.ms-property-tabs{display:flex;gap:5px;margin-bottom:16px;border-bottom:1px solid #b7c9bf}.ms-property-tabs button{border:0;padding:12px 20px;font-size:15px;background:transparent;color:#315b61;cursor:pointer}.ms-property-tabs button.active{background:#1467ac;color:white}.ms-property-grid{display:grid;grid-template-columns:160px minmax(0,1fr);gap:0}.ms-property-grid dt,.ms-property-grid dd{margin:0!important;padding:11px 8px;border-bottom:1px solid #d7e2dc}.ms-axis-values{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:7px;max-height:40vh;overflow:auto;padding:12px 0}.ms-axis-values span{background:#e7f1ed;border:1px solid #c8d9d0;border-radius:4px;padding:9px;font:14px Consolas,monospace}.ms-axis-values small{display:block;color:#5c7870;margin-bottom:5px;font:11px system-ui}
#mapStudioRoot.ms-focus-mode{position:fixed;inset:8px;z-index:12000;background:#e0e9e4;padding:20px;overflow:auto;box-shadow:0 0 0 20px #233d3570}#mapStudioRoot.ms-focus-mode .ms-heading{display:none}#mapStudioRoot.ms-focus-mode .ms-layout{grid-template-columns:260px minmax(0,1fr)}
@media(max-width:1450px){#mapStudioRoot .ms-layout{grid-template-columns:220px minmax(0,1fr)}#mapStudioRoot .ms-workarea{grid-template-columns:minmax(0,1fr) 260px}#mapStudioRoot .ms-inspector{padding:15px}.ms-detail-field{grid-template-columns:1fr}.ms-detail-field dd{text-align:left}}
@media(max-width:1100px){#mapStudioRoot .ms-workarea{grid-template-columns:1fr}#mapStudioRoot .ms-inspector{max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;border-left:0;border-top:1px solid #b7c7c0}.ms-inspector section{padding:8px 0}.ms-detail-field{grid-template-columns:1fr 1fr}.ms-detail-field dd{text-align:right}}
@media(max-width:760px){#mapStudioRoot .ms-layout,#mapStudioRoot.ms-focus-mode .ms-layout{grid-template-columns:1fr}#mapStudioRoot .ms-inspector,.ms-change-fields{grid-template-columns:1fr}#mapStudioRoot .ms-viewport{height:470px}.ms-property-grid{grid-template-columns:1fr}#mapStudioRoot .ms-context-menu{max-width:90vw}.ms-difference-row{grid-template-columns:1fr}}
#mapStudioRoot .ms-grid [data-cell].ms-cell-cursor{box-shadow:inset 0 0 0 2px #783d98;position:relative}

/* Reading workspace: fixed axes, calm table, separate selection and MOD states. */
#mapStudioRoot{--ms-table-font:14px}
#mapStudioRoot .ms-heading{margin-bottom:8px}
#mapStudioRoot .ms-heading h2{font-size:24px;margin:2px 0 4px}
#mapStudioRoot>.ms-toolbar{margin:10px 0;gap:6px}
#mapStudioRoot .ms-project-disclosure{margin:5px 0 10px;font-size:12px;color:#365a65}
#mapStudioRoot .ms-project-disclosure>summary{cursor:pointer;width:fit-content;padding:7px 0;font-weight:700}
#mapStudioRoot .ms-project-tools{padding:8px 0;margin:0}
#mapStudioRoot .ms-fileline{padding:10px 14px}
#mapStudioRoot .ms-automatch{padding:9px 12px;margin:8px 0}
#mapStudioRoot .ms-notice{min-height:28px;padding:6px 0;font-size:12px}
#mapStudioRoot .ms-layout{grid-template-columns:250px minmax(0,1fr);gap:10px;align-items:stretch}
#mapStudioRoot .ms-sidebar,#mapStudioRoot .ms-main{border-radius:5px;box-shadow:none}
#mapStudioRoot .ms-tree{max-height:calc(78vh + 120px)}
#mapStudioRoot .ms-tree summary{padding:11px 4px;font-size:13px}
#mapStudioRoot .ms-mapitem{font-size:13px;padding:9px 7px;line-height:1.4}
#mapStudioRoot .ms-mapitem small{font-size:11px}
#mapStudioRoot .ms-map-review-flag{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:6px;border-radius:3px;background:#fff1ce;color:#885211;font-size:12px;font-weight:900;border:1px solid #c79b45}
#mapStudioRoot .ms-open-tab{max-width:330px}
#mapStudioRoot .ms-open-tab button{padding:10px 9px;font-size:12px}
#mapStudioRoot .ms-maphead{padding:11px 14px}
#mapStudioRoot .ms-maphead h3{font-size:18px;line-height:1.3;margin-bottom:4px}
#mapStudioRoot .ms-maphead p{font-size:12px}
#mapStudioRoot .ms-workarea{grid-template-columns:minmax(0,1fr) 258px}
#mapStudioRoot .ms-viewport{height:clamp(470px,63vh,900px);scrollbar-gutter:stable;overscroll-behavior:contain}
#mapStudioRoot .ms-inspector{padding:15px;max-height:clamp(470px,63vh,900px);font-size:15px;line-height:1.55;background:#f6f9fa}
#mapStudioRoot .ms-inspector header{padding-bottom:12px}
#mapStudioRoot .ms-inspector h3{font-size:18px;line-height:1.35;margin:6px 0}
#mapStudioRoot .ms-inspector header p{font-size:13px}
#mapStudioRoot .ms-inspector header code{display:block;margin-top:9px;font:12px/1.5 Consolas,monospace;color:#456674}
#mapStudioRoot .ms-inspector h4{font-size:14px;margin-bottom:9px}
#mapStudioRoot .ms-inspector section{padding:13px 0}
#mapStudioRoot .ms-detail-field{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px;padding:7px 0}
#mapStudioRoot .ms-detail-field dt{font-size:14px}
#mapStudioRoot .ms-detail-field dd{font-size:14px;text-align:right;line-height:1.45}
#mapStudioRoot .ms-value-pair{gap:6px}
#mapStudioRoot .ms-value-pair>div{padding:8px;border-radius:4px}
#mapStudioRoot .ms-value-pair strong{font-size:20px;line-height:1.55;font-variant-numeric:tabular-nums}
#mapStudioRoot .ms-detail-technical{padding-top:13px}
#mapStudioRoot .ms-detail-technical summary{font-size:14px}
#mapStudioRoot .ms-inspector-hint{font-size:13px;line-height:1.6;color:#456674;padding:10px 0}
#mapStudioRoot .ms-table-options{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:8px 14px;background:#edf2f3;border-bottom:1px solid #bfccd0;font-size:12px}
#mapStudioRoot .ms-table-options label{display:flex;align-items:center;gap:6px}
#mapStudioRoot .ms-table-options select{font:inherit;color:#183f53;padding:5px 8px;border:1px solid #aabdc4;border-radius:4px;background:#fff}
#mapStudioRoot .ms-table-options input{accent-color:#1467ac}
#mapStudioRoot .ms-table-key{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:11px;color:#385663}
.ms-table-key i{width:10px;height:10px;border-radius:2px}.ms-table-key .selection{background:#2c6895}.ms-table-key .change{background:#c82d44;margin-left:8px}
#mapStudioRoot .ms-axis-review{padding:10px 14px;background:#fff8e8;border-block:1px solid #e1c992;color:#674b17;font-size:12px;line-height:1.55}
#mapStudioRoot .ms-axis-review.blocked{background:#fff3df;border-left:4px solid #b37516}
#mapStudioRoot .ms-axis-review p{margin:3px 0}
#mapStudioRoot .ms-axis-review small{font-size:11px}
#mapStudioRoot .ms-grid{border-spacing:0;min-width:100%;width:max-content;table-layout:auto;font:var(--ms-table-font)/1.3 Consolas,'Cascadia Mono',monospace;font-variant-numeric:tabular-nums}
#mapStudioRoot .ms-grid td{min-width:72px;border-right:1px solid var(--ms-grid-line);border-bottom:1px solid var(--ms-grid-line);background:var(--ms-cell)}
#mapStudioRoot .ms-grid td button{min-height:32px;padding:6px 9px;font:inherit;border:1px solid transparent;border-radius:0;background:var(--ms-cell);color:var(--ms-cell-text);white-space:nowrap}
#mapStudioRoot .ms-grid th{font-size:12px;padding:9px 10px;white-space:nowrap;font-weight:700;background:var(--ms-axis);color:var(--ms-axis-text);border-right:1px solid var(--ms-grid-line);border-bottom:1px solid var(--ms-grid-line)}
#mapStudioRoot .ms-grid thead th{position:sticky;top:0;left:auto;z-index:3}
#mapStudioRoot .ms-grid thead th:first-child{left:0;z-index:4;min-width:90px}
#mapStudioRoot .ms-grid tbody th{position:sticky;left:0;top:auto;z-index:2}
#mapStudioRoot .ms-grid th[data-row]:hover,#mapStudioRoot .ms-grid th[data-column]:hover{background:var(--ms-axis-hover)}
#mapStudioRoot .ms-grid td button:hover{background:var(--ms-hover)!important}
#mapStudioRoot .ms-grid td button.selected{background:var(--ms-selected)!important;color:var(--ms-selected-text)!important;border-color:#6faadd;box-shadow:inset 0 0 0 1px #6faadd}
#mapStudioRoot .ms-grid [data-cell].ms-cell-cursor{position:static;box-shadow:inset 0 0 0 2px #a5c9ec}
#mapStudioRoot .ms-grid td button.changed{background:var(--ms-mod-bg)!important;color:var(--ms-mod-text)!important;font-weight:700}
#mapStudioRoot .ms-grid td button.changed.selected{background:var(--ms-selected)!important;color:var(--ms-mod-text)!important;border-color:#a6c9e9;box-shadow:inset 0 0 0 1px #a6c9e9}
#mapStudioRoot .ms-grid td button.changed:hover{background:var(--ms-mod-bg)!important}
#mapStudioRoot{--ms-cell:#fafcfd;--ms-cell-text:#18394b;--ms-axis:#e2eaee;--ms-axis-text:#224e65;--ms-grid-line:#c7d2d9;--ms-hover:#dcecf6;--ms-axis-hover:#c1daeb;--ms-selected:#c0dcf5;--ms-selected-text:#103954;--ms-mod-bg:#ffe4e8;--ms-mod-text:#b11530}
#mapStudioRoot[data-table-theme=dark]{--ms-cell:#20262d;--ms-cell-text:#e8edf2;--ms-axis:#2b3540;--ms-axis-text:#a9c9e7;--ms-grid-line:#46515d;--ms-hover:#304657;--ms-axis-hover:#3b5267;--ms-selected:#23415f;--ms-selected-text:#fff;--ms-mod-bg:#39282e;--ms-mod-text:#ff8797}
#mapStudioRoot[data-table-theme=dark] .ms-viewport:has(.ms-grid){background:#1b2128;color:#e8edf2;color-scheme:dark}
#mapStudioRoot[data-table-theme=dark] .ms-inline-editor{background:#eaf4ff;color:#152e44}
#mapStudioRoot .ms-viewbar{padding:8px 12px;gap:7px}
#mapStudioRoot .ms-tabs button{font-size:13px;padding:7px 10px}
#mapStudioRoot .ms-methodbar{gap:5px;padding:8px 10px}
#mapStudioRoot .ms-methodbar .btn,#mapStudioRoot .ms-methodbar select{font-size:12px;min-height:32px;padding:6px 9px}
#mapStudioRoot .ms-cursor{font-size:12px;padding:8px 12px}
#mapStudioRoot.ms-focus-mode{inset:0;padding:12px}
#mapStudioRoot.ms-focus-mode .ms-workarea .ms-viewport,#mapStudioRoot.ms-focus-mode .ms-inspector{height:calc(100vh - 320px);max-height:none;min-height:400px}
@media(max-width:1450px){#mapStudioRoot .ms-layout{grid-template-columns:215px minmax(0,1fr)}#mapStudioRoot .ms-workarea{grid-template-columns:minmax(0,1fr) 235px}#mapStudioRoot .ms-inspector{padding:12px}}
@media(max-width:1100px){#mapStudioRoot .ms-workarea{grid-template-columns:minmax(0,1fr)}#mapStudioRoot .ms-inspector{display:block;max-height:330px}#mapStudioRoot .ms-table-key{margin-left:0}}
@media(max-width:760px){#mapStudioRoot .ms-layout,#mapStudioRoot.ms-focus-mode .ms-layout{grid-template-columns:minmax(0,1fr)}#mapStudioRoot .ms-table-options{gap:9px}#mapStudioRoot .ms-tree{max-height:200px}#mapStudioRoot .ms-maphead{flex-wrap:wrap}}
#mapStudioRoot .ms-version-panel{padding:0 0 13px;margin-bottom:13px;border-bottom:1px solid #b6c7ce}
#mapStudioRoot .ms-version-panel>label{display:block;font-size:12px;font-weight:800;margin-bottom:6px}
#mapStudioRoot .ms-version-panel select{width:100%;max-width:100%;background:#fff;color:#193c52;border:1px solid #9eb2bc;border-radius:5px;min-height:39px;padding:7px;font:inherit;font-size:13px}
#mapStudioRoot .ms-version-actions{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
#mapStudioRoot .ms-version-actions .btn{font-size:11px;min-height:30px;padding:5px 7px}
#mapStudioRoot .ms-version-panel small{display:block;font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:#3b5b69}
#mapStudioRoot .ms-changed-filter{display:flex;align-items:center;gap:5px;font-size:12px;margin-bottom:11px}
#mapStudioRoot .ms-changed-filter input{accent-color:#b11530;width:16px;height:16px;padding:0;margin:0;flex:0 0 16px}
#mapStudioRoot .ms-changed-filter span{margin-left:auto;color:#b11530;font-weight:800}
#mapStudioRoot .ms-mapitem.ms-map-modified{background:#fff0f2;color:#981c35;border-left:3px solid #bf2542}
#mapStudioRoot .ms-mapitem.ms-map-modified.active{background:#e4effb;border-left:3px solid #1467ac;color:#a31d38}
#mapStudioRoot .ms-mapitem.ms-map-modified small{color:#873c4a}
#mapStudioRoot .ms-map-change-flag{display:inline-block;margin-left:6px;font-size:9px;line-height:16px;padding:0 4px;color:#a21430;background:#fbd9e0;border-radius:3px;vertical-align:middle;font-weight:800}
#mapStudioRoot .ms-group-modified{color:#a21d37}

.ms-conversion-presets{margin:0;padding:12px;border:1px solid #9cb5ab;border-radius:5px;min-width:0;grid-column:1/-1}.ms-conversion-presets legend{padding:0 5px;font-size:13px;font-weight:700}.ms-conversion-presets>div{display:flex;gap:8px;flex-wrap:wrap}.ms-conversion-presets .btn{min-width:58px;min-height:34px;padding:6px 12px}.ms-conversion-presets small{display:block;margin-top:8px;font-size:12px;line-height:1.5;color:#385862}

#mapStudioRoot .ms-graph-preview.ms-independent-preview{position:fixed;inset:auto 18px 18px auto;margin:0;width:min(430px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:14px;z-index:80;border:1px solid #76918b;border-radius:8px;box-shadow:0 8px 30px #102b3840;overflow:auto}
#mapStudioRoot .ms-graph-preview.ms-independent-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:move;touch-action:none;user-select:none}
#mapStudioRoot .ms-graph-preview.ms-independent-preview h3{font-size:18px;margin:0}
#mapStudioRoot .ms-graph-preview.ms-independent-preview p{font-size:13px;line-height:1.5;margin:12px 0;overflow-wrap:anywhere}
#mapStudioRoot .ms-graph-preview.ms-independent-preview canvas{display:block;width:100%;height:auto;aspect-ratio:4/3}
#mapStudioRoot .ms-graph-preview.ms-independent-preview canvas[hidden]{display:none}
#mapStudioRoot .ms-preview-compare{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:8px}
#mapStudioRoot .ms-preview-compare select{padding:5px 8px}


/* Independent read-only provenance layers: current page only, map value bytes only. */
#mapStudioRoot .ms-hex-layers{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#mapStudioRoot .ms-hex-layers label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#mapStudioRoot .ms-hex-layers i{display:inline-block;width:12px;height:12px;border:1px solid currentColor;border-radius:2px}
#mapStudioRoot{--ms-hex-user:#e1efdc;--ms-hex-pack:#deebf8;--ms-hex-user-line:#55843b;--ms-hex-pack-line:#347bb5}
#mapStudioRoot[data-table-theme=dark]{--ms-hex-user:#294531;--ms-hex-pack:#253d58;--ms-hex-user-line:#8abe73;--ms-hex-pack-line:#7daee0}
#mapStudioRoot .ms-hex-user-key{background:var(--ms-hex-user);color:var(--ms-hex-user-line)}
#mapStudioRoot .ms-hex-pack-key{background:var(--ms-hex-pack);color:var(--ms-hex-pack-line)}
#mapStudioRoot .ms-hex td{color:var(--ms-cell-text)}
#mapStudioRoot .ms-hex td.ms-in-map{background:var(--ms-cell);box-shadow:inset 0 0 0 1px var(--ms-axis-text)}
#mapStudioRoot .ms-hex td.ms-hex-user-map{background:var(--ms-hex-user);border-bottom-color:var(--ms-hex-user-line)}
#mapStudioRoot .ms-hex td.ms-hex-mappack{background:var(--ms-hex-pack);border-bottom-color:var(--ms-hex-pack-line)}
#mapStudioRoot .ms-hex td.ms-hex-user-map.ms-hex-mappack{background:linear-gradient(135deg,var(--ms-hex-user) 50%,var(--ms-hex-pack) 50%);border-left:2px solid var(--ms-hex-user-line);border-right:2px solid var(--ms-hex-pack-line)}
#mapStudioRoot .ms-hex td.changed{background:var(--ms-mod-bg)!important;color:var(--ms-mod-text)!important;font-weight:700}

#mapStudioRoot .ms-hex td.ms-hex-cursor{outline:2px solid var(--ms-selected-text);outline-offset:-3px}

#mapStudioRoot #msViewDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#mapStudioRoot #msViewDialog>.ms-change-fields{min-height:0;overflow:auto;padding:2px 6px 6px 2px}
#mapStudioRoot #msViewDialog>h3,#mapStudioRoot #msViewDialog>p,#mapStudioRoot #msViewDialog>.ms-toolbar{flex-shrink:0}

/* The editor theme is local to Map Studio. Existing tableTheme preferences migrate unchanged. */
#mapStudioRoot[data-table-theme]{
 --ms-shell:#eaf0f3;--ms-panel:#f7fafc;--ms-raised:#e2ebf1;--ms-text:#17384a;--ms-muted:#476373;--ms-border:#9aaeba;--ms-accent:#125f9d;--ms-focus:#1268ac;--ms-warning-bg:#fff3d6;--ms-warning-text:#684708;
 background:var(--ms-shell);color:var(--ms-text);color-scheme:light;border-radius:8px;padding:12px;
 --ms-ink:var(--ms-text);--ms-line:var(--ms-border);--ms-blue:var(--ms-accent);
}
#mapStudioRoot[data-table-theme=dark]{
 --ms-shell:#161e27;--ms-panel:#202c38;--ms-raised:#2a3948;--ms-text:#e6edf3;--ms-muted:#b2c4d3;--ms-border:#62768a;--ms-accent:#80bded;--ms-focus:#9bd0fa;--ms-warning-bg:#463817;--ms-warning-text:#ffe0a0;
 color-scheme:dark;
}
#mapStudioRoot[data-table-theme] :is(.ms-sidebar,.ms-main,.ms-inspector,.ms-fileline,.ms-viewport,.ms-graph-preview,.ms-secondary,.ms-open-tab,.ms-open-tab.active,dialog,.ms-context-menu){
 background:var(--ms-panel);color:var(--ms-text);border-color:var(--ms-border);
}
#mapStudioRoot[data-table-theme] :is(.ms-stage-toolbar,.ms-viewbar,.ms-data-tools,.ms-table-options,.ms-methodbar,.ms-cursor,.ms-pager,.ms-open-tabs,.ms-project-disclosure,.ms-tree summary,.ms-group-count,.ms-definition-id,.ms-axis-values span,.ms-change-preview){
 background:var(--ms-raised);color:var(--ms-text);border-color:var(--ms-border);
}
#mapStudioRoot[data-table-theme] :is(.ms-tree,.ms-maphead,.ms-edit,.ms-warnings,.ms-heading,.ms-sidebar-head,.ms-version-panel,.ms-address,.ms-inspector header,.ms-inspector section,.ms-detail-field,.ms-property-grid dd,.ms-property-grid dt,.ms-similar-list,.ms-similar-list>label){
 color:var(--ms-text);border-color:var(--ms-border);
}
#mapStudioRoot[data-table-theme] :is(.ms-maphead p,.ms-mapitem small,.ms-map-meta,.ms-version-panel small,.ms-address small,.ms-edit small,.ms-fileline>span:nth-child(2),.ms-inspector header p,.ms-inspector header code,.ms-inspector-hint,.ms-detail-field dt,.ms-detail-eyebrow,.ms-table-key,.ms-context-menu kbd,.ms-similar-list small,.ms-conversion-presets small,.ms-empty,.ms-notice,.ms-dialog dd,.ms-detail-field dd){color:var(--ms-muted)}
#mapStudioRoot[data-table-theme] :is(.ms-inspector h3,.ms-inspector h4,.ms-dialog h3,.ms-maphead h3,.ms-heading h2){color:var(--ms-text)}
#mapStudioRoot[data-table-theme] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
 background:var(--ms-panel);color:var(--ms-text);border-color:var(--ms-border);accent-color:var(--ms-accent);
}
#mapStudioRoot[data-table-theme] :is(input,textarea)::placeholder{color:var(--ms-muted);opacity:1}
#mapStudioRoot[data-table-theme] :is(.btn,.ms-stage-group,.ms-stage-group button,.ms-tabs button,.ms-open-tab button,.ms-property-tabs button,.ms-context-menu button,.ms-difference-row,.ms-mapitem){
 background:var(--ms-panel);color:var(--ms-text);border-color:var(--ms-border);
}
#mapStudioRoot[data-table-theme] :is(.btn,.ms-stage-group button,.ms-tabs button,.ms-context-menu button,.ms-mapitem,.ms-difference-row):hover:not(:disabled){background:var(--ms-hover);color:var(--ms-text)}
#mapStudioRoot[data-table-theme] :is(.btn-primary,.ms-stage-group button.active,.ms-tabs button.active,.ms-property-tabs button.active){background:#125f9d;color:#fff;border-color:#125f9d}
#mapStudioRoot[data-table-theme] :is(.ms-mapitem.active,.ms-open-tab.active){background:var(--ms-selected);color:var(--ms-selected-text);border-left-color:var(--ms-accent)}
#mapStudioRoot[data-table-theme] .ms-mapitem.ms-map-modified{color:var(--ms-mod-text);background:var(--ms-mod-bg);border-left-color:var(--ms-mod-text)}
#mapStudioRoot[data-table-theme] .ms-mapitem.ms-map-modified.active{background:var(--ms-selected);color:var(--ms-mod-text)}
#mapStudioRoot[data-table-theme] :is(.ms-map-change-flag,.ms-group-modified .ms-group-count,.ms-value-pair .ms-detail-mod-changed){background:var(--ms-mod-bg);color:var(--ms-mod-text);border-color:var(--ms-mod-text)}
#mapStudioRoot[data-table-theme] :is(.ms-mapitem.ms-map-modified small,.ms-mapitem.ms-map-modified .ms-map-name,.ms-value-pair .ms-detail-mod-changed strong,.ms-group-modified,.ms-changed-filter span){color:var(--ms-mod-text)}
#mapStudioRoot[data-table-theme] .ms-value-pair>div{background:var(--ms-raised);border-color:var(--ms-border)}
#mapStudioRoot[data-table-theme] .ms-value-pair :is(span,strong){color:var(--ms-text)}
#mapStudioRoot[data-table-theme] .ms-value-pair .ms-detail-mod-changed strong{color:var(--ms-mod-text)}
#mapStudioRoot[data-table-theme] :is(.ms-axis-review,.ms-axis-review.blocked,.ms-detail-notes){background:var(--ms-warning-bg);color:var(--ms-warning-text);border-color:var(--ms-warning-text)}
#mapStudioRoot[data-table-theme] .ms-automatch{background:var(--ms-panel);color:var(--ms-text);border-color:var(--ms-border);border-left-color:var(--ms-accent)}
#mapStudioRoot[data-table-theme] .ms-notice.error{color:var(--ms-mod-text)}
#mapStudioRoot[data-table-theme] .ms-diff-table :is(th,td){color:var(--ms-text);border-color:var(--ms-border)}
#mapStudioRoot[data-table-theme] .ms-diff-table th{background:var(--ms-raised)}
#mapStudioRoot[data-table-theme] .ms-diff-table :is(button,small){color:var(--ms-accent)}
#mapStudioRoot[data-table-theme] :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ms-focus);outline-offset:2px}
#mapStudioRoot[data-table-theme] .ms-stage-group button:focus-visible{outline-offset:-3px}
#mapStudioRoot[data-table-theme] dialog::backdrop{background:#07111dcc}
#mapStudioRoot[data-table-theme] .ms-export-checksum-note{display:block;color:var(--ms-muted);font-size:12px;line-height:1.5;margin:4px 0 10px}
#mapStudioRoot[data-table-theme] .ms-checksum-preference{grid-column:1/-1;display:block}
#mapStudioRoot[data-table-theme] .ms-checksum-preference label{display:flex;flex-direction:row;align-items:center;gap:9px}
#mapStudioRoot[data-table-theme] .ms-checksum-preference small{display:block;color:var(--ms-muted);font-size:12px;line-height:1.5;margin-top:6px}

#mapStudioRoot .ms-hex-potential{outline:2px dashed #a46ce8;outline-offset:-3px}#mapStudioRoot .ms-potential-panel{padding:10px;border-top:1px solid #777}#mapStudioRoot .ms-potential-panel p{font-size:12px}#mapStudioRoot #msPotentialList{max-height:260px;overflow:auto}#mapStudioRoot #msPotentialStatus{display:block;font-size:12px;padding:6px 0}
