:root { --dev-ink: #253c43; --dev-muted: #7b8c91; --dev-line: #e2e8e8; --dev-teal: #176e67; --dev-bg: #f3f6f6; }
* { letter-spacing: 0 !important; }
.brand-panel { padding: 64px 48px; }
.brand-copy h1 { font-size: 46px; }
.dev-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--dev-bg); color: var(--dev-ink); font-size: 13px; line-height: 1.5; }
.dev-app button, .dev-dialog button { cursor: pointer; }
.dev-app svg:not(.leaflet-overlay-pane > svg), .dev-dialog svg { width: 17px; height: 17px; stroke-width: 1.7; flex: 0 0 auto; }
.dev-app a { text-decoration: none; }
.dev-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; min-width: 0; background: #fff; border-right: 1px solid var(--dev-line); z-index: 35; }
.dev-brand { display: flex; align-items: center; min-height: 72px; padding: 14px 20px; gap: 11px; border-bottom: 1px solid var(--dev-line); color: var(--dev-ink); }
.dev-brand-symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: var(--dev-teal); color: #fff; font-size: 14px; font-weight: 700; }
.dev-brand-text { display: flex; flex-direction: column; }
.dev-brand-text strong { font-size: 17px; font-weight: 700; }
.dev-brand-text small { font-size: 9px; color: #95a8ac; }
#dev-nav { flex: 1; overflow-y: auto; padding: 12px 12px 16px; scrollbar-width: thin; scrollbar-color: #d8e0e0 transparent; }
.dev-nav-group { margin-bottom: 14px; }
.dev-nav-group h2 { font-size: 10px; font-weight: 500; color: #91a0a3; margin: 0 0 5px; padding: 3px 11px; }
.dev-nav-group:last-child { border-top: 1px solid var(--dev-line); padding-top: 12px; }
.dev-nav-link { display: flex; align-items: center; gap: 10px; min-height: 35px; padding: 7px 11px; color: #647a7f; font-size: 12px; border-radius: 4px; }
.dev-nav-link span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dev-nav-link svg { width: 16px; height: 16px; color: #8b9b9e; }
.dev-nav-link:hover { background: #f5f8f8; }
.dev-nav-link.active { color: var(--dev-teal); background: #e9f4f1; font-weight: 700; }
.dev-nav-link.active svg { color: var(--dev-teal); }
.dev-nav-link em { min-width: 19px; padding: 0 5px; border-radius: 3px; background: #e6efed; color: var(--dev-teal); font-style: normal; font-size: 10px; text-align: center; }
.dev-sidebar-footer { display: flex; align-items: center; gap: 9px; min-height: 66px; padding: 12px 14px; border-top: 1px solid var(--dev-line); }
.dev-avatar { display: inline-grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; color: var(--dev-teal); background: #e4f0ed; border-radius: 50%; font-size: 12px; font-weight: 700; }
.dev-sidebar-footer > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dev-sidebar-footer strong { font-size: 11px; }
.dev-sidebar-footer small { color: #91a0a3; font-size: 9px; }
.dev-icon { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 33px; height: 33px; flex: 0 0 33px; padding: 0; color: #698084; background: transparent; border-radius: 4px; }
.dev-icon:hover { background: #edf4f2; color: var(--dev-teal); }
.dev-workspace { min-width: 0; }
.dev-topbar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 64px; padding: 0 28px; border-bottom: 1px solid var(--dev-line); background: #fff; z-index: 20; }
.dev-breadcrumb { display: flex; align-items: center; min-width: 0; color: #84969a; font-size: 11px; }
#dev-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-breadcrumb span span { margin: 0 10px; color: #bfcbce; }
.dev-breadcrumb strong { color: #38575b; font-weight: 500; }
.dev-global-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
#dev-search-form { display: flex; align-items: center; gap: 8px; width: 235px; min-height: 33px; padding: 0 9px; color: #98a8ab; border-bottom: 1px solid #e0e8e7; }
#dev-search-form input { height: 33px; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--dev-ink); font-size: 11px; }
.dev-demo-tag { color: #a17a3c; font-size: 9px; padding: 3px 6px; border: 1px solid #ecdfc8; border-radius: 3px; white-space: nowrap; }
.dev-notice-dot { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: #c57c68; }
.dev-button { display: inline-flex; align-items: center; justify-content: center; min-height: 33px; gap: 6px; padding: 6px 11px; border: 1px solid #d7e2df; border-radius: 4px; background: #fff; color: #57706f; font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.dev-button:hover { color: var(--dev-teal); background: #f3f8f6; border-color: #a8c6bc; }
.dev-button svg { width: 14px; height: 14px; }
.dev-primary { background: var(--dev-teal); border-color: var(--dev-teal); color: #fff; }
.dev-primary:hover { background: #125b56; border-color: #125b56; color: #fff; }
.dev-danger-button { color: #ae6258; border-color: #e6cfc7; }
.dev-menu-button { display: none; }
.dev-mask { display: none; }
.dev-content { max-width: 1680px; margin: 0 auto; padding: 25px 28px 16px; min-height: calc(100vh - 116px); outline: 0; }
.dev-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.dev-heading h1 { margin: 0; color: #263e44; font-size: 23px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.dev-heading p { margin: 5px 0 0; color: #8a9b9e; font-size: 11px; }
.dev-heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dev-scope, .dev-inline-filters { display: flex; align-items: center; gap: 8px; }
.dev-app select, .dev-app input[type="search"], .dev-dialog input, .dev-dialog select, .dev-dialog textarea { min-height: 33px; border: 1px solid #dce5e3; border-radius: 3px; background: #fff; padding: 6px 9px; color: #4c686a; font-size: 11px; }
.dev-app select { max-width: 200px; }
.dev-app #dev-search { border: 0; padding: 0; }
.dev-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--dev-line); background: #fff; margin-bottom: 20px; }
.dev-metric { position: relative; display: grid; grid-template-columns: 35px 1fr 18px; align-items: center; gap: 2px 12px; min-height: 99px; padding: 19px 22px; border-right: 1px solid var(--dev-line); background: #fff; text-align: left; color: var(--dev-ink); }
.dev-metric:last-child { border: 0; }
.dev-metric:hover { background: #f8fbfa; }
.dev-metric-icon { grid-row: span 2; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 5px; }
.dev-metric-icon.teal { background: #e6f3ee; color: #338471; }
.dev-metric-icon.blue { background: #eaf1f8; color: #6185a1; }
.dev-metric-icon.amber { background: #fcf4e6; color: #bf9657; }
.dev-metric-icon.red { background: #f9ece7; color: #b66d58; }
.dev-metric-label { font-size: 11px; color: #829594; }
.dev-metric > strong { grid-column: 2; font-size: 27px; font-weight: 600; line-height: 1.2; }
.dev-metric strong small { margin-left: 7px; font-size: 10px; font-weight: 400; color: #a1afaf; }
.dev-metric > svg { grid-column: 3; grid-row: 1; color: #a7b7b3; width: 13px; }
.dev-dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(270px, 1fr); gap: 1px; border: 1px solid var(--dev-line); background: var(--dev-line); }
.dev-surface { min-width: 0; background: #fff; }
.dev-section-heading { min-height: 57px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf1ef; }
.dev-section-heading h2 { margin: 0; font-size: 13px; font-weight: 650; }
.dev-text-link { color: var(--dev-teal); font-size: 10px; }
.dev-tabs { display: flex; align-items: center; overflow-x: auto; border-bottom: 1px solid var(--dev-line); gap: 18px; padding: 0 18px; scrollbar-width: thin; }
.dev-tabs button, .dev-tabs a { min-height: 42px; padding: 11px 1px; flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #839591; font-size: 11px; }
.dev-tabs .active { border-bottom-color: var(--dev-teal); color: var(--dev-teal); font-weight: 650; }
.dev-table-wrap { max-width: 100%; overflow-x: auto; background: #fff; }
.dev-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; white-space: nowrap; }
.dev-table th { padding: 10px 14px; color: #8d9d9a; background: #f8faf9; border-bottom: 1px solid #e8eeeb; font-size: 10px; font-weight: 500; }
.dev-table td { padding: 12px 14px; border-bottom: 1px solid #edf1ee; color: #5b7371; }
.dev-table tr:last-child td { border-bottom: 0; }
.dev-table tbody tr:hover { background: #fafcfb; }
.dev-table td:first-child { min-width: 180px; }
.dev-table td:last-child { text-align: right; }
.dev-record-link { display: inline-block; max-width: 290px; padding: 0; border: 0; background: transparent; color: #385b55; cursor: pointer; font-size: 11px; text-align: left; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.dev-record-link:hover { color: var(--dev-teal); text-decoration: underline; }
.dev-subline { display: block; margin-top: 3px; color: #9aaba6; font-size: 9px; font-weight: 400; }
.dev-tag { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 3px; line-height: 1.3; font-size: 9px; color: #87958e; background: #f0f4f1; white-space: nowrap; }
.dev-tag.teal { color: #3b8571; background: #e9f5ed; }
.dev-tag.blue { color: #6285a4; background: #edf3f9; }
.dev-tag.amber { color: #b18644; background: #fcf3e4; }
.dev-tag.danger { color: #b86c57; background: #faede6; }
.dev-red { color: #b56e5c !important; }
.dev-timeline { padding: 3px 18px 15px; }
.dev-timeline button { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 16px 0; border-bottom: 1px solid #edf1ef; background: transparent; text-align: left; }
.dev-timeline button:last-child { border: 0; }
.dev-timeline time { flex: 0 0 36px; font-size: 10px; color: #859790; }
.dev-time-dot { width: 6px; height: 6px; border-radius: 50%; background: #7baa92; flex: 0 0 6px; margin-top: 5px; }
.dev-timeline strong { display: block; color: #557267; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.dev-timeline small { display: block; color: #9caca2; font-size: 9px; margin-top: 5px; }
.dev-risk-list { padding: 0 18px 8px; }
.dev-risk-list a, .dev-risk-list > button { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1ef; }
.dev-risk-list > button { width: 100%; text-align: left; background: transparent; }
.dev-risk-list a:last-child, .dev-risk-list > button:last-child { border-bottom: 0; }
.dev-risk-list a > div, .dev-risk-list > button > div { min-width: 0; flex: 1; }
.dev-risk-bar { width: 3px; height: 30px; background: #cda579; flex: 0 0 3px; }
.dev-risk-bar.danger { background: #bb7966; }
.dev-risk-list strong { display: block; color: #6b7868; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.dev-risk-list small { color: #a5afa2; font-size: 9px; }
.dev-risk-list svg { width: 12px; color: #a9b4aa; }
.dev-stage-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid #edf1ef; }
.dev-stage-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-right: 1px solid #edf1ef; color: #84988e; font-size: 10px; }
.dev-stage-summary strong { color: #557367; font-size: 17px; }
.dev-page-footer { display: flex; justify-content: space-between; gap: 14px; padding: 12px 28px; color: #a0afaa; font-size: 9px; }
.dev-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dev-inline-filters input { width: 200px; }
.dev-project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin: -7px 0 20px; color: #94a49b; font-size: 11px; }
.dev-project-meta > span:not(.dev-tag) { display: flex; align-items: center; gap: 6px; }
.dev-project-meta strong { color: #5e796b; font-weight: 500; }
.dev-project-meta svg { width: 13px; }
.dev-back-link { display: inline-flex; gap: 5px; align-items: center; margin-bottom: 12px; font-size: 10px; color: #89a191; }
.dev-back-link svg { width: 12px; }
.dev-stage-band { display: grid; grid-template-columns: 1fr 1fr 2fr auto; align-items: center; gap: 16px; padding: 18px 21px; border-left: 3px solid var(--dev-teal); background: #fff; }
.dev-stage-band small { display: block; color: #98a99c; font-size: 9px; margin-bottom: 5px; }
.dev-stage-band strong { color: #537061; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.dev-project-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 8px 18px; color: #a4b2a7; font-size: 10px; }
.dev-project-flow span { display: inline-flex; align-items: center; gap: 10px; }
.dev-project-flow span:not(:last-child)::after { content: '›'; color: #c1cbc2; }
.dev-project-flow .current { color: var(--dev-teal); font-weight: 700; }
.dev-project-tabs { gap: 26px; background: #fff; border-top: 1px solid var(--dev-line); margin-bottom: 16px; }
.dev-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; }
.dev-detail-grid > .dev-surface { border: 1px solid var(--dev-line); }
.dev-span-all { grid-column: 1 / -1; }
.dev-keyvalues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; margin: 0; padding: 21px 18px; }
.dev-keyvalues > div { min-width: 0; }
.dev-keyvalues dt { font-size: 10px; color: #94a298; margin-bottom: 6px; }
.dev-keyvalues dd { font-size: 12px; color: #5a7161; margin: 0; overflow-wrap: anywhere; }
.dev-note-row { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: 10px; color: #9da89b; border-top: 1px solid #edf1eb; }
.dev-note-row svg { width: 13px; }
.dev-note { margin: 0; padding: 12px 18px 18px; color: #9ba596; font-size: 10px; line-height: 1.8; }
.dev-checklist { list-style: none; padding: 8px 18px; margin: 0; }
.dev-checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-bottom: 1px solid #eef1e9; color: #c1c7b7; }
.dev-checklist li:last-child { border: 0; }
.dev-checklist strong { display: block; color: #879079; font-size: 11px; font-weight: 500; }
.dev-checklist small { display: block; color: #acb39e; font-size: 9px; margin-top: 4px; }
.dev-checklist .passed, .dev-checklist .passed strong { color: #4c8a68; }
.dev-spaced { margin-top: 16px; }
.dev-section-actions { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid #edf1e8; }
.dev-history { padding: 8px 18px 14px; }
.dev-history > div { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; border-bottom: 1px solid #eef1e8; }
.dev-history strong { display: block; font-size: 11px; font-weight: 500; color: #6b795e; overflow-wrap: anywhere; }
.dev-history small { display: block; font-size: 10px; color: #a5ad98; margin-top: 5px; }
.dev-history svg { color: #9cb28b; width: 14px; }
.dev-cost-equation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 24px 20px; border-bottom: 1px solid #edf1e7; }
.dev-cost-equation small { display: block; font-size: 10px; color: #9ca78e; }
.dev-cost-equation strong { display: block; font-size: 23px; font-weight: 500; color: #687c4f; margin-top: 6px; }
.dev-cost-equation > b { color: #b6c0a6; font-size: 15px; font-weight: 400; }
.dev-cost-total strong { color: var(--dev-teal); }
.dev-calendar-list { padding: 0 18px; }
.dev-calendar-list > div { display: grid; grid-template-columns: 100px 85px minmax(0,1fr) 80px 50px; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--dev-line); }
.dev-calendar-list time { font-size: 11px; color: #9da88b; }
.dev-calendar-list strong { font-weight: 500; font-size: 12px; }
.dev-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--dev-line); border: 1px solid var(--dev-line); }
.dev-bars { padding: 24px; }
.dev-bars > div { display: grid; grid-template-columns: 80px 1fr 25px; gap: 15px; align-items: center; margin-bottom: 20px; color: #849569; font-size: 11px; }
.dev-bars > div > div { height: 8px; background: #edf2e6; }
.dev-bars i { display: block; height: 8px; background: #7ca186; }
.dev-state-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px; }
.dev-state-grid small { display: block; font-size: 10px; color: #9ca985; }
.dev-state-grid strong { font-weight: 500; font-size: 25px; }
.dev-empty { display: flex; min-height: 165px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #aab498; }
.dev-empty svg { width: 24px; height: 24px; }
.dev-empty strong { font-weight: 400; font-size: 12px; }
.dev-wrap { max-width: 500px; white-space: normal; overflow-wrap: anywhere; }
.dev-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid #d9e3d1; border-radius: 6px; color: var(--dev-ink); background: #fff; box-shadow: 0 24px 75px #183a3333; }
.dev-dialog::backdrop { background: #193c394d; backdrop-filter: blur(2px); }
.dev-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--dev-line); }
.dev-dialog-header > div { min-width: 0; }
.dev-dialog-header small { display: block; font-size: 10px; color: #92a483; margin-bottom: 5px; overflow-wrap: anywhere; }
.dev-dialog-header h2 { font-size: 17px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.dev-dialog-content { padding: 20px 22px; }
.dev-dialog-content .dev-keyvalues { padding: 17px 0; }
.dev-review-meta { display: flex; gap: 15px; align-items: center; color: #90a27e; font-size: 11px; }
.dev-attachment { display: flex; align-items: center; gap: 8px; border: 1px solid #e0e9d5; background: #f9fbf5; padding: 10px; color: #6f8554; font-size: 11px; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.dev-inline-notice { display: flex; gap: 10px; margin: 16px 0; padding: 12px; background: #f3f7ef; color: #819367; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.dev-field { display: block; color: #778b5b; font-size: 11px; margin: 15px 0 0; }
.dev-field input, .dev-field textarea, .dev-field select { display: block; width: 100%; margin-top: 6px; min-width: 0; font-size: 12px; }
.dev-field textarea { resize: vertical; min-height: 85px; }
.dev-required { color: #bd7c5c; }
.dev-dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--dev-line); flex-wrap: wrap; }
.dev-dialog-actions > div { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.dev-dialog-error { color: #b46f59; font-size: 11px; margin: 12px 0 0; }
.dev-create-options { display: grid; gap: 12px; }
.dev-create-options button { display: grid; grid-template-columns: 26px 1fr 16px; gap: 4px 10px; background: #fff; border: 1px solid var(--dev-line); border-radius: 4px; padding: 18px; text-align: left; color: #6e8755; }
.dev-create-options button:hover { background: #f6f9f2; }
.dev-create-options strong { font-size: 13px; }
.dev-create-options small { grid-column: 2; font-size: 10px; color: #9aa882; }
.dev-create-options svg:last-child { grid-column: 3; grid-row: 1; }
.dev-search-results button { display: grid; grid-template-columns: 1fr 20px; gap: 6px; width: 100%; padding: 16px 0; background: #fff; border-bottom: 1px solid var(--dev-line); text-align: left; color: var(--dev-teal); }
.dev-search-results strong { font-size: 12px; overflow-wrap: anywhere; }
.dev-search-results small { grid-column: 1; color: #99ab84; font-size: 10px; overflow-wrap: anywhere; }
.dev-search-results svg { grid-column: 2; grid-row: 1; }
.dev-message { border-bottom: 1px solid var(--dev-line); padding: 14px 0; font-size: 12px; }
.dev-message p { color: #95a67c; font-size: 11px; }
.dev-evidence { text-align: center; padding: 24px 10px; }
.dev-evidence > svg { width: 38px; height: 38px; color: #7d9c59; }
.dev-evidence h3 { font-size: 15px; overflow-wrap: anywhere; }
.dev-evidence p { color: #96a578; font-size: 11px; }
.dev-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); z-index: 150; color: #fff; background: #2b5d48; padding: 12px 18px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; font-size: 12px; max-width: calc(100% - 32px); }
.dev-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.dev-app #dev-role { width: 145px; max-width: 145px; font-size: 10px; }
.dev-intake-panel { margin-top: 16px; border: 1px solid var(--dev-line); }
.dev-intake-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.dev-intake-form-grid .dev-field { min-width: 0; }
.dev-intake-form-grid input, .dev-intake-form-grid select { min-width: 0; }
.dev-active-filter { display: flex; align-items: center; gap: 12px; color: var(--dev-teal); margin-bottom: 12px; font-size: 11px; }
.dev-sample-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--dev-line); font-size: 11px; }
.dev-sample-marks label, .dev-checkbox-field { display: flex; align-items: center; gap: 8px; }
.dev-checkbox-field { margin-top: 15px; color: #5a736a; font-size: 11px; }
.dev-dialog input[type="checkbox"] { accent-color: var(--dev-teal); }
.dev-supplier-options { border: 1px solid var(--dev-line); padding: 15px; font-size: 12px; }
.dev-supplier-options legend { padding: 0 6px; color: #71898a; }
.dev-supplier-options label { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
@media (max-width: 1000px) { #dev-search-form { display: none; } }
.dev-compare-project { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dev-compare-project > label { flex: 0 0 auto; font-size: 11px; color: #71898a; }
.dev-app .dev-compare-project select { max-width: min(470px, 100%); min-width: 0; }
.dev-compare-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--dev-line); }
.dev-compare-filters label { display: grid; gap: 5px; flex: 1 1 120px; color: #71898a; font-size: 10px; min-width: 0; }
.dev-compare-filters input, .dev-compare-filters select { width: 100%; min-width: 0; min-height: 33px; padding: 6px 9px; border: 1px solid #dce5e3; border-radius: 3px; color: #4c686a; background: #fff; font-size: 11px; }
.dev-compare-filters + .dev-table-wrap td:first-child { min-width: 45px; width: 45px; }
.dev-compare-save { padding: 0 18px 18px; border-top: 1px solid var(--dev-line); }
.dev-compare-save textarea { width: 100%; display: block; margin-top: 7px; padding: 10px; border: 1px solid #dce5e3; border-radius: 3px; font-size: 12px; resize: vertical; color: var(--dev-ink); }
.dev-compare-save-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.dev-compare-save-actions > span { flex: 1 1 220px; color: #a1824b; font-size: 10px; }
.dev-app input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--dev-teal); cursor: pointer; }
.dev-app.collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.dev-app.collapsed .dev-brand { justify-content: center; padding: 14px 0; }
.dev-app.collapsed .dev-brand-text, .dev-app.collapsed .dev-nav-group h2, .dev-app.collapsed .dev-nav-link span, .dev-app.collapsed .dev-nav-link em, .dev-app.collapsed .dev-sidebar-footer > div, .dev-app.collapsed .dev-sidebar-footer > .dev-avatar { display: none; }
.dev-app.collapsed #dev-nav { padding: 12px 6px; }
.dev-app.collapsed .dev-nav-link { justify-content: center; padding: 9px 0; }
.dev-app.collapsed .dev-sidebar-footer { justify-content: center; }
@media (max-width: 1200px) {
  .dev-content { padding: 22px 20px 16px; }
  .dev-topbar { padding: 0 20px; }
  #dev-search-form { width: 190px; }
  .dev-metric { padding: 18px 14px; gap: 2px 8px; }
  .dev-dashboard-grid { grid-template-columns: minmax(0, 1.7fr) 270px; }
}
@media (max-width: 1080px) {
  .brand-copy h1 { font-size: 36px; }
  .dev-app { grid-template-columns: 64px minmax(0, 1fr); }
  .dev-brand { justify-content: center; padding: 14px 0; }
  .dev-brand-text, .dev-nav-group h2, .dev-nav-link span, .dev-nav-link em, .dev-sidebar-footer > div, .dev-sidebar-footer > .dev-avatar { display: none; }
  #dev-nav { padding: 12px 6px; }
  .dev-nav-link { justify-content: center; padding: 9px 0; }
  .dev-sidebar-footer { justify-content: center; }
  .dev-menu-button { display: inline-flex; margin-right: 8px; }
  .dev-app.nav-open .dev-sidebar { position: fixed; left: 0; top: 0; width: 232px; box-shadow: 10px 0 50px #193c3922; }
  .dev-app.nav-open .dev-brand { justify-content: flex-start; padding: 14px 20px; }
  .dev-app.nav-open .dev-brand-text, .dev-app.nav-open .dev-sidebar-footer > div { display: flex; }
  .dev-app.nav-open .dev-nav-group h2, .dev-app.nav-open .dev-nav-link span, .dev-app.nav-open .dev-nav-link em, .dev-app.nav-open .dev-sidebar-footer > .dev-avatar { display: block; }
  .dev-app.nav-open #dev-nav { padding: 12px; }
  .dev-app.nav-open .dev-nav-link { justify-content: flex-start; padding: 7px 11px; }
  .dev-app.nav-open .dev-mask { display: block; position: fixed; inset: 0; z-index: 30; background: #193c3944; }
}
@media (max-width: 820px) {
  .dev-dashboard-grid, .dev-detail-grid { grid-template-columns: 1fr; }
  .dev-board-grid { grid-template-columns: 1fr; }
  .dev-span-all { grid-column: auto; }
  .dev-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-metric:nth-child(2) { border-right: 0; }
  .dev-metric:nth-child(-n+2) { border-bottom: 1px solid var(--dev-line); }
  #dev-search-form { width: 155px; }
  .dev-heading { align-items: flex-start; }
  .dev-heading h1 { font-size: 20px; }
  .dev-stage-band { grid-template-columns: 1fr 1fr; }
  .dev-calendar-list > div { grid-template-columns: 90px 1fr 50px; }
  .dev-calendar-list > div > span { display: none; }
}
@media (max-width: 600px) {
  .dev-app #dev-role { width: 105px; max-width: 105px; }
  .dev-intake-form-grid { grid-template-columns: 1fr; }
  #dev-crumb { max-width: 60px; }
  .dev-global-tools > .dev-primary span { display: none; }
  .dev-compare-project { flex-direction: column; align-items: stretch; width: 100%; }
  .dev-app .dev-compare-project select { width: 100%; }
  .dev-app, .dev-app.collapsed { display: block; }
  .dev-sidebar { display: none; }
  .dev-app.nav-open .dev-sidebar { display: flex; }
  .dev-topbar { height: 58px; padding: 0 10px; gap: 5px; }
  .dev-global-tools { gap: 5px; }
  #dev-search-form { display: none; }
  .dev-global-tools .dev-demo-tag { display: none; }
  .dev-content { padding: 18px 12px; }
  .dev-heading { flex-direction: column; gap: 12px; }
  .dev-heading-actions { width: 100%; }
  .dev-scope { width: 100%; }
  .dev-scope select { flex: 1; width: 0; min-width: 0; }
  .dev-toolbar { align-items: stretch; }
  .dev-inline-filters { flex-wrap: wrap; width: 100%; }
  .dev-inline-filters input { flex: 1; width: 140px; min-width: 100px; }
  .dev-stage-summary > div { flex-direction: column; padding: 10px 5px; }
  .dev-keyvalues { grid-template-columns: 1fr; }
  .dev-cost-equation { display: grid; grid-template-columns: 1fr 15px 1fr; }
  .dev-cost-equation > b:nth-child(4) { display: none; }
  .dev-cost-equation > div:nth-child(5) { grid-column: 1; }
  .dev-dialog-content { padding: 16px; }
  .dev-dialog-header, .dev-dialog-actions { padding: 16px; }
  .dev-dialog-actions > div { flex-wrap: wrap; }
  .dev-page-footer { padding: 10px 12px; flex-direction: column; gap: 4px; }
  .dev-record-link { max-width: 230px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

.dev-price-check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; }
.dev-app .dev-price-check input { width: 16px; height: 16px; flex: 0 0 16px; }
.dev-price-date { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.dev-price-date input { max-width: 180px; }
.dev-dialog-content .dev-section-heading { margin-top: 20px; }
.dev-demand-assets .dev-section-heading { flex-wrap: wrap; }
.dev-demand-assets .dev-heading-actions { margin-left: auto; }
.dev-dialog[data-view="demand-assets"] { width: min(960px, calc(100% - 32px)); }
.dev-dialog-actions { flex-wrap: wrap; gap: 10px; }
.dev-dialog-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-dialog-content .dev-keyvalues dd { overflow-wrap: anywhere; }
.dev-handover-warning { margin-bottom: 16px; color: #9b3038; border-left: 3px solid #bd3845; }
.dev-handover-note { max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
.dev-section-actions { flex-wrap: wrap; gap: 8px; }
.dev-sidebar-footer small { overflow-wrap: anywhere; }
.dev-supplier-choices { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.dev-supplier-choices legend { color: #778b5b; font-size: 11px; margin-bottom: 10px; }
.dev-internal-selection { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 12px 0; }
.dev-internal-selection fieldset { display: flex; flex-wrap: wrap; gap: 10px 16px; border: 0; padding: 0; margin: 0; flex: 1 1 100%; min-width: 0; }
.dev-internal-selection legend { font-size: 13px; margin-bottom: 8px; }
.dev-internal-selection label { display: flex; gap: 6px; align-items: center; overflow-wrap: anywhere; font-size: 13px; }
.dev-app .dev-internal-selection input[type="checkbox"] { width: 16px; min-height: 16px; flex: 0 0 16px; }
.dev-internal-notes, .dev-internal-sku { padding: 16px 0; border-top: 1px solid #dce4ee; min-width: 0; }
.dev-internal-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }
.dev-internal-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.dev-internal-columns > div { min-width: 0; }
.dev-internal-columns h3 { font-size: 14px; margin: 12px 0; }
@media (max-width: 1100px) { .dev-internal-columns { grid-template-columns: minmax(0, 1fr); } }
.dev-supplier-choices label { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 12px; overflow-wrap: anywhere; }
.dev-dialog .dev-supplier-choices input { width: 16px; min-height: 16px; flex: 0 0 16px; }
/* Full-workspace recovery keeps its confirmation separate from business forms. */
.dev-dialog[data-view="workspace-backup"] { width: min(940px, calc(100vw - 24px)); }
.workspace-backup { min-width: 0; }
.workspace-backup .dev-toolbar { flex-wrap: wrap; }
.backup-warning { padding: 10px 12px; border-left: 3px solid #b97825; background: #fff8ed; color: #704b1d; line-height: 1.6; overflow-wrap: anywhere; }
.backup-status, .backup-source { margin: 12px 0; color: #50647c; }
.backup-source { display: grid; gap: 6px; overflow-wrap: anywhere; }
.backup-ack { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0; line-height: 1.6; }
.backup-ack input { flex: none; margin-top: 5px; }
.workspace-backup .dev-table th, .workspace-backup .dev-table td { min-width: 80px; }
.workspace-backup .dev-table th:first-child, .workspace-backup .dev-table td:first-child { min-width: 180px; }
.workspace-backup .dev-field input { max-width: 100%; }
