*{box-sizing:border-box}
:root{font-family:Arial,Helvetica,sans-serif;color:#1f2937;background:#fff}
body{margin:0;background:#fff}
.page{min-height:100vh;padding:16px 0}
.converter{width:min(960px,100%);margin:0 auto;padding:28px;background:#fff}
h1{margin:0 0 8px;font-size:clamp(1.8rem,4vw,2.5rem)}
h2{font-size:1.25rem;margin:0 0 8px}
header p,.section-heading p,.batch-step>p{color:#4b5563;line-height:1.55}
header p{margin:0 0 22px}
.tabs{display:flex;gap:8px;border-bottom:1px solid #d8dee6;margin-bottom:24px}
.tab-button{border:0;border-bottom:3px solid transparent;background:transparent;padding:12px 16px;cursor:pointer;font:inherit;font-weight:700;color:#4b5563}
.tab-button.is-active{color:#155e75;border-bottom-color:#155e75}
.tab-panel{display:block}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.crs-panel{margin:0;padding:18px;border:1px solid #cfd6df;border-radius:9px}
.crs-panel legend{padding:0 8px;font-weight:700}
label span{display:block;margin-bottom:7px;font-weight:700}
input,select,button{font:inherit}
input,select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #aeb7c2;border-radius:7px;background:#fff}
input[type=file]{padding:8px}
.coordinates{margin-top:22px}.coordinates input{direction:ltr;text-align:left}
.utm-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid #e1e5ea}
.is-hidden{display:none!important}
.check-row{grid-column:1/-1;display:flex;align-items:center;gap:9px}
.check-row input{width:auto;min-height:auto}.check-row span{margin:0;font-weight:400}
.help-text{grid-column:1/-1;margin:0;color:#4b5563;font-size:.9rem;line-height:1.45}
.source-help{margin-top:12px}
button{min-height:44px;padding:10px 18px;border-radius:7px;cursor:pointer}
.primary{width:100%;margin-top:20px;color:#fff;background:#155e75;border:1px solid #155e75;font-weight:700}
.secondary{margin-top:16px;margin-right:8px;color:#1f2937;background:#fff;border:1px solid #8b97a6}
.compact{margin-top:0;width:auto}
button:hover{filter:brightness(.96)}
button:disabled{opacity:.55;cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(21,94,117,.25);outline-offset:2px}
.message{min-height:24px;margin:14px 0 0;font-weight:700;line-height:1.5}
.message.error{color:#a31621}.message.success{color:#176b36}
.result{margin-top:18px;padding:18px;border:1px solid #cfd6de;border-radius:9px;background:#f8fafc}
.result h2{margin:0 0 6px}.result-crs{margin:0 0 12px;color:#4b5563}.result dl{margin:0}
.result dl div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:8px 0;text-align:left}
.result dt{font-weight:700}.result dd{margin:0;overflow-wrap:anywhere}
.note{margin-top:22px;padding:14px;border-left:4px solid #64748b;background:#f8fafc;line-height:1.6}
.note.warning{border-left-color:#a16207;background:#fffbeb}
.batch-step{margin-top:18px;padding:20px;border:1px solid #d8dee6;border-radius:10px}
.batch-step h2{margin-top:0}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.section-heading p{margin:0}
.file-picker{display:block;margin-top:14px}
.privacy-note{margin:10px 0 0;font-size:.92rem}
.table-wrap{overflow:auto;max-height:360px;border:1px solid #d8dee6;border-radius:8px;margin-top:14px}
table{border-collapse:collapse;width:100%;min-width:620px;font-size:.9rem}
th,td{padding:9px 10px;border-bottom:1px solid #e5e7eb;text-align:left;white-space:nowrap}
th{position:sticky;top:0;background:#f8fafc;font-weight:700;z-index:1}
tr:last-child td{border-bottom:0}
.progress-wrap{display:flex;align-items:center;gap:12px;margin-top:16px}
progress{width:100%;height:18px}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.stats-grid div{padding:14px;background:#fff;border:1px solid #d8dee6;border-radius:8px;text-align:center}
.stats-grid strong{display:block;font-size:1.6rem}
.stats-grid span{display:block;color:#4b5563;margin-top:4px}
@media(max-width:700px){
  .converter{padding:18px}
  .grid{grid-template-columns:1fr}
  .utm-options{grid-template-columns:1fr}
  .secondary{margin-right:0}
  .section-heading{display:block}
  .section-heading .compact{margin-top:12px}
  .stats-grid{grid-template-columns:1fr}
  .tabs{overflow-x:auto}
  .tab-button{white-space:nowrap}
}


/* Version 2.1 — interactive maps */
.map-section{
  margin-top:22px;
  padding:20px;
  border:1px solid #d8dee6;
  border-radius:10px;
  background:#fff;
}
.map-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.map-actions .secondary{margin:0}
.map{
  width:100%;
  height:430px;
  margin-top:14px;
  border:1px solid #cfd6de;
  border-radius:9px;
  overflow:hidden;
  background:#e5e7eb;
}
.batch-map{height:390px}
.map-readout{margin-top:10px}
.batch-map-section{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #d8dee6;
}
.batch-map-section h3{margin:0 0 5px}
.leaflet-container{font-family:Arial,Helvetica,sans-serif}
.coordinate-popup{line-height:1.45}
@media(max-width:700px){
  .map{height:360px}
  .map-actions{justify-content:flex-start;margin-top:10px}
}


/* Version 2.2 — local EPSG/CRS catalog search */
.crs-search{
  margin-bottom:8px;
}
.crs-search-results{
  position:relative;
  margin:-2px 0 12px;
  border:1px solid #aeb7c2;
  border-radius:7px;
  background:#fff;
  max-height:230px;
  overflow:auto;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  z-index:30;
}
.crs-result-button{
  display:block;
  width:100%;
  min-height:0;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid #e5e7eb;
  border-radius:0;
  background:#fff;
  color:#1f2937;
  text-align:left;
}
.crs-result-button:last-child{border-bottom:0}
.crs-result-button:hover,
.crs-result-button:focus{background:#f0f7fa}
.crs-result-code{
  display:inline-block;
  min-width:92px;
  font-weight:700;
  color:#155e75;
}
.crs-result-meta{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.84rem;
}


/* Version 2.3 — reverse geocoding and live cursor coordinates */
.place-result{
  margin-top:16px;
  padding:16px;
  border:1px solid #cfd6de;
  border-radius:8px;
  background:#fff;
}
.place-result h3{margin:0 0 8px}
.place-result>p{margin:0 0 10px;line-height:1.5}
.place-result dl{margin:0}
.place-result dl div{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px;
  padding:5px 0;
}
.place-result dt{font-weight:700}
.place-result dd{margin:0;overflow-wrap:anywhere}
.geocoding-attribution{
  margin-top:12px!important;
  color:#64748b;
  font-size:.82rem;
}
.cursor-coordinate-panel{
  margin-top:12px;
  padding:13px 14px;
  border:1px solid #d8dee6;
  border-radius:8px;
  background:#f8fafc;
}
.cursor-coordinate-panel>strong{display:block;margin-bottom:9px}
.cursor-grid{
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:7px 12px;
  align-items:start;
}
.cursor-grid span{font-weight:700}
.cursor-grid code{
  direction:ltr;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
  color:#0f4c5c;
}
.policy-note{
  margin-top:10px!important;
  padding:10px 12px;
  border-left:3px solid #64748b;
  background:#f8fafc;
}
.map-actions .secondary:disabled{opacity:.5}
@media(max-width:700px){
  .cursor-grid{grid-template-columns:1fr}
  .cursor-grid span{margin-top:4px}
  .place-result dl div{grid-template-columns:1fr;gap:2px}
}


/* Version 2.4 — advanced map tools and shareable links */
.cursor-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.cursor-heading .secondary{margin:0}
.cursor-crs-select{display:block;margin-bottom:12px}
.cursor-primary{
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  gap:12px;
  padding:12px;
  border:1px solid #b7c3cf;
  border-radius:7px;
  background:#fff;
}
.cursor-primary span{font-weight:700}
.cursor-primary code{
  direction:ltr;
  text-align:left;
  color:#0f4c5c;
  overflow-wrap:anywhere;
}
.cursor-more{margin-top:12px}
.cursor-more summary{cursor:pointer;font-weight:700}
.cursor-more .cursor-grid{margin-top:10px}
.share-link-notice{
  margin-top:10px;
  color:#4b5563;
  font-size:.9rem;
}
@media(max-width:700px){
  .cursor-heading{display:block}
  .cursor-heading .secondary{margin-top:10px}
  .cursor-primary{grid-template-columns:1fr}
}


/* Version 2.4.1 — improved guidance and emphasized CRS selection */
.tool-introduction{
  margin:18px 0 22px;
  padding:16px 18px;
  border:1px solid #d7e3ec;
  border-left:4px solid #155e75;
  border-radius:9px;
  background:#f7fbfd;
}
.tool-introduction>p{
  margin:0;
  color:#374151;
  line-height:1.6;
}
.usage-details{
  margin-top:12px;
}
.usage-details summary{
  cursor:pointer;
  font-weight:700;
  color:#155e75;
}
.usage-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:14px;
}
.usage-grid section{
  padding:14px;
  border:1px solid #d8e3ea;
  border-radius:8px;
  background:#fff;
}
.usage-grid h2{
  margin:0 0 8px;
  font-size:1rem;
  color:#155e75;
}
.usage-grid ol{
  margin:0;
  padding-left:20px;
}
.usage-grid li{
  margin-bottom:6px;
  line-height:1.45;
}
.workflow-step{
  margin:18px 0 10px;
  font-size:1rem;
  color:#155e75;
}
.coordinate-step{margin-top:24px}
.convert-step{margin-top:20px}

.selected-crs-select{
  border:2px solid #1976d2!important;
  background:#eef6ff!important;
  color:#0f3f73;
  font-weight:700;
  box-shadow:0 0 0 2px rgba(25,118,210,.08);
}
.selected-crs-select:hover{
  border-color:#0d5cab!important;
  background:#e7f2ff!important;
}
.selected-crs-select:focus{
  border-color:#0d47a1!important;
  box-shadow:0 0 0 4px rgba(25,118,210,.20)!important;
  outline:none!important;
}

@media(max-width:850px){
  .usage-grid{grid-template-columns:1fr}
}


/* Version 2.5 — global CRS expansion and English documentation center */
.documentation-intro{margin:0 0 18px}.documentation-intro p{color:#4b5563;line-height:1.6}
.documentation-note{margin-top:8px!important}
.documentation-toolbar{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:18px}
.documentation-layout{display:grid;grid-template-columns:minmax(250px,34%) minmax(0,1fr);gap:18px;align-items:start}
.documentation-list{max-height:720px;overflow:auto;border:1px solid #d8dee6;border-radius:9px;padding:8px;background:#f8fafc}
.documentation-card{display:block;width:100%;min-height:0;margin:0 0 8px;padding:12px;border:1px solid #d8dee6;background:#fff;text-align:left}
.documentation-card:hover,.documentation-card:focus{border-color:#155e75;background:#f0f7fa}
.documentation-card strong,.documentation-card span,.documentation-card small{display:block}.documentation-card strong{color:#155e75}.documentation-card span{margin-top:3px;font-weight:700}.documentation-card small{margin-top:4px;color:#64748b}
.documentation-details{min-height:480px;padding:22px;border:1px solid #d8dee6;border-radius:10px;background:#fff}
.documentation-details p{line-height:1.65}.documentation-heading{display:flex;justify-content:space-between;gap:16px}.documentation-heading h2{font-size:1.5rem}.eyebrow{margin:0 0 4px!important;color:#155e75;font-weight:700}
.documentation-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:20px 0}.documentation-facts div{padding:10px 0;border-bottom:1px solid #e5e7eb}.documentation-facts dt{font-weight:700}.documentation-facts dd{margin:4px 0 0;color:#4b5563}
.documentation-details section{margin-top:20px}.documentation-details h3{margin-bottom:5px}
@media(max-width:760px){.documentation-toolbar,.documentation-layout,.documentation-facts{grid-template-columns:1fr}.documentation-list{max-height:320px}.documentation-heading{display:block}.documentation-heading button{margin-top:12px}}
