/* Shared graphite / mineral surfaces. Match the chosen landing direction. */
.product-mode { background: #1a1e23; }
.product-mode .global-header { background: #1a1e23; color: #f5f6f7; }
.product-mode .menu-toggle, .product-mode .global-tools button { background: #30353c; color: #f5f6f7; }
.product-mode .global-menu a { color: #20252c; }
.product-mode .global-menu a[aria-current] { color: #fff; }
.engineering-product .hse-intro h1 { font-size: clamp(40px,4.4vw,66px); }
.engineering-product .domain-photo { aspect-ratio: 16 / 8; }
.domain-workspace .app-sidebar-inner { min-height: 100%; }
.hse-workspace .app-nav a { font-size: 14px; min-height: 44px; }
.hse-workspace .app-content { min-width: 0; }
.hse-workspace .page-heading h3 { font-size: clamp(24px,2.1vw,32px); max-width: 710px; line-height: 1.18; font-weight: 500; letter-spacing: -.03em; }
.hse-workspace .page-heading p { font-size: 15px; line-height: 1.6; max-width: 700px; }
.product-mode .primary-button { background: #385b70; color: #f5f7f5; border: 1px solid #385b70; border-radius: 4px; min-height: 44px; font-size: 14px; }
.product-mode .primary-button:hover { background: #294e64; }
.product-mode .subtle-button { background: #f5f7f3; color: #3f5968; border: 1px solid #bdcbc7; border-radius: 4px; min-height: 44px; font-size: 14px; }
.product-mode .subtle-button:hover { background: #e0e8e1; }
.product-mode button:disabled { opacity: .5; cursor: not-allowed; }
.product-mode .status { border-radius: 4px; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.product-mode .status.complete { background: #dcebe1; color: #39644d; }
.product-mode .status.warning { background: #f0e3c9; color: #7f5c29; }
.product-mode .status.working { background: #e0e8ed; color: #416276; }
.product-mode .demo-page-dialog { background: #e8ede9; border: 1px solid #62747c; border-radius: 8px; width: min(1420px,calc(100vw - 64px)); }
.product-mode .demo-page-header { background: #263138; color: #eff3f4; border-color: #40505b; }
.product-mode .demo-page-header .page-eyebrow { color: #b0c1cb; }
.product-mode .demo-page-close { background: #3c4a52; color: #dfe8ed; }
.product-mode .demo-page-intro > p, .product-mode .demo-page-note { color: #5b717c; font-size: 14px; line-height: 1.6; }
.product-mode .demo-page-dialog .table-panel { background: #f8faf6; border-color: #cad5cd; }
.product-mode .demo-page-dialog th { background: #e9eeeb; color: #516b77; }
.product-mode .demo-page-dialog th button { color: #516b77; }
.product-mode .demo-page-dialog td { border-color: #d8e2db; color: #4a6370; }
.product-mode .demo-page-dialog .record-title { color: #2e4856; }
.product-mode .demo-page-dialog .record-link { color: #325e76; }
.product-mode .demo-page-dialog .panel-heading h2 { color: #2e4856; }
.hse-workspace td, .product-mode .demo-page-dialog td { font-size: 14px; }
.hse-workspace .record-link { font-size: 14px; }
.hse-workspace .table-panel h2 { font-size: 19px; }
.hse-workspace .metrics { gap: 12px; }
.hse-metrics .metric > div { font-size: 13px; }
.hse-metrics .metric small { font-size: 12px; line-height: 1.5; }
.hse-metrics .metric strong { font-size: 36px; }
.domain-workspace .hse-metrics { margin-bottom: 24px; }
.domain-analytics .hse-kicker { color: #8299a5; font-size: 12px; }
.domain-analytics .hse-dark-chart .hse-kicker { color: #b0c4cd; }
.domain-analytics h2 { margin: 12px 0 18px; font-size: 23px; font-weight: 500; letter-spacing: -.03em; }
.domain-stat-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 14px; margin-top: 20px; }
.domain-stat-row strong { font-size: 17px; font-weight: 500; }
.domain-stat-row > div { grid-column: 1/-1; height: 6px; background: #44535c; }
.domain-stat-row i { display: block; background: #a7c6be; height: 100%; }
.domain-register-links { display: grid; }
.domain-register-links button { display: flex; gap: 15px; align-items: center; padding: 13px 0; border-bottom: 1px solid #d0dcd3; text-align: left; background: transparent; color: #3b5765; font-size: 14px; }
.domain-register-links button:hover { color: #163b50; }
.domain-register-links span { flex: 1; }
.domain-register-links strong { font-weight: 500; }
.domain-register-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.domain-quiet { color: #6b818b; font-size: 13px; line-height: 1.6; margin: 14px 0 0; }
.domain-chain { border: 1px solid #bbcfc8; padding: 24px; background: #e0e9e3; border-radius: 4px; margin: 22px 0; }
.domain-chain .hse-kicker { color: #627b87; font-size: 12px; }
.domain-chain h3 { color: #2e4957; font-size: 24px; font-weight: 500; margin: 10px 0; letter-spacing: -.03em; }
.domain-chain p { color: #607884; font-size: 14px; line-height: 1.6; margin: 0; }
.domain-chain-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.domain-chain-items button { display: flex; flex-direction: column; align-items: start; text-align: left; gap: 12px; padding: 19px; background: #f5f8f2; border: 1px solid #c0d1c8; border-radius: 4px; color: #345362; }
.domain-chain-items button:hover { border-color: #6b8d96; }
.domain-chain-items button > span:first-child { color: #788f98; font-size: 12px; }
.domain-chain-items strong { font-size: 16px; font-weight: 500; line-height: 1.5; flex: 1; }
.domain-record-dialog { max-width: calc(100vw - 48px); }
.domain-record-dialog .hse-record-header h2 { font-size: 28px; }
.domain-record-dialog .hse-record-header p { max-width: 800px; font-size: 14px; }
.domain-record-dialog .hse-record-header .status { background: #40545f; color: #dfebe8; }
.domain-record-dialog .hse-form-layout { grid-template-columns: 190px minmax(0,1fr); }
.domain-record-dialog .hse-form-nav button { font-size: 14px; min-height: 44px; }
.domain-record-dialog .hse-form-content { background: #f8faf5; }
.domain-record-dialog .hse-fields > label { font-size: 14px; }
.domain-record-dialog .hse-fields input:not([type=checkbox]), .domain-record-dialog .hse-fields textarea, .domain-record-dialog .hse-fields select { font-size: 16px; }
.domain-record-dialog .hse-form-section-title p { font-size: 14px; }
.domain-record-dialog .hse-form-section { scroll-margin-top: 24px; }
.domain-field-hint { color: #738792; font-size: 13px; line-height: 1.5; }
.domain-required { color: #8f6e3d; font-size: 14px; font-weight: 400; }
.domain-stepper { display: flex; flex-wrap: wrap; gap: 0; padding: 0 20px; background: #e4ebe5; list-style: none; border-block: 1px solid #c8d6cd; margin: 0; }
.domain-stepper li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 16px 10px; color: #6f858f; min-width: 130px; }
.domain-stepper li span { border: 1px solid #b8c9bf; width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; flex-shrink: 0; }
.domain-stepper .current { color: #244c5e; font-weight: 500; }
.domain-stepper .current span { background: #426b7b; color: #f4f8f3; border-color: #426b7b; }
.domain-stepper .done { color: #49745f; }
.domain-stepper .done span { background: #cfe1d5; }
.domain-computed:empty { display: none; }
.domain-computed { margin-top: 22px; border: 1px solid #c1d2c6; background: #e7efe6; padding: 20px; border-radius: 4px; }
.domain-computed-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 18px; }
.domain-computed span { display: block; color: #67807f; font-size: 13px; }
.domain-computed strong { display: block; color: #345963; font-size: 29px; font-weight: 500; margin-top: 7px; }
.domain-computed p { color: #6b827f; font-size: 13px; line-height: 1.6; margin: 15px 0 0; }
.domain-repeater { margin: 8px 0; }
.domain-repeat-row { display: grid; grid-template-columns: 24px minmax(0,1fr) 28px; gap: 10px; padding: 18px 14px; margin: 12px 0; border: 1px solid #c8d6cd; border-radius: 4px; background: #edf2eb; }
.domain-repeat-number { font-size: 12px; color: #7c928e; padding-top: 5px; }
.domain-remove { align-self: start; background: transparent; color: #67828a; min-height: 28px; }
.domain-remove svg { width: 15px; height: 15px; }
.domain-attachments h4, .domain-repeater h4 { font-size: 17px; margin: 5px 0 12px; }
.domain-file-input { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; color: #456578; background: #f8faf6; border: 1px dashed #9bb2b9; border-radius: 4px; cursor: pointer; font-size: 14px; min-height: 44px; }
.domain-file-input input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.domain-file-input:focus-within { outline: 2px solid #5f879a; outline-offset: 2px; }
.domain-file-input svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.domain-attachments > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.domain-attachments > div > span { display: inline-flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #ceddd1; background: #fff; font-size: 14px; color: #3e6070; }
.domain-attachments small { color: #7a908b; font-size: 12px; }
.domain-attachments button { color: #6b858c; background: transparent; font-size: 19px; }
.domain-attachments a { text-decoration: underline; }
.domain-relationships { padding: 25px 0; border-bottom: 1px solid #cedbd2; }
.domain-relationships > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.domain-relationships h3, #domain-section-history > h3 { font-size: 21px; font-weight: 500; margin: 0; color: #355464; }
.domain-link-row { display: flex; align-items: center; gap: 16px; width: 100%; color: #3f6375; border-bottom: 1px solid #d7e2d9; padding: 16px 0; background: transparent; text-align: left; }
.domain-link-row > span:first-child { font-size: 13px; color: #6c858d; width: 80px; flex-shrink: 0; }
.domain-link-row strong { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.5; }
.domain-link-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.domain-readonly { margin: 0; padding: 24px 0; }
.domain-readonly > div { display: grid; grid-template-columns: 190px 1fr; padding: 13px 0; gap: 16px; border-bottom: 1px solid #d6e2d7; }
.domain-readonly dt { color: #6a848c; font-size: 14px; }
.domain-readonly dd { margin: 0; color: #3c5c6c; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.domain-process-note { background: #e4ede5; color: #506d75; padding: 20px; border-left: 2px solid #8ba6a8; margin-top: 24px; font-size: 14px; line-height: 1.7; }
.domain-process-note p { margin: 8px 0 0; }
.product-mode .hse-permit-footer .primary-button { background: #bad1d1; color: #213f4d; border-color: #bad1d1; }
.product-mode .hse-permit-footer .subtle-button { background: #394e59; color: #e0e9ec; border-color: #6b848f; }
.domain-scenario-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.domain-scenario-actions svg, .domain-import svg, .domain-terminal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.domain-mobile { display: grid; grid-template-columns: minmax(260px,340px) minmax(0,1fr); gap: 30px; padding: 28px; margin: 24px 0; border: 1px solid #c4d1cc; background: #dce5df; border-radius: 4px; align-items: start; }
.domain-device { border: 7px solid #293a43; border-radius: 30px; background: #f5f7f1; box-shadow: 0 14px 30px #1f363518; overflow: hidden; }
.domain-device-top { display: flex; justify-content: space-between; padding: 16px 18px 10px; color: #2d4653; font-size: 12px; }
.domain-device-content { padding: 18px; }
.domain-device-content .hse-kicker { color: #73887f; font-size: 11px; }
.domain-device-content > h3 { color: #294a5b; font-size: 31px; font-weight: 500; line-height: 1.1; margin: 14px 0; letter-spacing: -.04em; }
.domain-device-content > p { color: #6b827c; font-size: 13px; line-height: 1.5; }
.domain-device-home { height: 4px; border-radius: 3px; width: 100px; margin: 12px auto; background: #708780; }
.domain-mobile-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.domain-mobile-shortcuts button { display: flex; flex-direction: column; align-items: start; gap: 20px; padding: 15px; background: #e1eae2; color: #486c75; border: 1px solid #cddacf; border-radius: 4px; font-size: 14px; }
.domain-mobile-shortcuts button:hover { background: #d2e2d7; }
.domain-mobile-shortcuts svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.domain-mobile-task { display: flex; flex-direction: column; text-align: left; width: 100%; gap: 10px; border: 1px solid #c7d6cd; border-radius: 4px; background: #fff; color: #456777; padding: 15px; margin: 10px 0; }
.domain-mobile-task span { color: #7c938f; font-size: 12px; }
.domain-mobile-task strong { font-size: 16px; font-weight: 500; line-height: 1.4; }
.domain-mobile-task small { display: flex; justify-content: space-between; align-items: center; font-size: 12px; width: 100%; }
.domain-mobile-task svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.domain-sync { padding-top: 12px; }
.domain-sync .hse-kicker { color: #6b8785; font-size: 12px; }
.domain-sync h3, .domain-terminal h3 { font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -.035em; color: #2f5361; margin: 16px 0; }
.domain-sync > p { color: #5c7a82; font-size: 15px; line-height: 1.7; }
.domain-queue { border: 1px solid #becfc7; background: #f4f7f0; padding: 18px; margin-top: 24px; border-radius: 4px; }
.domain-queue-heading { display: flex; gap: 10px; justify-content: space-between; color: #365868; font-size: 14px; }
.domain-queue-heading strong { font-weight: 500; }
.domain-queue-heading span { color: #83958e; font-size: 12px; }
.domain-queue-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid #d1dfd3; align-items: start; }
.domain-queue-row > div:first-child { flex: 1; min-width: 170px; }
.domain-queue-row strong { display: block; font-size: 15px; font-weight: 500; color: #436474; line-height: 1.4; margin: 7px 0; }
.domain-queue-row small { color: #7f938d; font-size: 12px; }
.domain-conflict { flex-basis: 100%; background: #eee5d4; color: #715d3d; padding: 14px; border: 1px solid #d4bf99; border-radius: 4px; }
.domain-conflict p { font-size: 13px; line-height: 1.6; margin: 0 0 9px; }
.domain-conflict button { background: transparent; color: #775c32; padding: 8px 0; font-size: 13px; margin-right: 16px; text-decoration: underline; }
.domain-rfid { border: 1px solid #b5c8c3; border-radius: 4px; margin: 24px 0; overflow: hidden; }
.domain-terminal { background: #273740; color: #c4d2d9; padding: 28px; }
.domain-terminal h3 { color: #e1ebe9; }
.domain-terminal > p { font-size: 15px; line-height: 1.6; color: #b0c2ca; max-width: 650px; }
.domain-terminal .hse-fields { margin-top: 24px; }
.domain-terminal .hse-fields > label { color: #b9ced2; font-size: 14px; }
.domain-terminal .hse-fields input, .domain-terminal .hse-fields select { background: #354b57; color: #e3edeb; border-color: #607781; font-size: 15px; }
.domain-terminal .primary-button { background: #b6d0ce; color: #284653; border-color: #b6d0ce; }
.domain-terminal .subtle-button { background: #3e515b; color: #e4ebeb; border-color: #6a7f87; }
.domain-terminal-message { padding-top: 16px; border-top: 1px solid #516773; min-height: 42px; }
.domain-reader-board { background: #f2f6ef; padding: 24px 28px; }
.domain-reader-board .hse-kicker { color: #748e94; font-size: 12px; }
.domain-reader-board button { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px 0; border-bottom: 1px solid #d0dfd3; background: transparent; text-align: left; width: 100%; color: #4e7280; }
.domain-reader-board strong { font-size: 16px; font-weight: 500; }
.domain-reader-board small { display: block; font-size: 12px; margin-top: 7px; color: #7a9395; }
.domain-reader-board b { font-size: 14px; font-weight: 500; }
.domain-radio-mark { width: 38px; height: 38px; padding: 10px; background: #dbe8de; }
.domain-radio-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.domain-reader-board > p { color: #718991; font-size: 13px; line-height: 1.6; margin-bottom: 0; }
.domain-assistant { display: grid; grid-template-columns: minmax(0,1fr) 235px; border: 1px solid #bdcfc8; border-radius: 4px; margin: 24px 0; overflow: hidden; }
.domain-assistant-main { background: #f7faf3; min-width: 0; }
.domain-assistant-heading { display: flex; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid #d1dfd3; }
.domain-ai-symbol { font-size: 16px; color: #355967; background: #dae8de; padding: 16px 10px; }
.domain-assistant-heading h3 { font-size: 18px; font-weight: 500; color: #355866; margin: 0 0 5px; }
.domain-assistant-heading p { font-size: 12px; color: #78928f; margin: 0; }
.domain-messages { max-height: 600px; min-height: 340px; overflow: auto; padding: 24px; }
.domain-assistant-welcome { padding: 25px 0; }
.domain-assistant-welcome .hse-kicker { color: #7c9593; font-size: 12px; }
.domain-assistant-welcome h3 { font-size: clamp(28px,3vw,43px); color: #325766; font-weight: 400; line-height: 1.15; margin: 26px 0 15px; letter-spacing: -.04em; }
.domain-assistant-welcome p { color: #718a89; font-size: 15px; line-height: 1.6; }
.domain-message { margin-bottom: 24px; color: #446974; padding: 0 2px; }
.domain-message > span { color: #7a9290; font-size: 12px; }
.domain-message > p { font-size: 15px; line-height: 1.7; margin: 9px 0; }
.domain-message.user { background: #e4eee3; border-radius: 4px; padding: 15px; }
.domain-answer-refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.domain-answer-refs button { display: inline-flex; align-items: center; gap: 6px; background: #edf3e9; color: #527887; border: 1px solid #c6d9ce; border-radius: 4px; padding: 8px; font-size: 12px; }
.domain-answer-refs svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.domain-prompts { display: flex; flex-direction: column; gap: 0; margin: 0 20px; border-top: 1px solid #d1dfd3; }
.domain-prompts button { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; background: transparent; color: #587c8a; font-size: 14px; padding: 12px 0; border-bottom: 1px solid #d1dfd3; }
.domain-prompts svg { width: 16px; height: 16px; }
:is(#domainChatForm,#domainChatForm-modal) { display: flex; margin: 20px; background: #fff; border: 1px solid #b2cabe; border-radius: 4px; padding: 5px; }
:is(#domainChatForm,#domainChatForm-modal) input { flex: 1; width: 0; min-width: 0; padding: 13px 10px; border: 0; color: #3c6272; background: #fff; font-size: 15px; }
:is(#domainChatForm,#domainChatForm-modal) button { width: 44px; background: #3f697c; color: #edf5eb; border-radius: 3px; }
:is(#domainChatForm,#domainChatForm-modal) button svg { width: 18px; height: 18px; }
.domain-knowledge { background: #293b43; padding: 26px 20px; color: #c5d6d9; }
.domain-knowledge .hse-kicker { font-size: 11px; color: #b1c8cb; }
.domain-knowledge h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.03em; font-weight: 400; margin: 20px 0; }
.domain-knowledge button { display: block; padding: 18px 0; border-block-end: 1px solid #4a626c; color: #c9dedd; text-align: left; background: transparent; width: 100%; }
.domain-knowledge strong { font-size: 15px; font-weight: 500; line-height: 1.5; }
.domain-knowledge button span { display: block; color: #a6c0c0; font-size: 12px; margin-top: 8px; }
.domain-knowledge small { display: block; color: #91adb2; font-size: 12px; line-height: 1.5; margin-top: 8px; }
.domain-knowledge p { font-size: 13px; line-height: 1.7; color: #a8c1c5; margin-top: 24px; }
.domain-import { border: 1px solid #b7cfc4; border-radius: 4px; background: #f4f8ef; padding: 26px; margin: 24px 0; }
.domain-import-heading { display: flex; align-items: start; justify-content: space-between; gap: 25px; }
.domain-import .hse-kicker { color: #7b9691; font-size: 12px; }
.domain-import-heading h3 { color: #385d6c; font-size: 31px; line-height: 1.15; letter-spacing: -.03em; font-weight: 500; margin: 14px 0; }
.domain-import-heading p { color: #708b89; font-size: 14px; line-height: 1.7; max-width: 600px; }
.domain-import-heading .domain-file-input { flex-shrink: 0; }
.domain-import-grid { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 25px; margin-top: 20px; }
.domain-csv-editor { display: flex; flex-direction: column; min-width: 0; gap: 10px; color: #5d7b80; font-size: 14px; }
.domain-csv-editor textarea { background: #2b3c45; color: #c5ded7; resize: vertical; width: 100%; min-height: 250px; font-family: var(--brand-font); font-size: 15px; line-height: 1.8; padding: 17px; border: 1px solid #526a75; border-radius: 4px; }
.domain-mapping { display: flex; flex-direction: column; gap: 15px; }
.domain-mapping label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #6c888a; }
.domain-mapping select { min-height: 42px; padding: 10px; background: #fff; color: #406477; border: 1px solid #bcd2c4; border-radius: 4px; font-size: 14px; }
.domain-mapping p { font-size: 12px; color: #809791; line-height: 1.6; margin: 0; }
.domain-import-result { color: #46706e; font-size: 14px; line-height: 1.6; }
.domain-import-preview { margin-top: 20px; }
.domain-import-preview table { min-width: 610px; width: 100%; }
.domain-import-preview th, .domain-import-preview td { text-align: left; padding: 14px 10px; font-size: 13px; border-bottom: 1px solid #cadbce; color: #527583; }
.domain-import-preview th { background: #e5eee2; font-weight: 500; }
.domain-import-preview td small { display: block; white-space: normal; font-size: 12px; line-height: 1.6; color: #957445; max-width: 280px; }
.domain-import-preview td strong { font-size: 13px; font-weight: 500; }
.domain-sources > p { font-size: 13px; }
@media (max-width: 1250px) {
 .domain-mobile { grid-template-columns: 290px minmax(0,1fr); gap: 20px; padding: 20px; }
 .domain-assistant { grid-template-columns: 1fr; }
 .domain-knowledge { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
 .domain-knowledge > .hse-kicker, .domain-knowledge > h3, .domain-knowledge > p { grid-column: 1/-1; margin: 0; }
 .domain-knowledge > h3 br { display: none; }
 .domain-knowledge > button { padding: 12px 0; }
 .domain-chain-items { grid-template-columns: 1fr; }
 .domain-chain-items button { display: grid; grid-template-columns: 1fr auto; }
 .domain-chain-items button > span:first-child { grid-column: 1/-1; }
 .domain-import-grid { grid-template-columns: 1fr; }
 .domain-mapping { display: grid; grid-template-columns: repeat(4,1fr); }
 .domain-mapping > p { grid-column: 1/-1; }
}
@media (max-width: 1000px) {
 .domain-mobile { grid-template-columns: 1fr; }
 .domain-device { max-width: 350px; margin-inline: auto; width: 100%; }
 .domain-sync { padding: 10px 0 0; }
 .domain-record-dialog .hse-form-layout { grid-template-columns: 150px minmax(0,1fr); }
 .domain-record-dialog .hse-form-nav { padding-inline: 8px; }
 .domain-import-heading { flex-wrap: wrap; }
 .domain-relationships > div:first-child { align-items: start; flex-direction: column; }
}
@media (max-width: 800px) {
 .product-mode .demo-page-dialog { width: calc(100vw - 20px); max-width: none; max-height: calc(100dvh - 24px); }
 .engineering-product .domain-photo { aspect-ratio: 4/3; }
 .domain-record-dialog { width: calc(100vw - 16px); max-width: none; }
 .domain-record-dialog .hse-form-layout { display: block; }
 .domain-record-dialog .hse-form-nav { padding: 10px; }
 .domain-record-dialog .hse-form-nav button { white-space: nowrap; }
 .domain-stepper { flex-wrap: nowrap; overflow-x: auto; padding: 0 10px; }
 .domain-stepper li { flex: 0 0 auto; min-width: 0; }
 .domain-record-dialog .hse-record-header h2 { font-size: 23px; }
 .domain-repeat-row { padding: 14px 10px; }
 .domain-chain { padding: 20px; }
 .domain-chain-items button { display: flex; }
 .domain-mobile, .domain-import { padding: 18px; }
 .domain-terminal, .domain-reader-board { padding: 22px 18px; }
 .domain-reader-board button { grid-template-columns: 32px 1fr; gap: 15px; }
 .domain-reader-board button > span:last-child { grid-column: 2; }
 .domain-knowledge { display: block; }
 .domain-knowledge h3 { margin: 15px 0; }
 .domain-knowledge p { margin-top: 18px; }
 .domain-mapping { grid-template-columns: repeat(2,1fr); }
 .domain-readonly > div { grid-template-columns: 130px 1fr; }
 .domain-link-row { flex-wrap: wrap; gap: 10px; }
 .domain-link-row strong { flex-basis: calc(100% - 100px); }
 .domain-computed { padding: 16px; }
}
@media (max-width: 540px) {
 .domain-repeat-row { grid-template-columns: 1fr 28px; }
 .domain-repeat-number { grid-column: 1; }
 .domain-repeat-row > .hse-fields { grid-column: 1/-1; grid-row: 2; }
 .domain-remove { grid-column: 2; grid-row: 1; }
 .domain-mapping { grid-template-columns: 1fr 1fr; }
 .domain-readonly > div { display: block; }
 .domain-readonly dd { margin-top: 7px; }
 .domain-queue-row { flex-direction: column; }
 .domain-sync h3, .domain-terminal h3, .domain-import-heading h3 { font-size: 27px; }
 .domain-messages { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .domain-stepper *, .domain-chain * { transition: none; } }

/* Sections swap inside a persistent application shell. */
.inline-workspace .app-sidebar { position: relative; }
.inline-workspace .app-sidebar-inner { position: sticky; top: 16px; min-height: 0; max-height: calc(100dvh - 32px); overflow-y: auto; }
.inline-workspace .app-main { outline: none; scroll-margin-top: 20px; }
.inline-workspace .app-nav a[aria-current="page"] { background: #425763; color: #f2f6f4; border-left: 2px solid #b1cdcd; }
.inline-workspace .app-nav a { border-left: 2px solid transparent; }
#calculatorDialog {
 --quote-surface: #272e34;
 --quote-line: #46534f;
 --quote-text: #f1f4f2;
 --quote-muted: #b3bfc1;
 --quote-accent: #c0d5c9;
 --quote-selected: #34463d;
 width: min(760px,calc(100vw - 32px));
 max-width: calc(100vw - 32px);
 max-height: calc(100svh - 32px);
 color-scheme: dark;
 color: var(--quote-text);
 background: radial-gradient(ellipse at top right,#bfd6c80d,transparent 58%),#20252b;
 border: 1px solid var(--quote-line);
 border-radius: 18px;
 box-shadow: 0 32px 100px #070d1499,inset 0 1px #ffffff0a;
 scrollbar-color: #61746c #20252b;
 scrollbar-width: thin;
}
#calculatorDialog::backdrop { background: #0c111bbd; backdrop-filter: blur(10px); }
#calculatorDialog .eyebrow { color: var(--quote-accent); letter-spacing: .035em; }
#calculatorDialog h2 { color: var(--quote-text); font-weight: 400; margin: 22px 0 28px; }
#calculatorDialog h2 em { color: var(--quote-accent); }
#calculatorDialog .dialog-close { color: var(--quote-muted); background: #30383e; border: 1px solid var(--quote-line); }
#calculatorDialog .dialog-close:hover { color: var(--quote-text); background: #3b474a; }
#calculatorDialog :is(button,summary,input):focus-visible { outline: 2px solid var(--quote-accent); outline-offset: 3px; }
#calculatorDialog .solid-button { min-height: 50px; padding: 15px 18px; font-size: 15px; color: #203329; background: #d7e4dc; border-radius: 10px; }
#calculatorDialog .solid-button:hover:not(:disabled) { background: #ecf3ee; }
.calculator-projects { border: 0; padding: 0; margin: 0; min-width: 0; }
.calculator-projects legend { font-size: 17px; font-weight: 500; }
.calculator-projects > p { color: var(--quote-muted); font-size: 14px; line-height: 1.5; margin: 9px 0 17px; }
.calculator-projects > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
#calculatorForm .calculator-project { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--quote-line); border-radius: 10px; background: var(--quote-surface); color: var(--quote-muted); font-size: 15px; line-height: 1.4; cursor: pointer; transition: border-color .15s,background .15s,color .15s; }
#calculatorForm .calculator-project:hover { border-color: #8da49b; color: var(--quote-text); }
#calculatorForm .calculator-project:has(input:checked) { background: var(--quote-selected); border-color: #9eb9aa; color: var(--quote-text); }
#calculatorForm .calculator-project input { width: 19px; height: 19px; margin: 0; padding: 0; min-height: 19px; accent-color: var(--quote-accent); flex-shrink: 0; }
.calculator-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#calculatorForm .calculator-fields label { font-size: 14px; min-width: 0; margin: 0; }
#calculatorForm .calculator-fields select { width: 100%; font-size: 15px; min-height: 46px; }
#calculatorForm .estimate output { font-size: clamp(28px,5vw,42px); letter-spacing: -.03em; }
#calculatorForm .estimate p { font-size: 14px; line-height: 1.6; }
#calculatorForm .estimate { padding: 22px; background: #1b2425; border-color: var(--quote-line); border-radius: 12px; }
#calculatorForm .estimate > span { color: var(--quote-accent); font-size: 14px; }
#calculatorForm .estimate output { color: var(--quote-text); font-variant-numeric: tabular-nums; }
#calculatorForm .estimate p { color: var(--quote-muted); }
#calculatorSubmit:disabled { opacity: .45; cursor: not-allowed; }
@media(max-width:800px){.inline-workspace .app-sidebar-inner{position:static;max-height:none;overflow:visible}.inline-workspace .app-main{scroll-margin-top:12px}.inline-workspace .app-nav{overflow-x:auto}}
@media(max-width:540px){.calculator-fields{grid-template-columns:1fr}#calculatorForm .calculator-project{padding:12px 10px;font-size:14px}}
/* Quote selectors: native keyboard-operable radio choices in styled disclosure panels. */
.quote-field { min-width: 0; }
.quote-field-wide { grid-column: 1 / -1; }
#calculatorForm #quote-integration-rates { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--quote-muted); background: var(--quote-selected); border: 1px solid var(--quote-line); border-radius: 10px; }
.quote-field > span { display: block; font-size: 14px; color: var(--quote-muted); margin-bottom: 9px; }
.quote-select { border: 1px solid var(--quote-line); border-radius: 10px; background: var(--quote-surface); overflow: hidden; }
.quote-select summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; list-style: none; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--quote-text); min-height: 52px; }
.quote-select summary::-webkit-details-marker { display: none; }
.quote-select summary svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--quote-accent); transform: rotate(90deg); transition: transform .18s; }
.quote-select[open] { border-color: #9eb9aa; box-shadow: 0 8px 24px #080d1433; }
.quote-select[open] summary { border-bottom: 1px solid var(--quote-line); background: #303c39; }
.quote-select[open] summary svg { transform: rotate(-90deg); }
#calculatorDialog .quote-select summary:focus-visible { outline: 2px solid var(--quote-accent); outline-offset: -3px; border-radius: 9px; }
.quote-select fieldset { border: 0; padding: 6px; margin: 0; max-height: 260px; overflow-y: auto; }
#calculatorForm .quote-option { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 11px 10px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--quote-muted); border-radius: 7px; cursor: pointer; }
#calculatorForm .quote-option input { width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: var(--quote-accent); }
.quote-option span { flex: 1; }
.quote-option b { color: var(--quote-accent); visibility: hidden; font-weight: 500; }
#calculatorForm .quote-option:has(input:checked) { background: var(--quote-selected); color: var(--quote-text); }
.quote-option:has(input:checked) b { visibility: visible; }
.quote-option:hover { background: #35413d; }
.quote-option:focus-within { outline: 2px solid var(--quote-accent); outline-offset: -2px; }
.quote-total-meta { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px 0; color: var(--quote-text); font-size: 15px; border-bottom: 1px solid var(--quote-line); }
.quote-total-meta strong { font-size: 22px; font-weight: 500; }
.quote-math { padding: 10px 0; }
.quote-math > div { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 10px 0; font-size: 14px; line-height: 1.5; }
.quote-math > div > span { color: var(--quote-muted); }
.quote-math strong { color: var(--quote-text); font-weight: 500; white-space: nowrap; }
.quote-math .quote-discount > span, .quote-math .quote-discount strong { color: #b8d7c4; }
.quote-assumptions { border-top: 1px solid var(--quote-line); margin-top: 5px; }
.quote-assumptions summary { cursor: pointer; font-size: 14px; color: var(--quote-accent); padding: 14px 0; }
#calculatorForm .quote-assumptions p { margin: 0 0 12px; font-size: 13px; }
#calculatorForm .estimate output { font-size: clamp(27px,4vw,38px); line-height: 1.3; }
.calculator-fields { align-items: start; }
@media(prefers-reduced-motion:reduce){.quote-select summary svg,#calculatorForm .calculator-project{transition:none}}
