/* Northdown Hub: production-only design overlay, no dependencies. */
:root{--bg:#f8f9fa;--surface:#fff;--ink:#191b1e;--muted:#727985;--line:#e9eaec;--green:#f4511e;--green2:#cf3b13;--lime:#ffb99d;--gold:#f5b79d;--danger:#b6483c;--warn:#ae672c;--shadow:0 1px 3px #17171706;--radius:12px;--nd-orange:#ff5722}
body{background:white;font-family:Inter,"Segoe UI",Arial,sans-serif}
.prototype-banner{background:white;color:#777e89;border-bottom:1px solid var(--line);min-height:31px;height:auto;padding:9px 12px;letter-spacing:.07em}
.app-shell{grid-template-columns:216px minmax(0,1fr)}
.sidebar{background:#f7f7f8;color:var(--ink);border-right:1px solid var(--line);padding:23px 15px 16px;height:calc(100vh - 31px);overflow:auto}
.brand{padding:0 7px 20px;gap:10px}.brand-mark{height:35px;width:35px;border-radius:9px;background:#ff5722;color:white;font-size:19px}.brand strong{font-size:13px;letter-spacing:.07em;color:#232429}.brand span{color:#777d85;font-size:9px;letter-spacing:.11em}
.nav{gap:2px}.nav-item{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;padding:9px;color:#282b31;border-radius:7px;line-height:1.3;position:relative}.nav-item span{height:17px;width:17px;display:grid;place-items:center;flex:none}.nav-item svg{width:16px;height:16px}.nav-item:hover{background:#eceef0;color:#191b1e}.nav-item.active{background:#fff;color:#191b1e;font-weight:700;border:1px solid #e6e6e9;box-shadow:0 1px 3px #1616160a;padding:8px}.nav-item.active:before{content:"";position:absolute;left:-1px;width:3px;height:23px;background:#ff5722;border-radius:3px}.nd-nav-label{margin:16px 5px 6px;padding-top:13px;border-top:1px solid #e6e7e9;font-size:11px;font-weight:650;letter-spacing:.1em;color:#8e949d}.nd-nav-label:first-child{border:0;margin-top:0;padding-top:0}.sidebar-links,.user-card{border-color:#e6e7e9;color:#282b31}.sidebar-links{padding:13px 5px}.sidebar-links a{font-size:12px;color:#626b76}.sidebar-links a:hover{color:#d74419}.user-card{padding-left:5px}.user-card span{color:#747b85}.avatar{background:#ffede4;color:#b65331}
.main{padding:24px 27px 44px;background:#fff;max-width:1600px;width:100%}.topbar{margin-bottom:20px;align-items:center}.eyebrow,.section-label{color:#8b9099;font-size:10px;letter-spacing:.11em;font-weight:600}.topbar h1{font-size:27px;line-height:1.2;letter-spacing:-.045em;margin:6px 0}.topbar p{font-size:12px;color:#7c818a}.top-actions{gap:7px;padding:0}.btn{border-radius:7px;font-size:12px;padding:9px 13px;font-weight:600}.btn.primary{background:#ff5722;color:#fff;box-shadow:none}.btn.primary:hover{background:#de4215}.btn.secondary{background:#fff;border:1px solid var(--line);color:#303138}.btn.secondary:hover{background:#fff3ed;color:#c94218}.btn.small{font-size:11px;padding:7px 10px}
.card,.kpi-card,.job-card,.integration-card{border-radius:12px;border:1px solid #e8e8ea;box-shadow:0 1px 3px #17171706;padding:15px}.card h2,.section-tools h2{font-size:15px;letter-spacing:-.015em}.card p,.section-tools p{font-size:12px}.kpi-grid{gap:10px}.kpi-card .label{font-size:11px;color:#696f77;font-weight:500}.kpi-value{font-size:25px;font-weight:750;letter-spacing:-.05em}.kpi-note{font-size:10px;color:#858b95}.delta,.status{font-size:10px;font-weight:600}.delta.warn{background:#fff1e8;color:#a95829}.status{border:1px solid #e1e3e5;background:#f4f4f5;color:#646a72}.status.accepted,.status.paid,.status.won,.status.confirmed{background:#f0faf5;color:#16855b;border-color:#c9e5d9}.text-btn,.quote-action,.job-action,.invoice-action{color:#cd421a;background:#fff3ed}.text-btn{background:transparent}.quote-action,.job-action,.invoice-action{border:1px solid #ffdfd0}.quote-action:hover,.job-action:hover,.invoice-action:hover{background:#ffebdf}.data-table th{background:#f4f4f5;color:#777c85}.data-table td{border-color:#eee}.pipeline-column{background:#f6f6f7;border-color:#e8e8ea}.lead-card{border-color:#e8e8ea}.mini-bar span{background:#20ae78}.integration-icon{background:#ffede4;color:#d74b22}.attention-item{background:#fff;border-color:#e8e8ea}.modal-backdrop{background:#191b1e75}.modal{border-radius:14px}.form-grid label,.quote-summary label{color:#535a66}.form-grid input,.form-grid select,.quote-summary input,.item-row input{border-color:var(--line);background:white}.quote-summary{background:#f8f9fa}.summary-line.total{color:#d64a1c}.toast{background:#202124}
#prospects th{background:#f4f4f5;color:#777c85}#prospects .prospect-pill{background:#f0faf5;color:#16855b;border:1px solid #c9e5d9}#prospects .prospect-thread{color:#d74b22}#prospectDialog{border-color:#e8e8ea}#prospectDialog::backdrop{background:#191b1e75}
/* All legacy controls stay in the DOM, but no demo records can flash or mutate. */
html:not(.nd-live) .view,html:not(.nd-live) .top-actions,html:not(.nd-live) .modal-backdrop,html:not(.nd-live) .nav{display:none!important}
.nd-connection{padding:20px;border:1px solid #ffdfd0;background:#fff7f1;border-radius:12px}.nd-connection h2{font-size:15px;margin:0 0 8px}.nd-connection p{color:#7f5846;font-size:13px;line-height:1.6}.nd-live .nd-connection{display:none}
/* Dashboard */
#dashboard>.charts-row,#dashboard>#insightGrid,#dashboard>.card:has(#insightNarrative){display:none}
#dashboard #kpiGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e8e8ea;border-radius:12px;gap:0;overflow:hidden;margin-bottom:16px}
#kpiGrid .nd-stat{min-width:0;border-right:1px solid #ededee}.nd-stat:last-child{border-right:0!important}.nd-stat-body{position:relative;padding:15px 13px 16px;min-height:100px}.nd-stat-label{font-size:11px;color:#696f77;margin-bottom:7px}.nd-stat-val{font-size:25px;letter-spacing:-.05em;font-weight:750;line-height:1.15;margin-bottom:7px;position:relative;z-index:1;overflow-wrap:anywhere}.nd-stat-note{font-size:10px;color:#858b95;max-width:78%}.nd-stat-icon{font-size:22px;color:#ff5722;position:absolute;right:12px;top:13px}.nd-stat-icon svg{height:24px;width:24px}.nd-stat-detail{display:block;width:100%;background:white;border:0;border-top:1px solid #ededee;font-size:11px;padding:9px 4px;font-weight:650;color:#292a2c;cursor:pointer}.nd-stat-detail:hover{background:#fff4ee}
.nd-middle{display:grid;grid-template-columns:minmax(205px,25%) minmax(0,1fr);border:1px solid #e8e8ea;border-radius:12px;overflow:hidden;margin-bottom:16px}.nd-gauge-card{border-right:1px solid #ededee;display:flex;flex-direction:column;min-width:0}.nd-gauge-card h2,.nd-panel-title{font-size:12px;color:#202124;margin:0;font-weight:600}.nd-gauge-card h2{padding:16px 14px 6px}.nd-gauge{position:relative;max-width:249px;width:calc(100% - 25px);margin:10px auto}.nd-gauge svg{display:block;width:100%}.nd-gauge-center{position:absolute;top:48%;left:0;right:0;text-align:center}.nd-gauge-center strong{font-size:29px;letter-spacing:-.05em}.nd-gauge-center small{display:block;font-size:10px;color:#9299a3;margin-top:3px}.nd-gauge-note{margin-top:auto;border-top:1px solid #eee;padding:15px 13px;font-size:11px;color:#858b95;line-height:1.6}.nd-gauge-note strong{color:#34373c}.nd-analytics{padding:14px 15px 8px;min-width:0}.nd-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.nd-chart-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.nd-chart-tools button{font:inherit;font-size:10px;border:1px solid #e8e8ea;background:#fff;border-radius:6px;padding:7px;color:#292a2c;cursor:pointer}.nd-chart-tools button[aria-pressed="true"]{background:#fff3ed;color:#d64a1c;border-color:#ffd9c9}.nd-chart-tools svg{width:12px;height:12px;vertical-align:middle}.nd-analytics-svg{display:block;width:100%;min-height:220px}.nd-month{cursor:pointer;outline:none}.nd-month:focus-visible{stroke:#242424;stroke-width:2px}.nd-chart-label{font-size:10px;fill:#89919c}.nd-chart-label.selected{fill:#202124;font-weight:700}.nd-chart-caption{font-size:10px;color:#858b95;margin:4px 0 9px}
.nd-bottom{display:grid;grid-template-columns:minmax(0,1.44fr) minmax(0,1fr);gap:12px;margin-bottom:14px}.nd-bottom .card{padding:13px 14px;min-height:185px}.nd-activity{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:9px}.nd-activity>div{text-align:center;min-width:0}.nd-activity strong{display:block;font-size:15px}.nd-activity small{display:block;font-size:10px;color:#89919c;margin:6px 0}.nd-heat{height:23px;border-radius:999px;margin-top:7px;background:#ffe1d5}.nd-sources{display:grid;grid-template-columns:1fr minmax(105px,40%);gap:12px;align-items:center}.nd-source-list{min-width:0}.nd-source-row{display:flex;justify-content:space-between;gap:5px;border-bottom:1px solid #eee;padding:8px 0;font-size:11px}.nd-source-row span{overflow-wrap:anywhere}.nd-source-row i{display:inline-block;vertical-align:middle;width:7px;height:7px;border-radius:50%;margin-right:5px}.nd-pie{position:relative;aspect-ratio:1;border-radius:50%;width:100%;max-width:138px;margin:auto}.nd-pie:after{content:"";position:absolute;inset:6px;border:2px solid white;border-radius:50%}.nd-total{font-size:25px;font-weight:750;letter-spacing:-.05em;margin-bottom:5px}.nd-zero{padding:25px 12px;text-align:center;color:#858b95;font-size:12px}
/* Live lead list and rule-based recommendations. */
.nd-lead-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.nd-lead-grid .kpi-card{min-width:0}.nd-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:14px 15px;border-bottom:1px solid #eee}.nd-toolbar h2{font-size:14px;margin:0}.nd-toolbar-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.nd-toolbar-controls input,.nd-toolbar-controls select{border:1px solid #e8e8ea;border-radius:7px;background:#fff;padding:8px 10px;font:inherit;font-size:12px;min-width:120px}.nd-lead-table{padding:0;overflow:hidden;margin-bottom:15px}.nd-lead-table table{min-width:700px}.nd-lead-table th,.nd-lead-table td{padding:12px 10px}.nd-lead-table tbody td strong{font-size:12px}.nd-person{display:flex;gap:8px;align-items:center}.nd-person .avatar{width:30px;height:30px;flex:none;font-size:10px}.nd-person small{display:block;font-size:10px;color:#8e949d;margin-top:3px}.nd-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;margin-top:6px;max-width:105px}.nd-progress i{height:5px;border-radius:4px;background:#e9ebeb}.nd-progress i.on{background:#20ae78}.nd-stage{font-size:10px;color:#747b85}.nd-lead-foot{padding:12px 15px;font-size:11px;color:#858b95;border-top:1px solid #eee}.nd-lead-table td .btn{white-space:nowrap}.nd-queue{display:grid;gap:0}.nd-queue-row{display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #eee;padding:14px 1px}.nd-queue-row>div:nth-child(2){flex:1}.nd-queue-row strong{font-size:12px}.nd-queue-row p{font-size:11px;line-height:1.5;margin:4px 0;color:#727985}.nd-ai-icon{height:34px;width:34px;flex:none;border-radius:9px;background:#ffede4;color:#d74b22;display:grid;place-items:center}.nd-ai-icon svg{width:17px;height:17px}.nd-ai-note{padding:10px 12px;background:#fff7f1;border:1px solid #ffdfd0;border-radius:9px;font-size:12px;color:#825b49;line-height:1.6;margin-bottom:14px}.nd-ai-card h2{font-size:14px}.nd-ai-card{margin-bottom:12px}
@media(min-width:1400px){.main{padding:28px 34px}.nd-stat-body{min-height:115px;padding:18px}.nd-stat-val{font-size:29px}.nd-analytics-svg{min-height:267px}}
@media(max-width:1050px){.app-shell{grid-template-columns:180px minmax(0,1fr)}.main{padding:18px 15px 35px}.nd-stat-val{font-size:22px}.nd-middle{grid-template-columns:190px minmax(0,1fr)}.nd-bottom{grid-template-columns:1fr 1fr}}
@media(max-width:900px){#dashboard #kpiGrid,.nd-lead-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nd-stat:nth-child(2){border-right:0!important}.nd-stat:nth-child(-n+2){border-bottom:1px solid #ededee}.nd-middle{grid-template-columns:1fr}.nd-gauge-card{border-right:0;border-bottom:1px solid #eee}.nd-gauge{max-width:190px}.nd-bottom{grid-template-columns:1fr}}
@media(max-width:760px){.app-shell{display:block}.sidebar{height:auto;position:relative;padding:10px}.brand{padding:0 5px 9px}.nd-nav-label{display:none}.nav{display:flex;overflow:auto;gap:4px}.nav-item{white-space:nowrap;flex:none;padding:8px 9px}.nav-item.active{padding:7px 8px}.nav-item span{display:none}.main{padding:16px 12px 40px}.topbar{display:flex;flex-wrap:wrap;margin-bottom:14px}.topbar h1{font-size:24px}.top-actions{margin:0}.nd-stat-body{padding:11px;min-height:92px}.nd-stat-val{font-size:21px}.nd-analytics{padding:12px 8px}.nd-analytics-svg{min-height:0}.nd-bottom .card{min-height:0}.nd-toolbar-controls{width:100%}.nd-toolbar-controls input{flex:1}.nd-queue-row{flex-wrap:wrap}}
.nd-lead-actions{display:flex;flex-wrap:wrap;gap:5px}.nd-project-dialog{width:min(620px,calc(100% - 28px));border:1px solid #e8e8ea;border-radius:14px;padding:24px;color:#191b1e;box-shadow:0 16px 80px #0002;max-height:calc(100vh - 28px);overflow:auto}.nd-project-dialog::backdrop{background:#191b1e75}.nd-project-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.nd-project-head h2{margin:0;font-size:20px;letter-spacing:-.03em}.nd-project-head p{font-size:12px;color:#777e89;overflow-wrap:anywhere}#ndProjectStatus{font-size:12px;color:#7a807f;background:#f5f6f7;padding:9px;border-radius:7px}#ndProjectStatus.error{background:#fff0e8;color:#aa410f}.nd-project-dialog fieldset{border:0;padding:0;margin:0;min-width:0}.nd-project-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.nd-project-fields label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#585e66;font-weight:600;min-width:0}.nd-project-fields input{min-width:0;padding:9px;border:1px solid #e8e8ea;border-radius:7px;background:white;color:#191b1e;font:inherit;font-size:13px}.nd-project-help{font-size:11px;color:#858b95;line-height:1.6;margin:15px 0}.nd-project-foot{display:flex;justify-content:flex-end}.nd-project-dialog button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:600px){.nd-project-dialog{padding:15px}.nd-project-fields{grid-template-columns:1fr}}

/* Readability: larger dashboard typography without changing the approved design. */
.main,.modal,.nd-project-dialog,.nd-archive-dialog,#prospectDialog{font-size:15px;line-height:1.5}
.prototype-banner{font-size:12px}
.main .eyebrow,.main .section-label{font-size:12px;letter-spacing:.08em;color:#68717d}
.topbar h1{font-size:30px}
.topbar p,.card p,.section-tools p{font-size:14px;line-height:1.5}
.main .card h2,.section-tools h2{font-size:18px;line-height:1.35}
.btn{font-size:14px;line-height:1.35}
.btn.small,.text-btn,.quote-action,.job-action,.invoice-action{font-size:13px}
.kpi-card .label,.nd-stat-label{font-size:13px;line-height:1.4}
.kpi-value,.nd-stat-val,.nd-total{font-size:29px}
.kpi-note,.nd-stat-note,.delta,.status,.pill{font-size:12px;line-height:1.4}
.nd-stat-label{padding-right:27px}
.nd-stat-note{max-width:100%}
.nd-stat-body{min-height:115px}
.nd-stat-detail{font-size:13px}
.nd-gauge-card h2,.nd-panel-title{font-size:15px}
.nd-gauge-center strong{font-size:30px}
.nd-gauge-center small,.nd-gauge-note,.nd-chart-caption,.nd-activity small{font-size:12px}
.nd-chart-tools button,.nd-chart-label{font-size:12px}
.nd-source-row,.nd-zero{font-size:14px}
.nd-activity strong{font-size:17px}
.data-table,#prospects td{font-size:14px;line-height:1.45}
.data-table th,#prospects th{font-size:12px;line-height:1.4}
.nd-lead-table tbody td strong,.nd-queue-row strong,.attention-item strong,.lead-card strong,.pipeline-column h3{font-size:14px}
.nd-stage,.nd-person small,.metric-inline,.attention-item span,.lead-card .meta,.job-card .job-meta{font-size:12px;line-height:1.4}
.nd-toolbar-controls input,.nd-toolbar-controls select,.nd-ai-note,.nd-queue-row p,.nd-lead-foot,.empty{font-size:14px}
.nd-person .avatar{font-size:12px}
.nd-lead-table table{min-width:850px}
.table-wrap{overflow-x:auto}
.job-card h3,.integration-card strong{font-size:16px}
.integration-card p{font-size:14px}
.form-grid label,.quote-summary label,.item-row label,.nd-project-fields label,#prospectDialog label{font-size:13px}
.form-grid input,.form-grid select,.form-grid textarea,.quote-summary input,.item-row input,.nd-project-fields input,#prospectDialog input,#prospectDialog select,#prospectDialog textarea{font-size:14px}
.item-total,.summary-line,.toast,.nd-project-head p,#ndProjectStatus,.nd-project-help,.nd-archive-status,.nd-archive-error,.nd-archive-page,.nd-archive-dialog #ndArchiveBlockers{font-size:14px}
.nd-archive-dialog #ndArchiveDetails p,.nd-archive-dialog #ndArchiveDialogStatus{font-size:14px}
.nd-stat-note,.kpi-note,.nd-lead-foot,.nd-chart-caption,.nd-person small,.metric-inline,.nd-stage,.nd-gauge-note,.nd-gauge-center small,.nd-activity small{color:#626b76}
@media(max-width:1050px){.nd-stat-val{font-size:25px}.nd-stat-body{min-height:110px}}
@media(max-width:760px){.topbar h1{font-size:27px}.nd-stat-val{font-size:24px}.nd-stat-body{min-height:110px}.nd-stat-label{padding-right:21px}.nd-stat-icon svg{width:20px;height:20px}.nd-bottom .card{min-height:0}}
