@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{font-family:'Noto Sans KR',sans-serif;color:#202f33;background:#f3f6f7;font-synthesis:none;--green:#14604f;--border:#dce3e6}*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,select{font:inherit}button{cursor:pointer;background:white;border:1px solid #d3dce0;border-radius:7px;padding:9px 15px;font-size:14px;font-weight:500;color:#294047}button:hover{background:#edf5f1;border-color:#90aaa2}button:disabled{opacity:.5;cursor:default}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#104c3e;color:white}input,select{width:100%;border:1px solid #d3dce0;border-radius:6px;padding:10px;background:white;min-height:42px;color:#27393e;font-size:14px}input:focus,select:focus,button:focus-visible{outline:3px solid #93c6b5;outline-offset:2px}header{background:white;border-bottom:1px solid var(--border);padding:20px 3%;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#193d32;font-weight:800;font-size:24px}.brand-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:10px;background:var(--green);color:white;font-size:31px;font-weight:400}.brand small{display:block;color:#65777e;font-size:12px;letter-spacing:.04em;font-weight:500}.header-right{display:flex;align-items:center;gap:10px}.local-label{font-size:12px;color:#708086;margin-right:16px}main{max-width:1600px;margin:auto;padding:34px 3% 20px}.page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{font-size:11px!important;letter-spacing:.16em;font-weight:700;color:var(--green)!important;margin:0 0 8px!important}h1{font-size:30px;letter-spacing:-.05em;margin:0 0 8px}p{line-height:1.7}.page-title p{font-size:14px;color:#677a82;margin:0}.year-label{display:flex;align-items:center;gap:12px;font-size:14px}.year-label input{width:105px;font-weight:700}.stats{display:grid;grid-template-columns:1fr 1fr 1.35fr 1fr;gap:16px;margin-bottom:24px}.stats article{background:white;border:1px solid var(--border);border-radius:10px;padding:20px 24px}.stats article>span{font-size:14px;color:#526970;font-weight:500}.stats article>div{font-size:16px;color:#526970;margin:8px 0 4px}.stats strong{font-size:32px;color:#183d33;letter-spacing:-.04em;margin-right:5px}.stats small{font-size:12px;color:#829096}.stats b{font-weight:400}.stats .attention{background:#f9fbfc}.attention strong{color:#a46a25}.workspace{display:grid;grid-template-columns:256px 1fr;background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}aside{padding:21px;border-right:1px solid var(--border)}h2{font-size:16px;margin:0}.aside-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.text-button{border:0;background:transparent;padding:3px 0;color:var(--green);font-size:12px}label{display:block;font-size:14px;font-weight:500;margin-bottom:16px}label input,label select{margin-top:7px}.split{display:grid;grid-template-columns:1fr 1fr;gap:8px}hr{border:0;border-top:1px solid var(--border);margin:5px 0 18px}h3{font-size:14px;margin:0 0 14px}.check{display:flex;gap:9px;align-items:center;font-weight:400;margin-bottom:12px}.check input{width:16px;min-height:16px;height:16px;margin:0;accent-color:var(--green)}.wide{width:100%;margin:5px 0}.aside-note{padding-top:22px;font-size:12px;color:#70828a}.aside-note strong{font-size:13px;color:#3e545c}.aside-note p{line-height:1.9;margin:8px 0}.map-toolbar{height:65px;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-bottom:1px solid var(--border);gap:10px}.map-toolbar>div{display:flex;gap:10px;align-items:center}.map-toolbar strong{font-size:14px}.badge{background:#eef3f4;color:#6c7c84;font-size:12px;border-radius:5px;padding:4px 7px;white-space:nowrap}.map-wrap{height:565px;position:relative;background-color:#edf2f3;background-image:linear-gradient(#dce5e766 1px,transparent 1px),linear-gradient(90deg,#dce5e766 1px,transparent 1px);background-size:36px 36px}#map{position:absolute;inset:0}.map-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;background:radial-gradient(ellipse,#f7fafbd9,transparent)}.map-empty[hidden]{display:none}.map-symbol{height:65px;width:65px;font-size:48px;line-height:65px;color:var(--green);margin-bottom:20px}.map-empty h2{font-size:22px;letter-spacing:-.03em}.map-empty p{font-size:14px;color:#6c7e85;margin:12px 0 22px}.map-empty>span{font-size:12px;color:#7d8a90;margin-top:16px}.map-legend{position:absolute;z-index:2;bottom:18px;left:18px;background:#fffffff2;box-shadow:0 2px 10px #1c3c3410;border:1px solid var(--border);padding:10px 14px;border-radius:6px;display:flex;gap:18px;pointer-events:none;font-size:12px;color:#4d656c}.map-legend span{display:flex;align-items:center;gap:8px}.legend-marker{width:8px;height:8px;border-radius:50%;background:#206e59}.legend-area{height:10px;width:13px;background:#20875b40;border:1px solid #298365}.progressbar{display:flex;gap:10px;justify-content:space-between;padding:14px 20px;font-size:12px;color:#5c737b;border-top:1px solid var(--border)}#source{color:#8a989e;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-panel{background:#fff;border:1px solid var(--border);border-radius:12px;margin-top:24px;overflow:hidden}.table-title{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;gap:15px}.table-title h2 span{color:var(--green);font-size:14px;margin-left:8px}.table-title p{margin:5px 0 0;color:#7c8a90;font-size:12px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:14px}th{background:#f7f9fa;padding:13px 22px;color:#667b83;font-size:12px;font-weight:500;border-block:1px solid var(--border)}td{padding:16px 22px;border-bottom:1px solid #edf1f2}td small{display:block;color:#8a989e;font-size:12px;margin-top:4px}tr:hover td{background:#f8fbfa}.pill{display:inline-block;padding:4px 8px;border-radius:5px;background:#f1f4f5;color:#75858b;font-size:12px}.pill.good{background:#e9f5ef;color:#287452}.pill.warn{background:#fff2de;color:#9a6820}.table-empty{text-align:center;padding:43px 20px 38px;color:#667e86}.table-empty strong{font-size:15px;font-weight:500}.table-empty p{font-size:12px;color:#8a989e}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;padding:15px;font-size:12px;color:#6b7c83}footer{display:flex;justify-content:space-between;color:#8a989e;font-size:12px;padding:24px 0}dialog{border:1px solid var(--border);border-radius:14px;box-shadow:0 24px 80px #143b3b35;padding:28px;max-width:520px;width:calc(100% - 32px);color:#273b43}dialog::backdrop{background:#142d3a65;backdrop-filter:blur(3px)}dialog h2{font-size:21px}dialog p{font-size:14px;color:#637a83}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.field-help{font-size:12px!important;line-height:1.8}code{display:block;padding:8px;background:#f2f6f7;overflow-wrap:anywhere;font-size:12px}#toast{position:fixed;z-index:100;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:#203c34;color:white;padding:14px 23px;border-radius:8px;box-shadow:0 5px 20px #16342922;font-size:14px;display:none}dl{display:grid;grid-template-columns:100px 1fr;font-size:14px;gap:13px}dt{color:#72868e}dd{margin:0;overflow-wrap:anywhere}.notice{background:#fff4e3;border-radius:7px;padding:12px;font-size:13px;color:#8a672c}.map-popup{padding:12px;min-width:170px;font-size:14px;white-space:normal}.map-popup strong,.map-popup span{display:block;margin-bottom:5px}.map-popup button{margin-top:6px}.error-text{color:#a36b2a!important}
@media(min-width:1400px){.map-wrap{height:565px}}@media(max-width:1000px){.local-label{display:none}.stats{gap:10px}.stats article{padding:16px}.stats strong{font-size:27px}.workspace{grid-template-columns:225px 1fr}.map-toolbar{padding:12px}.map-toolbar button{padding:8px}.map-toolbar .badge{display:none}.progressbar{flex-wrap:wrap}.stats small{font-size:11px}}@media(max-width:720px){header{padding:14px 4%;align-items:flex-start}.brand{font-size:21px}.brand small{font-size:10px}.header-right{flex-wrap:wrap;justify-content:flex-end;gap:6px}.header-right button{font-size:12px;padding:8px 10px}main{padding:24px 4%}.page-title{gap:10px}.page-title h1{font-size:25px}.page-title p{font-size:12px}.year-label{display:block;font-size:12px}.year-label input{width:90px}.stats{grid-template-columns:1fr 1fr}.stats strong{font-size:26px}.workspace{display:flex;flex-direction:column}aside{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;border-right:0;border-bottom:1px solid var(--border);padding:18px}.aside-title,.aside-note,aside hr,aside h3{grid-column:1/-1}.aside-note{padding-top:12px}.aside-note p{display:none}.map-wrap{height:390px}.map-toolbar{height:auto;min-height:60px;flex-wrap:wrap}.map-toolbar button{font-size:12px}.table-title{padding:18px;align-items:flex-start}.table-title button{font-size:12px}.table-title p{max-width:220px}.progressbar{padding:12px}.stats article{padding:15px}footer{display:block}footer span{display:block;line-height:1.7;margin-top:8px}th,td{padding:13px 16px}.map-legend{font-size:11px;gap:10px;left:10px}#source{max-width:100%}}

.main-panel{display:flex;flex-direction:column;min-width:0}.map-wrap{flex:1;min-height:565px}.progressbar{margin-top:auto}@media(max-width:720px){.map-wrap{flex:none;min-height:390px}}

.cadastral-note{position:absolute;z-index:2;top:12px;left:12px;max-width:calc(100% - 60px);padding:9px 12px;border:1px solid #dce3e6;background:#fffffff2;border-radius:6px;font-size:12px;line-height:1.6;color:#576b73;pointer-events:none}.cadastral-note[hidden]{display:none}

.parcel-map-card{display:flex;flex-direction:column;gap:3px;text-align:left;min-width:170px;max-width:240px;padding:10px 13px;background:#fffffff5;border:2px solid #d7b733;border-radius:9px;box-shadow:0 3px 14px #0005;white-space:normal;line-height:1.45;color:#20362e}.parcel-map-card:hover{background:#fffbea;border-color:#ad8d00}.parcel-map-card strong{font-size:14px}.parcel-map-card span{font-size:12px}.parcel-map-card small{font-size:11px;color:#5b6c65}.parcel-map-card .parcel-remark{max-width:210px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.legend-area{background:#ffe45c!important;border-color:#b29400!important}

#pickPanel{padding:12px;background:#eef6ff;border:1px solid #a7c6e6;border-radius:8px;margin-block:12px}#pickStatus{font-size:14px;line-height:1.6}#pickList{max-height:180px;overflow:auto}#pickList button{display:block;width:100%;text-align:left;font-size:12px;margin-bottom:5px}#startPick[aria-pressed="true"]{background:#2469a3}.export-actions{display:flex;flex-wrap:wrap;gap:8px}textarea{font:inherit;width:100%;border:1px solid #d3dce0;border-radius:6px;padding:10px}#contractEditor{max-width:600px}#entryError{color:#a33526}#saveStatus{display:inline}#contractMembers{max-height:130px;overflow:auto}#pickPanel[hidden]{display:none}.bundle-card{border-color:#4ac7e7}.bundle-tag{color:#166080!important}@media(max-width:720px){#pickPanel{grid-column:1/-1}.export-actions{max-width:180px}.export-actions button{width:100%}}

.map-address{display:flex;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid var(--border);background:white}.map-address label{font-size:13px;white-space:nowrap;margin:0}.map-address input{flex:1;min-width:0}.map-address button{white-space:nowrap}

.parcel-map-label{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#173c32ed;color:#fff;border:1px solid #ffe45c;border-radius:5px;padding:4px 8px;font-size:14px;line-height:1.4;box-shadow:0 2px 5px #0004}.parcel-map-label:hover,.parcel-map-label:focus-visible{background:#315d4d;outline:2px solid white}.selected-map-card{position:relative;padding-top:12px}.selected-map-card .parcel-map-card{padding-top:18px;max-width:240px;background:#fff}.selected-map-card .parcel-map-card span{font-size:14px}.selected-map-card .parcel-map-card small{font-size:12px}.map-card-close{position:absolute;right:5px;top:15px;z-index:1;width:28px;height:28px;padding:0;border:0;background:#edf2ee;color:#20362e;border-radius:50%;font-size:22px;line-height:1}.selected-map-card .parcel-map-card strong{padding-right:23px}#labelHint{line-height:1.6}

.query-panel{padding:20px;background:white;border:1px solid var(--border);border-radius:12px;margin-bottom:20px}.query-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.query-heading h2{font-size:18px;margin:0}.query-panel p{font-size:14px;color:#5b6c65;line-height:1.6}#queryChecks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}#queryChecks fieldset{min-width:0;border:1px solid #dce3e6;border-radius:8px;padding:12px;max-height:180px;overflow:auto}#queryChecks legend{font-weight:700;padding:0 6px}#queryChecks .check{font-size:14px;margin:6px 0}.table-scroll table{min-width:1300px}.map-wrap{flex:none;height:600px;min-height:0}.main-panel{align-self:start}.workspace{align-items:start}@media(max-width:720px){#queryChecks{grid-template-columns:1fr 1fr}.map-wrap{height:450px;min-height:0}.main-panel{width:100%}.query-heading{flex-wrap:wrap}}

.table-panel + .workspace{margin-top:24px}

.map-wrap{height:460px;min-height:0}@media(max-width:720px){.map-wrap{height:350px;min-height:0}}

#queryChecks{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:900px){#queryChecks{grid-template-columns:repeat(2,minmax(0,1fr))}}

.my-location-dot{width:18px;height:18px;border-radius:50%;background:#1675ed;border:3px solid white;box-shadow:0 0 0 5px #1675ed33,0 2px 7px #0005;pointer-events:none}

/* Compact map-first workspace */
.page-title{margin-bottom:12px}.page-title h1{font-size:22px}.page-title .eyebrow,.page-title p:not(.eyebrow){display:none}.stats{margin-bottom:14px}.stats article{padding:10px 16px}.stats strong{font-size:24px}.stats small{display:none}.query-panel{padding:12px 16px;margin-bottom:12px}.query-panel summary{cursor:pointer;font-weight:700;font-size:16px}.query-panel summary span{font-weight:400;font-size:14px;color:#52665d;margin-left:12px}.query-panel summary::marker{color:#17634e}.query-heading{margin-top:14px}.view-tabs{display:flex;gap:8px;margin-bottom:12px}.view-tabs button[aria-pressed="true"]{background:#155d4b;color:white}.view-tabs #mapOptions{margin-left:auto}.workspace{display:block}.workspace:has(#mapSidebar:not([hidden])){display:grid;grid-template-columns:250px minmax(0,1fr)}#mapSidebar{max-height:65vh;overflow:auto}.main-panel{width:100%}.map-wrap{height:clamp(320px,56vh,620px)}.table-panel{margin:0}.table-scroll{max-height:58vh;overflow:auto}.table-scroll thead{position:sticky;top:0;z-index:1;background:#f2f6f7}.table-title{padding:12px 18px}.table-title p{margin:4px 0}.table-panel + .workspace{margin-top:0}.workspace[hidden],.table-panel[hidden],#mapSidebar[hidden],#mapOptions[hidden]{display:none!important}#detail{position:fixed;inset:0 0 0 auto;margin:0;width:min(460px,95vw);max-width:95vw;height:100dvh;max-height:100dvh;border-radius:12px 0 0 12px;overflow:auto}#detail::backdrop{background:#0003}main{padding-top:18px}footer{margin-top:12px}@media(max-width:720px){.stats{grid-template-columns:repeat(4,1fr);gap:5px}.stats article{padding:8px 6px}.stats article>span{font-size:11px}.stats strong{font-size:18px}.stats article div{font-size:11px}.workspace:has(#mapSidebar:not([hidden])){display:flex;flex-direction:column}#mapSidebar{width:100%;max-height:240px;overflow:auto}.map-wrap{height:48dvh;min-height:300px}.map-toolbar{gap:6px}.map-toolbar>div:last-child{display:flex;flex-wrap:wrap;gap:4px}.query-panel summary span{display:block;margin:5px 0 0;font-size:12px}.table-scroll{max-height:60dvh}#detail{inset:auto 0 0 0;width:100%;max-width:100%;height:75dvh;max-height:75dvh;border-radius:16px 16px 0 0}.page-title{margin-bottom:10px}.page-title h1{font-size:20px}.view-tabs button{padding:9px 12px}}

.sync-panel{max-width:1400px;margin:20px auto 0;padding:22px 26px;background:#fff;border:1px solid #dce5e1;border-radius:14px;color:#223d34;box-shadow:0 3px 16px #183d2906}.sync-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.sync-heading h2{font-size:20px;margin:4px 0 0}.sync-eyebrow{font-size:12px;color:#677c72}.sync-badge{font-size:12px;border-radius:20px;padding:6px 11px;background:#edf5f1;color:#23634d;white-space:nowrap}.sync-status{display:flex;gap:9px;align-items:center;background:#f3f7f5;border-radius:8px;padding:12px 14px;margin:16px 0;font-size:14px;line-height:1.6}.sync-status-dot{width:7px;height:7px;border-radius:50%;background:#84988e;flex-shrink:0}.sync-tools summary{cursor:pointer;font-size:14px;font-weight:600;padding:2px 0 12px}.sync-connect{display:flex;align-items:flex-end;gap:10px;max-width:620px}.sync-connect label{flex:1;margin:0;font-size:14px}.sync-connect input{width:100%;margin-top:7px}.sync-connect button{white-space:nowrap;min-height:43px}.sync-help{font-size:12px;color:#65786f;line-height:1.7;margin:8px 0 14px}.sync-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.sync-actions article{padding:16px;border:1px solid #e0e7e3;border-radius:10px;background:#fbfcfb}.sync-action-label{display:block;font-size:12px;color:#647b70;margin-bottom:10px}.sync-actions button{width:100%;font-size:14px;background:white}.sync-actions p{font-size:13px;line-height:1.65;color:#53695e;margin:10px 0 0}.sync-guide{font-size:14px;line-height:1.7;margin:15px 0 0}.sync-panel button:focus-visible,.sync-tools summary:focus-visible{outline:3px solid #63a991;outline-offset:3px}@media(max-width:1450px){.sync-panel{margin:16px 3% 0}}@media(max-width:720px){.sync-panel{padding:16px;margin:12px 4% 0}.sync-heading h2{font-size:18px}.sync-actions{grid-template-columns:1fr}.sync-connect{flex-wrap:wrap}.sync-connect label{min-width:180px}.sync-status{align-items:flex-start}.sync-status-dot{margin-top:8px}.sync-actions article{padding:13px}}

.sync-compact{display:flex;align-items:center;gap:8px;padding:10px 3%;border-bottom:1px solid #dce5e1;background:#f5f8f6}.sync-compact button{white-space:nowrap;font-size:14px;padding:8px 12px}.sync-compact span{font-size:13px;color:#50665c;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#syncDialog{width:min(880px,94vw);max-width:94vw;max-height:85dvh;padding:18px;border:0;border-radius:14px;overflow:auto}#syncDialog::backdrop{background:#142c2355}#syncDialog .sync-panel{margin:0;padding:12px;border:0;box-shadow:none;max-width:100%}.sync-dialog-close{display:block;margin-left:auto}@media(max-width:720px){.sync-compact{flex-wrap:wrap}.sync-compact span{width:100%}#syncDialog{padding:12px}}

/* Small screens: keep branding, controls and map tools in separate rows. */
@media(max-width:720px){
  body{-webkit-text-size-adjust:100%}
  header{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 12px}
  .brand{min-width:0;white-space:nowrap;font-size:22px;gap:10px}
  .brand-icon{flex-shrink:0;width:38px;height:38px;font-size:28px}
  .brand small{font-size:11px;letter-spacing:0}
  .header-right{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:6px;width:100%;min-width:0}
  .header-right button{min-width:0;min-height:44px;padding:8px 4px;font-size:12px;white-space:nowrap}
  main{padding:12px 10px 16px}
  .page-title{justify-content:flex-end;margin-bottom:10px}
  .page-title>div{display:none}
  .year-label{display:flex;align-items:center;gap:8px;margin:0}
  .year-label input{margin:0;min-height:40px;padding:8px;width:90px}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .stats article{min-width:0;padding:10px 6px}
  .stats article>span{font-size:11px;white-space:nowrap}
  .stats article>div{margin:6px 0 0;overflow-wrap:anywhere}
  .stats strong{font-size:18px;margin-right:2px}
  .view-tabs button{min-height:44px;font-size:13px;padding:8px 10px}
  .map-toolbar{display:grid;grid-template-columns:minmax(0,1fr);padding:12px;gap:10px}
  .map-toolbar>div:last-child{display:grid;grid-template-columns:1fr 1.8fr 1fr;gap:6px;width:100%}
  .map-toolbar button{min-width:0;min-height:44px;padding:7px 3px;font-size:12px;white-space:nowrap}
  .map-address{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px 12px;gap:6px 8px}
  .map-address label{grid-column:1/-1;font-size:12px}
  .map-address input{width:100%;min-width:0}
  .map-address button{min-height:44px;padding:8px 10px;font-size:13px}
  input,select,textarea{font-size:16px}
  .map-empty{padding:16px}
  .map-empty h2{font-size:18px}
  .map-empty p{font-size:12px}
  .map-symbol{margin-bottom:8px}
  .map-legend{max-width:calc(100% - 20px);flex-wrap:wrap;gap:6px 10px;padding:8px}
  .table-title{flex-wrap:wrap}
  .export-actions{max-width:none;width:100%;display:grid;grid-template-columns:1fr 1fr}
  dialog{max-height:90dvh;overflow:auto;padding:18px}
  .sync-connect label{min-width:0;width:100%;flex-basis:100%}
  .sync-connect button{width:100%}
  #syncDialog .sync-panel{padding:6px}
}
@media(max-width:360px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .header-right button{font-size:11px}
  .map-toolbar button{font-size:11px}
}

/* Registration stays beside the map, independent of the settings drawer. */
.main-panel>#pickPanel{margin:12px 12px 0}
#directRegister[aria-pressed="true"]{background:#2469a3;border-color:#2469a3}
@media(max-width:720px){.view-tabs{gap:5px}.view-tabs button{padding:8px;font-size:12px}.main-panel>#pickPanel{margin:10px 10px 0}#pickList{max-height:100px}}

/* Keep all view actions in stable slots across map and list views. */
.view-tabs{display:grid;grid-template-columns:100px 110px minmax(0,1fr) 110px 110px;gap:8px}
.view-tabs #mapTab{grid-column:1}.view-tabs #listTab{grid-column:2}
.view-tabs #mapOptions{grid-column:4;margin-left:0}.view-tabs #directRegister{grid-column:5}
.view-tabs button{white-space:nowrap;min-width:0}
@media(max-width:720px){
 .view-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .view-tabs #mapOptions{grid-column:3}.view-tabs #directRegister{grid-column:4}
}

.sync-live{font-size:12px;max-width:none;white-space:nowrap;flex-shrink:0;color:#14604f;background:#edf5f1}.sync-conflicts section{border:1px solid #d6aa64;border-radius:8px;padding:12px;margin-top:12px}.sync-conflicts p{overflow-wrap:anywhere}.sync-conflicts button{margin:4px} @media(max-width:720px){.header-right .sync-live{grid-column:1/-1;grid-row:2;max-width:100%;white-space:nowrap;overflow-x:auto;min-height:32px}.header-right #uploadBtn{grid-column:3;grid-row:1}}

.variety-legend{display:flex;flex-wrap:wrap;gap:8px 16px;padding:10px 14px;background:#f3f6f7;font-size:12px}.variety-legend[hidden]{display:none}.variety-legend span{display:flex;align-items:center;gap:6px}.variety-legend i{width:16px;height:12px;border:1px solid #62716a;border-radius:2px;display:inline-block}

#rows tr[data-parcel-id]{cursor:pointer}#rows tr[data-parcel-id]:focus-visible{outline:3px solid #14604f;outline-offset:-3px}

.page-title{gap:12px}.page-title .year-label{margin-left:auto}.page-title #copyYear{white-space:nowrap}@media(max-width:720px){.page-title{flex-wrap:wrap;gap:8px}.page-title #copyYear{font-size:12px;min-height:40px}}

/* Year controls share a single baseline on desktop and mobile. */
.page-title{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:14px;flex-wrap:nowrap}
.page-title>div{display:none}
.page-title .year-label{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;white-space:nowrap;flex-shrink:0}
.page-title .year-label input{width:100px;height:42px;min-height:42px;margin:0;padding:8px 12px;border-radius:8px;font-size:16px}
.page-title #copyYear{height:42px;min-height:42px;display:flex;align-items:center;justify-content:center;padding:8px 14px;margin:0;border-radius:8px;font-size:13px;white-space:nowrap;background:#edf5f1;border-color:#cbded5;color:#14604f}
.page-title #copyYear:hover{background:#dfede6}
@media(max-width:720px){
 .page-title{gap:8px;justify-content:space-between;flex-wrap:nowrap}
 .page-title .year-label{font-size:12px;gap:7px}
 .page-title .year-label input{width:78px;padding:8px}
 .page-title #copyYear{font-size:12px;padding:8px 10px}
}

button.danger{color:#a42e2e;border-color:#e3b6b6;background:#fff4f4}button.danger:hover{background:#fbe3e3}#remainingAreaLabel[hidden]{display:none}#deleteError{color:#a42e2e}

/* Contract list heading and exports share one balanced row. */
.table-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 20px}
.table-title>div:first-child{min-width:0}
.table-title p{max-width:none;font-size:12px;line-height:1.5;margin-top:6px}
.table-title .export-actions{display:flex;flex-wrap:nowrap;gap:8px;max-width:none;width:auto}
.table-title .export-actions button{width:auto;white-space:nowrap;min-height:42px;padding:9px 12px;font-size:13px}
@media(max-width:720px){
 .table-title{padding:12px 10px;gap:8px;grid-template-columns:minmax(0,1fr) auto}
 .table-title h2{font-size:13px;white-space:nowrap}
 .table-title h2 span{font-size:12px;margin-left:4px}
 .table-title p{display:none}
 .table-title .export-actions{gap:5px}
 .table-title .export-actions button{font-size:11px;padding:7px 8px;min-height:40px}
}

.export-short{display:none}@media(max-width:720px){.export-full{display:none}.export-short{display:inline}}

#issueFilter{cursor:pointer}#issueFilter:hover{border-color:#bd8b43;background:#fff5e5}#issueFilter:focus-visible{outline:3px solid #bd8b43}#clearIssueFilter[hidden]{display:none}.table-title:has(#clearIssueFilter:not([hidden])){grid-template-columns:minmax(0,1fr) auto auto}@media(max-width:720px){.table-title:has(#clearIssueFilter:not([hidden])){grid-template-columns:1fr auto}.table-title:has(#clearIssueFilter:not([hidden])) .export-actions{grid-column:1/-1}}

.parcel-map-label{max-width:260px;white-space:normal;text-align:left;padding:6px 9px;overflow:visible}.parcel-map-label strong{display:block;font-size:13px;line-height:1.45}.parcel-map-label span{display:block;font-size:12px;line-height:1.45;font-weight:400;overflow-wrap:anywhere;color:#e0eee5}.selected-map-card .parcel-map-card strong{overflow-wrap:anywhere}

/* Kakao overlay parents can have zero width: give labels an explicit width. */
.parcel-map-label{width:240px;min-width:240px;max-width:240px;box-sizing:border-box;white-space:normal;word-break:keep-all;overflow-wrap:break-word;transform:translateY(-36px);border-radius:8px;padding:7px 10px}
.parcel-map-label strong{line-height:1.5;word-break:keep-all}
.parcel-map-label span{overflow-wrap:normal;word-break:keep-all;line-height:1.5}
@media(max-width:720px){.parcel-map-label{width:210px;min-width:210px;max-width:210px}}

/* Single-line map label; long groups can be scrolled horizontally. */
.parcel-map-label{display:block;width:max-content;min-width:0;max-width:min(640px,calc(100vw - 48px));white-space:nowrap;word-break:normal;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;text-overflow:clip;font-size:13px;font-weight:600;line-height:1.5;padding:7px 10px;scrollbar-width:thin}
@media(max-width:720px){.parcel-map-label{width:max-content;min-width:0;max-width:calc(100vw - 48px);font-size:12px}}

.account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid #dce5e1;margin-top:20px;padding-top:18px}.account-actions a,.account-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #ccdcd3;border-radius:8px;text-decoration:none;font-size:14px;font-weight:600;background:#fff;color:#294b3e;margin:0}.account-actions a:visited{color:#294b3e}.account-actions .account-staff{background:#14604f;color:white;border-color:#14604f}.account-actions .account-staff:visited{color:white}.account-actions .account-logout{margin-left:auto;color:#76564e}.account-actions a:hover{background:#e7f1eb}.account-actions .account-staff:hover{background:#104c3e}.sync-connect[hidden]{display:none}@media(max-width:600px){.account-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.account-actions a,.account-actions button{padding:10px 5px;font-size:13px}.account-actions .account-logout{margin-left:0}}

#installApp{white-space:nowrap}#installApp[hidden]{display:none}@media(max-width:720px){.header-right #installApp{grid-column:1/-1;grid-row:3;min-height:38px;background:#edf5f1;color:#14604f}}

#issueCategories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0 18px 18px}#issueCategories button{text-align:left;display:flex;flex-direction:column;gap:8px;padding:14px;white-space:normal}#issueCategories strong{font-size:23px;color:#14604f}#issueCategories small{font-size:12px;line-height:1.5;color:#64787a}#issueCategories button[aria-pressed="true"]{border-color:#14604f;background:#eaf4ef;box-shadow:inset 0 0 0 1px #14604f}.issue-panel summary span{font-size:13px;color:#64787a;margin-left:12px}@media(max-width:900px){#issueCategories{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){#issueCategories{gap:6px;padding:0 10px 10px}#issueCategories button{padding:10px;font-size:12px}}

.lookup-progress{padding:16px 20px;background:#fff;border:1px solid #dce3e6;border-radius:12px;margin:0 0 18px}.lookup-progress[hidden]{display:none}.lookup-heading,.lookup-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.lookup-heading{color:#14604f}.lookup-progress progress{display:block;width:100%;height:12px;margin:12px 0;accent-color:#14604f}.lookup-meta,.lookup-progress p{font-size:13px}.lookup-progress p{margin:8px 0}.lookup-progress small{font-size:12px;color:#677a82}@media(max-width:720px){.lookup-progress{padding:12px}.lookup-meta{flex-direction:column;gap:6px}}

.lookup-progress summary{cursor:pointer;align-items:center;list-style:none}.lookup-progress summary::-webkit-details-marker{display:none}.lookup-progress[open] summary{margin-bottom:12px}.lookup-toggle::after{content:'펼치기 ▾';font-size:12px}.lookup-progress[open] .lookup-toggle::after{content:'숨기기 ▴'}#lookupCompact{font-size:13px;margin-left:auto}@media(max-width:720px){#lookupCompact{margin-left:0}.lookup-toggle{margin-left:auto}}

.map-cluster{border:2px solid white;border-radius:50%;min-width:44px;height:44px;background:#14604f;color:white;font-weight:700;box-shadow:0 2px 8px #0005;padding:6px}

#duplicateReview{border-top:1px solid #dce3e6;margin-top:20px;padding-top:18px}#duplicateReview article{border:1px solid #cbded5;background:#f4f8f6;border-radius:10px;padding:14px;margin:10px 0}#duplicateReview button{margin:4px 8px 0 0}#duplicateReview p{overflow-wrap:anywhere}

.variety-legend{align-items:center;gap:8px}.variety-legend button{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #bdcbc5;border-radius:20px;background:#fff;color:#52675f;font-size:13px;white-space:nowrap;cursor:pointer}.variety-legend button[aria-pressed="true"]{border-color:#166450;background:#e3f2eb;color:#124c3d;box-shadow:inset 0 0 0 1px #166450;font-weight:700}.variety-legend button:focus-visible{outline:3px solid #178bb0;outline-offset:2px}.variety-legend .legend-help{font-size:12px;color:#596d65}

.variety-legend .legend-variety{display:inline-flex;align-items:center;gap:4px}.variety-legend .legend-color{width:40px;min-width:40px;height:40px;min-height:40px;padding:4px;border:1px solid #bdcbc5;border-radius:10px;background:#fff;cursor:pointer}.variety-legend .legend-color:focus-visible{outline:3px solid #178bb0;outline-offset:2px}.variety-legend .legend-reset{font-size:12px}.variety-legend .legend-reset:disabled{opacity:.5;cursor:default}

/* Group variety controls into a readable legend panel. */
.variety-legend{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:18px 20px;background:#f7faf8;border-top:1px solid #dbe5df;border-bottom:1px solid #dbe5df}
.variety-legend .legend-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.legend-header>strong{font-size:15px;color:#203c32}.variety-legend .legend-actions{display:flex;gap:8px;align-items:center}.variety-legend .legend-actions button{border-radius:8px;min-height:36px;padding:7px 12px}.variety-legend .legend-cards{display:flex;flex-wrap:wrap;gap:10px}
.variety-legend .legend-variety{display:flex;gap:0;background:#fff;border:1px solid #d4ded8;border-radius:12px;overflow:hidden;box-shadow:0 2px 4px #203c3208}.variety-legend .legend-variety[data-active="true"]{border-color:#27785e;box-shadow:0 0 0 1px #27785e}.variety-legend .legend-variety>button{border:0;border-radius:0;box-shadow:none;min-height:60px;padding:12px 14px;font-size:14px;color:#53655d;background:transparent}.variety-legend .legend-variety>button[aria-pressed="true"]{background:#e8f4ed;color:#164b37;box-shadow:none}.variety-legend .legend-variety>button[aria-pressed="true"]::after{content:'✓';font-size:14px;margin-left:4px}.variety-legend .legend-variety>button:focus-visible{outline-offset:-3px}.variety-legend i{width:12px;height:12px;border-radius:50%;border:1px solid #0003;flex-shrink:0}
.variety-legend .legend-color-control{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 9px;border-left:1px solid #e0e8e3;cursor:pointer;background:#fff;margin:0}.variety-legend .legend-color{display:block;width:32px;min-width:32px;height:28px;min-height:28px;padding:2px;border-radius:6px;border:1px solid #a8b8ae;margin:0}.legend-color::-webkit-color-swatch-wrapper{padding:0}.legend-color::-webkit-color-swatch{border:0;border-radius:3px}.legend-color::-moz-color-swatch{border:0;border-radius:3px}.legend-color-control small{font-size:10px;color:#53655d;white-space:nowrap;line-height:1.2}.variety-legend .legend-help{display:block;font-size:12px;line-height:1.6;color:#607169}
@media(max-width:600px){.variety-legend{padding:14px 12px}.variety-legend .legend-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.variety-legend .legend-variety>button{flex:1;min-width:0;white-space:normal;text-align:left;overflow-wrap:anywhere;font-size:12px;padding:10px 8px;gap:5px}.variety-legend .legend-color-control{padding:5px 6px}.variety-legend .legend-header{gap:8px}.legend-header>strong{font-size:14px}}

.variety-legend{padding:10px 14px;gap:9px}.variety-legend .legend-variety>button{min-height:44px;padding:8px 10px;font-size:13px}.variety-legend .legend-color-control{padding:3px 7px;gap:2px}.variety-legend .legend-color{width:26px;min-width:26px;height:24px;min-height:24px}.variety-legend .legend-color-control small{font-size:9px}.variety-legend.is-collapsed .legend-cards,.variety-legend.is-collapsed .legend-help,.variety-legend.is-collapsed .legend-reset{display:none}.variety-legend.is-collapsed{gap:0}.variety-legend .legend-toggle{font-weight:700;color:#164b37}.variety-legend .legend-header>strong{font-size:13px}@media(max-width:600px){.variety-legend{padding:9px 10px}.variety-legend .legend-header{flex-wrap:nowrap;gap:6px}.variety-legend .legend-actions{gap:5px}.variety-legend .legend-actions button{font-size:11px;padding:6px 8px}.variety-legend .legend-header>strong{font-size:12px}.variety-legend .legend-variety>button{min-height:44px;padding:7px;font-size:12px}}

#queryChecks .group-facet{grid-column:1/-1;max-height:none;overflow:visible;padding:14px}#queryChecks .group-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:10px}#queryChecks .group-toolbar input{flex:1;min-width:0;max-width:380px;height:42px}#queryChecks .group-toolbar button{white-space:nowrap;min-height:42px}#queryChecks .group-selected{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}#queryChecks .group-selected button{border-radius:18px;padding:6px 10px;background:#e8f4ed;color:#164b37;border:1px solid #a5cbb9;font-size:13px}#queryChecks .group-selected span{font-size:13px;color:#607169}#queryChecks .group-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#queryChecks .group-choices[hidden],#queryChecks .group-choices .check[hidden]{display:none}#queryChecks .group-choices .check{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:8px 10px;border:1px solid #dce3e6;border-radius:8px;background:#fafcfb;cursor:pointer}#queryChecks .group-choices .check:has(input:checked){background:#e8f4ed;border-color:#27785e;color:#164b37;font-weight:700}#queryChecks .group-choices input{flex-shrink:0}#queryChecks .group-no-results{margin:8px 0}@media(max-width:720px){#queryChecks .group-choices{grid-template-columns:repeat(2,minmax(0,1fr))}#queryChecks .group-toolbar button{padding:8px;font-size:12px}}
/* Keep header labels intact; let the status badge use the remaining space. */
header .brand{flex-shrink:0;white-space:nowrap}header .brand-icon{flex-shrink:0}header .header-right{min-width:0}header .header-right button{white-space:nowrap;word-break:keep-all;flex-shrink:0;line-height:1.4}header .header-right .sync-live{flex:0 1 360px;min-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:721px){header{gap:20px;padding:16px 2%}.header-right{flex:1;justify-content:flex-end;gap:8px}.header-right button{height:42px;padding:9px 12px}.header-right .local-label{display:none}.brand{font-size:24px}.brand small{font-size:11px}header .header-right .sync-live{font-size:12px}}
@media(min-width:721px) and (max-width:1000px){header{gap:12px}.brand{font-size:20px}.brand-icon{width:36px;height:36px}.header-right{gap:6px}.header-right button{font-size:12px;padding:8px}.header-right .sync-live{min-width:80px}}
@media(max-width:720px){header .header-right .sync-live{min-width:0;max-width:100%;width:100%;overflow:hidden;text-overflow:ellipsis}}

.page-title .quick-contract-filters{display:flex;align-items:center;gap:16px;margin-right:auto;min-width:0}.quick-contract-filters label{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap;font-size:14px;font-weight:600}.quick-contract-filters select{width:170px;min-width:0;height:42px;margin:0;padding:8px 12px;border-radius:8px;background:#fff}.page-title{flex-wrap:wrap}
@media(max-width:1000px){.quick-contract-filters select{width:135px}.page-title .quick-contract-filters{gap:10px}}
@media(max-width:720px){.page-title{flex-wrap:wrap}.page-title .quick-contract-filters{display:flex;flex:0 0 100%;width:100%;margin:0 0 4px;gap:12px}.quick-contract-filters label{flex:1;min-width:0;font-size:12px;gap:6px}.quick-contract-filters select{flex:1;width:100%;min-width:0;font-size:13px}}

#dataManagement{max-width:760px;max-height:85vh;overflow:auto}#dataManagement #uploadBtn{margin:0 0 18px;min-height:44px}#dataManagement #issuePanel{margin:0;padding:14px}.map-checks{border-bottom:1px solid #dce3e6;margin-bottom:18px;padding-bottom:12px}#mapIssueCategories{display:grid;gap:8px;margin:12px 0}#mapIssueCategories button{text-align:left;display:flex;flex-direction:column;gap:6px;padding:12px;background:#f6faf8}#mapIssueCategories strong{font-size:23px;color:#14604f}#mapIssueCategories small{font-size:12px;line-height:1.5}#mapSidebar .lookup-progress{padding:10px}#mapSidebar #autoMapProgress{font-size:12px!important}@media(max-width:720px){.header-right #dataManage{grid-column:3;grid-row:1}#dataManagement{padding:18px}#dataManagement #issueCategories{grid-template-columns:1fr}}

.simple-query{padding:14px 16px;margin-bottom:16px;border:1px solid #dce3e6;border-radius:12px;background:#fff}.simple-query-row{display:flex;gap:12px;align-items:end}.simple-query-row label{flex:1;min-width:0;margin:0;font-size:13px}.simple-query-row input,.simple-query-row select{margin-top:5px;height:42px}.simple-query-row button{height:42px;white-space:nowrap}#selectedQueryChips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}#selectedQueryChips[hidden]{display:none}#selectedQueryChips button{font-size:12px;border-radius:18px;background:#edf5f1;color:#14604f;padding:5px 10px}#multiQueryDialog{max-width:850px;max-height:85vh;overflow:auto}#multiQueryDialog .query-panel{margin:12px 0 0}#multiQueryDialog #queryPanel>summary{display:none}@media(max-width:720px){.simple-query-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.simple-query-row label:nth-child(3){grid-column:1/-1}}
/* Mobile summary: preserve complete numbers and units on a single line. */
@media(max-width:720px){
 .stats{display:grid;grid-template-columns:minmax(76px,1fr) minmax(84px,1fr) minmax(132px,1.6fr) minmax(80px,1fr);gap:6px;overflow-x:auto;padding:2px 1px 6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
 .stats article{min-width:0;padding:10px 7px;border-radius:9px}
 .stats article>span{display:block;font-size:11px;white-space:nowrap;letter-spacing:-.04em}
 .stats article>div{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:10px;margin:8px 0 0;line-height:1.5}
 .stats strong{font-size:16px;white-space:nowrap;letter-spacing:-.04em;margin-right:2px}
 .stats #areaCount{font-size:15px;letter-spacing:-.05em}
 .stats small{display:none}
}

.list-bundle-tools{display:flex;gap:8px;padding:10px 20px;border-top:1px solid #dce3e6}input[data-bundle-pick]{width:20px;height:20px;min-height:20px;accent-color:#14604f}

#pickList .picked-contract-check{background:#fff;border:1px solid #b9cfdc;border-radius:10px;padding:14px;margin:10px 0}.picked-check-heading,.picked-existing-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.picked-check-heading strong,.picked-existing-row span{min-width:0;overflow-wrap:anywhere}#pickList .picked-contract-check button{width:auto;flex-shrink:0;margin:0}.existing-contract-found{color:#965200;font-weight:700;margin:10px 0}.existing-contract-empty{color:#536b60;margin:10px 0}.picked-existing-row{padding:8px 0;border-top:1px solid #edf1f2;font-size:14px}.picked-contract-check small{display:block;color:#61756b;margin-top:8px}@media(max-width:600px){.picked-check-heading,.picked-existing-row{align-items:flex-start;flex-wrap:wrap}}

#toggleCadastral{white-space:nowrap}#toggleCadastral[aria-pressed="true"]{background:#14604f;color:#fff;border-color:#14604f}.map-toolbar{height:auto;min-height:65px;flex-wrap:wrap}.map-toolbar>div:last-child{flex-wrap:wrap}

.search-address-label{background:#fff;color:#163e33;border:2px solid #14604f;border-radius:8px;padding:8px 12px;font-size:13px;font-weight:700;box-shadow:0 2px 8px #0003;max-width:min(300px,75vw);white-space:normal;word-break:keep-all;text-align:center}
