:root{color-scheme:light;--ink:#12374b;--ink2:#2b4d60;--muted:#6a8393;--bg:#f5f8fa;--surface:#fff;--nav:#19394b;--navdeep:#102d3f;--line:#dce7ed;--teal:#1f7b89;--blue:#266a8c;--blue2:#eaf4f8;--green:#2e806e;--amber:#b87631;--red:#c54f5d;--shadow:0 12px 36px rgba(25,56,76,.055);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}img{max-width:100%}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.035em}h2{font-size:19px;letter-spacing:-.018em}h3{font-size:15px}.eyebrow,.overline{font-weight:750;letter-spacing:.095em;font-size:10px;color:#718ba1;text-transform:uppercase}.muted{color:var(--muted)}.fine-print,.small{font-size:12px;line-height:1.55;color:var(--muted)}.subtle{color:var(--muted)}[hidden]{display:none!important}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;border-radius:11px;padding:10px 15px;border:1px solid #d2e1ea;background:#f7fafc;color:var(--ink);font-weight:700;transition:background .15s ease,transform .15s ease}.btn:hover:not(:disabled){background:#e9f3f8}.btn:active:not(:disabled){transform:translateY(1px)}.btn.primary{background:#1f5069;color:white;border-color:#1f5069}.btn.primary:hover:not(:disabled){background:#153e54}.btn.danger{color:#b2374d;background:#fff4f5;border-color:#f3d6dc}.btn.soft{background:#eef5f8;color:#1b576f}.btn.tiny{padding:7px 10px;min-height:32px;font-size:12px}.btn.wide{width:100%;min-height:48px}.link-btn{background:none;border:none;color:#18648a;font-weight:750;padding:6px;cursor:pointer;text-decoration:none}.link-btn:hover{text-decoration:underline}.icon-button{width:38px;height:38px;border:1px solid #d9e5eb;border-radius:11px;background:#fff;color:var(--ink);font-size:19px}
input:not([type=checkbox]),textarea,select{width:100%;border:1px solid #ccdde6;border-radius:10px;padding:11px 12px;background:#fff;color:#1b3c50;min-height:42px;outline:none}textarea{resize:vertical;min-height:80px}input:focus,textarea:focus,select:focus{border-color:#6ca6bb;box-shadow:0 0 0 3px rgba(54,139,170,.13)}label{display:flex;flex-direction:column;gap:6px;color:#3e6379;font-size:12px;font-weight:680}.checkline{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#536d7e}.checkline input{accent-color:#216a86}.checkline label{display:inline}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.stack{display:grid;gap:14px}.grid-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.grid-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow);min-width:0}.panel.no-pad{padding:0}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.panel-title h2,.panel-title h3{margin:0}.stat-number{font-size:29px;font-weight:830;letter-spacing:-.04em;color:#194b65}.stat-sub{font-size:12px;color:#6f8795;margin-top:3px}.summary-stat{padding:18px}.notice{padding:12px 14px;border:1px solid #d6e9ec;border-radius:11px;background:#f3fafb;color:#486a78;font-size:12px;line-height:1.5}.notice.warning{border-color:#f0d7b4;background:#fff7e9;color:#946122}.notice.error{border-color:#f1bdc4;background:#fff3f5;color:#ab4356}.badge{display:inline-flex;align-items:center;border:1px solid #d1e3eb;background:#edf5f8;color:#25556c;border-radius:30px;padding:4px 10px;font-size:11px;font-weight:760;white-space:nowrap}.badge.green{background:#e9f5ef;border-color:#d0e7da;color:#247254}.badge.amber{background:#fff4df;border-color:#f4dfb2;color:#9a6c25}.badge.red{background:#fff0f2;border-color:#f2c9d0;color:#b14b5a}.list{display:grid;gap:10px}.list-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid #e0e9ed;background:#fbfdfd;border-radius:12px}.list-item h3{margin:0 0 3px}.list-item p{margin:0}.empty{color:#8194a0;text-align:center;padding:28px 15px;background:#f7fafb;border-radius:12px;border:1px dashed #dce7ed;font-size:13px}.pill-tabs{display:flex;gap:8px;flex-wrap:wrap}.pill-tabs button{background:#eef4f7;border:0;border-radius:10px;padding:8px 13px;color:#466a80;font-weight:750}.pill-tabs button.active{background:#1e5975;color:#fff}
/* Authentication */
.auth-page{display:grid;grid-template-columns:minmax(360px,46%) 1fr;min-height:100vh;background:#fff}.auth-aside{background:radial-gradient(circle at 88% 0%,#326277 0%,transparent 39%),linear-gradient(145deg,#183c52,#133245 75%);color:white;display:flex;flex-direction:column;justify-content:space-between;padding:44px clamp(24px,5vw,88px)}.auth-brand,.brand{display:flex;align-items:center;gap:12px}.brand-symbol{width:45px;height:45px;border-radius:13px;background:#ffffff19;display:grid;place-items:center;flex-shrink:0}.brand-symbol img{width:26px;height:26px;filter:brightness(0) invert(1)}.auth-brand strong,.brand strong{font-weight:800;font-size:19px;letter-spacing:-.025em;display:block}.auth-brand span:not(.brand-symbol),.brand small{font-size:12px;color:#cadde6;display:block;margin-top:1px}.auth-message{max-width:460px}.auth-message .overline{color:#a4d1dc}.auth-message h1{font-size:clamp(34px,4vw,53px);line-height:1.09;letter-spacing:-.055em;margin:19px 0}.auth-message p{color:#c7dce5;font-size:16px;line-height:1.7}.auth-bottom{font-size:12px;color:#afcbd8}.auth-panel{display:grid;place-items:center;padding:32px 22px}.auth-inner{width:100%;max-width:395px}.auth-inner h2{font-size:29px;margin:10px 0 6px;letter-spacing:-.035em}.auth-inner p{line-height:1.55;color:#6c8798}.auth-form{display:grid;gap:15px;margin-top:26px}.auth-switch{margin-top:20px;display:flex;gap:6px;align-items:center;justify-content:center;color:#698398;font-size:13px}.auth-notice{padding:13px;border-radius:12px;background:#eef7fa;border:1px solid #cce6eb;color:#295b6e;line-height:1.5;margin:12px 0}.auth-notice.error{background:#fff1f3;border-color:#f1c7cd;color:#a6424e}.state-panel{text-align:center}.status-icon{font-size:46px;color:#c08b38;display:block}.state-panel .btn{margin-top:17px}.state-panel .link-btn{margin-top:8px}.auth-loading{display:none;color:#608096;font-size:12px;text-align:center;margin:20px auto}
/* Application layout */
.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#eaf3f8;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{padding:25px 18px 23px;border-bottom:1px solid #ffffff14}.sidebar .brand strong{font-size:17px}.side-nav{padding:23px 12px;display:grid;align-content:start;gap:4px}.side-nav button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;color:#d5e4eb;border-radius:11px;padding:12px 12px;font-weight:650;font-size:13px}.side-nav button:hover{background:#ffffff10}.side-nav button.active{background:#ffffff16;color:#fff}.nav-icon{font-size:19px;display:inline-block;width:21px;text-align:center;color:#c7dee8}.sidebar-bottom{margin-top:auto;padding:20px;color:#aec5d1;font-size:11px}.sidebar-location{font-weight:800;color:#e4eef4;font-size:13px}.sidebar-meta{margin-top:7px}.workspace{min-width:0}.topbar{position:sticky;top:0;z-index:20;background:#fbfcfd;border-bottom:1px solid #dce6eb;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px clamp(20px,3vw,38px)}.topbar h1{font-size:25px;margin:2px 0 0}.topbar-right{display:flex;align-items:center;gap:13px}.role-chip{font-weight:700;font-size:11px;color:#326174;background:#eaf4f7;border:1px solid #d5e5ee;padding:7px 11px;border-radius:12px}.user-menu{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:750}.main-content{padding:24px clamp(18px,3vw,38px) 42px;max-width:1760px;margin:auto}.app-footer{color:#879ba7;text-align:center;font-size:10px;padding:12px 20px 20px}.menu-toggle{display:none;border:none;background:#edf4f7;padding:9px;border-radius:8px;color:#19445b}
/* Map and markers */
.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.map-outer{position:relative;border:1px solid #d6e0e5;border-radius:15px;overflow:hidden;background:#f1f3f0;height:550px}.map-outer.compact{height:300px}.map-outer.tall{height:620px}.map-outer svg{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.map-outer svg.dragging{cursor:grabbing}.map-floating{position:absolute;right:13px;top:13px;display:grid;gap:7px;z-index:2}.map-floating button{border:1px solid #d5e2e8;background:#ffffffea;width:37px;height:37px;border-radius:9px;font-size:19px;font-weight:750;color:#315366;box-shadow:0 4px 12px #1c3e5114}.map-hint{position:absolute;bottom:12px;left:12px;max-width:calc(100% - 30px);font-size:11px;background:#ffffffec;border:1px solid #e2e9ed;border-radius:10px;padding:7px 10px;color:#526f7e;pointer-events:none}.map-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:11px;font-size:11px;color:#67818f}.legend-key{display:flex;align-items:center;gap:6px}.legend-key i{width:13px;height:13px;border-radius:4px;display:inline-block;border:1px solid #ffffff}.reference-pin{cursor:pointer}.reference-pin:focus{outline:none}.reference-pin:hover .pin-halo{stroke-width:3;stroke:#0e3c54}.reference-pin.selected .pin-halo{stroke:#102f42;stroke-width:3.5}.territory-code{filter:drop-shadow(0 2px 3px #102d3f2b)}.map-infobox{background:#f2f8fa;border-radius:10px;padding:11px;font-size:12px;color:#40697d;margin-top:10px}.reference-counter{display:flex;gap:8px;align-items:center;font-size:12px;color:#618092}
/* Page-specific */
.hero{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:20px}.hero h1{margin:3px 0 7px}.hero p{margin:0;line-height:1.6}.split{display:grid;grid-template-columns:minmax(320px,.84fr) minmax(480px,1.4fr);gap:18px}.split.wide-left{grid-template-columns:minmax(400px,1.05fr) minmax(420px,1.15fr)}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row.space{justify-content:space-between}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pair-row{display:grid;grid-template-columns:92px minmax(0,1fr) minmax(0,1fr) 34px;gap:8px;align-items:end;border:1px solid #e1e9ee;background:#f9fbfc;border-radius:12px;padding:12px;margin-bottom:9px}.pair-row strong{margin-bottom:14px}.pair-row select{min-width:0}.field-note{font-size:11px;color:#718995}.step-header{display:flex;align-items:start;gap:12px;margin-bottom:16px}.step-num{border-radius:10px;background:#e5f2f7;color:#225b75;font-size:19px;font-weight:850;display:grid;place-items:center;width:38px;height:38px;flex-shrink:0}.step-header h2{margin:2px 0 4px}.table{width:100%;border-collapse:collapse;font-size:12px}.table th,.table td{text-align:left;border-bottom:1px solid #e7eef1;padding:12px 8px}.table th{font-weight:800;color:#647f8d}.color-dot{width:13px;height:13px;display:inline-block;border-radius:50%;vertical-align:middle;margin-right:6px}.legend-items{display:grid;grid-template-columns:1fr 1fr;gap:9px}.legend-item{display:flex;align-items:center;gap:8px;font-size:11px;color:#355468}.legend-symbol{display:grid;place-items:center;border-radius:8px;width:28px;height:28px;color:#fff;font-size:16px;font-weight:750;flex-shrink:0}.card-preview{border:1px solid #d8e5eb;padding:15px;border-radius:12px;background:#fff;max-width:560px}.card-preview header{display:flex;align-items:center;justify-content:space-between}.card-preview h3{margin:0}.reference-edit-form{display:grid;gap:11px}.reference-edit-form .form-grid{gap:10px}.reference-source{font-size:11px;color:#78909c}.mini-note{font-size:11px;color:#8298a5;line-height:1.4}.filter-row{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.filter-row label{min-width:150px}.filter-row .grow{flex:1}.compact-item{padding:10px}.maps-link{color:#176c91;text-decoration:none;font-weight:750}.maps-link:hover{text-decoration:underline}.map-print-only{display:none}
.toast{position:fixed;right:20px;bottom:20px;max-width:380px;background:#183f55;color:#fff;border-radius:12px;padding:13px 16px;z-index:60;box-shadow:0 9px 30px #102d3f33;font-size:13px}
@media(max-width:1110px){.split,.split.wide-left{grid-template-columns:1fr}.grid-three{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.auth-page{grid-template-columns:1fr}.auth-aside{padding:20px 25px;min-height:135px}.auth-message,.auth-bottom{display:none}.auth-panel{padding:45px 20px}.shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;left:0;top:0;width:246px;z-index:50;transform:translateX(-102%);transition:transform .18s ease}.sidebar.open{transform:translateX(0)}.topbar{padding:13px 16px}.menu-toggle{display:block}.topbar h1{font-size:19px}.topbar .eyebrow{font-size:9px}.main-content{padding:18px 12px 40px}.grid-three,.grid-two{grid-template-columns:1fr}.user-menu #displayName{display:none}.role-chip{font-size:10px}.panel{padding:15px}.map-outer{height:450px}.map-outer.compact{height:280px}.pair-row{grid-template-columns:1fr 1fr 34px}.pair-row strong{grid-column:1 / -1;margin:0}.form-grid{grid-template-columns:1fr}}
@media print{body{background:white}.sidebar,.topbar,.app-footer,.btn,.map-floating,.toast,.no-print{display:none!important}.shell,.workspace{display:block}.main-content{padding:0;margin:0}.panel{border:0;box-shadow:none;padding:0}.map-outer{height:110mm;width:145mm;border:0}.print-card{display:block!important;width:150mm;height:100mm;page-break-inside:avoid} @page{size:150mm 100mm;margin:0}}

/* Tarjeta impresa 15 × 10 cm (apaisada) */
#printSheet{display:none}
@media print{html,body{width:150mm;height:100mm;margin:0;padding:0;background:white;overflow:hidden}body>*:not(#printSheet){display:none!important}#printSheet:not([hidden]){display:block!important;position:absolute;inset:0;background:white;z-index:9999}.print-card{width:150mm;height:100mm;padding:5mm 6mm 4mm;display:grid;grid-template-rows:9mm 1fr 7mm;color:#1a4054;font-family:Arial,sans-serif}.print-card header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d6e3e9;font-size:9pt}.print-card header span{font-size:8pt}.print-layout{display:grid;grid-template-columns:104mm 30mm;gap:3mm;min-height:0}.print-map{overflow:hidden;border:1px solid #d3e0e7;border-radius:2mm;background:#f5f5f3}.print-map svg{width:100%;height:100%;display:block}.print-info{padding:2mm 0;font-size:7pt;overflow:hidden}.print-info h3{font-size:14pt;margin:0}.print-info p{font-size:8pt;margin:2mm 0}.print-info small{display:block;margin-top:2mm;color:#6b7882;font-size:7pt}.print-ref{display:grid;gap:.5mm;margin:2mm 0;padding-bottom:2mm;border-bottom:1px solid #e0e9ed}.print-ref strong{font-size:7pt}.print-ref span{font-size:7pt}.print-card footer{font-size:6.5pt;color:#657681;align-self:center;border-top:1px solid #d6e3e9;padding-top:1mm}}

/* Informe mensual: captura rápida y tabla para responsables */
.monthly-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-radius:15px;background:#fff7e8;border:1px solid #e9d29e;margin:0 0 18px;color:#855c24}
.monthly-alert.urgent{background:#fff1f1;border-color:#eab9be;color:#a03b51}
.monthly-alert p{margin:4px 0 0;font-size:12px;line-height:1.5}.monthly-alert strong{font-size:14px}
.monthly-actions{margin:18px 0}.report-preview{margin-top:24px;padding:15px;border:1px solid #e2e9ee;background:#f7fafc;border-radius:12px}.report-preview pre{margin:10px 0 0;color:#284d60;white-space:pre-wrap;font:13px/1.65 ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}
.report-filters{margin:15px 0 18px}.report-filters label{min-width:170px}.report-table-scroll{overflow-x:auto;max-height:65vh;overflow-y:auto}.monthly-table{min-width:790px}.monthly-table thead{position:sticky;top:0;background:#f5f9fa;z-index:1}.monthly-stats{margin-bottom:18px}.monthly-table tr:hover{background:#f7fafb}
@media(max-width:800px){.monthly-alert{flex-direction:column;align-items:stretch}.monthly-table{font-size:12px}.report-filters label{min-width:0;width:100%}}

/* Informe entregado dentro de la plataforma: confirmación accesible y sobria */
.delivery-receipt,.delivery-pending{display:flex;gap:14px;align-items:center;padding:17px;border-radius:13px;margin:15px 0;border:1px solid #b9ded3;background:#f0f9f5;color:#245e4d}
.delivery-receipt p,.delivery-pending p{font-size:12px;line-height:1.6;margin:4px 0 0}
.delivery-receipt strong,.delivery-pending strong{font-size:15px}
.delivery-pending{display:block;background:#faf8f0;border-color:#e6dbb8;color:#765d33}
.receipt-mark{flex-shrink:0;width:38px;height:38px;display:grid;place-items:center;background:#d8f1e4;border-radius:11px;font-size:21px;font-weight:900;color:#22734e}
@media(max-width:800px){.monthly-actions{display:grid;grid-template-columns:1fr}.monthly-actions .btn{width:100%}}

/* Versión 1.4 — sistema visual Tabler Outline 3.49, una sola familia en navegación.
   Sin barras ni puntos de selección, iconografía lineal consistente y accesibilidad de teclado. */
.sidebar{background:#193a4c}
.sidebar .brand{padding:24px 19px 22px;gap:12px}
.sidebar .brand-symbol{width:43px;height:43px;border-radius:12px;background:rgba(255,255,255,.115)}
.sidebar .brand-symbol img{width:26px;height:26px}
.sidebar .brand strong{font-size:17px;line-height:1.12;letter-spacing:-.025em}
.sidebar .brand small{margin-top:3px;color:#bcd4df;font-size:12px;line-height:1.3;font-weight:450}
.side-nav{gap:3px;padding:19px 13px}
.side-nav button{height:46px;min-height:46px;padding:0 13px;gap:13px;border-radius:10px;font-size:13px;font-weight:640;letter-spacing:-.007em;color:#d5e3eb;transition:background-color .16s ease,color .16s ease;box-shadow:none}
.side-nav button:hover{background:rgba(244,251,255,.075);color:#fff}
.side-nav button.active{background:rgba(230,246,253,.12);color:#fff;box-shadow:inset 0 0 0 1px rgba(233,247,254,.07)}
.side-nav button.active::before,.side-nav button::before{display:none!important;content:none!important}
.side-nav .nav-icon{display:block;flex:0 0 20px;width:20px;height:20px;object-fit:contain;opacity:.92;transition:opacity .16s ease,filter .16s ease}
.side-nav button:hover .nav-icon,.side-nav button.active .nav-icon{opacity:1;filter:brightness(0) invert(1)}
.side-nav button:focus-visible{outline:2px solid #add8ed;outline-offset:2px}
.sidebar-bottom{border-top:1px solid rgba(255,255,255,.08);padding:17px 20px 21px}
.sidebar-location{color:#e1ecf3;font-size:12px;font-weight:700}
.sidebar-meta{color:#95b0bf;font-size:11px;line-height:1.55}
.toolbar-icon{width:18px;height:18px;display:block;flex:0 0 18px;filter:brightness(.48) saturate(.6)}
.topbar .icon-button{display:inline-flex;align-items:center;justify-content:center}
.topbar .btn.tiny{gap:7px}
.topbar .icon-button:hover .toolbar-icon,.topbar .btn:hover .toolbar-icon{filter:brightness(.2)}
.menu-toggle{align-items:center;justify-content:center}
.button-icon{width:19px;height:19px;flex:0 0 19px;object-fit:contain;filter:brightness(.55) saturate(.7)}
.auth-page .status-icon{width:54px;height:54px;display:grid;place-items:center;background:#fff5e5;border:1px solid #f3dfbc;border-radius:16px;margin:0 auto 18px}
.auth-page .status-icon img{width:29px;height:29px;filter:sepia(1) saturate(1.3) hue-rotate(340deg)}
@media(max-width:800px){.menu-toggle{display:inline-flex}.sidebar .brand{padding:21px 18px}}
@media(prefers-reduced-motion:reduce){.side-nav button,.side-nav .nav-icon{transition:none}}

/* v1.5 · Etiquetas estables y ligeras a cualquier escala */
.territory-code{filter:drop-shadow(0 1px 3px rgba(21,48,64,.14))}
.territory-code rect{transition:fill-opacity .15s ease,stroke-opacity .15s ease}
.territory-code.overview-code:hover rect{fill-opacity:.96;stroke-opacity:1}
.territory-code text{paint-order:normal;letter-spacing:.01em;user-select:none}
.territory-code.detail-code{pointer-events:none}
.reference-edit-form .mini-note{line-height:1.6}
#refsPendingCount,#refsVerifiedCount{font-variant-numeric:tabular-nums}

/* v1.6 · Registro geográfico automático y ficha compacta */
.auto-territory-box{background:#f4f9fb;border:1px solid #cfdee6;border-radius:13px;padding:13px 14px;display:grid;gap:8px}
.auto-territory-heading{display:flex;align-items:center;gap:9px;color:#244c62;font-size:13px}
.auto-territory-heading img{width:18px;height:18px;filter:brightness(0) saturate(100%) invert(25%) sepia(22%) saturate(1387%) hue-rotate(153deg) brightness(93%) contrast(91%)}
.auto-territory-box small{color:#6a8190;font-size:11px;line-height:1.45}
.territory-auto-result{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:12px;line-height:1.35;color:#48667a}
.territory-auto-result .auto-target{background:#e4edf2;border-radius:8px;padding:7px 10px;white-space:nowrap;color:#174b64}
.territory-auto-result.good .auto-target{background:#e0f1e7;color:#28684c}
.territory-auto-result.warning .auto-target{background:#fff0d6;color:#8c5718}
.territory-warning{margin:0!important;color:#915e21;font-size:11.5px;line-height:1.45}
.reference-coordinates{border:1px solid #dbe6eb;border-radius:12px;padding:7px 12px;background:#fff}
.reference-coordinates>summary{cursor:pointer;color:#456d82;font-size:12px;font-weight:650;list-style-position:inside;padding:7px 0}
.reference-coordinates .form-grid{margin-top:11px;margin-bottom:6px}
.reference-actions{flex-wrap:wrap}
.reference-actions .btn{white-space:normal}
.reference-edit-form .form-help{font-size:11px;color:#718896;line-height:1.5;align-self:center}
.reference-edit-form .form-grid:has(.form-help){grid-template-columns:1fr 1.5fr}
.reference-edit-form .checkline[hidden]{display:none!important}
@media(max-width:640px){.reference-edit-form .form-grid:has(.form-help){grid-template-columns:1fr}.auto-territory-box{padding:11px}}

.reference-intro{margin:0 0 18px;color:#718a98;font-size:13px;line-height:1.55}

/* v1.7 · Navegación móvil y lugares útiles — Tabler Outline */
.nav-backdrop{display:none}
.mobile-bottom-nav{display:none}
.useful-intro{display:flex;align-items:center;gap:13px;padding:18px 20px;margin:0 0 17px;border:1px solid #d5e6ea;border-radius:17px;background:linear-gradient(105deg,#ecf5f7,#f7fbfb);color:#234a5c}
.useful-intro-icon{width:47px;height:47px;flex:0 0 47px;display:grid;place-items:center;background:#d8eaf0;border-radius:14px}
.useful-intro-icon img{width:24px;height:24px;opacity:.82}
.useful-intro strong{font-size:15px;letter-spacing:-.012em}
.useful-intro p{font-size:12px;color:#607e8c;margin:4px 0 0;line-height:1.5}
.useful-layout{display:grid;grid-template-columns:minmax(285px,420px) minmax(0,1fr);gap:17px;align-items:start}
.useful-list-panel,.useful-map-panel{min-width:0}
.place-search-label{font-size:12px;font-weight:750}
.place-filters{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 16px}
.place-filter{border:1px solid #dbe7ed;background:#f7fafb;border-radius:11px;color:#526c7a;font-weight:750;min-height:38px;padding:7px 10px;white-space:nowrap;font-size:11.5px;display:inline-flex;align-items:center;gap:6px}
.place-filter span{background:#e9eff3;border-radius:999px;font-size:10px;min-width:21px;padding:3px 5px;text-align:center}
.place-filter.active{background:#224c63;border-color:#224c63;color:#fff}
.place-filter.active span{color:#143c51;background:#c8e4f0}
.place-choice-list{display:grid;gap:9px;max-height:500px;overflow-y:auto;overscroll-behavior:contain;padding:1px 2px 3px 0}
.place-choice{display:flex;gap:12px;align-items:center;text-align:left;border-radius:13px;border:1px solid #e0e8ec;background:#fff;padding:12px;width:100%;min-height:83px;color:#254a5e;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.place-choice:hover{border-color:#a5cad8;background:#f8fbfd}
.place-choice.selected{border-color:#86b4c8;background:#f0f7fa;box-shadow:0 0 0 2px rgba(44,117,144,.08)}
.place-choice-icon{width:42px;height:42px;min-width:42px;display:grid;place-items:center;border-radius:12px;background:#e9f3f8}
.place-choice-icon.salon{background:#e4edf5}.place-choice-icon.reunion{background:#e3edf7}.place-choice-icon.apoyo{background:#e3f2e9}
.place-choice-icon img{width:23px;height:23px;opacity:.75}
.place-choice-copy{flex:1;min-width:0;display:grid;gap:3px}
.place-choice-copy strong{font-size:13px;font-weight:760;line-height:1.3;overflow-wrap:anywhere}
.place-choice-copy small{font-size:11px;font-weight:760;color:#4c788d}
.place-choice-copy>span{font-size:11.5px;line-height:1.4;color:#738995;overflow-wrap:anywhere}
.place-choice-arrow{font-size:22px;color:#7291a2;line-height:1}
.useful-note{margin:15px 0 0!important}
.useful-selected-heading{align-items:start}
.useful-selected-heading h2{margin:4px 0 6px;font-size:19px;overflow-wrap:anywhere}
.useful-selected-heading p{color:#607b89;font-size:12px;margin:0;line-height:1.5;overflow-wrap:anywhere}
.useful-place-map{height:400px}
.useful-actions{display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin-top:14px}
.place-directions{min-width:168px;text-decoration:none;min-height:46px}
.place-directions img{width:19px;height:19px;filter:brightness(0) invert(1)}
.place-add-btn{margin-top:15px}
:where(.place-choice,.place-filter,.mobile-bottom-nav button,.side-nav button,.menu-toggle):focus-visible{outline:3px solid #78b8d3;outline-offset:2px}
@media(max-width:1160px){.useful-layout{grid-template-columns:1fr}.place-choice-list{max-height:390px}.useful-place-map{height:385px}}
@media(max-width:800px){
 .shell{display:block}
 .sidebar{position:fixed;inset:0 auto 0 0;top:0;height:100dvh;min-height:0;width:min(320px,88vw);max-width:88vw;z-index:80;transform:translateX(-110%);box-shadow:13px 0 45px rgba(11,35,49,.24);visibility:hidden;transition:transform .2s ease,visibility .2s ease;overflow-y:auto;overscroll-behavior:contain}
 .sidebar.open{transform:translateX(0);visibility:visible}
 .side-nav{overflow-y:auto;flex:1;align-content:start;padding-bottom:15px}
 .sidebar-bottom{flex:0 0 auto}
 .nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:rgba(11,34,47,.46);z-index:75;border:none;width:100%;height:100dvh}
 body.nav-open{overflow:hidden}
 .topbar{padding:13px 16px;gap:10px;min-height:65px;z-index:25}
 .topbar h1{font-size:19px;margin:3px 0 0;line-height:1.2}
 .topbar .eyebrow{font-size:9px;letter-spacing:.045em}
 .menu-toggle{display:none}
 .topbar-right{gap:7px;flex:0 0 auto}
 .topbar .btn.tiny{padding:9px;min-width:40px;height:40px;justify-content:center}
 .role-chip{display:none}
 .topbar .user-menu{gap:0}
 .topbar .icon-button{width:40px;height:40px}
 .refresh-label{display:none}
 .main-content{padding:17px 13px calc(105px + env(safe-area-inset-bottom,0px))}
 .app-footer{padding-bottom:calc(105px + env(safe-area-inset-bottom,0px))}
 .mobile-bottom-nav{display:grid;position:fixed;z-index:65;bottom:0;left:0;right:0;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 7px calc(7px + env(safe-area-inset-bottom,0px));background:rgba(252,254,255,.98);border-top:1px solid #dce8ed;box-shadow:0 -5px 24px rgba(20,51,69,.09)}
 .mobile-bottom-nav button:not([hidden]){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:55px;padding:7px 3px;border-radius:12px;border:0;background:transparent;color:#708795;font-size:10px;font-weight:730;line-height:1.1;letter-spacing:-.01em}
 .mobile-bottom-nav button.active{color:#184c65;background:#e8f3f7}
 .mobile-bottom-nav button img{width:21px;height:21px;opacity:.68;object-fit:contain}
 .mobile-bottom-nav button.active img{opacity:1;filter:brightness(.60) saturate(1.3)}
 .mobile-bottom-nav button span{display:block;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}
 .toast{bottom:calc(85px + env(safe-area-inset-bottom,0px));left:14px;right:14px;max-width:none;z-index:85}
 .hero{gap:8px;margin-bottom:15px}.hero h1{font-size:23px}
 .panel{border-radius:14px;padding:15px}
 .grid-three{gap:10px}
 .map-outer{height:clamp(320px,63svh,480px)}.map-outer.tall{height:clamp(390px,68svh,530px)}.map-outer.compact{height:270px}
 .map-floating button{width:43px;height:43px;min-height:43px}
 .map-hint{display:none}
 .useful-intro{padding:13px;gap:11px;margin-bottom:13px}.useful-intro-icon{width:42px;height:42px;flex-basis:42px}
 .useful-layout{gap:12px}
 .place-filters{overflow-x:auto;flex-wrap:nowrap;overscroll-behavior-x:contain;scrollbar-width:none;margin-inline:-2px;padding:2px 3px 7px}
 .place-filters::-webkit-scrollbar{display:none}
 .place-filter{min-height:40px;padding:8px 11px;font-size:11px}
 .place-choice-list{max-height:none;overflow:visible}
 .place-choice{min-height:79px}
 .useful-place-map{height:330px}
 .useful-actions{display:grid;grid-template-columns:1fr;justify-items:stretch}
 .place-directions{width:100%}
 .useful-actions .small{display:block;text-align:center}
 .actions .btn{min-height:44px}
 .pair-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px}
 .monthly-table{min-width:750px}
 .report-table-scroll{max-width:100%;overscroll-behavior-x:contain}
 .form-grid>*{min-width:0}
 .map-toolbar h2{font-size:16px}
 .list-item{min-width:0;flex-wrap:wrap}
 .list-item>div{min-width:0}
 .list-item .actions{max-width:100%}
}
@media(max-width:390px){
 .topbar .eyebrow{display:none}.topbar h1{font-size:18px}
 .topbar{padding:10px 12px;min-height:57px}
 .main-content{padding-inline:10px}
 .mobile-bottom-nav button:not([hidden]){font-size:9.3px}
 .mobile-bottom-nav button img{width:20px;height:20px}
 .map-outer{height:330px}
 .panel{padding:13px}
}
@media(min-width:801px){.nav-backdrop{display:none!important}.mobile-bottom-nav{display:none!important}}
@media(prefers-reduced-motion:reduce){.sidebar,.place-choice,.btn{transition:none!important}}

/* Ajustes finales de usabilidad en Lugares */
.place-list-row{display:flex;align-items:stretch;gap:8px;min-width:0}
.place-list-row .place-choice{flex:1;min-width:0}
.place-route-quick{flex:0 0 54px;min-width:54px;min-height:54px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;border:1px solid #d7e5ec;border-radius:12px;background:#f3f8fa;color:#20536b;text-decoration:none;font-weight:760;font-size:10.5px}
.place-route-quick:hover{background:#e8f4f9;border-color:#afd0dd}
.place-route-quick img{width:21px;height:21px;opacity:.75}
.place-route-quick:focus-visible{outline:3px solid #78b8d3;outline-offset:2px}
@media(max-width:800px){.sidebar{transition:transform .2s ease;visibility:hidden}.sidebar.open{visibility:visible}}
