.hall-editor{background:#fff;border:1px solid #d8e1eb;border-radius:16px;overflow:hidden}.hall-header,.hall-links,.hall-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid #e1e7ee}.hall-header .field{min-width:220px;margin:0}.hall-header .check{flex:1}.hall-links{background:#f5f8fc;font-size:13px;overflow-wrap:anywhere}.hall-toolbar{background:#fafbfe}.hall-toolbar label{display:flex;gap:8px;align-items:center;font-size:13px}.hall-toolbar input[type=range]{width:120px}.hall-toolbar select{width:auto;min-width:80px}.hall-workspace{display:grid;grid-template-columns:270px minmax(0,1fr)}.hall-workspace>aside{padding:20px;background:#f8fafd;border-right:1px solid #d8e1eb}.hall-workspace h3{font-size:16px;margin:0 0 12px}.hall-workspace .field{margin-bottom:12px}.hall-workspace .field>span{font-size:12px}.hall-workspace .two{gap:10px}.hall-workspace input{min-width:0;width:100%}.hall-workspace input[type=color]{height:40px;padding:4px}.hall-workspace #hall-properties{border-top:1px solid #d8e1eb;margin-top:22px;padding-top:22px}.hall-object-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.hall-stage{min-width:0;padding:16px}.hall-status{font-size:13px;font-weight:600;color:#244b72;margin-bottom:10px}.hall-scroll{overflow:auto;background:#eaf0f5;border:1px solid #d8e1eb;max-height:78vh;overscroll-behavior:contain}.hall-svg{display:block;width:100%;height:auto;min-height:200px;max-height:none;outline:none}.hall-svg:focus-visible{outline:3px solid #2462ce;outline-offset:-3px}.hall-object{cursor:pointer}.hall-object text{pointer-events:none}.hall-object [data-hall-handle=rotate]{cursor:grab}.hall-object [data-hall-handle=resize]{cursor:nwse-resize}.hall-editor .hall-svg{touch-action:none;user-select:none}.hall-editor:fullscreen{overflow:auto;border:0;border-radius:0}.hall-editor:fullscreen .hall-header{position:sticky;top:0;z-index:2;background:white}.hall-editor:fullscreen .hall-scroll{max-height:calc(100vh - 320px)}.hall-public{max-width:1500px;padding:24px;margin:auto}.hall-public header{display:flex;align-items:center;justify-content:space-between;gap:20px}.hall-public h1{margin:6px 0;font-size:32px}.hall-public .hall-toolbar{margin:20px 0}.hall-public #hall-search{flex:1;min-width:200px}.hall-lookup{margin:16px 0}.hall-lookup h3{margin:0 0 12px}.hall-lookup .hall-toolbar{padding:0;margin:12px 0;border:0;background:transparent}.hall-lookup .field{max-width:400px}.hall-lookup #hall-lookup-result{margin-top:10px}.hall-lookup [data-hall-suggestion]{margin:4px}.hall-public #hall-canvas{min-width:320px}@media(max-width:900px){.hall-workspace{grid-template-columns:1fr}.hall-workspace>aside{border-right:0;border-bottom:1px solid #d8e1eb;display:grid;grid-template-columns:1fr 1fr;gap:20px}.hall-workspace #hall-properties{border:0;margin:0;padding:0}.hall-public{padding:12px}.hall-header,.hall-toolbar,.hall-links{padding:12px}.hall-stage{padding:8px}}@media(max-width:550px){.hall-workspace>aside{grid-template-columns:1fr}.hall-header .check{flex-basis:100%}.hall-public header{align-items:flex-start}.hall-public h1{font-size:24px}}
.hall-preview{display:block;width:100%;height:540px;border:1px solid #d8e1eb;border-radius:8px;background:#fff}.hall-unpublished{color:#8c4e13;flex-basis:100%}#hall-embed-code{font:13px/1.5 Consolas,monospace;resize:vertical;width:100%}.hall-public .hall-svg{cursor:default}
.hall-palette{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 14px}.hall-palette button{width:22px;height:22px;min-height:0;padding:0;border:1px solid #7c8a99;border-radius:4px;cursor:pointer}.hall-sides{margin:16px 0;padding:10px;border:1px solid #cdd7e2;border-radius:8px;font-size:12px}.hall-sides legend{font-weight:600;padding:0 4px}.hall-sides>div{display:grid;grid-template-columns:1fr 50px 42px;align-items:center;gap:6px;margin:8px 0}.hall-sides input[type=checkbox]{width:18px;height:18px;margin:auto;cursor:pointer}.hall-sides small{display:block;line-height:1.5;color:#596e81}.hall-side-head{font-size:10px;color:#596e81}.hall-workspace>aside{max-height:1050px;overflow:auto}.hall-toolbar .btn{padding:9px 12px}.hall-public .hall-scroll{max-height:none;background:#fff}

/* A fixed workspace with visible tool tabs; only the drawing scrolls on desktop. */
.hall-root{min-width:0}.hall-root:fullscreen{background:#fff;padding:0;overflow:hidden}
.hall-root:fullscreen .hall-editor{height:100dvh;border:0;border-radius:0}
.hall-editor{display:flex;flex-direction:column;height:clamp(640px,88vh,1050px)}
.hall-editor .hall-header,.hall-editor .hall-links,.hall-editor .hall-toolbar{flex-shrink:0;gap:6px;padding:8px 12px}
.hall-editor .btn{font-size:12px;padding:7px 10px;min-height:32px;border-radius:7px;line-height:1.3}
.hall-editor .field>span,.hall-editor .check{font-size:12px;line-height:1.35}
.hall-editor input:not([type=checkbox]):not([type=range]),.hall-editor select,.hall-editor textarea{font-size:13px;padding:6px 8px;border-radius:6px;line-height:1.4;min-height:32px}
.hall-editor .hall-header .field{min-width:160px;max-width:220px}.hall-editor .hall-header .check{flex:0 1 auto;margin:0 8px}
.hall-editor .hall-header #hall-save{margin-left:auto}
.hall-editor .hall-links{font-size:11px;padding-block:5px}.hall-links>span:first-child{flex:1;min-width:80px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hall-editor .hall-unpublished{flex-basis:auto;font-size:11px}.hall-editor .hall-links .btn{padding:4px 8px;min-height:26px}
.hall-editor .hall-toolbar{align-content:start}.hall-editor .hall-toolbar label{font-size:12px}.hall-zoom-control{margin-left:auto;white-space:nowrap}
.hall-editor .hall-toolbar input[type=range]{width:95px}.hall-editor #hall-zoom-value{width:58px}
.hall-workspace{flex:1;min-height:0;grid-template-columns:304px minmax(0,1fr)}
.hall-workspace>aside{padding:12px;max-height:none;overflow:auto;display:block}
.hall-property-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:14px}
.hall-property-tabs button{font:inherit;font-weight:600;font-size:11px;line-height:1.3;padding:8px 3px;min-height:30px;background:#fff;border:1px solid #cdd7e2;color:#365267;border-radius:5px;cursor:pointer}
.hall-property-tabs button.active{background:#e4edfc;border-color:#2d66c6;color:#124da8}.hall-property-tabs button:disabled{opacity:.45;cursor:default}
.hall-editor [hidden]{display:none!important}.hall-workspace #hall-properties{border:0;padding:0;margin:0}
.hall-workspace .field{margin-bottom:9px}.hall-workspace h3{font-size:14px;margin-bottom:10px}.hall-workspace .two{gap:8px}
.hall-workspace textarea{resize:vertical;max-height:130px}.hall-workspace input[type=color]{height:34px;padding:3px!important}
.hall-workspace input[type=checkbox]{width:16px;height:16px}.hall-workspace .check{margin:8px 0}
.hall-workspace .hall-sides{margin:0 0 10px;padding:8px}.hall-workspace .hall-sides>div{margin:7px 0}
.hall-workspace .hall-apply{margin-top:10px;width:100%}.hall-object-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.hall-editor .hall-stage{display:flex;flex-direction:column;min-height:0;padding:10px}.hall-editor .hall-status{margin-bottom:5px;font-size:12px}
.hall-editor .hall-stage>p{margin:0 0 8px;font-size:11px}.hall-editor .hall-scroll{flex:1;min-height:0;max-height:none;position:relative}
.hall-svg{min-height:0}.hall-editor #hall-canvas,.hall-public #hall-canvas{min-width:0;margin:0 auto}
.hall-public .hall-zoom-control input[type=number]{width:84px;min-width:84px;padding:8px;flex-shrink:0}
.hall-public .hall-toolbar .field{margin:0;flex-direction:column;align-items:flex-start;gap:4px}.hall-public #hall-public-section{min-width:180px}
.hall-editor .hall-drawing,.hall-editor .hall-drawing .hall-object{cursor:crosshair}
.hall-editor .hall-stage>.hall-draw-hint{color:#174e9f;background:#e8f0fc;padding:7px 9px;border-radius:5px;margin-bottom:7px;font-size:12px;flex:0 0 42px;box-sizing:border-box}
#hall-draw-readout{position:fixed;z-index:10;pointer-events:none;background:#174e9f;color:#fff;padding:7px 10px;border-radius:6px;font:600 13px/1.4 Arial,sans-serif;box-shadow:0 2px 8px #0002;white-space:nowrap}
#hall-draw-readout.invalid{background:#a64313}

@media(max-width:900px){.hall-editor{height:auto;min-height:640px}.hall-root:fullscreen .hall-editor{overflow:auto}.hall-workspace{grid-template-columns:270px minmax(0,1fr);min-height:500px}.hall-workspace>aside{border-right:1px solid #d8e1eb;border-bottom:0}.hall-editor .hall-scroll{height:65vh}.hall-editor .hall-header #hall-save{margin-left:0}}
@media(max-width:600px){.hall-workspace{display:flex;flex-direction:column}.hall-workspace>aside{width:auto;border:0}.hall-property-tabs{grid-template-columns:repeat(3,1fr)}.hall-editor .hall-stage{min-height:400px}.hall-editor .hall-links>span:first-child{flex-basis:100%}.hall-zoom-control{margin-left:0}}

/* Document actions, plan tabs and drawing tools stay separate. Popovers use the browser top layer. */
.hall-editor .hall-header{gap:12px;padding:12px 16px;background:#fff}
.hall-editor .hall-header .hall-event-field{min-width:220px;max-width:540px;flex:1 1 330px}
.hall-editor .hall-event-field select{width:100%;font-weight:600}
.hall-editor .hall-event-field>span{font-size:11px;color:#546b80;margin-bottom:3px}
.hall-document-actions,.hall-save-group,.hall-tool-group,.hall-view-tools{display:flex;align-items:center;gap:6px}
.hall-save-group{margin-left:auto;gap:12px}
#hall-save-status{font-size:12px;color:#546b80;white-space:nowrap}
#hall-save-status.unsaved{color:#996119}
.hall-editor .hall-save-group #hall-save{min-width:104px;margin:0;min-height:36px}
.hall-editor .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.hall-icon{display:inline-block;flex-shrink:0;vertical-align:middle;pointer-events:none}
.hall-section-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex-shrink:0;padding:0 16px;border-bottom:1px solid #d8e1eb;background:#fff}
#hall-sections{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.hall-section-tab{font:inherit;font-weight:600;font-size:13px;line-height:1.4;padding:12px 14px;border:0;border-bottom:3px solid transparent;background:transparent;color:#536b80;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.hall-section-tab[aria-selected=true]{color:#1858b9;border-bottom-color:#2867ce;background:#f1f6ff}
.hall-section-tab:hover{background:#f1f5fa;color:#1858b9}
.hall-editor .hall-add-section{border:0;background:transparent;color:#536b80;padding:6px 8px}
.hall-editor .hall-drawing-toolbar{padding:9px 12px;gap:10px;background:#f8fafc}
.hall-tool-group{flex-wrap:wrap}
.hall-editor .hall-drawing-toolbar .btn{background:transparent;border-color:transparent;color:#274860;min-height:34px}
.hall-editor .hall-drawing-toolbar .btn:hover:not(:disabled){background:#e9eff7}
.hall-editor .hall-drawing-toolbar .btn.active{background:#e4edfc;color:#174e9f;border-color:#b8cff3}
.hall-editor .hall-drawing-toolbar .btn:disabled{opacity:.35}
.hall-editor .hall-icon-button{padding:7px;width:34px}
.hall-history{border-left:1px solid #d5dfe9;padding-left:10px;flex-wrap:nowrap}
.hall-view-tools{margin-left:auto;flex-wrap:wrap}
.hall-view-tools .hall-zoom-control{margin-left:0;gap:6px}
.hall-editor .hall-view-tools input[type=range]{width:70px}
.hall-editor #hall-zoom-value{width:54px}
.hall-editor .hall-stage{padding:10px 12px 12px}
.hall-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;margin-bottom:4px}
.hall-editor .hall-status{margin:0;color:#536b80;font-weight:400}
.hall-editor .hall-help-button{padding:3px 6px;min-height:28px;background:transparent;border:0;color:#536b80}
.hall-editor .hall-context-hint{font-size:12px;color:#536b80;margin:0 0 9px}
.hall-selection-hint{margin:0 0 18px;font-size:13px;line-height:1.6;color:#536b80}
.hall-workspace>aside{background:#fafbfd}
.hall-editor .hall-draw-guidance{display:flex;gap:10px;align-items:center;background:#e8f0fc;padding:7px 10px;color:#174e9f;margin-bottom:8px;border-radius:6px;flex-shrink:0}
.hall-draw-guidance p{font-size:12px;line-height:1.4;margin:0;flex:1}
.hall-editor .hall-menu{position:fixed;inset:auto;margin:0;padding:16px;width:340px;max-width:calc(100vw - 16px);box-sizing:border-box;overflow:auto;border:1px solid #cbd7e4;border-radius:10px;box-shadow:0 8px 32px #102a4326;background:#fff;color:#1d3549;font-size:13px}
.hall-editor .hall-site-menu{width:420px}
.hall-menu h3{font-size:13px;font-weight:650;margin:0 0 8px}
.hall-menu p{font-size:12px;color:#536b80;line-height:1.5;margin:8px 0 12px}
.hall-menu hr{border:0;border-top:1px solid #e1e7ee;margin:14px 0}
.hall-menu .check{display:flex;align-items:flex-start;gap:9px;margin:10px 0;font-size:13px;line-height:1.5}
.hall-menu .check input{flex:0 0 auto;width:18px;height:18px;margin:1px 0 0}
.hall-download-options{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.hall-menu-item{display:block;text-align:left;width:100%;font:inherit;line-height:1.5;padding:9px 10px;border:0;border-radius:6px;color:#254763;background:transparent;cursor:pointer}
.hall-menu-item:hover{background:#edf3fb}
.hall-menu-item small{display:block;font-size:11px;font-weight:400;color:#536b80;margin-top:2px}
.hall-menu .hall-url{width:100%;font-size:11px!important;background:#f5f8fc;color:#536b80}
.hall-menu .hall-menu-note{border-top:1px solid #e1e7ee;padding-top:12px;margin-bottom:0}
.hall-shortcuts{margin:0;font-size:12px;line-height:1.5}
.hall-shortcuts dt{font-weight:600;margin-top:12px}
.hall-shortcuts dd{margin:3px 0 0;color:#536b80}
.hall-editor button:focus-visible,.hall-editor a:focus-visible{outline:2px solid #2867ce;outline-offset:2px}
@media(max-width:1250px){.hall-editor .hall-header .hall-event-field{max-width:none;flex-basis:280px}.hall-save-group{gap:8px}.hall-view-tools{margin-left:0}.hall-zoom-label{display:none}}
@media(max-width:900px){.hall-editor .hall-header{padding:10px 12px}.hall-document-actions{order:2}.hall-save-group{margin-left:0}.hall-editor .hall-header .hall-event-field{flex-basis:100%;min-width:0}.hall-section-bar{padding:0 10px}.hall-editor .hall-menu{max-height:70dvh}.hall-editor .hall-workspace{min-height:0}.hall-root:fullscreen .hall-editor{height:100dvh;overflow:hidden}.hall-root:fullscreen .hall-workspace{min-height:0}.hall-root:fullscreen .hall-scroll{height:auto}}
@media(max-width:600px){.hall-editor .hall-header{gap:8px}.hall-save-group{flex:1;justify-content:space-between}.hall-document-actions{flex-basis:100%}.hall-document-actions>.btn{flex:1}.hall-section-bar{gap:2px}.hall-section-tab{padding:10px}.hall-editor .hall-add-section{min-height:32px}.hall-view-tools{gap:3px;justify-content:space-between;width:100%}.hall-editor .hall-view-tools .btn{padding-inline:5px}.hall-editor .hall-view-tools input[type=range]{display:none}.hall-workspace>aside{padding:12px;max-height:250px;overflow:auto}.hall-selection-hint{margin:0}.hall-selection-hint:not([hidden])~#hall-size{margin-top:14px}.hall-stage-heading{align-items:start}.hall-root:fullscreen .hall-workspace{display:flex;flex-direction:column}.hall-root:fullscreen .hall-workspace>aside{max-height:180px;flex-shrink:0}.hall-root:fullscreen .hall-stage{min-height:120px;flex:1}.hall-root:fullscreen .hall-scroll{min-height:60px}}
.hall-number-anchors{display:flex;gap:6px;margin:0 0 6px}
.hall-editor .hall-number-anchors .btn{width:44px;height:34px;padding:3px}
.hall-editor .hall-number-anchors .btn[aria-pressed=true]{background:#e4edfc;border-color:#2867ce;color:#174e9f}
.hall-caption-label{font-size:12px;margin:5px 0 4px;color:#536b80}
.hall-caption-inspector h3{margin-bottom:6px}
.hall-caption-value{margin:0 0 16px;font-size:14px;font-weight:600;overflow-wrap:anywhere;white-space:pre-line}
.hall-caption-inspector .hall-object-actions{margin-top:14px}
.hall-caption-inspector .hall-caption-label{margin-top:12px}
.hall-caption-inspector .hall-number-anchors{margin-bottom:12px}
.hall-caption-actions{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.hall-caption-actions #hall-edit-caption{margin:0}
.hall-editor .hall-caption-warning{color:#9a4f16}
.hall-label-mode .hall-object{cursor:default}
.hall-caption-hit{cursor:grab}
.hall-caption-hit:not([data-caption-selected]):hover{stroke:#7da9e8}
.hall-caption-hit:active{cursor:grabbing}
.hall-drawing .hall-caption-hit{cursor:crosshair;pointer-events:none}
.hall-editor [data-hall-handle=rotate]{cursor:grab}
.hall-editor [data-hall-handle=resize]{cursor:nwse-resize}
#hall-edit-caption{margin-bottom:4px}
@media(max-width:620px){.hall-caption-inspector .two{grid-template-columns:repeat(2,minmax(0,1fr))}.hall-caption-value{max-height:2.8em;overflow:auto;margin-bottom:8px}}

.hall-caption-inspector form .field{margin-bottom:5px}
.hall-caption-rotation{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
.hall-caption-rotation input[type=range]{min-width:85px;flex:1;margin:0}

.hall-editor [data-hall-caption-handle=rotate]{cursor:grab}
.hall-editor [data-hall-caption-handle=resize]{cursor:nwse-resize}
.hall-editor [data-hall-caption-handle]:active{cursor:grabbing}
