/* Gate 2 final owner corrections. Keep dimensions, palette and all underlying routes. */
body #secondary .menu-row:not(.selected):not(:hover):not(:focus-visible){background:linear-gradient(90deg,#fff,#fafcff)!important}
body #secondary .menu-row[aria-current=page].selected{background:linear-gradient(90deg,#dcefff,#b8ddfb)!important;border-radius:8px!important}
body #secondary .menu-row:hover,body #secondary .menu-row:focus-visible{background:linear-gradient(90deg,#dcefff,#b8ddfb)!important}
body[data-view=dashboard] footer #version{display:none}
@media(min-width:701px){
 body[data-view=dashboard] .activity-empty{display:grid;place-items:center;min-height:194px;text-align:center}
}

/* Gate 3: standalone mobile composition from the original approved reference. */
@media(max-width:700px){
 body:not([data-view=home]){--design-ink:#0a1d3d;--design-blue:#0862c9;--design-line:#d8e2ec;--design-muted:#65758b;background:linear-gradient(115deg,#fff,#f2f7fc);padding-bottom:calc(82px + env(safe-area-inset-bottom,0px));font-family:Arial,Helvetica,sans-serif;color:#0a1d3d}
 body:not([data-view=home]) #app-header{height:72px;min-height:72px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top,0px));background:linear-gradient(115deg,#fff,#f8fbfe);border-bottom:1px solid #d8e2ec}
 body:not([data-view=home]) .brand img{width:170px;height:46px;object-fit:contain}
 #notification-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:9px;color:#062650}
 #notification-button .ui-icon{width:25px;height:25px;stroke-width:2}
 body:not([data-view=home]) main{padding:16px 16px 24px;min-height:calc(100svh - 154px)}
 body:not([data-view=home]) .workspace-title{font-size:22px;line-height:1.2;letter-spacing:-.6px;margin:0 0 16px}
 body[data-view=dashboard] .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-view=dashboard] .metric-card{min-height:128px;padding:16px;border:1px solid #d8e2ec;border-radius:12px;background:linear-gradient(120deg,#fff,#f8fbfd);box-shadow:0 3px 7px #092b5014}
 body[data-view=dashboard] .metric-card>.ui-icon{width:28px;height:28px;stroke-width:2;color:#0862c9;margin-bottom:8px}
 body[data-view=dashboard] .metric-card>span{font-size:12px;line-height:1.2;font-weight:600;color:#0a1d3d;max-width:130px}
 body[data-view=dashboard] .metric-card strong{font-size:23px;line-height:1.1;font-weight:700;margin-top:7px;color:#0a1d3d}
 body[data-view=dashboard] .dashboard-columns{margin-top:22px;gap:24px}
 body[data-view=dashboard] .dashboard-actions h2,body[data-view=dashboard] .recent-activity h2{font-size:18px;line-height:1.25;letter-spacing:-.5px;margin:0 0 12px}
 body[data-view=dashboard] .quick-action-list{gap:8px}
 body[data-view=dashboard] .quick-action-list button{min-height:46px;padding:10px 12px;gap:12px;font-size:12px;line-height:1.3;font-weight:600;border-radius:9px}
 body[data-view=dashboard] .quick-action-list button>.ui-icon:first-child{width:25px;height:25px;stroke-width:2}
 body[data-view=dashboard] .quick-action-list button>.ui-icon:last-child{width:17px;height:17px;stroke-width:2}
 body[data-view=dashboard] .quick-action-list .new-assessment{background:linear-gradient(180deg,#087ad7,#0647a9);border-color:#0862c9;color:white}
 body[data-view=dashboard] .quick-action-list .new-quick{background:linear-gradient(90deg,#dcefff,#b8ddfb);border-color:#b8ddfb;color:#062650}
 body[data-view=dashboard] .quick-action-list .find-customer{background:linear-gradient(#fff,#f5f7fa);border-color:#d8e2ec;color:#0a1d3d}
 body[data-view=dashboard] .activity-list{min-height:96px;background:white;border:1px solid #d8e2ec;border-radius:12px;box-shadow:0 3px 7px #092b500b}
 body[data-view=dashboard] .activity-empty{min-height:94px;display:grid;place-items:center;text-align:center;padding:18px;font-size:13px;color:#65758b}
 body[data-view=dashboard] .activity-list>button{min-height:64px;font-size:13px;background:white}
 body[data-view=dashboard] .dashboard-signin button{min-height:44px;font-size:12px}
 body[data-view=dashboard] .dashboard-utility-region{margin-top:22px;padding-top:12px;border-top:1px solid #d8e2ec}
 body[data-view=dashboard] .dashboard-utility-region>summary,.mobile-media-region>summary{padding:10px 4px;min-height:44px;font-size:13px;font-weight:600;color:#062650;cursor:pointer}
 body[data-view=dashboard] .workspace-utilities{margin-top:10px;padding:14px;border:1px solid #d8e2ec;background:white;border-radius:12px}
 body[data-view=dashboard] .workspace-utilities h2{display:none}
 body[data-view=dashboard] .workspace-utilities .actions{margin-top:0}
 body[data-view=dashboard] .workspace-utilities button{min-height:44px;font-size:12px}
 body[data-view=dashboard] .dashboard-media{display:inline-flex;align-items:center;gap:8px}
 body:not([data-view=home]) #record-tools{display:none}

 #mobile-bottom{min-height:70px;padding:8px 6px max(8px,env(safe-area-inset-bottom,0px));background:#fffffff7;border-top:1px solid #d8e2ec;box-shadow:0 -2px 9px #092b5005;gap:0}
 #mobile-bottom button{min-width:0;min-height:50px;padding:1px 2px;gap:5px;font-size:10px;line-height:1.15;font-weight:500;color:#26364c}
 #mobile-bottom .ui-icon{width:25px;height:25px;stroke-width:2}
 #mobile-bottom button.selected{color:#0862c9;font-weight:700}
 #mobile-bottom button.selected .ui-icon{stroke-width:2}

 body[data-view=more] #app-header{display:none}
 body[data-view=more] main{padding:20px 16px 24px;min-height:calc(100svh - 82px)}
 .more-title{margin:0;min-height:44px}
 .more-title h1{font-size:22px;line-height:1.2;letter-spacing:-.6px}
 .more-title .icon-button{min-width:44px;min-height:44px;width:44px;height:44px;padding:10px;margin-right:-8px;color:#062650}
 .more-title .ui-icon{width:24px;height:24px;stroke-width:2}
 .more-menu{margin:12px 0 24px;border:1px solid #d8e2ec;border-radius:10px;background:white;box-shadow:0 3px 7px #092b500e}
 .more-menu>button{min-height:52px;padding:11px 14px;gap:14px;font-size:15px;line-height:1.3;font-weight:500;border-color:#d8e2ec}
 .more-menu .ui-icon{width:27px;height:27px;stroke-width:2;color:#0862c9}
 .more-menu>button>.ui-icon:last-child{width:16px;height:16px;color:#26364c}
 .more-assessment h2{font-size:18px;line-height:1.25;letter-spacing:-.5px;margin:0 0 12px}
 .assessment-timeline{background:linear-gradient(#fff,#f8fafc);border:1px solid #d8e2ec;border-radius:12px}
 .assessment-timeline button{min-height:74px;padding:12px 15px;gap:14px;font-size:13px;line-height:1.3}
 .assessment-timeline strong{font-size:13px;line-height:1.3}
 .assessment-timeline small{font-size:11px;line-height:1.35;margin-top:4px}
 .assessment-timeline .timeline-dot{width:26px;height:26px;min-width:26px;border-color:#98a5b5}
 .assessment-timeline .complete .timeline-dot{border-color:#0862c9;background:linear-gradient(#087bd6,#0647a9)}
 .assessment-timeline .current .timeline-dot{border:5px solid #0862c9}
 .assessment-timeline li.current{background:linear-gradient(90deg,#dcefff,#b8ddfb)}
 .assessment-timeline li:not(:last-child):before{left:28px;top:40px;bottom:-14px;background:#ccd5df}
 .assessment-timeline li.complete:before{background:#0862c9}
 .mobile-media-region{margin-top:18px;border-top:1px solid #d8e2ec;padding-top:8px}
 .mobile-media-region button{min-height:44px;display:flex;align-items:center;gap:10px;font-size:13px;margin-top:8px}

 main:has(.workflow-steps) h1{font-size:23px;line-height:1.2;letter-spacing:-.6px}
 .workflow-steps{gap:4px;margin-bottom:14px}
 .workflow-steps button{min-height:84px;padding:10px 4px;gap:8px;font-size:10px;line-height:1.2;border:1px solid #d8e2ec;background:#f1f5f9;color:#65758b}
 .workflow-steps button.active{background:linear-gradient(90deg,#dcefff,#b8ddfb);border-color:#9bcdf1;color:#062650}
 .workflow-steps button.complete{background:#eef7ff;color:#0862c9}
 .workflow-steps .stage-circle{width:25px;height:25px;min-width:25px}
 .workflow-steps button.active .stage-circle{border-color:#0862c9}
 .workflow-steps button.complete .stage-circle{background:#0862c9;border-color:#0862c9}
 main:has(.workflow-steps) .card{padding:16px;border-radius:12px;border:1px solid #d8e2ec;box-shadow:0 3px 7px #092b500b;margin:16px 0}
 main:has(.workflow-steps) .card h2{font-size:18px;line-height:1.25}
 main:has(.workflow-steps) .card h3{font-size:16px}
 main:has(.workflow-steps) .field{margin-bottom:14px}
 main:has(.workflow-steps) .field label{font-size:13px;line-height:1.4;margin-bottom:6px}
 main:has(.workflow-steps) .field input,main:has(.workflow-steps) .field select{font-family:Arial,Helvetica,sans-serif;font-size:16px;min-height:46px;border:1px solid #c5d4e3;border-radius:8px;width:100%;padding:10px 11px}
 main:has(.workflow-steps) .grid2,main:has(.workflow-steps) .grid3{grid-template-columns:1fr;gap:0}
 main:has(.workflow-steps) .grid3 .field{display:block}
 main:has(.workflow-steps) .effective{display:block;font-size:11px;line-height:1.4;margin-top:6px}
 main:has(.workflow-steps) .sub{font-size:13px;line-height:1.45}
 main:has(.workflow-steps) .save{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
 main:has(.workflow-steps) .stats{gap:10px}
 main:has(.workflow-steps) .stat b{font-size:22px}
 main:has(.workflow-steps) .bottom{bottom:calc(70px + env(safe-area-inset-bottom,0px));gap:8px}
 main:has(.workflow-steps) .bottom button{font-size:12px;padding:10px;min-height:46px}
 main:has(.workflow-steps) .fixture-title{flex-wrap:wrap;gap:6px}
}
@media(max-width:350px){
 body:not([data-view=home]) main{padding-left:12px;padding-right:12px}
 .more-menu>button{font-size:14px;gap:10px}
 .assessment-timeline button{gap:10px;padding-left:12px;padding-right:12px}
 .assessment-timeline strong{font-size:12px}
 .assessment-timeline small{font-size:10px}
 .assessment-timeline li:not(:last-child):before{left:25px}
 #mobile-bottom button{font-size:9px}
}
@media(min-width:701px) and (max-width:1100px){
 body[data-view=dashboard] #app-header:before{max-width:63%}
}
