@import url('./city-account-filter.css?v=20261202-shared-city-account-v2');
.hm { --hm-ink:#172238; --hm-muted:#718096; --hm-accent:#e85b2b; padding:24px; color:var(--hm-ink); min-width:0; }
.hm [hidden] { display:none !important; }
.hm button,.hm select,.hm input { font:inherit; }
.hm button { cursor:pointer; border:1px solid #e2e8f0; border-radius:10px; background:#fff; padding:10px 16px; color:var(--hm-ink); }
.hm button:hover { background:#f8fafc; border-color:#cbd5e1; }
.hm button:disabled { opacity:.5; cursor:wait; }
.hm button.hm-primary { background:var(--hm-accent); color:#fff; border-color:var(--hm-accent); font-weight:600; }
.hm-head,.hm-toolbar,.hm-card-actions,.hm-pages,.hm-detail-tabs { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.hm-head { justify-content:space-between; margin-bottom:22px; }
.hm h2 { margin:0 0 5px; font-size:23px; letter-spacing:-.5px; }
.hm p { margin:0; }
.hm-muted { color:var(--hm-muted); font-size:13px; }
.hm input,.hm select { background:white; border:1px solid #e2e8f0; border-radius:9px; padding:9px 12px; color:var(--hm-ink); min-width:0; }
.hm-search { width:min(270px,100%); }
.hm-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:18px; }
.hm-card { min-width:0; background:#fff; border:1px solid #e5eaf1; border-radius:17px; padding:19px; box-shadow:0 3px 15px #17223804; }
.hm-card-title { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.hm-card-identity { min-width:0; flex:1; }.hm-card-name-line { display:flex; align-items:center; gap:8px; min-width:0; }
.hm-card-name-line h3 { margin:0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hm-card-identity p { margin-top:5px; }.hm .hm-name-edit { flex:none; padding:3px 7px; border:0; background:#fff0e8; color:#b74622; font-size:12px; }
.hm .hm-name-edit:hover { background:#ffe3d3; }.hm-name-form { display:grid; gap:8px; margin:-3px 0 18px; padding:13px; border:1px solid #f1d8cb; border-radius:11px; background:#fffaf7; }
.hm-name-form label { display:grid; gap:7px; font-size:12px; font-weight:600; }.hm .hm-name-form input,.hm .hm-name-form select { width:100%; min-width:0; box-sizing:border-box; }
.hm-name-actions { display:flex; gap:8px; }.hm-name-actions button { flex:1; padding:7px 9px; font-size:12px; }.hm-name-message { color:#a34128; font-size:12px; }
.hm-account-meta{display:flex;flex-wrap:wrap;gap:5px 7px;margin:-8px 0 12px;font-size:11px;color:#68788c}.hm-account-meta span{padding:3px 6px;border-radius:4px;background:#f3f6f9;overflow-wrap:anywhere}.hm-collection-target{margin:0 0 14px;padding:12px;border:1px solid #dce8e6;border-radius:9px;background:#f7faf9;font-size:13px}.hm-collection-target-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.hm-collection-target-head strong{font-size:12px;color:#62766f}.hm-collection-target-head>span{font-size:11px;color:#4c7768}.hm .hm-target-current{display:flex;align-items:baseline;gap:7px;margin:0 0 4px}.hm-target-current b{font-size:19px;line-height:1.35;color:#253d36}.hm-target-current small{color:var(--hm-muted);font-size:11px}.hm .hm-target-coordinates{font-size:12px;line-height:1.6;color:#4f626f;overflow-wrap:anywhere}.hm-target-updated{display:block;margin-top:3px;font-size:10px;color:#819086}.hm-collection-target-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.hm-collection-target-actions button{padding:5px 7px;font-size:11px;border-radius:6px}
.hm-position-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 40px);padding:24px;border:1px solid #dce3ed;border-radius:16px;box-shadow:0 18px 60px #17223833;color:var(--hm-ink);box-sizing:border-box;overflow:auto}.hm-position-dialog::backdrop{background:#17223866}.hm-position-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.hm-position-head h2{font-size:20px;margin:0}.hm-position-head button{padding:3px 10px;font-size:24px;border:0;background:transparent}.hm-position-dialog fieldset{border:0;padding:0;margin:18px 0;min-width:0;display:grid;gap:14px}.hm-position-dialog label{display:grid;gap:7px;font-size:13px;font-weight:600}.hm-position-dialog input,.hm-position-dialog select{width:100%;box-sizing:border-box}.hm-position-manual{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hm-position-manual label:first-child{grid-column:1/-1}.hm-position-summary{border:1px solid #e2e8f0;border-radius:8px;padding:12px;background:#f7f9fc;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.hm-position-status{font-size:13px;color:#a34128;line-height:1.6;min-height:20px}.hm-position-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.hm-position-dialog form{margin:0}
.hm-hot-item{border-bottom:1px solid #edf1f5}.hm .hm-hot-set{display:block;margin:0 8px 7px 40px;padding:3px 5px;font-size:11px;color:#246a50;border:0;background:#edf7f3;border-radius:4px}.hm .hm-coordinate-link{padding:0;border:0;background:transparent;color:#246a50;text-decoration:underline;font:inherit}.hm-point-popup p{margin:7px 0!important;line-height:1.5}.hm .hm-point-set{font-size:12px;padding:6px 9px;color:#246a50;border-color:#cce0db}
.hm .hm-target-poi{margin:5px 0;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.hm-position-manual label:last-child{grid-column:1/-1}
@media(max-width:520px){.hm-position-dialog{padding:18px}.hm-position-manual{grid-template-columns:1fr}.hm-position-head h2{font-size:18px}}
.hm-avatar { width:36px; height:36px; flex:none; display:grid; place-items:center; background:#fff0e8; color:#e85b2b; border-radius:12px; font-weight:700; }
.hm-card h3 { font-size:16px; margin:0 0 5px; }
.hm-card dl { margin:0 0 13px; }
.hm-card dl div { display:flex; justify-content:space-between; gap:10px; margin-top:7px; font-size:12px; }
.hm-card dt { color:var(--hm-muted); }.hm-card dd { margin:0; }
.hm-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }.hm-card-actions button:first-child { grid-column:1/-1; }.hm-card-actions button { padding:8px 11px; font-size:13px; }
.hm .hm-card-actions .hm-delete { grid-column:1/-1; justify-self:end; border:0; background:transparent; color:#718096; padding:3px 0; font-size:12px; }
.hm .hm-card-actions .hm-delete:hover { color:#b74622; }
.hm-toolbar { justify-content:space-between; margin:20px 0 12px; }
.hm-context { display:flex; align-items:center; gap:12px; }.hm-city { font-size:18px; font-weight:600; }
.hm-link { background:transparent !important; border:0 !important; padding:3px !important; color:#b74622 !important; font-size:13px !important; }
.hm-map-shell { position:relative; border:1px solid #e2e8f0; border-radius:17px; overflow:hidden; background:#edf2f5; }
.hm-hotspots { position:absolute; z-index:550; top:16px; right:16px; width:min(326px,calc(100% - 32px)); max-height:calc(100% - 32px); display:flex; flex-direction:column; overflow:hidden; background:rgba(255,255,255,.97); border:1px solid #e5eaf1; border-radius:15px; box-shadow:0 8px 28px #17223820; backdrop-filter:blur(12px); }
.hm-hot-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:15px 16px 0; }
.hm-hot-head strong { font-size:15px; }.hm-hot-head span { font-size:12px; color:var(--hm-muted); }
.hm-hot-time { display:block; margin:5px 16px 0; color:#475569; font-size:12px; font-variant-numeric:tabular-nums; }
.hm .hm-hot-note { margin:3px 16px 8px; font-size:11px; color:var(--hm-muted); }
.hm-hot-list { min-height:0; overflow-y:auto; padding:0 8px 4px; scrollbar-width:thin; }
.hm .hm-hot-row { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:8px; width:100%; padding:7px 8px; border:0; border-radius:8px; background:transparent; text-align:left; }
.hm .hm-hot-row:hover,.hm .hm-hot-row:focus-visible { background:#fff2eb; outline:2px solid #e85b2b; outline-offset:-2px; }
.hm-hot-rank { color:#94a3b8; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.hm-hot-row:first-child .hm-hot-rank { color:#e85b2b; }
.hm-hot-place { min-width:0; }.hm-hot-place strong,.hm-hot-place small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hm-hot-place strong { color:var(--hm-ink); font-size:12px; line-height:1.3; }
.hm-hot-place small { color:var(--hm-muted); font-size:10px; font-variant-numeric:tabular-nums; }
.hm-hot-metrics { display:flex; flex-direction:column; align-items:flex-end; gap:2px; white-space:nowrap; }
.hm-hot-metrics small { color:#475569; font-size:10px; font-variant-numeric:tabular-nums; }
.hm-hot-intensity { color:#bf4925; background:#fff0e8; padding:4px 6px; border-radius:7px; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.hm-settings { margin-bottom:32px; padding:26px; border:1px solid #e5eaf1; border-radius:18px; background:#fff; box-shadow:0 3px 15px #17223804; }
.hm-settings-head { margin-bottom:21px; }.hm-eyebrow { display:block; margin-bottom:7px; color:#c04a25; font-size:12px; font-weight:700; letter-spacing:.08em; }
.hm-settings-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.hm-config-section{grid-column:1/-1;padding-top:4px}.hm-config-section h3{margin:0;font-size:15px;color:#334155}.hm-config-section p{margin:6px 0 0;font-size:12px;color:var(--hm-muted);line-height:1.6}
.hm .hm-settings-form .hm-freight-toggle{display:flex;align-items:center;gap:9px;align-self:center;justify-content:flex-start}.hm .hm-settings-form .hm-freight-toggle input{width:18px;height:18px;margin:0;flex:none;accent-color:#e85b2b}
.hm-settings-form label { display:grid; grid-template-columns:1fr auto; gap:7px; color:#334155; font-size:13px; font-weight:600; }
.hm-settings-form label span { color:var(--hm-muted); font-weight:400; }.hm .hm-settings-form input { grid-column:1/-1; width:100%; box-sizing:border-box; }
.hm-update-latest{grid-column:1/-1;color:#475569;font-size:13px}.hm-update-latest strong{margin-left:8px;color:#172238;font-size:16px}.hm-settings-form .hm-update-select{grid-column:1/-1;max-width:360px}.hm-settings-form .hm-update-select select{grid-column:1/-1;width:100%;box-sizing:border-box}
.hm-settings-actions { grid-column:1/-1; display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding-top:2px; }.hm-settings-actions span { color:#246a50; font-size:12px; }
.hm-account-head { margin-bottom:16px; }
.hm .hm-hot-empty { padding:16px 8px; text-align:center; }.hm .hm-hot-more { flex:none; width:100%; border:0; border-top:1px solid #edf0f5; border-radius:0; background:#fffaf7; color:#b74622; padding:11px; font-size:13px; font-weight:600; }
.hm .hm-hot-more:hover { background:#fff2eb; }.hm .hm-back-link { margin:7px 0 2px; font-weight:600; }
#hmMap { height:540px; height:min(63vh,650px); min-height:360px; z-index:0; background:#eef1ee; }
.hm-legend { position:absolute; z-index:450; bottom:25px; left:16px; padding:12px 15px; background:#fffffff0; border:1px solid #fff; border-radius:10px; font-size:11px; box-shadow:0 3px 10px #0001; pointer-events:none; }
.hm-gradient { width:145px; height:7px; border-radius:5px; background:linear-gradient(90deg,#0028f2,#00caf2,#00f200,#f2de00,#f20000); margin:6px 0; }
.hm-scale { display:flex; justify-content:space-between; }.hm-pin { color:#e85b2b; border:3px solid #fff; border-radius:50%; background:#e85b2b; box-shadow:0 1px 6px #0005; }
.hm-stats { display:grid; grid-template-columns:1fr 1fr 2fr; gap:14px; margin-top:16px; }
.hm-stat { border:1px solid #e5eaf1; border-radius:13px; padding:18px; background:white; }
.hm-stat strong { display:block; font-size:24px; margin:6px 0; }.hm-stat-address strong { font-size:15px; font-weight:500; line-height:1.6; }
.hm-notice { border-radius:10px; background:#fff5e9; color:#925426; font-size:13px; padding:12px 16px; margin:12px 0; white-space:pre-wrap; }
.hm-notice.error { background:#fff0ec; color:#a34128; }.hm-records { margin:12px 0 20px; background:white; border:1px solid #e2e8f0; border-radius:12px; max-height:260px; overflow:auto; }
.hm-record { display:flex; width:100%; justify-content:space-between; text-align:left; border:0 !important; border-radius:0 !important; border-bottom:1px solid #edf2f7 !important; }
.hm-panel { background:#fff; border:1px solid #e5eaf1; border-radius:15px; padding:20px; margin-top:16px; min-width:0; }
.hm-panel h3 { font-size:16px; margin:0; }.hm-table-wrap { overflow:auto; max-height:480px; }
.hm-table { width:100%; min-width:780px; table-layout:auto; border-collapse:collapse; font-size:13px; white-space:nowrap; }
.hm-table th { position:sticky; top:0; z-index:1; color:#64748b; font-weight:500; background:#f7f9fc; }
.hm-table td,.hm-table th { padding:12px; text-align:left; border-bottom:1px solid #edf2f7; font-variant-numeric:tabular-nums; }
.hm-table tr[data-point]:hover { background:#fff7f2; cursor:pointer; }.hm-pages { margin-top:15px; justify-content:flex-end; font-size:13px; }
.hm-details summary { cursor:pointer; font-weight:600; padding:5px 0; }.hm-detail-tabs { position:sticky; top:0; background:white; padding:16px 0; z-index:2; }
.hm-detail-tabs button.active { background:#fff0e8; border-color:#e85b2b; color:#b74622; }
.hm pre { background:#f6f8fb; color:#334155; border:1px solid #e8edf4; border-radius:10px; padding:14px; overflow:auto; max-height:420px; font:12px/1.7 ui-monospace,monospace; white-space:pre; }
.hm-empty { text-align:center; padding:65px 20px; color:var(--hm-muted); background:white; border:1px dashed #dbe3ed; border-radius:15px; }
.hm-empty strong { display:block; color:var(--hm-ink); font-size:18px; margin-bottom:10px; }
.hm .hm-filter { width:110px; flex:0 0 110px; }.hm-detail-head { margin:12px 0; font-size:13px; color:var(--hm-muted); line-height:1.8; }
.hm .leaflet-heatmap-layer { opacity:.7; }
.hm-filter-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:14px 0 18px; }
.hm-filter-bar label { display:flex; align-items:center; gap:8px; flex:0 0 auto; white-space:nowrap; font-size:13px; color:var(--hm-muted); }
.hm-filter-bar select { min-width:160px; max-width:260px; }
.hm-filter-bar #hmLatest { margin-left:auto; }
.hm-filter-bar button:disabled { cursor:default; }
@media(max-width:800px) { .hm { padding:16px 10px; }.hm-stats { grid-template-columns:1fr 1fr; }.hm-stat-address { grid-column:1/-1; } #hmMap { min-height:340px; }.hm-cards { grid-template-columns:minmax(0,1fr); }.hm-head { align-items:flex-start; }.hm-context { gap:7px; }.hm-panel { padding:13px; }.hm-settings { padding:20px; }.hm-settings-form { grid-template-columns:repeat(2,minmax(0,1fr)); }.hm-hotspots { top:auto; bottom:12px; max-height:45%; width:min(300px,calc(100% - 24px)); }.hm-legend { top:12px; bottom:auto; left:72px; } }
@media(max-width:520px) { .hm-settings-form { grid-template-columns:1fr; } }
@media(max-width:800px) { .hm-filter-bar #hmLatest { margin-left:0; } .hm-filter-bar select { max-width:190px; } }
.hm-device-ban{display:inline-flex;align-items:center;gap:7px;margin-top:10px;font-size:12px;color:#8b3b31;cursor:pointer}.hm-device-ban input{width:16px;height:16px;accent-color:#cc4d3f}.hm-device-ban input:disabled{opacity:.5}

/* Separate functional settings, each with an independent save action. */
.hm-config-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:32px}
.hm-config-layout>.hm-settings{margin:0;min-width:0}
.hm-settings-wide{grid-column:1/-1}
.hm-config-layout .hm-config-section{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid #edf0f5}
.hm-config-layout .hm-config-section h3{font-size:18px;color:var(--hm-ink)}
.hm-config-layout .hm-settings-actions{padding-top:8px}
.hm-upgrade-form{grid-template-columns:1fr}
.hm-config-layout .hm-update-select{max-width:none}
@media(max-width:800px){.hm-config-layout{grid-template-columns:1fr;gap:16px}.hm-settings-wide{grid-column:auto}.hm-upgrade-form{grid-template-columns:1fr}}

.hm .hm-vehicle-hint,.hm .hm-city-hint{color:var(--hm-muted);font-size:12px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}.hm .hm-city-hint{display:block}

.hm .hm-settings-form .hm-freight-toggle input[type="checkbox"]{padding:0;min-width:18px;max-width:18px;min-height:18px;max-height:18px;box-sizing:border-box;grid-column:auto}.hm-config-note{grid-column:1/-1;margin:0;color:#64748b;font-size:12px}

.hm-mode-controls { display:inline-flex; align-items:center; gap:2px; padding:3px; border:1px solid #dce3ed; border-radius:11px; background:#f3f6f9; }
.hm .hm-mode-controls button { min-width:72px; padding:7px 15px; border:0; border-radius:8px; background:transparent; color:#526076; }
.hm .hm-mode-controls button[aria-pressed="true"] { background:#fff; color:#aa421e; font-weight:650; box-shadow:0 1px 4px #15223b22; }
.hm-day-filters { align-items:flex-end; }
.hm .hm-day-filters input { min-height:40px; box-sizing:border-box; }
.hm #hmDaySuggest { margin-left:auto; }
#hmDayAssignments { margin-top:16px; }
#hmDayAssignments .hm-head { margin-bottom:8px; }
.hm-day-assignment { display:grid; grid-template-columns:minmax(95px,1fr) 3fr; gap:14px; padding:10px 0; border-bottom:1px solid #edf1f5; font-size:13px; line-height:1.5; }
.hm-day-assignment span { overflow-wrap:anywhere; }
@media(max-width:800px) {
 .hm-daily-map .hm-hotspots { position:static; width:100%; max-height:400px; box-sizing:border-box; border:0; border-radius:0; box-shadow:none; }
 .hm-daily-map .hm-map-shell { display:flex; flex-direction:column; }
 .hm-daily-map #hmMap { height:42vh; min-height:280px; }
 .hm #hmDaySuggest { margin-left:0; }
}
.hm #hmDayCoverage { margin:5px 16px 0; }
