/* Explicit Revit-style editing layout requested by owner; normal DAVINCI stays unchanged. */
.rv-ribbon,.rv-view-tabs,.rv-status,.rv-quick,.rv-palette-title,.rv-view-tree{display:none}
body.v8-revit{--rv-left:286px;--rv-top:calc(202px + var(--rv-y,0px));--rv-bg:#f3f3f3;--rv-edge:#b9b9b9;--rv-text:#252525;background:#e4e6e8!important}
body.v8-revit #workspace>header{left:0!important;top:0!important;right:0!important;width:100%!important;height:36px!important;box-sizing:border-box;transform:none!important;border:0!important;border-bottom:1px solid var(--rv-edge)!important;border-radius:0!important;background:#e7e8eb!important;backdrop-filter:none!important;box-shadow:none!important;color:var(--rv-text)!important;padding:0 12px!important;font-family:var(--dv-font)}
body.v8-revit #workspace>header :is(button,strong,em,.bar-glyph,span){color:var(--rv-text)!important;text-shadow:none}
body.v8-revit #workspace>header .brand{min-width:0;gap:10px}
body.v8-revit #workspace>header .v8-home-right{display:none!important}
body.v8-revit #v8-mode-toggle{white-space:nowrap;border:1px solid var(--rv-edge);border-radius:3px;padding:5px 10px;background:#fff;font:12px var(--dv-font)}
body.v8-revit .rv-ribbon{display:block;position:fixed;left:0;right:0;top:calc(36px + var(--rv-y,0px));height:138px;z-index:29;background:var(--rv-bg);color:var(--rv-text);font:12px var(--dv-font);border-bottom:1px solid var(--rv-edge)}
.rv-tabs{height:29px;display:flex;align-items:stretch;border-bottom:1px solid var(--rv-edge);overflow-x:auto}
.rv-tab{border:0;border-radius:0;padding:4px 16px;background:transparent;color:inherit;white-space:nowrap;font:12px var(--dv-font)}
.rv-tab[aria-selected=true]{background:white;box-shadow:inset 0 3px #678ca8}
.rv-panels{height:84px;display:flex;overflow-x:auto;background:#fafafa}
.rv-panel{border-right:1px solid var(--rv-edge);display:flex;flex-direction:column;flex:none;padding:3px 8px 0}
.rv-panel-tools{display:flex;gap:2px;flex:1}
.rv-tool{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:54px;max-width:94px;border:1px solid transparent;background:transparent;border-radius:2px;padding:4px 6px;color:var(--rv-text);font:11px/1.2 var(--dv-font);cursor:pointer}
.rv-tool svg{width:24px;height:24px;color:#527e9e}.rv-tool:hover,.rv-small:hover{background:#e2edf6;border-color:#a4bacd}
.rv-panel-name{text-align:center;font-size:10px;padding:3px;color:#555}
.rv-options{height:24px;box-sizing:border-box;padding:5px 12px;background:#e9edf0;border-top:1px solid var(--rv-edge);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}
body.v8-revit .rv-quick{display:flex;gap:2px}.rv-small{display:flex;gap:3px;align-items:center;background:transparent;border:0;color:inherit;font-size:10px}.rv-small svg{width:15px;height:15px}
body.v8-revit .rv-view-tabs{display:flex;position:fixed;left:var(--rv-left);right:0;top:calc(175px + var(--rv-y,0px));height:27px;z-index:20;background:#d7d9dd;border-bottom:1px solid var(--rv-edge);overflow:auto}
.rv-view-tab{border:0;border-right:1px solid var(--rv-edge);background:transparent;padding:4px 16px;white-space:nowrap;color:var(--rv-text);font:11px var(--dv-font)}.rv-view-tab.active{background:#fff;font-weight:600}
body.v8-revit .layout{inset:var(--rv-top) 0 52px var(--rv-left)!important}
body.v8-revit .model-area,body.v8-revit .canvas-wrap{inset:0!important;background:#fff!important}
body.v8-revit :is(#v7-model-drawer,#v7-properties-drawer){display:block!important;position:fixed!important;left:0!important;right:auto!important;width:var(--rv-left)!important;max-width:none!important;box-sizing:border-box;padding:0 10px 10px!important;border:0!important;border-right:1px solid var(--rv-edge)!important;border-radius:0!important;background:var(--rv-bg)!important;backdrop-filter:none!important;box-shadow:none!important;color:var(--rv-text)!important;overflow:auto!important;z-index:24!important;font:12px var(--dv-font)}
body.v8-revit #v7-properties-drawer{top:calc(175px + var(--rv-y,0px))!important;bottom:auto!important;height:calc((100dvh - 201px - var(--rv-y,0px))*.48)!important}
body.v8-revit #v7-model-drawer{top:calc(175px + var(--rv-y,0px) + (100dvh - 201px - var(--rv-y,0px))*.48)!important;bottom:26px!important;height:auto!important}
body.v8-revit .rv-palette-title{display:block;position:sticky;top:0;z-index:2;margin:0 -10px 10px!important;padding:7px 10px!important;background:#dfe1e4;border-block:1px solid var(--rv-edge);font:600 12px var(--dv-font)!important;color:var(--rv-text)!important}
body.v8-revit :is(#v7-model-drawer,#v7-properties-drawer) :is(h2,p,label,span,strong,button,.muted,.tree-title){color:var(--rv-text)!important;text-shadow:none!important}
body.v8-revit #v7-properties-drawer section.properties{padding:0!important;border:0!important}
body.v8-revit #v7-properties-drawer>section:not(.properties),body.v8-revit #v7-properties-drawer .section-label,body.v8-revit #v7-model-drawer :is(.section-label,.nav-bottom,.muted,.v7-drawer-close),body.v8-revit #v7-properties-drawer .v7-drawer-close{display:none!important}
body.v8-revit #navigator-project{font-size:12px!important;margin:8px 0}
body.v8-revit :is(#v7-model-drawer,#v7-properties-drawer) input,body.v8-revit :is(#v7-model-drawer,#v7-properties-drawer) select{background:#fff!important;border:1px solid var(--rv-edge)!important;border-radius:0!important;color:var(--rv-text)!important;min-height:25px;padding:4px;font-size:12px}
body.v8-revit #object-list{max-height:none!important;overflow:visible!important}
body.v8-revit #object-list button{border-radius:0!important;padding:5px 8px!important;font-size:11px!important;background:transparent!important}
body.v8-revit #object-list button.selected{background:#cfe4f7!important}
body.v8-revit .rv-view-tree{display:block;margin-bottom:12px}.rv-view-tree summary{cursor:pointer;font-weight:600}.rv-view-tree button{display:block;margin-left:16px;border:0;background:none;padding:5px;font-size:11px}
body.v8-revit #model-explorer-toggle,body.v8-revit .model-toolbar,body.v8-revit #workspace>footer,body.v8-revit .canvas-hint,body.v8-revit #v8-orb{display:none!important}
body.v8-revit #view-cube{top:12px!important;right:16px!important}
body.v8-revit #view-bar{top:auto!important;bottom:27px!important;left:var(--rv-left)!important;right:0!important;width:auto!important;transform:none!important;height:25px!important;flex-direction:row!important;justify-content:flex-start!important;border-radius:0!important;background:#e8e9eb!important;border:0!important;box-shadow:none!important;padding:0 8px!important;gap:4px!important}
body.v8-revit #view-bar button{height:24px!important;width:28px!important;color:#333!important;background:transparent!important}
body.v8-revit #view-bar svg{width:16px!important;height:16px!important}
body.v8-revit .rv-status{display:flex;justify-content:space-between;align-items:center;position:fixed;bottom:0;left:0;right:0;height:26px;z-index:30;box-sizing:border-box;padding:0 12px;background:#e5e6e8;border-top:1px solid var(--rv-edge);color:var(--rv-text);font:11px var(--dv-font)}
.rv-status button{font:11px var(--dv-font);padding:3px 10px;border:1px solid #aaa;background:#fafafa;color:#222;border-radius:2px}
body.v8-revit .davinci-dock{left:auto!important;right:16px!important;bottom:62px!important;transform:none!important;width:min(500px,calc(100vw - var(--rv-left) - 32px))!important;z-index:32!important}
body.v8-revit:not(.rv-chat-open) .davinci-dock:not(:focus-within){display:none!important}
body.v8-revit .davinci-dock #agent-messages{max-height:35vh!important}
@media(max-width:900px){body.v8-revit{--rv-left:220px}.rv-tab{padding-inline:10px}body.v8-revit .rv-quick{display:none}}
@media(max-width:600px){body.v8-revit{--rv-left:160px}body.v8-revit #workspace>header .brand strong{display:none}body.v8-revit #workspace>header .header-right>.bar-glyph{display:none!important}body.v8-revit .davinci-dock{width:calc(100vw - 24px)!important;right:12px!important}body.v8-revit #v8-mode-toggle{font-size:10px;padding:5px}}
body.v8-revit #v7-properties-drawer.inspector:not(.expanded){width:var(--rv-left)!important;min-width:0!important;padding:0 10px 10px!important}
body.v8-revit #v7-properties-drawer.inspector:not(.expanded) .properties{display:block!important;max-height:none!important;overflow:visible!important}

body.v8-revit :is(#v7-model-toggle,#v7-properties-toggle){display:none!important}
body.v8-revit .rv-tab:first-child{background:#286090;color:white}

body.v8-revit #view-cube{top:calc(214px + var(--rv-y,0px))!important;left:auto!important;right:16px!important;background:#dfe6ed!important;border-radius:4px!important;transform:none!important;display:block}
body.v8-revit .v8-site-dots{top:calc(214px + var(--rv-y,0px))!important;right:140px!important;left:auto!important}
body.v8-revit .v8-panel-min{display:none!important}
body.v8-revit .rv-view-tab{border-radius:0!important}
body.v8-revit #view-bar svg{color:#527e9e!important}
body.v8-revit #view-bar .hv{border-radius:0!important}
/* Editing commands are deterministic: never routed to an AI conversation. */
body.v8-revit{--rv-props:calc((100dvh - 201px)*.48)}
body.v8-revit .layout{bottom:90px!important}
body.v8-revit #v7-properties-drawer{height:var(--rv-props)!important}
body.v8-revit #v7-model-drawer{top:calc(175px + var(--rv-y,0px) + var(--rv-props))!important}
body.v8-revit #cmd-box{display:flex!important;position:fixed!important;left:var(--rv-left)!important;right:0!important;bottom:52px!important;transform:none!important;width:auto!important;z-index:28!important;flex-direction:row!important;align-items:center;gap:6px;padding:4px 8px;box-sizing:border-box;min-height:38px;background:#eef0f2;border-top:1px solid var(--rv-edge)}
body.v8-revit #cmd-line{flex:1;min-width:0;height:28px;padding:4px 8px;border-radius:2px;background:white;color:#252525;border:1px solid #aaa;font:12px var(--dv-font);backdrop-filter:none}
body.v8-revit #cmd-out:not([hidden]){position:absolute;bottom:100%;left:0;right:0;max-height:120px;overflow:auto;margin:0;border-radius:0;background:#f3f5f7;border:1px solid #aaa;color:#222;white-space:pre-wrap;padding:8px 12px;box-sizing:border-box}
body.v8-revit #cmd-out.error{color:#9a1f16;background:#fff1ed}
.rv-execute,.rv-command-help{display:none}
body.v8-revit :is(.rv-execute,.rv-command-help){display:block;border:1px solid #aaa;background:#fff;border-radius:2px;padding:5px 9px;color:#222;font:12px var(--dv-font)}
.rv-tool:disabled,.rv-small:disabled{opacity:.4;cursor:default}
.rv-tool-search{position:absolute;right:8px;top:3px;width:160px;height:23px;border:1px solid #aaa;background:white;color:#222;border-radius:2px;padding:2px 6px;font:11px var(--dv-font)}
.rv-tabs{padding-right:180px}
.rv-browser-search{display:none}
body.v8-revit .rv-browser-search{display:block;width:100%;box-sizing:border-box;margin-bottom:8px}
.rv-width-splitter,.rv-height-splitter{display:none}
body.v8-revit .rv-width-splitter{display:block;position:fixed;left:calc(var(--rv-left) - 3px);top:calc(175px + var(--rv-y,0px));bottom:26px;width:6px;z-index:31;cursor:col-resize;touch-action:none}
body.v8-revit .rv-height-splitter{display:block;position:fixed;left:0;top:calc(172px + var(--rv-y,0px) + var(--rv-props));width:var(--rv-left);height:6px;z-index:31;cursor:row-resize;touch-action:none}
body.v8-revit :is(.rv-width-splitter,.rv-height-splitter):is(:hover,:focus-visible){background:#527e9e;outline:0}
body.v8-revit #object-list button[hidden]{display:none!important}
body.v8-revit .v8-pj-panel{top:calc(208px + var(--rv-y,0px));bottom:96px;max-width:calc(100vw - var(--rv-left) - 28px);box-sizing:border-box}
body.v8-revit .rv-status>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:900px){.rv-tool-search{width:115px}.rv-tabs{padding-right:135px}}
@media(max-width:600px){.rv-tool-search{position:static;width:calc(100% - 16px);margin:3px 8px;height:24px}.rv-tabs{padding-right:0}.rv-panels{height:54px}.rv-tool{flex-direction:row;min-width:70px;max-width:130px}.rv-tool svg{width:18px;height:18px;flex:none}.rv-panel-name{padding:0}.rv-command-help{max-width:72px}body.v8-revit #cmd-box{left:0!important;z-index:32!important}body.v8-revit #v7-model-drawer{bottom:90px!important}body.v8-revit .v8-pj-panel{max-width:calc(100vw - 24px);left:12px;right:12px}}
body.v8-revit .v8-cam-panel:not([hidden]){display:flex!important;top:calc(208px + var(--rv-y,0px))!important;right:16px!important;left:auto!important;max-height:calc(100dvh - 310px - var(--rv-y,0px))!important;overflow:auto;z-index:65!important}
body.v8-revit #sketch-bar{top:var(--rv-top)!important;left:var(--rv-left)!important;right:0!important;justify-content:flex-start;box-shadow:none!important;backdrop-filter:none!important;transform:none!important;max-width:none!important;z-index:35!important;background:#e7ebef!important;border:1px solid #aab4bf!important;border-radius:2px!important;color:#222!important}
body.v8-revit #sketch-bar :is(button,span,strong){color:#222!important}
body.v8-revit #edit-bar:not([hidden]){position:fixed!important;top:calc(175px + var(--rv-y,0px))!important;left:var(--rv-left)!important;right:0!important;height:27px!important;box-sizing:border-box;transform:none!important;margin:0!important;padding:0 8px!important;white-space:nowrap;background:#e7ebef!important;z-index:25!important;overflow-x:auto;border-radius:0!important}
body.v8-revit:has(#edit-bar:not([hidden])) .rv-view-tabs{visibility:hidden}
body.v8-revit .v8-plan-readout{top:auto!important;bottom:92px!important;left:calc(var(--rv-left) + 12px)!important;color:#222!important;background:#eef0f2!important}
body.v8-revit .v8-plan-typed{top:auto!important;bottom:122px!important;left:calc(var(--rv-left) + 12px)!important;right:auto!important;transform:none!important;width:min(340px,calc(100vw - var(--rv-left) - 24px))!important;color:#222!important;background:#fff!important;border-radius:2px!important;z-index:36!important}
body.rv-anchor-picking #model-canvas{cursor:crosshair!important}
/* Keep drawing export/close controls reachable below the editing ribbon. */
body.v8-revit #element-sheet{position:fixed!important;top:calc(202px + var(--rv-y,0px))!important;bottom:90px!important;left:var(--rv-left)!important;right:0!important;z-index:26!important;border-radius:0!important}
body.v8-revit #element-sheet>header{position:relative!important;inset:auto!important;transform:none!important;flex-shrink:0!important}
body.v8-revit #element-sheet{background:#fff!important;color:#222!important;border:1px solid #b6b6b6!important}
body.v8-revit #element-sheet>header{background:#e7ebef!important;color:#222!important;border-bottom:1px solid #b6b6b6!important;box-shadow:none!important;flex-wrap:wrap!important}
body.v8-revit #element-sheet>header :is(strong,span,label,button,input){color:#222!important;text-shadow:none!important}
body.v8-revit #element-sheet>header button{background:#f8f8f8!important;border:1px solid #aab4bf!important;border-radius:2px!important}
@media print{body.v8-revit #element-sheet{inset:0!important;position:absolute!important;border:0!important}}
/* Dynamic native fields must override the normal-mode glass inputs. */
body.v8-revit #v7-properties-drawer #element-fields input{background:#fff!important;color:var(--rv-text)!important;border:1px solid var(--rv-edge)!important;border-radius:0!important;box-shadow:none!important}
body.v8-revit #v7-properties-drawer :is(#wall-fields,#element-fields)[hidden]{display:none!important}
body.v8-revit #v7-properties-drawer .v8-composition{background:#eef0f2!important;border:1px solid var(--rv-edge)!important;border-radius:2px!important;box-shadow:none!important;backdrop-filter:none!important}
body.v8-revit #v7-properties-drawer .v8-composition :is(.dv-title,span,label,strong,small,b){color:var(--rv-text)!important;text-shadow:none!important}

/* The shared export menu is also available from the editable ribbon. */
body.v8-revit .v8-dw-menu:not([hidden]){display:flex!important;z-index:80}

body.v8-revit #element-sheet .sheet-element-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;padding:12px;margin-bottom:10px;background:var(--rv-bg);border:1px solid var(--rv-edge);font:12px/1.45 var(--dv-font)}
body.v8-revit #element-sheet .sheet-element-info[hidden]{display:none}
body.v8-revit .sheet-element-info h3{margin:0 0 6px;font-size:13px}
body.v8-revit .sheet-element-info dl{display:grid;grid-template-columns:max-content 1fr;gap:2px 12px;margin:0}
body.v8-revit .sheet-element-info :is(dd,p,ol){margin:0;overflow-wrap:anywhere}
body.v8-revit .sheet-element-info ol{padding-inline-start:20px}
/* Editing an element: v7-shell.css moves these up with a stronger :has(#edit-bar) rule, which put the view tools behind View all / Wall and the cube under the ribbon */
body.v8-revit:has(#edit-bar:not([hidden])) #view-bar{top:auto!important}
body.v8-revit:has(#edit-bar:not([hidden])) #view-cube{top:calc(214px + var(--rv-y,0px))!important}
body.v8-revit:has(#edit-bar:not([hidden])) .v8-site-dots{top:calc(214px + var(--rv-y,0px))!important}
