:root{color-scheme:dark;--bg:#11151d;--panel:#1b212c;--line:#303947;--muted:#9eacbe;--text:#edf2f9;--accent:#eb575d;--green:#69c5a3;--blue:#8ebcfc;--amber:#e8bb72;font:13px/1.45 'Segoe UI',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{border:1px solid #414c5d;background:#262f3d;color:var(--text);border-radius:6px;padding:7px 10px;cursor:pointer;white-space:nowrap;transition:background .12s,border-color .12s}button:hover{background:#354155;border-color:#71829a}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:#c9404c;border-color:#e66168;color:white;font-weight:600}button.primary:hover{background:#e3505a}button.active{background:#5c303b;border-color:var(--accent);color:#ffe3e4}button.danger{color:#ff9da5}button.icon-button{padding:4px 9px;font-size:20px;line-height:1}button.wide{width:100%;margin-top:8px}button.large{padding:11px 8px}.accent{color:var(--accent)}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid var(--line);background:#171d27}.brand{display:flex;gap:12px;align-items:center}.brand strong{font-size:19px;font-weight:650;letter-spacing:.1px}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:1.6px;margin-top:2px}.top-actions{display:flex;gap:12px;align-items:center}.brand-small{font-weight:600;font-size:16px}.version{font-size:11px;color:var(--muted);border:1px solid var(--line);padding:3px 7px;border-radius:5px}.layout{display:grid;grid-template-columns:278px minmax(420px,1fr) 308px;height:calc(100vh - 68px);min-height:600px}.sidebar,.inspector{overflow:auto;padding:12px;scrollbar-width:thin}.sidebar{border-right:1px solid var(--line)}.inspector{border-left:1px solid var(--line)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:13px;margin-bottom:11px}.section-title{display:flex;gap:8px;align-items:center;margin-bottom:10px}.section-title h2{font-size:13px;margin:0;font-weight:650;flex:1}.step{font-size:10px;font-weight:700;color:var(--accent);border:1px solid #643943;border-radius:4px;padding:2px 5px;vertical-align:middle}.tiny,.hint{font-size:11px;color:var(--muted)}.hint{margin:7px 0;line-height:1.55}.pill{font-size:10px;color:var(--muted);background:#272f3b;border:1px solid var(--line);padding:2px 6px;border-radius:9px;white-space:nowrap}.pill.ready{color:#99e3c4;border-color:#46695d}.pill.warn{color:var(--amber);border-color:#746044}label{display:block;color:#c2ccda;font-size:11px;margin:9px 0 0}input:not([type=checkbox]),select{display:block;width:100%;min-width:0;margin-top:4px;padding:7px 8px;background:#111822;border:1px solid #3b4657;border-radius:5px;color:var(--text);outline:none}input:focus,select:focus{border-color:#e57b81;box-shadow:0 0 0 2px #ab41412e}input::placeholder{color:#78879b}input[type=file]{padding:5px;font-size:10px}input[type=file]::file-selector-button{background:#303c4e;border:0;border-radius:3px;color:#e9eff8;padding:4px 6px;margin-right:5px}input[type=checkbox]{accent-color:var(--accent);flex-shrink:0;margin:3px 0}.button-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:9px}.button-row button{font-size:11px;flex:1}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.metadata{font-size:10px;line-height:1.7;color:#a7b5c8;margin-top:10px;overflow-wrap:anywhere}.metadata strong{color:#d6e1ee}.metadata .warning{color:var(--amber);margin-top:5px}.sidebar-note{font-size:11px;color:#b7b5aa;border-left:2px solid #977847;padding:8px 10px;margin-top:6px}details{margin-top:9px}summary{cursor:pointer;color:#a8b7c9;font-size:10px}.workspace{min-width:0;display:flex;flex-direction:column;background:#0e131b;overflow:hidden}.map-toolbar{min-height:48px;padding:8px 10px;display:flex;gap:8px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#1a212c;flex-wrap:wrap}.toolbar-group{display:flex;gap:4px}.map-toolbar button{font-size:11px;padding:6px 8px}.map-toolbar select{width:auto;max-width:200px;font-size:11px;margin:0;padding:6px}.map{position:relative;flex:1;min-height:240px;overflow:hidden;background:radial-gradient(ellipse at center,#222b38 0,#111923 75%)}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}canvas.point-mode{cursor:crosshair}.map-empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;width:90%;max-width:470px}.empty-symbol{font-size:50px;color:#687789;line-height:1.3}.map-empty h1{font-size:23px;color:#d2dce9;font-weight:500;margin:10px 0}.map-empty p{font-size:13px;color:#9cabbe;line-height:1.8}.map-empty span{font-size:9px;letter-spacing:1.4px;color:#76869a}.map-overlay{position:absolute;top:12px;left:12px;display:flex;gap:7px;pointer-events:none}.map-overlay span,.render-busy{background:#141b28d9;padding:5px 8px;border:1px solid #435064;border-radius:5px;color:#d9e2ee;font-size:10px}.render-busy{position:absolute;right:12px;top:12px}.map-legend{position:absolute;bottom:9px;left:12px;background:#111923cf;border-radius:4px;padding:5px 8px;display:flex;align-items:center;gap:5px;font-size:9px;color:#c7d2df;pointer-events:none}.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-left:5px}.legend-dot.fit{background:var(--green)}.legend-dot.check{background:var(--blue)}.legend-dot.dem{background:#ceb56e}.coordinate-bar{display:flex;justify-content:space-between;gap:8px;padding:5px 10px;color:#a6b5c8;font:10px/1.5 Consolas,monospace;border-top:1px solid var(--line);min-height:26px}.points-panel{height:270px;min-height:200px;display:flex;flex-direction:column;border-top:1px solid var(--line);background:#171e28}.points-header{padding:12px;display:flex;gap:10px;justify-content:space-between;align-items:start}.points-header h2{font-size:13px;margin:0;display:flex;align-items:center;gap:8px}.points-header .hint{font-size:10px;margin:6px 0 0;max-width:500px}.points-header .button-row{flex-wrap:nowrap;margin:0}.points-header button{font-size:10px;padding:6px}.table-scroll{overflow:auto;flex:1;scrollbar-width:thin}table{width:100%;border-collapse:collapse;font-size:10px;white-space:nowrap}th{background:#232d3b;color:#afbdd0;font-weight:600;position:sticky;top:0;z-index:1;text-align:left;padding:7px 5px;border-bottom:1px solid #445166}td{padding:3px 4px;border-bottom:1px solid #2c3543}td input:not([type=checkbox]),td select{margin:0;width:90px;padding:5px 4px;font:10px/1.4 Consolas,monospace;background:#141c27;border-color:transparent}td input:focus{border-color:#e57b81}td:first-child input{width:55px}td select{width:94px;font-family:inherit}td input[data-field=col],td input[data-field=row]{width:74px}td input[data-field=z]{width:66px}td .result{min-width:57px;display:block;font-family:Consolas,monospace;color:#cad8e8}td .delete{padding:1px 7px;color:#ef939a}tr.selected{background:#4b354244}tr.check-row{border-left:2px solid var(--blue)}tr.excluded{opacity:.5}.table-empty{font-size:12px;color:#8d9db2;text-align:center;margin:28px 12px}.check-label{display:flex;gap:8px;align-items:start;background:#232d3a;border-radius:5px;padding:10px;font-size:10px;line-height:1.65;margin-top:12px}.check-label.compact{background:none;padding:0}.export-note{font-size:10px;color:#a6b5c7;background:#151e28;padding:8px;border-radius:5px;margin-top:10px}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}.metrics>div{border:1px solid #354253;border-radius:6px;padding:8px;background:#141c27}.metrics small{display:block;color:#a2b2c6;font-size:9px}.metrics strong{display:block;font:17px/1.5 Consolas,monospace;color:#d6e4f3}.warning-box{font-size:10px;color:#e1c799;background:#3a312540;border-left:2px solid #ba9357;padding:7px;margin-top:7px}.output-line{display:block;border:1px solid #3c4d61;background:#1f2c3a;padding:8px;border-radius:5px;color:#d7e9fa;text-decoration:none;margin-top:7px;overflow-wrap:anywhere;font-size:11px}.output-line:hover{border-color:#abc2dd}.output-line small{display:block;color:#97abc3;font-size:9px}.hidden{display:none!important}progress{display:block;width:100%;height:10px;margin-top:9px;accent-color:var(--accent)}dialog{width:min(490px,calc(100vw - 36px));background:#1d2633;color:var(--text);border:1px solid #5c697d;border-radius:12px;padding:22px;box-shadow:0 24px 90px #0009;max-height:88vh;overflow:auto}dialog::backdrop{background:#080d17b8;backdrop-filter:blur(3px)}.dialog-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-heading h2{font-size:18px;font-weight:550;margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;flex-wrap:wrap}.callout{color:#b9c8da;border-left:2px solid #5f819b;background:#16202c;padding:10px;font:11px/1.7 Consolas,monospace;white-space:pre-line}.help-dialog{width:min(880px,90vw)}.help-dialog article{font-size:13px;line-height:1.85;color:#c5d0df}.help-dialog h3{color:#f3f6fa;font-size:16px;margin:24px 0 8px}.help-dialog code{color:#f3c5c8;background:#111923;padding:2px 5px;border-radius:3px}.help-dialog table{white-space:normal;font-size:12px}.help-dialog td,.help-dialog th{padding:8px}.help-dialog strong{color:#f2f6fc}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:700px;z-index:80;background:#253647;border:1px solid #637f9b;padding:12px 18px;box-shadow:0 6px 30px #0006;border-radius:8px;color:#e4effa;font-size:12px}.error{color:#ffa6ac}@media(max-width:1200px){.layout{grid-template-columns:245px minmax(400px,1fr) 280px}.sidebar,.inspector{padding:8px}.panel{padding:10px}.brand strong{font-size:17px}.points-header{flex-wrap:wrap}.points-panel{height:300px}.map-toolbar{gap:5px}.map-toolbar select{max-width:170px}}@media(max-width:980px){.layout{height:auto;grid-template-columns:235px minmax(450px,1fr)}.inspector{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid var(--line)}.workspace{height:800px}.sidebar{max-height:800px}.topbar{padding:0 12px}.brand-small{display:none}}@media(max-width:700px){.layout{display:flex;flex-direction:column}.sidebar{display:grid;grid-template-columns:1fr 1fr;max-height:none;border:0;gap:8px}.project-panel{grid-column:1/-1}.workspace{height:750px;flex:none}.inspector{display:block}.brand strong{font-size:14px}.brand small{font-size:8px}.top-actions{gap:5px}.top-actions button{font-size:10px;padding:5px}.version{display:none}.coordinate-bar{font-size:8px}.map-toolbar{padding:6px}.points-panel{height:300px}}

/* v1.0.3: identidad corporativa. Sin cambios en visor, controles ni cálculo. */
.brand-logo{display:block;flex:0 0 auto;object-fit:contain;width:48px;height:48px}
.about-dialog{width:min(650px,calc(100vw - 32px));padding:22px 28px 24px}
.about-dialog .dialog-heading{margin-bottom:0}
.about-dialog .dialog-heading h2{font-size:14px;color:var(--muted);font-weight:500}
.about-identity{text-align:center;padding:0 0 22px}
.about-logo{display:block;object-fit:contain;width:236px;height:236px;max-width:100%;margin:0 auto 12px}
.about-identity h2{font-size:27px;line-height:1.25;letter-spacing:.1px;font-weight:650;margin:0}
.about-subtitle{font-size:10px;color:var(--muted);letter-spacing:1.5px;margin:11px 0 20px}
.about-subtitle .version{font-size:10px;letter-spacing:0;margin-left:7px;vertical-align:middle}
.about-company{font-size:18px;line-height:1.5;margin:0 0 5px;font-weight:500}
.about-website{display:inline-block;color:#cbdcf0;font-size:14px;padding:4px 9px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#7d8ba0;border-radius:4px}
.about-website:hover{color:var(--accent);text-decoration-color:var(--accent)}
.about-website:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.about-details{border-top:1px solid var(--line);padding-top:14px;color:#b9c7d8;font-size:12px;line-height:1.75}
.about-details p{margin:0 0 10px}.about-details strong{color:#e1e9f4;font-weight:600}
.about-caution{border-left:2px solid #7c535c;padding-left:11px;color:#b1bccb}
.about-dialog .dialog-actions{margin-top:14px}
@media(max-height:780px){.about-logo{width:174px;height:174px;margin-bottom:8px}.about-subtitle{margin:8px 0 12px}.about-identity{padding-bottom:14px}}
@media(max-width:700px){.brand-logo{width:40px;height:40px}.brand{gap:8px}.about-dialog{padding:18px}.about-identity h2{font-size:22px}.about-company{font-size:16px}.about-subtitle{letter-spacing:.8px}.about-subtitle .version{display:inline-block}.about-logo{width:190px;height:190px}}

/* 1.1.0: operación EPSG independiente, sin cambiar el tema corporativo. */
.operation-panel{border-color:#80424c}.operation-panel h2{margin:0 0 8px}.operation-info{padding:9px;margin:8px 0;background:#172b35;border-left:3px solid #69d9a9;font-size:11px;line-height:1.5}.project-panel .button-row{flex-wrap:wrap}.reproject-unit{color:#99c5d7}

/* Catálogo EPSG 1.1.2: mismo selector en origen y destino. */
.crs-field{margin:12px 0;min-width:0}.crs-field>label{display:block;margin-bottom:7px}
.crs-choose{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;background:#101721;border:1px solid #46576b;min-height:60px;padding:10px 12px}
.crs-choose:hover{border-color:#ea5263;background:#1b2532}.crs-choose>span:first-child{min-width:0}.crs-choose strong{display:block;font-size:13px;color:#edf3fc;overflow-wrap:anywhere}
.crs-choose small{display:block;margin-top:5px;color:#aebfd3;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.crs-choose-arrow{font-size:25px;color:#ed6474;flex-shrink:0}
.crs-auto{font-size:11px;padding:5px 0;margin-top:5px;background:transparent;border:0;text-align:left;color:#b7c9e1;text-decoration:underline}
.crs-pending{border-left:2px solid #dca34d;padding-left:8px;color:#f5c879}
.crs-dialog{width:min(1260px,96vw);max-width:96vw;height:min(940px,96dvh);max-height:96dvh;padding:0;background:#1b222c;border:1px solid #47515f;border-radius:12px;color:#eaf0f8;overflow:hidden}
.crs-dialog[open]{display:flex;flex-direction:column}.crs-dialog::backdrop{background:#050a10bd}
.crs-dialog-heading{display:flex;align-items:center;gap:18px;flex:0 0 auto;padding:12px 18px;background:#282f39;border-bottom:1px solid #424b57}
.crs-dialog-heading h2{margin:0;font-size:16px}.crs-dialog-heading>span{font-size:12px;color:#afbdcb}.crs-dialog-heading button{margin-left:auto;font-size:26px;line-height:1}
.crs-banner{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:12px 26px;background:linear-gradient(105deg,#121b28,#263349);border-bottom:1px solid #3b495c;flex:0 0 auto}
.crs-banner h2{font-size:25px;margin:0 0 5px}.crs-banner p{font-size:12px;color:#c4d0de;margin:0}.crs-banner img{object-fit:contain}
.crs-body{padding:14px 18px 8px;display:flex;flex-direction:column;gap:10px;min-height:0;flex:1}
.crs-section-heading{display:flex;align-items:baseline;gap:16px;flex-shrink:0}.crs-section-heading h3{font-size:14px;margin:0}.crs-section-heading span{font-size:11px;color:#a2b0c2}
.crs-recent-scroll{max-height:136px;min-height:68px;overflow:auto;flex:0 0 auto;border:1px solid #343e4c}
.crs-results-scroll{min-height:110px;overflow:auto;flex:1;border:1px solid #343e4c}
.crs-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.crs-table .crs-code-col{width:8%}.crs-table .crs-type-col{width:14%}.crs-table .crs-name-col{width:35%}
.crs-table th{position:sticky;top:0;z-index:1;background:#2b3441;font-size:12px;text-align:left;padding:9px 12px;color:#e2e9f1}
.crs-table td{padding:9px 12px;border-bottom:1px solid #303a46;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crs-table tr[data-code]{cursor:pointer;outline-offset:-2px}.crs-table tr[data-code]:hover{background:#293746}.crs-table tr.selected{background:#69313f;color:#fff;box-shadow:inset 3px 0 #ff7182}
.crs-table tr[data-code]:focus-visible{outline:2px solid #fa7d8c}.crs-table .crs-empty{color:#aebdce;text-align:center;white-space:normal;font-size:12px}
.crs-filters{display:flex;align-items:flex-end;gap:14px;flex-shrink:0}.crs-filters label{margin:0;display:flex;align-items:center;gap:9px;font-size:12px}.crs-filters input,.crs-filters select{margin:0;min-height:37px;font-size:12px}.crs-filters select{width:175px}
.crs-filters .crs-search-label{flex:1;min-width:0}.crs-search-label input{min-width:100px;width:100%}.crs-obsolete-label{white-space:nowrap}.crs-obsolete-label input,.crs-deprecated-accept input{width:16px;min-height:16px;accent-color:#e45969}
.crs-pagination{display:flex;align-items:center;gap:8px;flex-shrink:0}.crs-pagination>span{font-size:11px;color:#b4c3d5;flex:1}.crs-pagination button{font-size:11px;padding:6px 11px}
.crs-selection{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:5px 16px;padding:12px 14px;border:1px solid #4d576b;border-radius:7px;background:#202b3a;max-height:210px;overflow:auto;flex:0 0 auto}
.crs-selection h3{font-size:14px;margin:0 0 5px}.crs-selection p{font-size:11px;line-height:1.45;margin:3px 0;overflow-wrap:anywhere}.crs-vertical{border-left:1px solid #455167;padding-left:14px;display:flex;flex-direction:column;justify-content:center;font-size:12px;gap:7px}.crs-vertical>span{color:#b5c4d5}
.crs-selection .crs-reason{grid-column:1/-1;color:#f3c57f}.crs-deprecated-accept{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:12px;color:#ffd38a;margin:5px 0}
.crs-selection details{grid-column:1/-1;font-size:11px}.crs-selection pre{font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.crs-footer{padding:12px 18px;display:flex;align-items:center;gap:12px;border-top:1px solid #3a4450;background:#18202b;flex:0 0 auto}.crs-footer p{font-size:11px;line-height:1.4;margin:0;color:#afc0d5;flex:1}.crs-footer button{min-width:110px}
@media(max-height:780px){.crs-banner{padding:7px 20px}.crs-banner img{width:45px;height:45px}.crs-banner h2{font-size:20px}.crs-body{padding:9px 14px;gap:7px}.crs-recent-scroll{max-height:92px}.crs-selection{max-height:157px;padding:9px 12px}.crs-dialog-heading{padding:8px 16px}.crs-footer{padding:8px 16px}}
@media(max-width:740px){.crs-dialog{height:96dvh}.crs-banner h2{font-size:19px}.crs-banner p{font-size:10px}.crs-dialog-heading{gap:8px}.crs-dialog-heading h2{font-size:13px}.crs-dialog-heading>span{font-size:10px}.crs-filters{flex-wrap:wrap;gap:7px}.crs-filters label{font-size:11px}.crs-filters select{width:140px}.crs-search-label{order:3;flex-basis:100%!important}.crs-selection{grid-template-columns:minmax(0,1fr);max-height:145px}.crs-vertical{border-left:0;border-top:1px solid #455167;padding:6px 0 0}.crs-table .crs-code-col{width:14%}.crs-table .crs-type-col{width:18%}.crs-table .crs-name-col{width:39%}.crs-table td,.crs-table th{padding:8px 6px;font-size:11px}.crs-footer{flex-wrap:wrap;gap:7px}.crs-footer p{flex-basis:100%}.crs-footer button{flex:1}.crs-section-heading span{display:none}}
