/* These defaults match the shipped Strategy theme. Override on the workspace root or document. */
:root{--mw-font:Manrope,'Segoe UI',sans-serif;--mw-color-ink:#152e32;--mw-color-muted:#758184;--mw-color-primary:#12282c;--mw-color-accent:#c2f47e;--mw-color-canvas:#f4f6f5;--mw-color-border:#e4e9e6;--mw-focus:#80b94b;--mw-button-radius:8px;--mw-button-padding:9px 16px;--mw-button-height:39px;--mw-panel-radius:11px;--mw-tab-padding:14px 13px;--mw-table-cell-padding:10px;--mw-table-text-align:left;--mw-table-text-size:12px}
:root,[data-mw-theme]{--ink:var(--mw-color-ink);--muted:var(--mw-color-muted);--navy:var(--mw-color-primary);--mint:var(--mw-color-accent);--canvas:var(--mw-color-canvas);--line:var(--mw-color-border)}
[data-mw-theme]{font-family:var(--mw-font)}

/* Shared filters use the same established field proportions as forms/selects. */
.mw-search-filter{max-width:340px;min-width:240px}.mw-search-control{position:relative;min-width:0;flex:1}.mw-search-control>.icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:#788e80;pointer-events:none}.mw-search-control>input.input{width:100%;min-height:40px;height:40px;border:1px solid #dfe6da;border-radius:7px;padding:9px 12px 9px 35px;background:#fff;color:var(--ink);font:inherit;font-size:11px;outline-offset:2px}.mw-search-control>input::placeholder{color:#87958c}.mw-search-control>input:hover:not(:disabled){border-color:#b8cbb1}.mw-search-control>input:focus{border-color:#87a875}.mw-search-control>input:disabled{background:#f6f8f4;color:#87958c}
@media(max-width:650px){.mw-search-filter{width:100%;max-width:none;margin-left:0}.mw-search-control{width:100%}}
.mw-field-group input[type=checkbox],.bm-drawer-field input[type=checkbox]{accent-color:var(--green);width:16px;height:16px}

/* Compact cell controls are independent of the containing table or matrix. */
.mw-cell-editor{min-width:0;max-width:100%;font-size:var(--mw-table-text-size,12px);line-height:1.7}
.mw-cell-editor textarea,.mw-cell-editor input:not([type=checkbox]):not([type=radio]),.mw-cell-editor select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;height:auto;border:0!important;border-radius:0!important;box-shadow:none;background:transparent;color:#435444;font-family:inherit;font-size:var(--mw-table-text-size,12px);line-height:1.7;padding:var(--mw-table-cell-padding,10px);margin:0;text-align:var(--mw-table-text-align,left);outline:none}
.mw-cell-editor textarea{resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
.mw-cell-editor:focus-within{outline:2px solid #a9c38e;outline-offset:-2px}
.mw-cell-editor :disabled{cursor:not-allowed;opacity:.65}
.mw-cell-caption{display:block;font-size:10px;font-weight:700;color:#76866b;line-height:1.7;padding:6px 10px 0;overflow-wrap:anywhere}
.mw-cell-hint{display:block;font-size:10px;color:#7a8d79;line-height:1.7;padding:0 10px 6px}
.mw-cell-stack{display:grid;gap:12px;min-width:0}.mw-cell-stack-labelled>.mw-cell-part+.mw-cell-part{border-top:1px solid #e1e8db;padding-top:6px}
.mw-matrix-panel td:has(.mw-cell-stack){padding:0;min-width:200px;background:white}
.mw-cell-editor .rt-choice>summary,.mw-cell-editor .rt-choice>.rt-choice-value{font-size:11px;line-height:1.7;padding:10px 7px}
@media(max-width:650px){.mw-cell-editor textarea,.mw-cell-editor input:not([type=checkbox]):not([type=radio]),.mw-cell-editor select{font-size:11px;padding:8px 5px}}

.rt-table .mw-cell-editor textarea,.mw-cell-editor textarea.mw-cell-control{font-size:var(--mw-table-text-size,12px);line-height:1.7}
@media(max-width:650px){.rt-table .mw-cell-editor textarea,.mw-cell-editor textarea.mw-cell-control{font-size:11px}}

/* Missing required values remain visible after inheritance and compact composition. */
.rt-field[data-state=required]{background:var(--mw-required-background,#fff3ef);box-shadow:inset 3px 0 var(--mw-required-accent,#c98b80)}
.mw-cell-editor[data-state=error]{background:#fff3ef;box-shadow:inset 3px 0 #c47b69}
.mw-cell-diagnostic{font-size:10px;line-height:1.6;color:#9b5b51;padding:0 10px 7px;overflow-wrap:anywhere}
.mw-cell-diagnostic:empty{display:none}.mw-cell-diagnostic .btn{display:flex;margin:7px 0 0;font-size:10px;white-space:normal;text-align:left}
.mw-field-guidance{margin:6px 0;padding:8px;border:1px solid #dfe7d6;border-radius:6px;background:#f7faf3;color:#617454;font-size:10px;line-height:1.7;overflow-wrap:anywhere;min-width:0;max-width:100%}.mw-guidance-body>p{display:flex;align-items:flex-start;gap:6px;margin:0 0 6px}.mw-guidance-body>p>.icon{flex:0 0 13px;width:13px;height:13px;margin-top:2px}.mw-guidance-actions{display:flex;flex-wrap:wrap;gap:5px}.mw-guidance-actions .btn{white-space:normal;overflow-wrap:anywhere;text-align:left;justify-content:flex-start;height:auto;min-height:30px;max-width:100%;font-size:10px}.mw-field-guidance-prerequisite{background:#f0f6e8;border-color:#d4e2c6}.mw-field-guidance-inherited,.mw-field-guidance-computed{border-style:dashed}.mw-cell-editor>output.rt-derived{display:block;min-height:44px}.mw-source-return{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;margin-bottom:16px;background:#f0f6e8;border:1px solid #d4e2c6;border-radius:8px;font-size:11px}

/* An editable cell owns its entire hit area. Captions and assistance reserve space. */
td.mw-editable-cell{padding:0!important;vertical-align:top!important}
.mw-cell-layout{display:flex;flex-direction:column;box-sizing:border-box;width:100%;min-width:0;height:var(--mw-cell-height,auto)}
.mw-cell-layout>.rt-main-cell,.mw-cell-layout>.mw-cell-stack,.mw-cell-layout>.mw-cell-editor{flex:1 0 auto;min-width:0}
.mw-cell-layout>.rt-main-cell,.mw-cell-layout .rt-detail-field,.mw-cell-part,.mw-cell-editor{display:flex;flex-direction:column;min-width:0}
.mw-cell-layout .rt-main-cell>.mw-cell-editor,.mw-cell-layout .rt-detail-field>.mw-cell-editor,.mw-cell-part>.mw-cell-editor{flex:1 0 auto;width:100%}
.mw-cell-input{display:flex;flex-direction:column;flex:1 0 auto;min-width:0;min-height:44px;width:100%}
td .mw-cell-input{justify-content:center}
td .mw-cell-input>textarea,td .mw-cell-input>input:not([type=radio]):not([type=checkbox]),td .mw-cell-input>select,td .mw-cell-input>output,td .mw-cell-input>.rt-choice,td .mw-cell-input>.mw-reference-control{flex:0 0 auto}
/* The active editor fills its input region; sibling fields keep their own space. */
td .mw-cell-input>textarea:focus,td .mw-cell-input>input:not([type=radio]):not([type=checkbox]):focus,td .mw-cell-input>select:focus{flex:1 0 auto}
td .mw-cell-input .mw-reference-control{align-items:center}
.mw-cell-input>textarea,.mw-cell-input>input:not([type=radio]):not([type=checkbox]),.mw-cell-input>select,.mw-cell-input>output,.mw-cell-input>.rt-choice{flex:1 0 auto;width:100%;margin:0}
.mw-cell-input>.rt-choice{display:flex;flex-direction:column;min-height:44px}
.mw-cell-input>.rt-choice>summary,.mw-cell-input>.rt-choice>.rt-choice-value{flex:1 0 auto;box-sizing:border-box;min-height:44px;width:100%;padding:var(--mw-table-cell-padding,10px)}
.mw-cell-input>.rt-choice:not([open])>.rt-choice-options{display:none}
.mw-cell-input>.rt-choice>.rt-choice-options{flex:none}
.mw-cell-editor>.mw-cell-caption,.mw-cell-editor>.mw-cell-hint,.mw-cell-editor>[data-mw-diagnostic],.mw-cell-editor>[data-mw-guidance-host],.mw-cell-editor>[data-rt-status]{flex:none}
.mw-cell-layout>.rt-details{display:flex;flex-direction:column;flex:1 0 auto;gap:0;margin:0;padding:0;border-top:1px solid #e1e8db}
.mw-cell-layout .rt-detail-field{flex:1 0 auto;gap:0}
.mw-cell-layout .rt-detail-field+.rt-detail-field{border-top:1px solid #e1e8db}
.mw-cell-layout .rt-detail-field>b{flex:none;padding:6px 10px 0}
.mw-cell-layout>.mw-cell-stack{display:flex;flex-direction:column;gap:0}
.mw-cell-stack>.mw-cell-part{flex:1 0 auto}
.mw-cell-stack-labelled>.mw-cell-part+.mw-cell-part{padding-top:0}
.mw-cell-layout>.mw-cell-source{flex:none;align-self:flex-start}
.mw-cell-input>output.rt-derived{display:block;box-sizing:border-box;min-height:44px;padding:var(--mw-table-cell-padding,10px)}
[data-mw-fullscreen-root]{position:fixed!important;inset:0!important;z-index:10000!important;box-sizing:border-box;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;overflow:auto;background:var(--canvas,#f4f7f5);padding:16px}
[data-mw-fullscreen-root][data-mw-fs-path]>:not([data-mw-fs-path]):not([data-mw-fs-target]):not([data-mw-fullscreen-keep]):not(.sc-popup),[data-mw-fullscreen-root] [data-mw-fs-path]>:not([data-mw-fs-path]):not([data-mw-fs-target]):not([data-mw-fullscreen-keep]):not(.sc-popup){display:none!important}
[data-mw-fullscreen-root] [data-mw-fs-path]{display:block!important;position:static!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;transform:none!important}
[data-mw-fullscreen-root] [data-mw-fs-target]{width:100%;min-height:calc(100vh - 32px);max-width:none;margin:0;box-sizing:border-box}
.mw-fullscreen-exit{float:right;margin:8px;position:relative;z-index:2}
[data-mw-fullscreen-root] .mw-source-return{display:flex;gap:12px;align-items:center;padding:12px;margin-bottom:12px;background:var(--canvas,#f4f7f5);border:1px solid var(--line,#d9e3dc);border-radius:8px}

/* Keep the help card inset from all cell edges; narrow cells use an information button. */
td .mw-cell-editor>[data-mw-guidance-host]:has(>.mw-field-guidance){padding:8px;box-sizing:border-box}
td [data-mw-guidance-host]>.mw-field-guidance{margin:0;box-sizing:border-box;max-width:100%}
[data-mw-guidance-toggle][hidden]{display:none}
[data-mw-guidance-toggle]{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px;border:1px solid #dfe7d6;border-radius:6px;background:#f7faf3;color:#617454;cursor:pointer}
[data-mw-guidance-toggle]:focus-visible{outline:2px solid #87a875;outline-offset:2px}
.mw-field-guidance.is-compact{padding:0;border:0;background:transparent}
.mw-field-guidance.is-compact>.mw-guidance-body:not(.is-open){display:none}
.mw-field-guidance.is-compact>.mw-guidance-body{position:fixed;inset:auto;box-sizing:border-box;margin:0;padding:12px;border:1px solid #d4e2c6;border-radius:8px;background:#f7faf3;color:#617454;box-shadow:0 8px 28px #132f3226;max-width:calc(100vw - 32px);overflow:auto;z-index:12000;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.mw-guidance-body .mw-guidance-actions .btn{font-size:inherit}
/* Legacy registry guidance is inside the input region rather than a dedicated host. */
td .mw-field-guidance{margin:8px;box-sizing:border-box;max-width:calc(100% - 16px)}
/* Editors own their gutters; table/matrix cell padding must not add a second inset. */
td.mw-editable-cell{padding:0!important}
@media(max-width:1024px){td .mw-cell-editor .mw-cell-input>textarea,td .mw-cell-editor .mw-cell-input>input:not([type=checkbox]):not([type=radio]),td .mw-cell-editor .mw-cell-input>output.rt-derived,td .mw-cell-editor .mw-cell-input>.rt-choice>summary,td .mw-cell-editor .mw-cell-input>.rt-choice>.rt-choice-value{padding:8px}}

/* Computed values and empty-choice help already have a padded inner container. */
td .mw-cell-input>div.rt-derived,td .mw-cell-editor .rt-choice>.rt-choice-options{padding:8px;box-sizing:border-box}
td .rt-derived>.mw-field-guidance{margin:8px 0 0;max-width:100%}
td .rt-choice-options>.mw-field-guidance{margin:0;max-width:100%}
/* Compact columns retain readable widths and use the same local scrolling as matrices. */
.bm-table-panel>.bm-table-scroll{overflow-x:auto;max-width:100%}

/* Independent element filters share the toolbar control dimensions. */
.mw-element-audience{display:flex;align-items:center;gap:8px;flex:0 1 240px;min-width:160px;max-width:100%;margin:0;font-size:12px;color:var(--muted,#708178)}
.mw-element-audience>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mw-element-audience>select,.mw-element-audience>.sc-root{width:100%;min-width:0;margin:0}
.mw-element-audience select,.mw-element-audience .sc-trigger{min-height:34px;max-width:100%;font-size:12px}
.mw-element-audience .sc-trigger{height:34px;padding-top:6px;padding-bottom:6px}
.mw-element-audience .sc-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.rt-panel>.panel-head{gap:16px}
.rt-panel>.panel-head>.row{flex:1;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.mw-matrix-panel>.panel-head{gap:12px;flex-wrap:wrap}
@media(max-width:700px){.rt-panel>.panel-head{align-items:flex-start;flex-wrap:wrap;gap:12px}.rt-panel>.panel-head>.row{width:100%;justify-content:flex-start}.mw-element-audience{flex-basis:220px;max-width:100%}}

/* Each distinct nested value keeps its own original record editor. */
.rt-detail-entry+.rt-detail-entry{border-top:1px solid var(--line,#d9e2d5)}
.rt-detail-entry{min-width:0}
