:root {
  --bg: #f4f7fa;
  --panel: #ffffff;
  --ink: #102035;
  --muted: #718198;
  --line: #e4eaf0;
  --green: #13b981;
  --green-dark: #0a9b6a;
  --blue: #3973e6;
  --red: #e25b65;
  --amber: #f0a047;
  --shadow: 0 12px 32px rgba(34, 59, 89, 0.08);
  --shadow-soft: 0 3px 12px rgba(34, 59, 89, 0.08);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input { font: inherit; }
button { cursor: pointer; }
.icon { display: inline-block; flex: 0 0 auto; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 256px; background: #122239; color: #dbe7f4; display: flex; flex-direction: column; padding: 28px 18px 20px; position: fixed; inset: 0 auto 0 0; z-index: 10; }
.brand-lockup, .login-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #19c38f, #0da875); color: #fff; box-shadow: 0 8px 18px rgba(19, 185, 129, 0.24); }
.brand-mark.large { width: 54px; height: 54px; border-radius: 17px; }
.brand-name { font-size: 23px; font-weight: 700; letter-spacing: -0.8px; line-height: 1; color: #f6fbff; }
.brand-name span { color: var(--green); }
.brand-tagline { font-size: 10px; color: #8fa5bd; margin-top: 6px; letter-spacing: .1px; }
.side-nav { display: grid; gap: 6px; margin-top: 52px; }
.nav-item { border: 0; background: transparent; color: #8fa5bd; display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 11px; text-align: left; font-size: 14px; font-weight: 600; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(19,185,129,.15); box-shadow: inset 3px 0 0 var(--green); }
.nav-item.active .icon { color: var(--green); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); padding: 18px 4px 0; }
.yard-status { display: flex; align-items: center; gap: 9px; }
.yard-status strong, .yard-status span { display: block; }
.yard-status strong { font-size: 12px; color: #e9f2fb; }
.yard-status span:last-child { font-size: 10px; color: #8fa5bd; margin-top: 3px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(19,185,129,.14); display: inline-block; }
.sidebar-help { border: 1px solid #48627d; border-radius: 50%; color: #9cb0c5; background: transparent; width: 25px; height: 25px; font-size: 13px; }
.main-content { margin-left: 256px; width: calc(100% - 256px); min-height: 100vh; }
.page { max-width: 1240px; margin: 0 auto; padding: 40px 52px 64px; }
.dashboard-page { max-width: 1260px; }
.page-header, .dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.page-header { margin-bottom: 36px; }
.page-header-main { display: flex; align-items: center; gap: 16px; }
.eyebrow { font-size: 10px; line-height: 1.2; letter-spacing: 1.5px; font-weight: 700; color: #8798ac; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; letter-spacing: -1.5px; line-height: 1.1; margin-top: 8px; }
h2 { font-size: 18px; letter-spacing: -.45px; }
.page-header h1 { font-size: 30px; }
.header-actions, .dashboard-heading, .profile-button { display: flex; align-items: center; }
.header-actions { gap: 15px; }
.icon-button { border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 12px; color: #647991; background: #fff; display: inline-grid; place-items: center; position: relative; }
.icon-button:hover { border-color: #cbd8e4; color: var(--ink); }
.notification-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); position: absolute; top: 10px; right: 10px; }
.profile-button { gap: 9px; border: 0; background: transparent; color: var(--ink); padding: 5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(135deg, #476b91, #1d3757); font-size: 11px; font-weight: 700; }
.avatar-lg { width: 44px; height: 44px; font-size: 13px; }
.profile-copy { text-align: left; display: grid; gap: 3px; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.profile-button > .icon { color: #97a7b9; }
.profile-wrap, .dashboard-heading { position: relative; }
.profile-menu { position: absolute; z-index: 20; right: 0; top: 54px; width: 212px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.dashboard-heading > .profile-menu { top: 60px; }
.profile-menu-name { font-weight: 700; font-size: 13px; }
.profile-menu-sub { color: var(--muted); font-size: 10px; margin: 4px 0 13px; }
.profile-menu button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; padding: 9px 6px; font-size: 12px; }
.profile-menu button:hover { background: #f2f6f9; }
.dashboard-page { padding-top: 42px; }
.dashboard-topbar, .mobile-nav, .mobile-brand, .mobile-profile { display: none; }
.dashboard-heading { margin-bottom: 28px; }
.dashboard-heading h1 { font-size: 35px; }
.dashboard-heading p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.heading-divider { color: #c4ced9; padding: 0 4px; }
.primary-action { min-height: 54px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(100deg, #13b981, #0db376); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; box-shadow: 0 8px 18px rgba(19,185,129,.18); transition: transform .18s ease, box-shadow .18s ease; }
.primary-action:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(19,185,129,.23); }
.dashboard-page > .primary-action { width: min(100%, 460px); margin-bottom: 26px; }
.action-arrow { margin-left: auto; margin-right: 16px; opacity: .7; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card { border: 1px solid var(--line); background: #fff; border-radius: 17px; padding: 19px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; min-height: 176px; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d1dde8; }
.metric-icon, .activity-icon, .inventory-thumb, .item-modal-icon, .scan-orb, .placeholder-icon { display: inline-grid; place-items: center; border-radius: 12px; }
.metric-icon { width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px; }
.tone-blue { color: var(--blue); background: #e3edff; }
.tone-green { color: #0aa976; background: #dff8ed; }
.tone-red { color: var(--red); background: #fff0f0; }
.tone-amber { color: var(--amber); background: #fff2df; }
.metric-value { font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -1.5px; }
.metric-label { color: #667b94; font-size: 12px; margin-top: 7px; }
.metric-link { opacity: 0; margin-top: auto; color: var(--green-dark); font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; transition: .18s ease; }
.metric-card:hover .metric-link { opacity: 1; }
.dashboard-lower { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; margin-top: 26px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.activity-panel, .readiness-panel { padding: 23px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.panel-heading h2 { margin-top: 7px; }
.text-button, .text-link { color: var(--green-dark); border: 0; background: transparent; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.text-button:hover, .text-link:hover { color: #087b55; }
.activity-list { display: grid; gap: 4px; }
.activity-row { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 11px; background: transparent; text-align: left; padding: 11px 5px; color: #94a4b5; }
.activity-row:hover { background: #f5f8fa; color: var(--ink); }
.activity-icon { width: 32px; height: 32px; border-radius: 10px; }
.activity-copy { flex: 1; display: grid; gap: 5px; }
.activity-copy strong { font-size: 12px; color: var(--ink); }
.activity-copy small { font-size: 10px; color: var(--muted); }
.live-pill, .demo-indicator { font-size: 10px; color: var(--green-dark); display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.readiness-score { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 18px; }
.readiness-score strong { font-size: 40px; letter-spacing: -2px; }
.readiness-score span { color: var(--muted); font-size: 11px; }
.progress-track { height: 8px; background: #eaf0f4; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #13b981, #84dab4); border-radius: inherit; }
.readiness-footer { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.icon-button.small { width: 28px; height: 28px; border-radius: 9px; }

/* Inventory */
.inventory-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.search-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: #8b9caf; padding: 0 14px; min-height: 48px; flex: 1; max-width: 600px; }
.search-box input { border: 0; outline: 0; width: 100%; min-width: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: #9aaaba; }
.filter-button, .add-button, .secondary-button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #60758d; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 12px; }
.filter-button:hover, .secondary-button:hover { border-color: #b9cad9; color: var(--ink); }
.add-button { color: #fff; border-color: var(--green); background: var(--green); }
.add-button:hover { background: var(--green-dark); }
.filter-row { display: flex; gap: 8px; margin-bottom: 19px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 12px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.filter-chip span { margin-left: 6px; color: #9baaba; }
.filter-chip.active { background: #e6f8f1; border-color: #b9ecd9; color: var(--green-dark); }
.filter-chip.active span { color: var(--green-dark); }
.inventory-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: var(--muted); font-size: 11px; }
.inventory-summary strong { color: var(--ink); }
.inventory-list { display: grid; gap: 9px; }
.inventory-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 15px; padding: 15px 17px; color: #99a8b9; transition: .18s ease; }
.inventory-row:hover { border-color: #cbd9e5; box-shadow: var(--shadow-soft); transform: translateY(-1px); color: var(--ink); }
.inventory-row-button { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; }
.inventory-row-button:focus-visible, .satellite-link:focus-visible, .map-result:focus-visible { outline: 3px solid rgba(19,185,129,.22); outline-offset: 3px; border-radius: 8px; }
.satellite-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; color: var(--green-dark); text-decoration: none; font-size: 10px; font-weight: 700; padding: 8px 2px 8px 8px; }
.satellite-link:hover { color: #087b55; }
.filter-controls { display: flex; align-items: end; gap: 10px; padding: 13px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; flex-wrap: wrap; }
.filter-controls label { display: grid; gap: 6px; min-width: 145px; flex: 1; }
.filter-controls label > span { color: #718198; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.filter-controls select { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: #fff; font-size: 11px; outline: 0; }
.filter-controls select:focus { border-color: #9edcc6; box-shadow: 0 0 0 3px rgba(19,185,129,.1); }
.filter-controls .qc-toggle { min-width: 175px; display: flex; align-items: center; justify-content: center; flex-direction: row; gap: 8px; padding: 0 5px 9px; color: #63778e; font-size: 11px; font-weight: 700; }
.qc-toggle input { accent-color: var(--red); width: 15px; height: 15px; }
.clear-filter-button { min-height: 38px; border: 0; background: transparent; color: #a0adba; font-size: 10px; font-weight: 700; padding: 0 5px 9px; opacity: 0; pointer-events: none; }
.clear-filter-button.visible { opacity: 1; pointer-events: auto; color: var(--green-dark); }

/* Map */
.map-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: -11px 0 23px; }
.map-kicker { color: var(--green-dark); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.map-intro h2 { font-size: 25px; letter-spacing: -.8px; margin-top: 8px; }
.map-intro p:last-child { color: var(--muted); font-size: 12px; margin-top: 8px; }
.map-count { display: grid; justify-items: end; gap: 2px; padding: 11px 15px; border-radius: 12px; background: #e6f8f1; color: var(--green-dark); min-width: 105px; }
.map-count strong { font-size: 25px; line-height: 1; }
.map-count span { font-size: 10px; font-weight: 700; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.map-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
.inventory-map { height: 610px; width: 100%; background: #dce7e8; }
.map-footer { display: flex; align-items: center; gap: 16px; padding: 13px 16px; color: var(--muted); font-size: 10px; }
.map-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.map-footer-note { margin-left: auto; }
.map-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.map-legend-dot.available { background: var(--green); box-shadow: 0 0 0 3px #dff8ed; }.map-legend-dot.qc { background: var(--red); box-shadow: 0 0 0 3px #fff0f0; }
.map-sidebar { padding: 19px; align-self: start; max-height: 610px; overflow: auto; }
.map-sidebar .panel-heading { margin-bottom: 12px; }.map-sidebar .panel-heading h2 { font-size: 15px; }
.map-result-list { display: grid; gap: 3px; }.map-result { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 9px; background: transparent; padding: 9px 5px; text-align: left; color: #95a5b5; }.map-result:hover { background: #f5f8fa; }.map-result > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 3px; }.map-result strong { color: var(--ink); font-size: 10px; }.map-result small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }.map-result-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }.map-result-dot.available { background: var(--green); }.map-result-dot.qc { background: var(--red); }.map-more { color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 11px; padding: 10px; border-radius: 9px; background: #f5f8fa; }
.map-loading { height: 100%; display: grid; place-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.locations-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: -10px 0 23px; }.locations-intro h2 { font-size: 25px; margin-top: 7px; }.locations-intro p { max-width: 620px; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 8px; }.location-add { min-height: 44px; padding: 0 16px; white-space: nowrap; }.locations-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 16px; align-items: start; }.yard-list, .location-editor { padding: 19px; }.yard-list-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 5px; border: 0; background: transparent; color: var(--ink); text-align: left; border-radius: 9px; }.yard-list-row:hover, .yard-list-row.active { background: #f2fbf7; }.yard-list-row > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }.yard-list-row strong { font-size: 12px; }.yard-list-row small, .yard-empty { color: var(--muted); font-size: 10px; line-height: 1.45; }.yard-list-dot { width: 8px; height: 8px; border-radius: 50%; background: #b8c4ce; }.yard-list-dot.active { background: var(--green); box-shadow: 0 0 0 3px #dff8ed; }.yard-list-dot.inactive { background: #a7b4c0; }.yard-empty { padding: 13px 4px; }.location-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.location-badge { background: #e6f8f1; color: var(--green-dark); border-radius: 8px; padding: 6px 8px; font-size: 9px; font-weight: 700; }.yard-form { display: grid; gap: 16px; }.yard-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.yard-fields label { display: grid; gap: 6px; color: #50657c; font-size: 10px; font-weight: 700; }.yard-fields label > span { color: #9aa9b8; font-weight: 500; }.yard-fields input:not([type="checkbox"]), .yard-fields textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; color: var(--ink); padding: 10px; min-height: 40px; outline: 0; font-size: 12px; }.yard-fields textarea { min-height: 70px; resize: vertical; }.yard-fields input:focus, .yard-fields textarea:focus { border-color: #9edcc6; box-shadow: 0 0 0 3px rgba(19,185,129,.1); }.yard-fields .wide { grid-column: 1 / -1; }.yard-active { display: flex !important; align-items: center; gap: 8px !important; grid-column: 1 / -1; color: var(--muted) !important; font-weight: 500 !important; }.yard-active input { accent-color: var(--green); }.geofence-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 15px; }.geofence-toolbar > div { display: grid; gap: 3px; }.geofence-toolbar strong { font-size: 12px; }.geofence-toolbar span { font-size: 10px; color: var(--muted); }.yard-geofence-map { height: 500px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #dce7e8; }.location-editor-actions { display: flex; justify-content: flex-end; gap: 9px; }.location-editor-actions .primary-action, .location-editor-actions .secondary-button { min-height: 43px; padding: 0 15px; }.scan-history { margin-top: 18px; }.scan-history > p { margin-top: 7px; color: var(--muted); font-size: 11px; }.scan-history-list { display: grid; gap: 1px; margin-top: 9px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }.scan-history-row { display: grid; gap: 4px; padding: 11px 12px; background: #f8fafb; }.scan-history-row strong { font-size: 11px; }.scan-history-row span, .scan-history-row small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.yard-empty strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 5px; }.yard-empty p { margin: 0 0 12px; }.yard-empty .secondary-button { min-height: 36px; padding: 0 10px; font-size: 10px; }.address-input { display: flex; gap: 7px; }.address-input input { min-width: 0; }.address-locate { flex: 0 0 auto; border: 1px solid #cfe5dc; border-radius: 9px; background: #eefaf5; color: var(--green-dark); padding: 0 10px; font-size: 10px; font-weight: 700; }.address-locate:disabled { opacity: .65; cursor: wait; }.geocode-message { min-height: 13px; color: var(--muted); font-size: 9px; line-height: 1.35; font-weight: 500; }.geocode-message.success { color: var(--green-dark); }.geocode-message.error { color: #c94e58; }.geocode-attribution { display: block; margin-top: -9px; color: #8d9baa; font-size: 9px; }
.address-field { position: relative; }.address-suggestions { position: absolute; z-index: 30; left: 0; right: 0; top: 66px; max-height: 230px; overflow: auto; background: #fff; border: 1px solid #dbe4eb; border-radius: 10px; box-shadow: 0 12px 24px rgba(27,52,75,.14); }.address-suggestion { display: grid; gap: 3px; width: 100%; border: 0; border-bottom: 1px solid #edf1f4; background: #fff; color: var(--ink); text-align: left; padding: 10px 11px; }.address-suggestion:last-child { border-bottom: 0; }.address-suggestion:hover, .address-suggestion:focus { background: #eefaf5; outline: 0; }.address-suggestion strong { font-size: 10px; }.address-suggestion span { color: var(--muted); font-size: 9px; }.yard-address-popup { display: grid; gap: 4px; min-width: 190px; }.yard-address-popup strong { color: var(--green-dark); font-size: 11px; }.yard-address-popup span, .yard-address-popup small { color: #566b82; font-size: 10px; line-height: 1.35; }.yard-address-popup small { color: #8495a6; }
.yard-fields { align-items: start; }.yard-fields > label:not(.wide) { align-content: start; }.yard-fields input:not([type="checkbox"]), .address-input { box-sizing: border-box; min-height: 40px; }.address-input { align-items: stretch; }.address-locate { min-height: 40px; box-sizing: border-box; }.deactivated-link { width: 100%; margin-top: 11px; padding: 9px 5px 2px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--green-dark); text-align: left; font-size: 10px; font-weight: 700; }.deactivated-link:hover { color: #087957; }.deactivated-yards .location-editor-head { align-items: flex-start; }.deactivated-yards .location-editor-head p { max-width: 500px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }.deactivated-yard-list { display: grid; gap: 8px; }.deactivated-yard-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #f8fafb; }.deactivated-yard-row > div { display: grid; gap: 4px; }.deactivated-yard-row strong { font-size: 12px; }.deactivated-yard-row span, .deactivated-yard-row small { color: var(--muted); font-size: 10px; line-height: 1.35; }.danger-button { min-height: 43px; padding: 0 15px; border: 1px solid #f0c2c7; border-radius: 10px; background: #fff4f5; color: #b23e49; font-size: 11px; font-weight: 700; }.danger-button:hover { background: #ffe8eb; }.location-editor-actions-spacer { flex: 1; }
.map-popup { min-width: 185px; display: grid; gap: 5px; color: var(--ink); }.map-popup-kicker { color: var(--green-dark); font-size: 9px; font-weight: 800; letter-spacing: .8px; }.map-popup strong { font-size: 13px; }.map-popup span, .map-popup small { color: var(--muted); font-size: 10px; }.map-popup-actions { display: flex; align-items: center; gap: 8px; margin-top: 5px; padding-top: 7px; border-top: 1px solid var(--line); }.map-popup-actions button, .map-popup-actions a { border: 0; background: transparent; color: var(--green-dark); padding: 0; font-size: 10px; font-weight: 700; text-decoration: none; }.map-popup-actions a { display: inline-flex; align-items: center; gap: 3px; }
.inventory-thumb { width: 45px; height: 45px; flex: 0 0 auto; border-radius: 13px; }
.inventory-row-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.inventory-row-top, .inventory-row-name, .inventory-row-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inventory-row-top strong { color: var(--ink); font-size: 13px; }
.inventory-row-name { color: #3b4f67; font-size: 12px; }
.inventory-row-name span, .inventory-row-meta { color: var(--muted); }
.inventory-row-meta { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-badge { padding: 4px 7px; border-radius: 6px; font-size: 9px; line-height: 1; font-weight: 700; white-space: nowrap; }
.status-badge.available { color: #098b5e; background: #e0f8ed; }
.status-badge.qc-hold { color: #cd4d58; background: #fff0f0; }
.status-badge.scheduled { color: #bd761d; background: #fff2df; }
.empty-state { border: 1px dashed #cbd8e3; border-radius: 17px; padding: 55px 20px; text-align: center; background: rgba(255,255,255,.55); }
.empty-icon { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 16px; background: #e8eef4; color: #8195a9; }
.empty-state h3 { margin-top: 14px; font-size: 16px; }
.empty-state p { color: var(--muted); margin: 7px 0 13px; font-size: 12px; }

/* Scan, placeholders, login */
.back-button { margin-right: 2px; }
.scan-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 16px; }
.scan-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft); padding: 32px; }
.scan-card-top { display: flex; align-items: flex-start; gap: 17px; }
.scan-orb { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 17px; color: var(--green-dark); background: #def8ed; }
.scan-card h2 { margin-top: 8px; font-size: 24px; }
.scan-card-top p { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 8px; max-width: 480px; }
.scanner-frame { margin: 30px auto 18px; max-width: 420px; height: 260px; background: #152942; border-radius: 17px; position: relative; display: grid; place-items: center; color: #9cb5cc; overflow: hidden; }
.scanner-frame::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(19,185,129,.18), transparent 50%); }
.qr-reader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.qr-reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
.qr-reader canvas, .qr-reader img, .qr-reader button, .qr-reader select { display: none !important; }
.qr-reader > div { width: 100% !important; height: 100% !important; }
.qr-reader #qr-shaded-region { display: none !important; }
.scanner-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scanner-target { position: absolute; left: 50%; top: 50%; width: min(84%, 320px); aspect-ratio: 1.538 / 1; transform: translate(-50%, -50%); }
.scanner-placeholder { position: relative; z-index: 3; display: grid; place-items: center; gap: 7px; text-align: center; color: #9cb5cc; }
.scanner-placeholder span { color: var(--green); }
.scanner-placeholder strong { color: #fff; font-size: 12px; }
.scanner-placeholder small { font-size: 10px; }
.scanner-frame.scanner-active .scanner-placeholder { display: none; }
.scanner-frame.scanner-active::before { opacity: .25; }
.scanner-frame.scanner-error { background: #392333; }
.scanner-frame.scanner-error .scanner-line { background: #f08a8f; box-shadow: 0 0 12px rgba(240,138,143,.75); }
.scanner-corner { position: absolute; width: 28px; height: 28px; border-color: var(--green); border-style: solid; }
.top-left { top: 27px; left: 27px; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }.top-right { top: 27px; right: 27px; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }.bottom-left { bottom: 27px; left: 27px; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }.bottom-right { bottom: 27px; right: 27px; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }
.scanner-line { left: 18%; top: 50%; width: 64%; height: 2px; background: var(--green); box-shadow: 0 0 12px rgba(19,185,129,.9); position: absolute; animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-46px); opacity: .35; } 50% { transform: translateY(46px); opacity: 1; } }
.scanner-label { position: absolute; z-index: 4; bottom: 18px; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.scanner-actions { display: flex; justify-content: center; gap: 10px; }
.scanner-actions .primary-action, .scanner-actions .secondary-button { min-height: 46px; }
.scanner-help { min-height: 15px; color: #8b9caf; text-align: center; font-size: 10px; margin-top: 10px; }
.scan-divider { display: flex; align-items: center; gap: 10px; color: #a0afbd; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.scan-divider::before, .scan-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.search-box.large { max-width: none; padding-left: 15px; min-height: 52px; }
.search-submit { border: 0; border-radius: 9px; background: var(--ink); color: #fff; min-height: 36px; padding: 0 13px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.scan-hints { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin-top: 18px; }
.scan-hints span { display: flex; align-items: center; gap: 5px; }
.scan-hints .icon { color: var(--green); }
.scan-side { padding: 22px; align-self: start; }
.scan-side > .icon { color: #90a1b2; }
.last-scan-item { display: flex; align-items: center; gap: 11px; border-radius: 12px; background: #f5f8fa; padding: 13px; margin: 25px 0 17px; }
.last-scan-item div { display: grid; gap: 4px; }.last-scan-item strong { font-size: 12px; }.last-scan-item span, .last-scan-item small { font-size: 10px; color: var(--muted); }.last-scan-item small { color: #9ba9b7; }
.secondary-button { width: auto; min-height: 44px; }.scan-side .secondary-button, .placeholder-card .secondary-button { width: 100%; }
.placeholder-page { max-width: 940px; }.placeholder-card { min-height: 330px; border: 1px dashed #cbd8e3; border-radius: 19px; background: rgba(255,255,255,.65); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }.placeholder-icon { width: 64px; height: 64px; border-radius: 19px; }.placeholder-card h2 { margin-top: 18px; font-size: 22px; }.placeholder-card p { color: var(--muted); max-width: 440px; font-size: 13px; line-height: 1.55; margin: 9px 0 21px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100; background: #122239; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px; font-size: 12px; transition: .2s ease; }.toast .icon { color: var(--green); }.toast.show { transform: translate(-50%, 0); opacity: 1; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(15, 30, 47, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }.item-modal { width: min(100%, 510px); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(15,30,47,.25); padding: 27px; position: relative; }.modal-close { position: absolute; top: 17px; right: 17px; }.item-modal-head { display: flex; align-items: center; gap: 13px; padding-right: 40px; }.item-modal-icon { width: 50px; height: 50px; border-radius: 15px; }.item-modal h2 { margin-top: 6px; font-size: 22px; }.item-modal-head p { margin-top: 4px; font-size: 11px; color: var(--muted); }.item-status-line { display: flex; align-items: center; gap: 10px; margin: 22px 0 18px; color: var(--muted); font-size: 11px; }.item-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }.item-detail-grid div { background: #f8fafb; padding: 13px; display: grid; gap: 5px; }.item-detail-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }.item-detail-grid strong { font-size: 11px; }.item-note { margin-top: 18px; padding: 14px; border-radius: 11px; background: #f5f8fa; }.item-note p { font-size: 12px; line-height: 1.5; color: #52677f; margin-top: 6px; }.modal-actions { display: flex; gap: 10px; margin-top: 21px; }.modal-actions > * { flex: 1; }.modal-actions .primary-action { min-height: 44px; font-size: 12px; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 500px; background: #f6f9fb; }.login-art { position: relative; background: #122239; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(45px, 8vw, 140px); }.login-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(163,189,216,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(163,189,216,.28) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(135deg, #000, transparent 76%); }.login-art::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(19,185,129,.25); border-radius: 50%; right: -120px; bottom: -160px; box-shadow: 0 0 0 35px rgba(19,185,129,.05), 0 0 0 70px rgba(19,185,129,.04); }.login-art-copy, .login-art-footer { position: relative; z-index: 1; }.login-art-copy { max-width: 610px; }.login-art-copy .eyebrow { color: #83b9a5; }.login-art-copy h1 { font-size: clamp(38px, 4.5vw, 68px); line-height: 1.06; letter-spacing: -3px; margin: 19px 0 20px; }.login-art-copy h1 em { color: var(--green); font-style: normal; }.login-art-copy p { color: #a9bdd0; font-size: 15px; line-height: 1.6; max-width: 420px; }.login-art-stat { margin-top: 44px; display: flex; align-items: center; gap: 10px; }.stat-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(19,185,129,.15); }.login-art-stat strong, .login-art-stat small { display: block; }.login-art-stat strong { font-size: 12px; }.login-art-stat small { color: #8fa5bd; font-size: 10px; margin-top: 4px; }.login-art-footer { position: absolute; bottom: 28px; left: clamp(45px, 8vw, 140px); color: #7189a2; font-size: 11px; }.login-panel { background: #fff; padding: 65px clamp(32px, 6vw, 78px); display: flex; flex-direction: column; justify-content: center; box-shadow: -15px 0 50px rgba(18,34,57,.04); }.login-copy { margin: 58px 0 25px; }.login-copy h2 { font-size: 30px; letter-spacing: -1.3px; margin-top: 9px; }.login-copy p { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 9px; }.login-form { display: grid; gap: 17px; }.login-form > label { display: grid; gap: 8px; font-size: 11px; color: #50657c; font-weight: 700; }.login-form input:not([type="checkbox"]) { width: 100%; border: 1px solid var(--line); border-radius: 10px; min-height: 47px; padding: 0 13px; outline: 0; color: var(--ink); background: #fbfcfd; font-size: 12px; }.login-form input:focus { border-color: #9edcc6; box-shadow: 0 0 0 3px rgba(19,185,129,.1); }.password-field { position: relative; }.password-field input { padding-right: 56px !important; }.password-field button { position: absolute; top: 0; right: 10px; height: 47px; border: 0; background: transparent; color: var(--green-dark); font-size: 10px; font-weight: 700; }.login-options { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }.checkbox-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.checkbox-label input { accent-color: var(--green); }.text-link { font-size: 10px; }.login-submit { width: 100%; min-height: 50px; font-size: 12px; margin-top: 5px; }.demo-button { border: 1px solid #cfe5dc; background: #eefaf5; color: var(--green-dark); min-height: 45px; border-radius: 11px; font-weight: 700; font-size: 11px; }.demo-button:hover { background: #e2f7ef; }.login-footer { display: flex; justify-content: space-between; color: #a3b1bf; font-size: 9px; margin-top: 43px; }

@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.metric-card { min-height: 150px; }.dashboard-lower { grid-template-columns: 1fr; }.page { padding-left: 34px; padding-right: 34px; }.login-page { grid-template-columns: 1fr 420px; }.login-art { padding-left: 55px; padding-right: 55px; }.map-layout { grid-template-columns: 1fr; }.map-sidebar { max-height: none; } }
@media (max-width: 780px) { .sidebar { display: none; }.main-content { margin-left: 0; width: 100%; padding-bottom: 72px; }.page { padding: 25px 18px 38px; }.dashboard-page { padding-top: 16px; }.dashboard-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 27px; }.mobile-brand { display: flex; align-items: center; gap: 8px; }.mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; }.mobile-brand .brand-name { color: var(--ink); font-size: 20px; }.mobile-profile { display: inline-grid; place-items: center; border: 0; background: transparent; padding: 0; }.mobile-profile .avatar { width: 34px; height: 34px; }.dashboard-heading .desktop-profile, .dashboard-heading > .profile-menu { display: none; }.dashboard-heading h1 { font-size: 28px; }.dashboard-heading { margin-bottom: 23px; }.dashboard-page > .primary-action { width: 100%; }.metric-grid { gap: 10px; }.metric-card { padding: 15px; min-height: 144px; border-radius: 15px; }.metric-value { font-size: 28px; }.metric-link { display: none; }.dashboard-lower { margin-top: 18px; gap: 11px; }.activity-panel, .readiness-panel { padding: 17px; border-radius: 15px; }.page-header { margin-bottom: 24px; }.page-header h1 { font-size: 26px; }.profile-copy { display: none; }.header-actions { gap: 7px; }.profile-button { padding: 0; }.profile-button > .icon { display: none; }.profile-wrap .profile-menu { right: -2px; top: 46px; }.inventory-toolbar { flex-wrap: wrap; }.search-box { flex-basis: 100%; max-width: none; }.filter-button, .add-button { flex: 1; }.inventory-row { padding: 13px; gap: 8px; }.inventory-row-button { gap: 10px; }.satellite-link span { display: none; }.satellite-link { padding-left: 5px; }.inventory-thumb { width: 39px; height: 39px; border-radius: 11px; }.inventory-row-meta { max-width: 210px; }.filter-controls { align-items: stretch; padding: 10px; gap: 8px; }.filter-controls label { min-width: calc(50% - 4px); }.filter-controls .qc-toggle { min-width: 100%; justify-content: flex-start; padding: 7px 4px 2px; }.clear-filter-button { padding-bottom: 0; }.map-intro { align-items: flex-start; margin-top: -7px; }.map-intro h2 { font-size: 21px; }.map-count { min-width: 78px; padding: 9px 11px; }.map-count strong { font-size: 20px; }.inventory-map { height: 470px; }.map-footer { gap: 9px; padding: 11px; }.map-footer-note { display: none !important; }.scan-layout { grid-template-columns: 1fr; }.scan-card { padding: 21px 17px; }.scan-card h2 { font-size: 21px; }.scan-side { padding: 17px; }.mobile-nav { position: fixed; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; bottom: 0; left: 0; right: 0; height: 65px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(34,59,89,.06); }.mobile-nav .nav-item { padding: 8px 4px; border-radius: 0; display: grid; justify-items: center; gap: 4px; font-size: 9px; }.mobile-nav .nav-item.active { box-shadow: inset 0 2px 0 var(--green); background: #f2fbf7; }.mobile-nav .nav-item.active .icon { color: var(--green); }.mobile-nav .nav-item span { color: inherit; }.login-page { display: block; }.login-art { min-height: 280px; padding: 35px 25px; justify-content: flex-start; }.login-art-copy h1 { font-size: 34px; letter-spacing: -1.5px; margin: 14px 0 12px; }.login-art-copy p { font-size: 12px; max-width: 330px; }.login-art-stat, .login-art-footer { display: none; }.login-panel { padding: 34px 24px 29px; box-shadow: none; min-height: calc(100vh - 280px); }.login-copy { margin: 40px 0 21px; }.login-copy h2 { font-size: 26px; }.login-footer { margin-top: 32px; }.item-modal { padding: 22px; }.modal-actions { flex-direction: column-reverse; } }
@media (max-width: 780px) { .scanner-frame { max-width: none; height: min(62vw, 320px); min-height: 245px; margin-top: 22px; }.scanner-actions { display: grid; grid-template-columns: 1fr 1fr; }.scanner-actions button { width: 100%; }.scanner-help { line-height: 1.4; }.search-box.large { flex-wrap: wrap; gap: 9px; padding: 8px 10px 8px 13px; }.search-box.large input { min-height: 36px; flex: 1 1 140px; }.search-box.large .search-submit { flex: 1 0 100%; min-height: 44px; } }
@media (max-width: 780px) { .locations-layout { grid-template-columns: 1fr; }.yard-fields { grid-template-columns: 1fr; }.deactivated-yard-row { align-items: flex-start; flex-direction: column; }.deactivated-yard-row .secondary-button { width: 100%; min-height: 40px; }.location-editor-actions { flex-wrap: wrap; }.location-editor-actions-spacer { display: none; }.danger-button { margin-right: auto; } }
@media (max-width: 380px) { .metric-card { min-height: 136px; padding: 13px; }.metric-icon { margin-bottom: 11px; }.metric-label { font-size: 11px; }.inventory-row-name { font-size: 11px; }.inventory-row-meta { max-width: 165px; }.scan-hints { justify-content: flex-start; gap: 9px; } }
