/*! ANC Connect - (c) ANC Systemes. Tous droits reserves. Reproduction et reutilisation interdites. */

.anc-root, .anc-root * { box-sizing: border-box; }
.anc-root {
  --bg:#f5f6f8; --surface:#ffffff; --surface-2:#eef0f3; --border:rgba(20,96,165,.32);
  --fg:#1a1d23; --muted:#5c626b;
  --accent:#1460a5; --accent-fg:#ffffff;
  --success:#146aa8; --success-weak:#e1eef8;
  --warning:#b8841e; --warning-weak:#faf0da;
  --danger:#952c26; --danger-weak:#f6e1df;
  --font-display:'Alegreya Sans',Georgia,serif;
  --font-body:'Open Sans',-apple-system,Segoe UI,Roboto,sans-serif;
  --font-ui:'Public Sans',-apple-system,Segoe UI,Roboto,sans-serif;
  font-family: var(--font-body);
  color: var(--fg);
  max-width: 1100px; margin: 0 auto; padding: 16px;
}
.anc-root h1, .anc-root h2, .anc-root h3 {
  font-family: var(--font-display); color: var(--accent); text-transform: uppercase;
  letter-spacing: .03em; font-weight: 700; margin: 0;
}
.anc-root button, .anc-root select { font-family: var(--font-ui); }
.anc-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 18px;
  background: var(--topbar-bg, #f5f6f8); border: 1px solid var(--border); border-radius: 14px;
}
.anc-topbar-driver { max-width: 400px; margin-left: auto; margin-right: auto; }
.anc-topbar:not(.anc-topbar-driver) .anc-brand-name { font-size: 26px; }
@media (max-width: 480px) { .anc-topbar:not(.anc-topbar-driver) .anc-brand-name { font-size: 20px; } }
.anc-topbar img { height: 48px; width: auto; max-width: 150px; object-fit: contain; flex: none; }
.anc-topbar .anc-brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--topbar-fg, var(--accent));
  text-transform: none; letter-spacing: 0; line-height: 48px;
}
.anc-login-gate { text-align: center; padding: 60px 20px; color: #1a1d23; font-family: 'Open Sans', -apple-system, 'Segoe UI', Roboto, sans-serif; }
.anc-login-gate img { height: 72px; width: auto; max-width: 220px; object-fit: contain; }
.anc-login-gate .anc-gate-name { font-size: 22px; font-weight: 700; margin: 10px 0 18px; color: inherit; }
.anc-login-gate p { font-size: 16px; line-height: 1.5; margin: 0 0 22px; color: inherit; }
.anc-login-gate a.anc-btn { display: inline-block; background: #1460a5; color: #ffffff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 28px; border-radius: 10px; border: 0; }
@media (prefers-color-scheme: dark) {
  .anc-login-gate { color: #eef1f5; }
  .anc-login-gate a.anc-btn { background: #4a8fc9; color: #ffffff; }
}
.anc-loading, .anc-empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 20px; }
.anc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.anc-stack > * + * { margin-top: 10px; }
.anc-eyebrow { font-family: var(--font-ui); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.anc-big { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.anc-plate {
  display: inline-block; font-family: var(--font-ui); font-weight: 700; font-size: 18px; letter-spacing: .06em;
  padding: 3px 10px; border: 2px solid var(--fg); border-radius: 6px; background: var(--surface); color: var(--fg);
}
.anc-plate-sm { font-size: 13px; padding: 1px 7px; border-width: 1.5px; }
.anc-table td.anc-row-actions { width: 1%; padding-right: 2px; }
.anc-user-card { text-align: center; }
.anc-import-box { max-width: 760px; }
.anc-imp-scroll { max-height: 46vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; }
.anc-imp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.anc-imp-table th { position: sticky; top: 0; background: var(--surface-2); text-align: center; padding: 6px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); z-index: 1; }
.anc-imp-table tbody th { position: static; text-align: left; white-space: nowrap; padding: 4px 8px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--fg); background: none; }
.anc-imp-table td { text-align: center; padding: 3px; border-top: 1px solid var(--border); }
.anc-imp-cell {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 44px; height: 28px; padding: 0 6px;
  border: 2px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; opacity: .55;
}
.anc-imp-cell .anc-flag { width: 20px; height: 13px; }
.anc-imp-cell b { font-size: 12px; color: var(--warning); }
.anc-imp-arrow { font-size: 11px; color: var(--muted); }
.anc-imp-new { border-color: var(--accent); }
.anc-imp-conflict { border-color: var(--warning); }
.anc-imp-same { border-color: var(--border); cursor: default; opacity: .35; }
.anc-imp-low { border-style: dashed; }
.anc-imp-cell.anc-imp-on { opacity: 1; background: var(--success-weak); }
.anc-imp-cell:disabled { cursor: default; }
.anc-imp-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.anc-imp-legend .anc-imp-cell { min-width: 22px; height: 16px; cursor: default; pointer-events: none; }
.anc-imp-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.anc-licence-cell { display: flex; gap: 6px; }
.anc-licence-channel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.anc-licence-channel label { margin: 0; flex: 1 1 280px; }
.anc-licence-channel select { flex: 0 0 240px; width: 240px; margin: 0; height: 38px; box-sizing: border-box; }
.anc-btn.anc-btn-add { background: transparent; border-style: dashed; color: var(--muted); }
.anc-btn.anc-btn-add:hover { color: var(--accent); border-color: var(--accent); }
.anc-doc-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.anc-doc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.anc-doc-section-head .anc-eyebrow { margin: 0; }
.anc-doc-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.anc-doc-pick .anc-btn { flex: 1 1 160px; }
.anc-doc-group-title { font-weight: 700; font-size: 18px; }
.anc-doc-group { text-align: center; }
.anc-doc-group .anc-vehicle-doc { align-items: center; }
.anc-licence-cols { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-start; }
.anc-licence-col { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.anc-licence-col .anc-licence-cell { justify-content: center; }
.anc-licence-col .anc-pill { white-space: nowrap; }
.anc-licence-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.anc-doc-expiry { margin-top: 5px; }
.anc-icon-btn {
  width: 30px; height: 30px; padding: 0; margin-right: 4px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--accent); font-size: 15px; line-height: 1; cursor: pointer;
}
.anc-icon-btn:hover { background: var(--success-weak); }
.anc-icon-btn-danger { color: var(--danger); }
.anc-icon-btn-danger:hover { background: var(--danger-weak); }
.anc-vehicle .anc-sub { margin-top: 6px; }
.anc-vehicle-docs { display: flex; gap: 10px; margin-top: 12px; }
.anc-vehicle-doc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; }
.anc-vehicle-doc .anc-btn { width: 100%; padding-top: 12px; padding-bottom: 12px; }
.anc-vehicle-doc .anc-pill { align-self: center; white-space: normal; }
#anc-doc-search { width: 100%; margin-bottom: 12px; }
.anc-alert-overlay.anc-doc-overlay { padding: 0; z-index: 100000; }
.anc-doc-viewer { display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 900px; background: var(--surface); }
.anc-doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.anc-doc-content { flex: 1; min-height: 0; overflow: auto; background: var(--surface-2); display: flex; align-items: flex-start; justify-content: center; }
.anc-doc-content img { max-width: 100%; height: auto; display: block; }
.anc-doc-content iframe { width: 100%; height: 100%; border: 0; }
.anc-weather { display: flex; align-items: center; gap: 14px; }
.anc-weather-icon { font-size: 44px; line-height: 1; flex: none; }
.anc-weather-main .anc-sub { margin-top: 4px; }
.anc-weather-alert {
  margin: -4px 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--warning-weak); color: var(--warning); border: 1px solid currentColor;
}
.anc-weather-alert-danger { background: var(--danger-weak); color: var(--danger); }
.anc-text-success { color: var(--success); } .anc-text-warning { color: var(--warning); } .anc-text-danger { color: var(--danger); }
.anc-sub { font-size: 12px; color: var(--muted); }
.anc-note { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 8px; }
.anc-pill { font-family: var(--font-ui); display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.anc-pill-success { background: var(--success-weak); color: var(--success); }
.anc-pill-warning { background: var(--warning-weak); color: var(--warning); }
.anc-pill-danger { background: var(--danger-weak); color: var(--danger); }
.anc-btn { font-family: var(--font-ui); border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); padding: 9px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.anc-btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.anc-btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.anc-btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.anc-btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.anc-btn-sm { padding: 5px 10px; font-size: 12px; }
.anc-btn-icon { display: inline-flex; align-items: center; justify-content: center; padding: 6px; line-height: 0; }
.anc-btn-icon svg { display: block; }
[hidden] { display: none !important; }
label { font-family: var(--font-ui); display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .02em; }
.anc-field-row { display: flex; gap: 10px; }
.anc-field-row label { flex: 1; min-width: 0; margin-bottom: 10px; }
input, select, textarea { font-family: var(--font-body); width: 100%; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); margin-top: 4px; }
.anc-row-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.anc-requests-list .anc-row-item { padding: 6px 0; font-size: 12.5px; }
.anc-requests-list .anc-row-item strong { font-size: 12.5px; }
.anc-requests-list .anc-sub { font-size: 11px; }
.anc-row-item:last-child { border-bottom: none; }
.anc-phone { max-width: 400px; margin: 0 auto; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 30px -14px rgba(20,96,165,.25); }
.anc-phone-header { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.anc-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--success-weak); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); flex: none; }
.anc-name { font-weight: 700; font-size: 15px; font-family: var(--font-body); }
.anc-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 8px; gap: 4px; }
.anc-tabs button { flex: 1; background: none; border: none; padding: 8px 4px; border-radius: 8px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); cursor: pointer; }
.anc-tabs button.active { background: var(--success-weak); color: var(--accent); }
.anc-tabs button { position: relative; flex: 1 1 auto; white-space: nowrap; }
.anc-tabs .anc-tab-home { flex: 0 0 auto; padding: 6px 9px; display: inline-flex; align-items: center; justify-content: center; }
.anc-tabs .anc-msg-badge { position: absolute; top: -3px; right: -2px; margin: 0; min-width: 16px; padding: 0 4px; font-size: 9.5px; line-height: 15px; }
.anc-tabs { overflow-x: auto; scrollbar-width: none; }
.anc-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 380px) {
  .anc-tabs { padding: 8px 4px; gap: 2px; }
  .anc-tabs button { font-size: 9.5px; padding: 8px 2px; letter-spacing: 0; }
}
.anc-body { padding: 14px; }
.anc-dash-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.anc-dash-nav button { font-family: var(--font-ui); background: none; border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); white-space: nowrap; cursor: pointer; }
.anc-dash-nav button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.anc-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.anc-kpi { text-align: center; }
.anc-kpi-clickable { cursor: pointer; transition: transform .12s, border-color .12s; }
.anc-kpi-clickable:hover { border-color: var(--accent); transform: translateY(-1px); }
.anc-toast { font-family: var(--font-ui); position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 999; }
.anc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.anc-alert-overlay {
  position: fixed; inset: 0; background: rgba(10,12,18,.5); display: none; align-items: center; justify-content: center;
  padding: 20px; z-index: 1000;
}
.anc-alert-overlay.show { display: flex; }
.anc-alert-box { background: var(--surface); border-radius: 14px; padding: 20px; max-width: 380px; width: 100%; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); }
.anc-alert-title { font-family: var(--font-display); color: var(--danger); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.anc-alert-msg { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.anc-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-family: var(--font-display); color: var(--accent); text-transform: uppercase; letter-spacing: .02em; }
.anc-cal-legend { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.anc-plan-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.anc-plan-inner { display: inline-block; min-width: 100%; }
.anc-plan-row { display: flex; align-items: stretch; }
.anc-plan-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.anc-plan-header { position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 2px solid var(--border); }
.anc-plan-name {
  position: sticky; left: 0; z-index: 1; background: var(--surface);
  width: 150px; flex: none; padding: 6px 10px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--border);
  display: flex; align-items: center;
}
.anc-plan-days { display: flex; }
.anc-plan-daynum {
  width: 22px; flex: none; text-align: center; font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  color: var(--muted); padding: 6px 0;
}
.anc-plan-cell { width: 22px; height: 26px; flex: none; border-right: 1px solid var(--border); }
.anc-plan-weekend { background: var(--surface-2); }
.anc-plan-today { color: var(--accent); }
.anc-plan-fill-success { background: var(--success); }
.anc-plan-fill-warning { background: var(--warning); }
.anc-plan-avail-row { background: var(--surface-2); border-bottom: 2px solid var(--border) !important; }
.anc-plan-avail-row .anc-plan-name { background: var(--surface-2); font-weight: 700; }
.anc-plan-avail-cell {
  width: 22px; height: 26px; flex: none; border-right: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 10px; font-weight: 700; color: var(--success);
}
.anc-plan-avail-cell.anc-plan-avail-low { color: var(--danger); }
@media (max-width: 640px) {
  .anc-plan-name { width: 110px; font-size: 11.5px; }
  .anc-plan-cell, .anc-plan-daynum, .anc-plan-avail-cell { width: 18px; }
  .anc-plan-cell, .anc-plan-avail-cell { height: 22px; }
}
.anc-table-wrap { overflow-x: auto; }
.anc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.anc-table th { text-align: left; font-family: var(--font-ui); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.anc-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.anc-table tr:last-child td { border-bottom: none; }
.anc-table-num { font-family: var(--font-ui); font-variant-numeric: tabular-nums; font-weight: 700; }
.anc-table .anc-col-tight { width: 1%; white-space: nowrap; }
.anc-table td.anc-col-contact { font-size: 12px; color: var(--muted); word-break: break-word; max-width: 190px; }
.anc-root:has(#anc-admin-list) {
  max-width: none;
  width: min(1600px, calc(100vw - 32px));
  margin-left: calc(50% - min(800px, 50vw - 16px));
  margin-right: 0;
  box-sizing: border-box;
}
#anc-admin-list .anc-table th:last-child,
#anc-admin-list .anc-table td:last-child { position: sticky; right: 0; background: var(--surface); box-shadow: -6px 0 8px -6px rgba(0,0,0,.18); }
.anc-flag { width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); display: inline-block; vertical-align: middle; flex: none; }
.anc-frais-grid { display: grid; grid-template-columns: 52px repeat(4, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.anc-frais-title { flex: 1; text-align: center; font-size: 15px; line-height: 1.25; padding: 0 6px; }
.anc-frais-head { font-family: var(--font-ui); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--muted); text-align: center; line-height: 1.25; align-self: end; padding-bottom: 2px; }
.anc-frais-day { font-family: var(--font-ui); font-size: 13px; font-weight: 700; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.anc-frais-day span { font-size: 11px; font-weight: 600; color: var(--muted); }
.anc-frais-weekend { color: var(--muted); }
.anc-frais-today { color: var(--accent); }
.anc-frais-today span { color: var(--accent); }
.anc-root .anc-frais-cell {
  height: 48px; padding: 0; border-radius: 10px; border: 1.5px dashed var(--border); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .08s;
}
.anc-root .anc-frais-cell:active { transform: scale(.94); }
.anc-root .anc-frais-cell.anc-frais-on { border-style: solid; border-color: var(--accent); background: var(--surface); }
.anc-root .anc-frais-cell:disabled { opacity: .45; cursor: not-allowed; }
.anc-root .anc-frais-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.anc-frais-totlabel { font-size: 11px; text-transform: uppercase; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--border); margin-top: 2px; }
.anc-frais-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--border); margin-top: 2px; }
.anc-frais-total span { display: inline-flex; align-items: center; gap: 3px; }
.anc-frais-total .anc-flag, .anc-frais-legend .anc-flag { width: 18px; height: 12px; }
.anc-frais-legend { flex-wrap: wrap; gap: 4px 12px; }
.anc-frais-legend span { display: inline-flex; align-items: center; gap: 4px; }
.anc-frais-table th .anc-flag { width: 21px; height: 14px; margin-right: 4px; }
.anc-frais-table th.anc-frais-zone { font-size: 12px; color: var(--fg); }
.anc-frais-table thead tr:last-child th { line-height: 1.25; vertical-align: bottom; }
.anc-frais-table .anc-frais-n { text-align: center; }
.anc-frais-table .anc-frais-sep { border-left: 1px solid var(--border); }
.anc-frais-table thead tr:first-child th { border-bottom: none; padding-bottom: 2px; }
.anc-frais-table tfoot td { font-weight: 700; border-top: 2px solid var(--border); border-bottom: none; }
.anc-frais-zero { color: var(--muted); font-weight: 400; }
.anc-frais-row { cursor: pointer; }
.anc-frais-row:hover td { background: var(--surface-2); }
.anc-frais-row.anc-frais-selected td { background: var(--success-weak); }
.anc-frais-row.anc-frais-selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }
.anc-frais-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.anc-frais-mcell { display: flex; align-items: center; justify-content: center; }
.anc-frais-mcell .anc-flag { width: 18px; height: 12px; }
.anc-cal-legend .anc-flag { width: 18px; height: 12px; }
@media (max-width: 640px) { .anc-frais-mcell .anc-flag { width: 15px; height: 10px; } }
.anc-admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.anc-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.anc-admin-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; }
.anc-admin-filters label { margin-bottom: 0; min-width: 0; }
.anc-admin-import { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 14px; align-items: center; }
.anc-admin-import label, .anc-admin-import p { margin: 0; }
@media (max-width: 640px) { .anc-admin-import { grid-template-columns: 1fr; } }
.anc-row-inactive td { color: var(--muted); }
.anc-modal-box { max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; }
.anc-modal-title { color: var(--accent); margin-bottom: 14px; }
.anc-modal-box .anc-field-row { align-items: flex-end; }
.anc-modal-box .anc-field-row input, .anc-modal-box .anc-field-row select { height: 38px; box-sizing: border-box; }
.anc-form-error { font-size: 13px; color: var(--danger); background: var(--danger-weak); border-radius: 8px; padding: 8px 10px; margin: 0; }
.anc-root input[readonly], .anc-root select[disabled] { background: var(--surface-2); color: var(--muted); }
.anc-root code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) {
  .anc-admin-filters { grid-template-columns: 1fr 1fr; }
  .anc-admin-filters label:first-child { grid-column: 1 / -1; }
  .anc-admin-actions .anc-btn { flex: 1; }
}
.anc-availcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; }
.anc-availcal-cell {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  cursor: pointer; user-select: none;
}
.anc-availcal-cell::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 1.5px; right: 1.5px;
  border-radius: 6px; background: var(--surface-2);
}
.anc-availcal-cell > span { position: relative; }
.anc-availcal-cell.anc-availcal-sel-edge > span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.anc-availcal-cell.anc-availcal-sel-in::after { content: ""; position: absolute; inset: 1px 2.5px; border: 2px solid var(--accent); border-radius: 6px; pointer-events: none; }
.anc-availcal-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 10px 0 4px; font-size: 13.5px; }
.anc-availcal-pick:empty { display: none; }
.anc-availcal-pick .anc-sub { width: 100%; }
.anc-availcal-pick span:only-child { width: auto; }
.anc-availcal-head { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.anc-availcal-cell.anc-availcal-off { color: var(--muted); }
.anc-availcal-cell.anc-availcal-off::before { background: rgba(128, 128, 128, .28); }
.anc-availcal-empty { cursor: default; }
.anc-availcal-empty::before { display: none; }
.anc-availcal-cell.anc-availcal-free:hover::before { outline: 2px solid var(--accent); }
.anc-availcal-cell.anc-availcal-partial::before { background: var(--warning); }
.anc-availcal-cell.anc-availcal-partial { color: #2b1d00; }
.anc-availcal-cell.anc-availcal-full::before { background: var(--danger); }
.anc-availcal-cell.anc-availcal-full { color: #fff; cursor: not-allowed; }
.anc-availcal-join-prev::before { left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.anc-availcal-join-next::before { right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.anc-availcal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 2px; }
.anc-availcal-dot.anc-availcal-free { background: var(--surface-2); border: 1px solid var(--border); }
.anc-availcal-dot.anc-availcal-off { background: rgba(128, 128, 128, .4); }
.anc-availcal-dot.anc-availcal-partial { background: var(--warning); }
.anc-availcal-dot.anc-availcal-full { background: var(--danger); }
@media (prefers-color-scheme: dark) {
  .anc-root { --bg:#11161d; --surface:#171e27; --surface-2:#1e2733; --border:rgba(255,255,255,.1); --fg:#eef1f5; --muted:#9aa2ac;
    --accent:#4a8fc9; --success:#4a8fc9; --success-weak:#1f3650; --warning:#e0ab57; --warning-weak:#3a2c10; --danger:#c9564b; --danger-weak:#3a1714;
    color-scheme: dark;  }
  .anc-root input, .anc-root select, .anc-root textarea { background: var(--surface-2); color: var(--fg); }
  .anc-availcal-cell.anc-availcal-free::before, .anc-availcal-dot.anc-availcal-free { background: #2f3e52; }
  .anc-availcal-cell.anc-availcal-off::before { background: rgba(128, 128, 128, .10); }
  .anc-availcal-dot.anc-availcal-off { background: rgba(128, 128, 128, .22); }
}
.anc-msg-badge { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; vertical-align: 1px; letter-spacing: 0; }
.anc-msg-list { padding: 8px; }
.anc-msg-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; background: none; border: none; border-bottom: 1px solid var(--surface-2); text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: 10px; }
.anc-msg-row:last-child { border-bottom: none; }
.anc-msg-row:hover { background: var(--bg); }
.anc-msg-row .anc-avatar { flex: none; }
.anc-msg-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.anc-msg-row-top { display: flex; justify-content: space-between; gap: 8px; }
.anc-msg-row-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anc-msg-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anc-msg-unread .anc-msg-preview { color: var(--fg); font-weight: 600; }
.anc-msg-thread { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.anc-msg-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--surface-2); }
.anc-msg-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anc-msg-safety { margin: 0; padding: 7px 12px; background: var(--warning-weak); color: #6d4f12; font-size: 12px; }
.anc-msg-scroll { height: 52vh; min-height: 260px; overflow-y: auto; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.anc-msg-day { align-self: center; font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; margin: 6px 0; }
.anc-msg { max-width: 80%; padding: 8px 11px 5px; border-radius: 14px; font-size: 14px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; }
.anc-msg-mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.anc-msg-other { align-self: flex-start; background: var(--surface); border: 1px solid var(--surface-2); border-bottom-left-radius: 4px; }
.anc-msg-author { font-size: 11.5px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.anc-msg-time { font-size: 10.5px; opacity: .7; text-align: right; margin-top: 2px; }
.anc-msg-photo { display: block; padding: 0; margin: 2px 0 4px; border: none; background: none; cursor: zoom-in; }
.anc-msg-photo img { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; }
.anc-msg-mine .anc-msg-photo .anc-sub { color: #fff; }
.anc-msg-form { padding: 8px; border-top: 1px solid var(--surface-2); }
.anc-msg-form-row { display: flex; align-items: flex-end; gap: 8px; }
.anc-msg-form textarea { flex: 1; min-width: 0; resize: none; margin: 0; min-height: 40px; max-height: 140px; }
.anc-msg-photo-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 40px; width: 42px; margin: 0; cursor: pointer; }
#anc-msg-attach { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.anc-msg-readonly { margin: 0; padding: 10px 12px; border-top: 1px solid var(--surface-2); }
.anc-msg-row-top strong { font-family: var(--font-ui); font-size: 14.5px; font-weight: 700; }
.anc-msg-row-top .anc-sub { flex: none; font-size: 11.5px; }
.anc-msg-head strong { font-family: var(--font-ui); font-size: 15px; }
.anc-msg-private { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 7px 12px; background: var(--success-weak); color: var(--accent); font-size: 12px; }
.anc-msg-private svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.anc-tabs { padding: 8px 2px; gap: 0; }
.anc-tabs button { font-size: 9.8px; padding: 8px 3px; letter-spacing: 0; }
.anc-tabs .anc-tab-home { padding: 6px 6px; }
@media (min-width: 700px) {
  .anc-phone, .anc-topbar-driver { max-width: 600px; }
  .anc-tabs { padding: 8px 6px; gap: 4px; }
  .anc-tabs button { font-size: 11.5px; padding: 9px 6px; letter-spacing: .02em; }
  .anc-tabs .anc-tab-home { padding: 6px 10px; }
  .anc-tabs .anc-tab-home svg { width: 21px; height: 21px; }
}
@media (max-width: 380px) {
  .anc-tabs button { font-size: 9px; padding: 8px 2px; }
  .anc-tabs .anc-tab-home svg { width: 17px; height: 17px; }
}
.anc-tabs-preview { max-width: 400px; border: 1px solid var(--border); border-radius: 12px; pointer-events: none; }
.anc-tabs.anc-tabs-preview { padding: 8px 2px; gap: 0; width: 360px; max-width: 100%; }
.anc-tabs-preview button { font-size: 9.8px !important; padding: 8px 3px !important; letter-spacing: 0 !important; }
.anc-tabs-preview .anc-tab-home { padding: 6px 6px !important; }
.anc-bottom-nav { position: sticky; bottom: 0; z-index: 20; display: flex; background: var(--surface); border-top: 1px solid var(--border);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 18px -12px rgba(20,96,165,.35); }
.anc-bottom-nav button { flex: 1 1 0; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; border-radius: 12px; padding: 6px 2px; color: var(--muted); cursor: pointer; font-family: var(--font-ui); }
.anc-bottom-nav button.active { color: var(--accent); background: var(--success-weak); }
.anc-bn-icon { position: relative; display: inline-flex; }
.anc-bn-icon .anc-msg-badge { position: absolute; top: -6px; right: -12px; margin: 0; }
.anc-bn-label { font-size: 11.5px; font-weight: 700; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anc-more-overlay { align-items: flex-end; }
.anc-more-sheet { width: 100%; max-width: 400px; margin: 0 auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 4px; }
.anc-more-item { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 12px; border: none; border-radius: 12px; background: none; color: var(--fg); font: 700 16px var(--font-ui); text-align: left; cursor: pointer; }
.anc-more-item.active, .anc-more-item:hover { background: var(--success-weak); color: var(--accent); }
.anc-more-item .anc-msg-badge { margin-left: auto; }
.anc-more-close { margin-top: 6px; }
@media (min-width: 700px) { .anc-more-sheet { max-width: 600px; } .anc-bn-label { font-size: 12.5px; } }
.anc-more-overlay { padding: 0; }
.anc-phone { overflow: visible; }
.anc-bottom-nav-preview { position: static; width: 390px; max-width: 100%; border: 1px solid var(--border); border-radius: 14px; pointer-events: none; box-shadow: none; }
.anc-dash-bottom { display: none; }
@media (max-width: 700px) {
  .anc-dash-nav { display: none; }
  .anc-dash-bottom { display: flex; margin: 14px -16px -16px; border-radius: 0; }
}
.anc-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto; transform: none; width: 100%; max-width: 400px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.anc-phone { padding-bottom: 74px; }
@media (min-width: 700px) { .anc-bottom-nav { max-width: 600px; } }
.anc-bottom-nav.anc-bottom-nav-preview { position: static; transform: none; }
@media (max-width: 700px) {
  .anc-dash-bottom { margin: 0; max-width: none; border-left: none; border-right: none; }
  .anc-dash { padding-bottom: 76px; }
}
.anc-push-line { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.anc-push-line > span { flex: 1; min-width: 0; }
.anc-push-x { flex: none; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 6px; cursor: pointer; }
@media (max-width: 700px) { .anc-help { display: none !important; } }
.anc-park-map { position: relative; z-index: 0; isolation: isolate; height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid #d7dee7; background: #eef2f6; }
@media (max-width: 700px) { .anc-park-map { height: 300px; } }
.anc-park-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.anc-park-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #5c626b; }
.anc-park-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.anc-park-level { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.anc-park-row { align-items: center; gap: 10px; }
.anc-park-actions { display: flex; gap: 6px; flex: none; }
.anc-park-actions a { text-decoration: none; }
.anc-park-map .leaflet-popup-content { font-size: 13px; line-height: 1.45; }
.anc-site-row { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.anc-site-line { font-size: 13.5px; margin-top: 3px; color: #2c3440; white-space: pre-line; }
.anc-site-line > span { font-weight: 700; color: #5c626b; }
.anc-site-instr { background: #fff8e6; border-left: 3px solid #DAA615; padding: 4px 8px; border-radius: 0 6px 6px 0; }
.anc-site-gps { display: inline-block; font-size: 11px; font-weight: 700; color: #1e6b3a; background: #e3f4e8; border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.anc-site-actions { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.anc-site-actions a { text-decoration: none; }
.anc-form-row { display: flex; gap: 10px; } .anc-form-row > label { flex: 1; min-width: 0; }
@media (max-width: 560px) { .anc-site-actions { width: 100%; } .anc-site-actions > * { flex: 1; text-align: center; } }
@media (prefers-color-scheme: dark) { .anc-site-line { color: #d5dbe2; } .anc-site-instr { background: #33290f; } .anc-site-gps { background: #15301f; color: #8fd6a4; } }
.anc-site-mark { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.anc-site-mark svg { width: 18px; height: 18px; }
.anc-site-points { border-color: #e9c46a; background: #fffbef; }
.anc-site-points .anc-badge { display: inline-block; background: #DAA615; color: #1d1d1d; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
@media (prefers-color-scheme: dark) { .anc-site-points { background: #2b2614; border-color: #7a6324; } }
.anc-site-kind { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #7a4a00; background: #fde9c4; border-radius: 999px; padding: 0 7px; vertical-align: middle; }
.anc-site-kind-ended { color: #5c626b; background: #e6e8ee; }
.anc-site-ended { opacity: .6; }
@media (prefers-color-scheme: dark) { .anc-site-kind { background: #3b2a0b; color: #f3c977; } .anc-site-kind-ended { background: #2a3544; color: #b4bcc6; } }
.anc-tx-ws { border: 1px solid #c9d8ea; background: #f3f8fd; border-radius: 12px; padding: 12px 14px; margin-bottom: 6px; }
.anc-tx-ws-result { margin-top: 10px; font-size: 13.5px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #dde3ea; }
.anc-tx-ws-result.ok { border-color: #9fd3ae; background: #eefaf1; }
.anc-tx-ws-result.warn { border-color: #e9c46a; background: #fff8e6; }
@media (prefers-color-scheme: dark) { .anc-tx-ws { background: #1b2735; border-color: #2e425a; } .anc-tx-ws-result { background: #16202b; border-color: #2e3c4c; } .anc-tx-ws-result.ok { background: #15301f; border-color: #2d6a40; } .anc-tx-ws-result.warn { background: #33290f; border-color: #7a6324; } }
.anc-back-map { height: 560px; }
@media (max-width: 700px) { .anc-back-map { height: 420px; } }
.anc-map-toggles { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.anc-map-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: inherit; cursor: pointer; }
.anc-map-toggle input { width: auto; margin: 0; }
.anc-map-toggle i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.anc-map-toggle b { font-weight: 700; color: #5c626b; }
.anc-map-truck-wrap { background: none; border: 0; }
.anc-map-truck { display: inline-flex; align-items: center; gap: 4px; background: #1e8a4c; color: #fff; border: 2px solid #fff; border-radius: 8px; padding: 1px 6px 1px 4px; font: 700 11.5px 'Public Sans', -apple-system, 'Segoe UI', Roboto, sans-serif; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.35); transform: translate(-50%, -50%); }
.anc-map-truck svg { width: 15px; height: 15px; }
.anc-map-truck.moving { background: #0f6b9a; }
.anc-zev-filters { flex-wrap: wrap; } .anc-zev-filters > label { min-width: 140px; }
.anc-zev-in { color: #1e6b3a; font-weight: 700; } .anc-zev-out { color: #9a3b12; font-weight: 700; }
.anc-map-create { text-align: center; } .anc-map-create .anc-btn { margin-top: 6px; }
@media (prefers-color-scheme: dark) { .anc-zev-in { color: #8fd6a4; } .anc-zev-out { color: #f0a37a; } }
.anc-more-plus { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #DAA615; color: #1d1d1d; font: 800 20px/1 'Public Sans', -apple-system, 'Segoe UI', Roboto, sans-serif; }
.anc-more-pulse .anc-more-plus { animation: anc-more-pulse 1.4s ease-in-out infinite; }
@keyframes anc-more-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(218,166,21,.75); transform: scale(1); } 50% { box-shadow: 0 0 0 8px rgba(218,166,21,0); transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .anc-more-pulse .anc-more-plus { animation: none; box-shadow: 0 0 0 3px rgba(218,166,21,.45); } }
.anc-map-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 12px; align-items: stretch; }
.anc-map-main { min-width: 0; }
.anc-map-side { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow: auto; min-width: 0; }
.anc-map-side input[type=search] { margin: 0 0 4px; }
.anc-map-item { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; background: #f6f8fb; border: 1px solid #e2e7ee; border-radius: 10px; padding: 7px 9px; cursor: pointer; font: inherit; color: inherit; }
.anc-map-item:hover { background: #eef3f9; }
.anc-map-item > i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.anc-map-item span { min-width: 0; } .anc-map-item strong { display: block; font-size: 13.5px; }
.anc-map-item small { display: block; font-size: 12px; color: #5c626b; }
.anc-map-item.nogps { opacity: .6; cursor: default; }
.anc-map-truckrow { border: 1px solid #e2e7ee; border-radius: 10px; padding: 4px; background: #fff; }
.anc-map-truckrow .anc-map-item { border: 0; background: transparent; }
.anc-track-pick { display: flex; gap: 6px; padding: 0 5px 5px; } .anc-track-pick select { margin: 0; flex: 1; min-width: 0; font-size: 12.5px; padding: 4px 6px; }
.anc-track-head { margin: 6px 0 2px; } .anc-track-head strong { display: block; font-size: 15px; } .anc-track-head small { color: #5c626b; }
.anc-stop-n, .anc-stop-pin { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #c8112f; color: #fff; font: 700 11px 'Public Sans', -apple-system, sans-serif; }
.anc-stop-pin { border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); transform: translate(-50%, -50%); }
@media (max-width: 1100px) { .anc-map-layout { grid-template-columns: minmax(0, 1fr) 260px; } .anc-map-layout > .anc-map-side:first-child { grid-column: 1 / -1; order: 3; max-height: 260px; } }
@media (max-width: 760px) { .anc-map-layout { grid-template-columns: minmax(0, 1fr); } .anc-map-side { max-height: 300px; } .anc-map-layout > .anc-map-side:first-child { order: 2; } }
@media (prefers-color-scheme: dark) { .anc-map-item { background: #1b2735; border-color: #2e3c4c; } .anc-map-item:hover { background: #223244; } .anc-map-truckrow { background: #16202b; border-color: #2e3c4c; } .anc-map-item small, .anc-track-head small { color: #9aa2ac; } }
.anc-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (min-width: 701px) {
  .anc-dash-nav { flex-wrap: wrap; overflow-x: visible; }
}
@media (min-width: 1024px) {
  .anc-phone, .anc-topbar-driver, .anc-bottom-nav, .anc-more-sheet { max-width: 900px; }
  .anc-availcal-cell { aspect-ratio: auto; height: 62px; }
}
@media (min-width: 1200px) {
  .anc-root { max-width: 1600px; padding: 16px 28px; }
  .anc-plan-days { flex: 1 1 auto; }
  .anc-plan-days > .anc-plan-cell, .anc-plan-days > .anc-plan-daynum, .anc-plan-days > .anc-plan-avail-cell { flex: 1 1 0; width: auto; min-width: 22px; }
  .anc-plan-name { width: 190px; }
}
.anc-dash-bar { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.anc-dash-bar .anc-dash-nav { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.anc-dash-user { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; padding-top: 2px; font-family: var(--font-ui); font-size: 14px; white-space: nowrap; }
@media (max-width: 700px) { .anc-dash-bar { justify-content: flex-end; } }
.anc-geo { position: relative; margin: 0 0 8px; }
.anc-geo input { width: 100%; }
.anc-geo-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 1000; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); overflow: hidden; }
.anc-geo-list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 9px 12px; font: 500 14px var(--font-ui); color: var(--fg); cursor: pointer; }
.anc-geo-list button:last-child { border-bottom: 0; }
.anc-geo-list button:hover, .anc-geo-list button:focus { background: var(--success-weak); outline: none; }
.anc-geo-empty { padding: 9px 12px; font-size: 13.5px; color: var(--muted); }
.anc-map-side { overflow: hidden; }
.anc-map-side .anc-map-toggles { gap: 4px 12px; padding: 2px 2px 4px; }
.anc-map-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.anc-map-list { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.anc-geo { max-width: 560px; margin-left: auto; margin-right: auto; }
