/* Variable forms use the shared management geometry. */
.management-workspace.variable-workspace .workspace-card,.management-workspace.variable-definition-wizard .workspace-card{border:0;padding:0;box-shadow:none;background:transparent;margin:0 0 1rem}
.management-workspace.variable-workspace .workspace-card>label{max-width:44rem}
.management-workspace.variable-definition-wizard .variable-definition-content{max-width:none;overflow:visible}
.substitution-body{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,1fr);gap:1rem}.substitution-body label{display:grid;gap:.4rem;margin-bottom:.7rem}.substitution-body :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;padding:.55rem;border:1px solid #cbd8ea;border-radius:7px;font:inherit}.substitution-fields{display:grid;gap:.35rem;max-height:45dvh;overflow:auto}.substitution-fields button{display:grid;text-align:left;gap:.2rem;padding:.55rem;border:1px solid #d6e2f4;border-radius:7px;background:#fff;color:#294d76}.substitution-fields button[aria-current]{background:#eaf2ff;border-color:#347bd0}.substitution-fields small{color:#718097;font-size:.75rem}.substitution-fields h3{font-size:.8rem;margin:.6rem 0 .2rem}.substitution-insert{padding:.3rem .55rem;margin:.3rem 0;background:#eef5ff;color:#285c9b;border:1px solid #ccddf3;border-radius:6px}.variable-search{display:flex;gap:.5rem;align-items:center}.variable-search input{flex:1;min-width:0}.variable-context{margin-bottom:.8rem}.variable-context summary{cursor:pointer;color:#285d99}.variable-preview{white-space:pre-wrap;overflow-wrap:anywhere;padding:.7rem;background:#edf5ff;border-radius:8px}.variable-field-name{font-size:.75rem;color:#718097}@media(max-width:650px){.substitution-body{grid-template-columns:1fr}.substitution-fields{max-height:24dvh}}
.variable-value-card{padding:.65rem .75rem;border:1px solid #dce6f4;border-radius:.55rem;background:#f0f5fc;overflow-wrap:anywhere}
.variable-value-card h3{font-size:.83rem;margin:0;color:#365e9c}
.variable-value-card p{white-space:pre-wrap;margin:.35rem 0 .5rem;font-weight:650}
.variable-value-card small{display:block;font-size:.75rem;color:#506883}
.variable-document-details{padding:.6rem .2rem;border-bottom:1px solid #dce6f4;overflow-wrap:anywhere}
.variable-document-details :is(summary,a){color:#315e92;cursor:pointer}
.variable-document-details svg,.variable-value-card svg{vertical-align:middle}
[data-variable-usage-list] ul{display:grid;gap:.2rem;margin:.4rem 0 0;padding:0;list-style:none}
[data-variable-usage-list] a{display:block;min-width:0;padding:.45rem;border-radius:6px}
[data-variable-usage-list] a:hover{background:#edf5ff}
[data-variable-usage-list] a small{display:block;color:#58718b}
.variable-context { display:flex; align-items:center; flex-wrap:wrap; gap:.38rem .55rem; min-width:0; padding:.46rem .58rem; border:1px solid #d5e3f6; border-radius:.5rem; background:#f3f7fd; }
.variable-context > span { display:inline-flex; flex:none; align-items:center; gap:.3rem; color:#3d5f8c; }
.variable-context strong { flex:1; min-width:4rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.variable-context button { flex:none; display:inline-flex; align-items:center; gap:.3rem; padding:.33rem .45rem; color:#325e92; background:#fff; border:1px solid #c7d8ef; border-radius:.4rem; }
.variable-editor-document { display:grid; gap:.58rem; min-width:0; }
.variable-editor-document label { min-width:0; }
.variable-editor-document :is(input,textarea,select) { min-width:0; width:100%; font-weight:400; }
.variable-editor-document label.variable-editor-check { display:flex; align-items:flex-start; gap:.4rem; }
.variable-editor-document label.variable-editor-check > input { flex:none; width:1rem; margin:.18rem 0 0; }
.variable-editor-document [data-edit-value][hidden] { display:none; }
.variable-catalog-toolbar,.variable-catalog-tools,.variable-catalog-search { display:flex; align-items:center; gap:.4rem; min-width:0; }
.variable-catalog-toolbar .variable-context { margin:0; flex-wrap:nowrap; flex:0 1 26rem; }
.variable-catalog-tools { overflow-x:auto; flex-wrap:nowrap; }
.variable-catalog-tools > :is(button,a) { flex:none; white-space:nowrap; }
.variable-catalog-search { flex:1; }
.variable-catalog-search input { min-width:0; flex:1; }
@media(max-width:550px){
  .variable-editor-document .catalog-editor-fields { grid-template-columns:minmax(0,1fr); }
  .variable-catalog-toolbar { display:grid; }
}
