/* Additive ArqDocs components; existing sections keep their original styles. */
.ad-promise { padding-block: 36px; background: var(--ink); color: var(--white); }
.ad-promise-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9%; align-items: center; }
.ad-promise .eyebrow { margin-bottom: 12px; color: var(--teal-light); }
.ad-promise h2 { max-width: 660px; margin: 0; font: 600 clamp(34px, 3.3vw, 51px)/1.04 var(--display); letter-spacing: -.02em; }
.ad-promise h2 em { color: var(--teal-light); font-style: normal; }
.ad-promise-side { padding-left: 34px; border-left: 1px solid #4e7377; }
.ad-promise-side p { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.ad-promise-side > span { display: flex; align-items: center; gap: 11px; margin-top: 17px; color: var(--teal-light); font-size: 11px; font-weight: 600; letter-spacing: .11em; }
.ad-promise-side i { width: 18px; height: 1px; background: currentColor; }

.ad-showcase { background: var(--soft); }
.ad-showcase .section-intro { margin-bottom: 42px; }
.ad-app-frame { overflow: hidden; border: 1px solid #b8ccc7; border-radius: 10px; background: var(--white); box-shadow: 18px 20px 0 rgba(8,127,117,.08); }
.ad-app-bar { min-height: 53px; display: flex; align-items: center; gap: 12px; padding: 10px 19px; background: var(--ink-deep); color: var(--white); }
/* .ad-logo-crop: size the logo with font-size (= logo height). */
.ad-logo-crop { display: block; width: 4.62em; height: 1em; }
.ad-logo-crop img { display: block; width: 100%; height: 100%; }
.ad-logo-chip { padding: 6px 10px; border-radius: 5px; background: #fff; font-size: 20px; }
.ad-app-bar small { color: #b6cac8; font: 400 12px/1 var(--body); }
.ad-app-body { min-height: 365px; display: grid; grid-template-columns: 155px minmax(0,1fr); }
.ad-app-rail { display: flex; flex-direction: column; gap: 7px; padding: 26px 10px; border-right: 1px solid var(--line); background: #f1f6f2; }
.ad-app-rail button { padding: 9px 12px; border: 0; border-radius: 4px; background: none; color: var(--slate); font: 13px/1.2 var(--body); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.ad-app-rail button:not([aria-current]):hover { background: #e6efeb; color: var(--ink); }
.ad-app-rail button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.ad-app-rail [aria-current], .ad-app-rail:has(.ad-rail-sub [aria-current]) > [data-agent] { background: var(--soft); color: var(--teal); font-weight: 600; }
.ad-rail-sub { display: flex; flex-direction: column; gap: 2px; margin: -4px 0 0 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.ad-rail-sub button { padding: 6px 10px; font-size: 12px; }
.ad-rail-sub [aria-current] { background: var(--teal); color: #fff; }
/* Workspace demo views */
[data-view-panel]:not([hidden]) { animation: ad-view-in .3s ease-out; }
@keyframes ad-view-in { from { opacity: 0; transform: translateY(6px); } }
.ad-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ad-chips span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--slate); font-size: 12px; }
.ad-chips .is-on { border-color: var(--teal); background: var(--soft); color: var(--teal); font-weight: 600; }
.ad-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th { padding: 9px 12px; background: #f1f6f2; color: var(--slate); font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.ad-table td { padding: 11px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.ad-table td b { margin-right: 6px; color: var(--teal); }
.ad-table tbody tr:hover { background: #f7faf9; }
.ad-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.ad-pill.ok { background: var(--soft); color: var(--teal); }
.ad-pill.rev { background: #f6ecd9; color: #8a6424; }
.ad-pill.act { background: #f5e2df; color: #94473f; }
.ad-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ad-board section { padding: 12px; border-radius: 6px; background: #f1f6f2; }
.ad-board h4 { display: flex; justify-content: space-between; margin: 0 0 10px; color: var(--slate); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ad-board h4 b { color: var(--teal); }
.ad-board article { margin-top: 8px; padding: 10px 11px; border: 1px solid var(--line); border-left: 3px solid #b88b3d; border-radius: 5px; background: var(--white); }
.ad-board article.done { border-left-color: var(--teal); }
.ad-board section:first-child article { border-left-color: var(--slate); }
.ad-board strong, .ad-board small { display: block; }
.ad-board strong { font-size: 13px; }
.ad-board small { margin-top: 3px; color: var(--slate); font-size: 11px; }
.ad-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ad-team-grid article { padding: 15px 16px; border: 1px solid var(--line); border-radius: 6px; }
.ad-team-grid header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ad-team-grid strong { font: 600 21px/1 var(--display); }
.ad-team-grid p { margin: 8px 0 10px; color: var(--slate); font-size: 12px; }
.ad-team-grid small { color: var(--slate); font-size: 11px; }
.ad-avatars { display: flex; }
.ad-avatars i { width: 26px; height: 26px; display: grid; place-items: center; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; background: var(--soft); color: var(--teal); font-size: 9px; font-style: normal; font-weight: 600; }
.ad-progress { height: 6px; margin-bottom: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ad-progress i { display: block; height: 100%; border-radius: 3px; background: var(--teal); }
.ad-graph { position: relative; height: 300px; }
.ad-graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ad-graph-lines line { stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; opacity: .55; animation: ad-flow 1.1s linear infinite; }
@keyframes ad-flow { to { stroke-dashoffset: -20; } }
.ad-graph-master, .ad-graph-agent { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.ad-graph-master { width: 210px; padding: 16px 16px 14px; border: 2px solid var(--teal); border-radius: 10px; background: #fff; box-shadow: 0 0 0 8px rgba(8,127,117,.08), 0 14px 30px rgba(20,43,52,.12); text-align: center; animation: ad-master-pulse 2.6s ease-in-out infinite; }
.ad-graph-master .ad-logo-crop { margin: 0 auto 10px; font-size: 26px; }
.ad-graph-master strong { display: block; color: var(--teal); font: 600 20px/1 var(--display); }
.ad-graph-master small { display: block; margin-top: 5px; color: var(--slate); font-size: 11px; line-height: 1.35; }
@keyframes ad-master-pulse { 50% { box-shadow: 0 0 0 14px rgba(8,127,117,.04), 0 14px 30px rgba(20,43,52,.12); } }
.ad-graph-agent { width: 150px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; font: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ad-graph-agent:hover, .ad-graph-agent:focus-visible { border-color: var(--teal); box-shadow: 0 8px 18px rgba(20,43,52,.1); transform: translate(-50%, calc(-50% - 3px)); outline: none; }
.ad-graph-agent strong { display: block; color: var(--ink); font: 600 17px/1.1 var(--display); }
.ad-graph-agent strong::before { content: "✦ "; color: var(--teal); }
.ad-graph-agent small { display: block; margin-top: 3px; color: var(--slate); font-size: 11px; }
.ad-graph-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--slate); font-size: 12px; }
.ad-graph-steps b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; background: var(--soft); color: var(--teal); font-size: 10px; }
.ad-agent-chat { display: grid; gap: 12px; }
.ad-agent-ask { justify-self: end; max-width: 80%; margin: 0; padding: 10px 14px; border-radius: 12px 12px 2px 12px; background: var(--ink); color: #fff; font-size: 14px; animation: ad-view-in .3s ease-out; }
.ad-agent-answer { max-width: 92%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px 12px 12px 2px; background: #eef6f2; animation: ad-view-in .4s .45s ease-out both; }
.ad-agent-answer p { margin: 8px 0 6px; font-size: 14px; font-weight: 600; }
.ad-agent-answer ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 13px; line-height: 1.55; }
.ad-agent-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.ad-agent-sources span { padding: 3px 9px; border-radius: 999px; background: var(--white); color: var(--teal); font-size: 11px; font-weight: 600; }
.ad-agent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ad-agent-btn { padding: 6px 13px; border-radius: 4px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 600; }
.ad-agent-btn.ghost { border: 1px solid var(--teal); background: none; color: var(--teal); }
.ad-agent-actions small { color: var(--slate); font-size: 11px; }
.ad-app-content { min-width: 0; padding: clamp(20px, 3vw, 38px); }
.ad-app-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.ad-app-heading small, .ad-card-label { color: var(--teal); font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.ad-app-heading h3 { margin: 3px 0 0; font: 600 34px/1 var(--display); }
.ad-app-heading > span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--slate); font-size: 11px; }
.ad-metric-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 13px; }
.ad-metric-grid article { min-width: 0; min-height: 210px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.ad-kpi-line { display: flex; align-items: end; gap: 10px; margin: 13px 0 7px; }
.ad-kpi-line strong { color: var(--teal); font: 700 72px/.8 var(--display); }
.ad-kpi-line span { color: #287769; font-size: 11px; font-weight: 600; }
.ad-kpi p { margin: 10px 0 18px; color: var(--slate); font-size: 12px; }
.ad-status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--teal); }
.ad-sparkline { height: 35px; display: flex; align-items: flex-end; gap: 7px; border-bottom: 1px solid var(--line); }
.ad-sparkline i { width: 12%; height: 32%; display: block; border-radius: 2px 2px 0 0; background: var(--teal-light); }
.ad-sparkline i:nth-child(2) { height: 43%; }.ad-sparkline i:nth-child(3) { height: 39%; }.ad-sparkline i:nth-child(4) { height: 55%; }.ad-sparkline i:nth-child(5) { height: 60%; }.ad-sparkline i:nth-child(6) { height: 52%; }.ad-sparkline i:nth-child(7) { height: 76%; }.ad-sparkline i:nth-child(8) { height: 89%; background: var(--teal); }
.ad-breakdown > div { margin-top: 19px; }
.ad-breakdown > div > span { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.ad-breakdown b { color: var(--ink); }
.ad-bar, .ad-bar > i { display: block; height: 7px; border-radius: 20px; }
.ad-bar { margin-top: 6px; background: var(--soft); }
.ad-approved > i { width: 64%; background: var(--teal); }.ad-reviewing > i { width: 27%; background: #b88b3d; }.ad-attention > i { width: 9%; background: #a66059; }
.ad-insight { background: #eef6f2 !important; }
.ad-insight strong { display: block; margin-top: 19px; font: 600 24px/1.1 var(--display); }
.ad-insight p { margin: 10px 0; font-size: 14px; line-height: 1.4; }
.ad-insight > span:last-child { color: var(--teal); font-size: 11px; font-weight: 600; }
.ad-caption { margin: 20px 0 0; color: var(--slate); font-size: 13px; }

.ad-mobile { overflow: hidden; background: var(--soft); }
.ad-mobile-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 8%; align-items: center; }
.ad-mobile-copy > p:not(.eyebrow) { max-width: 500px; color: var(--slate); font-size: 19px; }
.ad-concept-note { display: inline-block; margin-top: 17px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.ad-phones { display: flex; justify-content: center; align-items: end; gap: clamp(14px,3vw,38px); }
.ad-phone-wrap { text-align: center; }
.ad-phone { width: clamp(190px,19vw,242px); height: 425px; padding: 8px; position: relative; border: 4px solid var(--ink); border-radius: 29px; background: var(--ink); box-shadow: 10px 15px 0 rgba(20,43,52,.12); text-align: left; }
.ad-phone-notch { position: absolute; z-index: 2; top: 7px; left: 33%; width: 34%; height: 13px; border-radius: 0 0 10px 10px; background: var(--ink); }
.ad-phone-screen { height: 100%; overflow: hidden; border-radius: 20px; background: #e8f1ed; }
.ad-phone-time { height: 29px; padding: 7px 13px 0; display: flex; justify-content: space-between; background: var(--white); font-size: 9px; font-weight: 600; }
.ad-phone-chathead { min-height: 49px; display: flex; align-items: center; gap: 7px; padding: 7px; background: var(--white); font-size: 15px; }
.ad-phone-avatar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--white); font: 700 17px/1 var(--display); }
.ad-phone-chathead strong { flex: 1; font-size: 10px; line-height: 1.1; }
.ad-phone-chathead small { display: block; margin-top: 2px; color: var(--slate); font-size: 8px; font-weight: 400; }
.ad-phone-bubble { margin: 29px 10px 0; padding: 12px; border: 1px solid #bfd8cf; border-radius: 7px; background: var(--white); box-shadow: 3px 4px 0 rgba(20,43,52,.06); }
.ad-phone-bubble > span { color: var(--teal); font-size: 8px; font-weight: 600; letter-spacing: .1em; }
.ad-phone-bubble h3 { margin: 7px 0 5px; font: 600 21px/1 var(--display); }
.ad-phone-bubble p { margin: 0 0 13px; color: var(--slate); font-size: 10px; line-height: 1.25; }
.ad-phone-bubble > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 10px; }
.ad-phone-bubble b { color: var(--teal); }.ad-phone-bubble small { color: var(--slate); font-size: 10px; }
.ad-phone-bubble em { display: block; margin-top: 9px; color: var(--teal); font-size: 9px; font-style: normal; font-weight: 600; }
.ad-phone-input { display: flex; justify-content: space-between; margin: 21px 9px 0; padding: 6px 9px; border-radius: 18px; background: var(--white); color: var(--slate); font-size: 10px; }
.ad-phone-input span { color: var(--teal); }.ad-phone-label { display: block; margin-top: 19px; color: var(--slate); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.ad-phone-screen[dir="rtl"] { text-align: right; }.ad-phone-screen[dir="rtl"] .ad-phone-chathead strong { font-family: var(--body); }.ad-phone-screen[dir="rtl"] .ad-phone-bubble h3 { font-family: var(--body); font-size: 15px; }

.ad-request { background: var(--paper); }
.ad-request-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 8%; align-items: start; }
.ad-request-layout > div > p:not(.eyebrow) { max-width: 410px; color: var(--slate); font-size: 18px; }
.ad-request-form { padding: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); box-shadow: 12px 14px 0 var(--soft); }
.ad-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.ad-form-grid label { display: grid; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 600; }
.ad-form-wide { grid-column: 1 / -1; }
.ad-form-grid input, .ad-form-grid textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #bbc9c5; border-radius: 5px; background: var(--white); color: var(--ink); font: 16px var(--body); }
.ad-form-grid textarea { resize: vertical; line-height: 1.4; }
.ad-form-grid input:focus, .ad-form-grid textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal-light); outline-offset: 1px; }
.ad-form-grid :is(input, textarea)[aria-invalid="true"] { border-color: #a66059; }
.ad-consent { display: flex; align-items: flex-start; gap: 10px; margin: 23px 0 18px; color: var(--slate); font-size: 13px; line-height: 1.4; }
.ad-consent input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--teal); }.ad-consent a { color: var(--teal); }
.ad-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }.ad-form-actions .button { cursor: pointer; }
.ad-form-actions .button:disabled { opacity: .53; cursor: not-allowed; transform: none; }.ad-form-status { min-height: 1.3em; margin: 0; color: var(--slate); font-size: 13px; }
.ad-family-link { white-space: nowrap; }

.bim-viewer { overflow: hidden; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 7px; background: #f8fbf8; box-shadow: 8px 9px 0 var(--soft); }
.bim-viewer-top, .bim-viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.bim-viewer-top { border-bottom: 1px solid var(--line); background: var(--white); }
.bim-viewer-top > span, .bim-viewer-bottom { color: var(--slate); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.bim-viewer-top > span { display: flex; align-items: center; gap: 8px; }
.bim-viewer-top > span i { width: 8px; height: 8px; display: block; border-radius: 50%; background: var(--teal); }
.bim-viewer-controls { display: flex; gap: 7px; }
.bim-viewer-controls button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); font: 600 11px var(--body); cursor: pointer; }
.bim-viewer-controls button:hover { border-color: var(--teal); color: var(--teal); }
#bim-canvas { display: block; width: 100%; height: 330px; cursor: grab; touch-action: none; }
#bim-canvas:active { cursor: grabbing; }
#bim-canvas:focus-visible { outline: 3px solid var(--teal); outline-offset: -4px; }
.bim-viewer-bottom { min-height: 34px; border-top: 1px solid var(--line); background: var(--white); }
.bim-viewer-bottom > span:last-child { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.bim-viewer-bottom i { width: 9px; height: 9px; display: inline-block; margin-left: 7px; border-radius: 2px; }
.bim-viewer-bottom i:first-child { margin-left: 0; }
.bim-legend-structure { background: var(--teal); }.bim-legend-review { background: #b88b3d; }

.ad-float-tools { position: fixed; z-index: 48; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.ad-float-button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--teal); border-radius: 7px; background: var(--white); box-shadow: 0 7px 24px rgba(20,43,52,.14); color: var(--teal); font: 700 27px/1 var(--display); cursor: pointer; }
.ad-float-button:hover, .ad-float-button[aria-expanded="true"] { background: var(--teal); color: var(--white); }
.ad-chat-open { background: var(--teal); color: var(--white); }.ad-chat-open:hover, .ad-chat-open[aria-expanded="true"] { background: var(--ink); }
.ad-popover { position: fixed; z-index: 47; right: 80px; bottom: 20px; width: min(365px,calc(100vw - 104px)); max-height: min(620px,calc(100vh - 38px)); overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 20px 60px rgba(12,32,40,.2); }
.ad-popover-head { display: flex; justify-content: space-between; gap: 10px; padding: 16px 18px; background: var(--ink); color: var(--white); }
.ad-popover-head small { color: var(--teal-light); font-size: 9px; font-weight: 600; letter-spacing: .1em; }.ad-popover-head h2 { margin: 3px 0 0; font: 600 26px/1 var(--display); }
.ad-popover-close { width: 30px; height: 30px; flex: none; border: 1px solid #71928f; border-radius: 4px; background: transparent; color: var(--white); font-size: 21px; cursor: pointer; }
.ad-popover-body { padding: 17px; }.ad-popover-body > p { margin: 0 0 15px; font-size: 14px; }.ad-popover-body > a { display: block; margin-top: 11px; color: var(--teal); font-size: 14px; font-weight: 600; }
.ad-chat-greeting { padding: 12px; border-radius: 5px; background: var(--soft); }
.ad-chat-messages { display: grid; gap: 8px; max-height: 185px; overflow-y: auto; }.ad-chat-message { margin: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: #f5f8f5; font-size: 13px; line-height: 1.35; }.ad-chat-message.is-question { margin-left: 30px; border-color: #b9d9d1; background: var(--soft); }
.ad-chat-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }.ad-chat-chips button { padding: 6px 9px; border: 1px solid #bcd8d1; border-radius: 4px; background: var(--white); color: var(--teal); font: 600 12px var(--body); cursor: pointer; }.ad-chat-chips button:hover { background: var(--soft); }
.ad-chat-input { display: flex; border: 1px solid var(--line); border-radius: 5px; }.ad-chat-input input { min-width: 0; flex: 1; padding: 8px 10px; border: 0; outline: 0; font: 14px var(--body); }.ad-chat-input button { width: 39px; border: 0; border-left: 1px solid var(--line); background: var(--soft); color: var(--teal); font-size: 18px; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1080px) { .ad-metric-grid { grid-template-columns: 1fr 1fr; }.ad-insight { grid-column: 1 / -1; min-height: 125px !important; }.ad-mobile-layout { gap: 4%; } }
@media (max-width: 760px) { .ad-promise-inner, .ad-mobile-layout, .ad-request-layout { grid-template-columns: 1fr; gap: 26px; }.ad-promise-side { padding: 15px 0 0; border-left: 0; border-top: 1px solid #4e7377; }.ad-app-body { grid-template-columns: 1fr; }.ad-app-rail { flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }.ad-app-rail button { white-space: nowrap; }.ad-rail-sub { flex-direction: row; margin: 0; padding-left: 0; border-left: 0; }.ad-phones { margin-top: 16px; }.ad-phone { width: min(38vw,215px); }.ad-popover { right: 76px; } }
@media (max-width: 540px) { .ad-metric-grid, .ad-form-grid { grid-template-columns: 1fr; }.ad-insight { grid-column: auto; }.ad-app-bar small { display: none; }.ad-graph { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.ad-graph-lines { display: none; }.ad-graph-master, .ad-graph-agent { position: static; transform: none; width: auto; }.ad-graph-master { grid-column: 1 / -1; margin-bottom: 6px; }.ad-graph-agent:hover, .ad-graph-agent:focus-visible { transform: none; }.ad-board, .ad-team-grid { grid-template-columns: 1fr; }.ad-agent-ask, .ad-agent-answer { max-width: 100%; }.ad-app-content { padding: 15px; }.ad-app-heading h3 { font-size: 27px; }.ad-metric-grid article { min-height: 0; }.ad-phones { gap: 9px; }.ad-phone { width: min(40vw,190px); height: 370px; padding: 5px; border-width: 3px; border-radius: 22px; }.ad-phone-screen { border-radius: 15px; }.ad-phone-bubble { margin-top: 16px; padding: 9px; }.ad-phone-bubble h3 { font-size: 17px; }.ad-phone-screen[dir="rtl"] .ad-phone-bubble h3 { font-size: 13px; }.ad-phone-label { font-size: 9px; }.ad-request-form { padding: 18px; }.ad-float-tools { right: 12px; bottom: 12px; }.ad-float-button { width: 43px; height: 43px; }.ad-popover { right: 12px; bottom: 109px; width: min(365px,calc(100vw - 24px)); max-height: calc(100vh - 125px); } }
@media (max-width: 540px) { #bim-canvas { height: 260px; }.bim-viewer-top, .bim-viewer-bottom { flex-wrap: wrap; }.bim-viewer-bottom { font-size: 9px; } }
@media (max-width: 350px) { .ad-phones { flex-direction: column; align-items: center; }.ad-phone { width: 190px; } }

/* Systems "ladder": rows loop downward; hovering or focusing the list pauses it. */
.systems-rows { max-height: 316px; overflow-y: auto; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.systems-rows.is-looping { overflow: hidden; }
.systems-rows.is-looping .systems-track { animation: systems-ladder 32s linear infinite; }
.systems-rows.is-looping:hover .systems-track, .systems-rows.is-looping:focus-within .systems-track { animation-play-state: paused; }
.system-row .system-node { transition: background .2s; }
.system-row:hover .system-node { background: var(--teal); }
@keyframes systems-ladder { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.system-row { grid-template-columns: 15px minmax(100px, 1fr) minmax(120px, .9fr) 36px; }
.system-logo { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #b8d7d0; border-radius: 7px; background: var(--soft); color: var(--teal); transition: background .2s, color .2s; }
.system-logo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.system-row:hover .system-logo { background: var(--teal); color: #fff; }
@media (max-width: 480px) { .system-row { grid-template-columns: 12px 1fr 36px; } .system-logo { grid-column: 3; grid-row: 1 / span 2; } }

/* Phones: left is an iPhone (notch + home bar), right is Android (punch-hole + nav bar).
   Both float gently; hover lifts and tilts the phone and drops a notification in. */
.ad-phone-wrap { animation: phone-float 5s ease-in-out infinite; }
.ad-phone-wrap + .ad-phone-wrap { animation-delay: -2.5s; }
.ad-phone { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.ad-phone-screen { position: relative; }
.ad-android { border-radius: 18px; }
.ad-android .ad-phone-screen { border-radius: 10px; }
.ad-phone-cam { position: absolute; z-index: 3; top: 15px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px #2c4650; }
.ad-phone-home { position: absolute; z-index: 3; bottom: 15px; left: 35%; width: 30%; height: 4px; border-radius: 2px; background: var(--ink); opacity: .75; }
.ad-phone-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; display: flex; justify-content: space-around; align-items: center; background: var(--white); }
.ad-phone-nav i { display: block; width: 9px; height: 9px; border: 1.5px solid var(--slate); }
.ad-phone-nav .back { border: 0; background: var(--slate); clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.ad-phone-nav .home { border-radius: 50%; }
.ad-phone-nav .apps { border-radius: 2px; }
.ad-phone-toast { position: absolute; z-index: 2; top: 30px; left: 8px; right: 8px; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 6px 16px rgba(20,43,52,.18); font-size: 9px; color: var(--slate); opacity: 0; transform: translateY(-140%); transition: transform .45s cubic-bezier(.3,1.3,.5,1), opacity .25s; }
.ad-phone-toast .ad-phone-avatar { width: 18px; height: 18px; font-size: 12px; flex: none; }
.ad-phone-toast b { color: var(--ink); }
.ad-phone-os { display: inline-block; margin-top: 16px; padding: 3px 10px; border: 1px solid #b8d7d0; border-radius: 999px; background: var(--soft); color: var(--teal); font-size: 11px; font-weight: 600; }
.ad-phone-os + .ad-phone-label { margin-top: 7px; }
.ad-phone-wrap:hover .ad-phone-toast { opacity: 1; transform: none; }
.ad-phone-wrap:hover .ad-phone-bubble { animation: bubble-in .55s .15s cubic-bezier(.3,1.4,.5,1) both; }
.ad-phone-wrap:hover .ad-ios { transform: translateY(-10px) rotate(-3deg); box-shadow: 16px 24px 0 rgba(20,43,52,.14); }
.ad-phone-wrap:hover .ad-android { transform: translateY(-10px) rotate(3deg); box-shadow: 16px 24px 0 rgba(20,43,52,.14); }
@keyframes phone-float { 50% { translate: 0 -8px; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .ad-graph-lines line, .ad-graph-master { animation: none !important; } [data-view-panel], .ad-agent-ask, .ad-agent-answer { animation: none !important; } .ad-phone-wrap { animation: none; } .ad-phone, .ad-phone-toast { transition: none; } }
