.rm-area-field{margin:12px 0}
.rm-area-row{display:flex;gap:8px;align-items:stretch}
.rm-area-current{flex:1;min-height:42px;display:flex;align-items:center;padding:9px 11px;border:1px solid #929d99;background:#f7f9f8;border-radius:3px;font-weight:700;color:#254f46}
.rbb .rm-area-open{flex:0 0 auto;margin:0!important;background:#fff!important;color:#176654!important;border:1px solid #65998d!important}
.rm-area-help{font-size:11px;color:#666;line-height:1.7;margin:5px 0 0}

.rm-area-modal[hidden]{display:none!important}
.rm-area-modal{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.52);padding:3vh 12px;overflow:auto}
.rm-area-dialog{max-width:720px;margin:0 auto;background:#fff;border-radius:8px;box-shadow:0 14px 45px rgba(0,0,0,.3);max-height:94vh;display:flex;flex-direction:column;overflow:hidden}

.rm-area-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #d9dfdd;background:#fff}
.rm-area-head h2{margin:0!important;padding:0!important;border:0!important;font-size:20px!important;color:#163f36!important}
.rm-area-head p{margin:4px 0 0;font-size:12px;color:#666}
.rbb .rm-area-close{background:#fff!important;color:#444!important;border:1px solid #aaa!important;margin:0!important;padding:7px 12px!important}

.rm-area-body{padding:18px 20px;overflow:auto;background:#fff}

.rm-area-search{margin-bottom:16px}
.rm-area-search label{display:block;font-weight:700;color:#294d45;margin:0 0 6px}
.rm-area-search input{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #718b84;border-radius:4px;background:#fff;color:#222;font:inherit}
.rm-area-search-note{font-size:11px;color:#666;margin:5px 0 0}

.rm-area-results-wrap{margin:0 0 18px;padding:12px;background:#f6f9f8;border:1px solid #d7e0dd;border-radius:5px}
.rm-area-results{display:grid;gap:6px}
.rbb .rm-area-result{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%;text-align:left!important;margin:0!important;padding:10px 12px!important;background:#fff!important;color:#174f43!important;border:1px solid #a8bdb7!important;border-radius:4px!important}
.rm-area-result-main{font-weight:700;color:#174f43}
.rm-area-result-meta{font-size:11px;color:#666;white-space:nowrap}

.rm-area-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 14px;padding:9px 11px;background:#f4f7f6;border-radius:4px;color:#555;font-size:12px}
.rm-area-breadcrumb strong{color:#174f43}

.rm-area-section-title{font-weight:700;color:#294d45;margin:15px 0 8px;font-size:13px}

.rbb .rm-area-confirm{display:flex!important;flex-direction:column!important;align-items:flex-start!important;width:100%;margin:0 0 15px!important;padding:12px 14px!important;background:#eaf6f2!important;color:#174f43!important;border:1px solid #6fa99a!important;border-radius:5px!important;text-align:left!important}
.rm-area-confirm strong{font-size:14px;color:#174f43}
.rm-area-confirm span{font-size:11px;color:#4d665f;margin-top:2px}
.rbb .rm-area-confirm:hover{background:#dff1eb!important}

.rm-area-nav-list{border:1px solid #d7dfdc;border-radius:5px;overflow:hidden;background:#fff}
.rbb .rm-area-nav-item,.rbb .rm-area-town{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%;margin:0!important;padding:11px 13px!important;border:0!important;border-bottom:1px solid #e2e7e5!important;border-radius:0!important;background:#fff!important;color:#174f43!important;text-align:left!important;font-weight:700!important}
.rbb .rm-area-nav-item:last-child,.rbb .rm-area-town:last-child{border-bottom:0!important}
.rbb .rm-area-nav-item:hover,.rbb .rm-area-town:hover{background:#f0f8f5!important}
.rm-area-arrow{font-size:21px;line-height:1;color:#6a8c83}

.rbb .rm-area-back{margin:0 0 12px!important;padding:6px 0!important;background:transparent!important;border:0!important;color:#176654!important;font-weight:700!important;text-align:left!important}

.rm-area-town-help{font-size:11px;color:#666;margin:0 0 8px}
.rm-area-town-list{border:1px solid #d7dfdc;border-radius:5px;overflow:hidden;background:#fff}
.rm-area-loading,.rm-area-noresult{padding:12px;color:#666;background:#f7f9f8;font-size:12px;line-height:1.6}

.rm-area-footer{padding:11px 20px;border-top:1px solid #d9dfdd;background:#fafbfb;font-size:11px;color:#666;line-height:1.6}

.rm-scope-badge{display:inline-block;padding:2px 6px;border:1px solid #a9bbb6;background:#eef6f3;color:#315e53;font-size:11px;margin-right:5px}

@media(max-width:650px){
  .rm-area-row{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .rm-area-modal{padding:0}
  .rm-area-dialog{max-width:none;min-height:100vh;max-height:100vh;border-radius:0}
  .rm-area-body{padding:14px}
  .rm-area-head{padding:14px}
  .rm-area-head h2{font-size:18px!important}
  .rm-area-footer{padding:10px 14px}
}

/* region-match listing completion */
.match-form .match-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px}
.match-panel{background:#fff;border:1px solid #d9dfdd;border-radius:4px;padding:16px}
.match-form label,.match-form legend{display:block;font-weight:700;margin:14px 0 6px;color:#294d45}
.match-form input[type="text"],.match-form input[type="number"],.match-form input[type="search"],.match-form textarea,.match-form select{box-sizing:border-box;width:100%;padding:9px 10px;border:1px solid #929d99;border-radius:3px;background:#fff;font:inherit}
.region-match-price-fields{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:8px;align-items:center}
.match-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.match-image-preview{position:relative;margin:0;aspect-ratio:1/1;background:#f1f3f2;border:1px solid #d8dddb;overflow:hidden}
.match-image-preview img{width:100%;height:100%;object-fit:cover}
.match-image-remove{position:absolute;top:5px;right:5px;margin:0!important;width:30px;height:30px;display:flex!important;align-items:center;justify-content:center;border-radius:50%;border:0;background:rgba(0,0,0,.7)!important;color:#fff!important;cursor:pointer}
.match-image-remove input{position:absolute;opacity:0;pointer-events:none}
.match-image-preview:has(input[type="checkbox"]:checked){opacity:.35}
[data-match-image-error]{color:#b42318;font-size:12px;line-height:1.5}
[data-place-results]{margin-top:5px}
.match-place-result{display:block;width:100%;text-align:left!important;margin:0 0 4px!important;background:#fff!important;color:#176654!important;border:1px solid #b5c4c0!important}
.match-place-empty{padding:8px;background:#f6f7f7;color:#666;font-size:12px}
.match-card{display:grid;grid-template-columns:130px minmax(0,1fr);gap:13px;padding:13px 0;border-bottom:1px solid #e0e4e2}
.match-card-thumb{width:130px;height:98px;object-fit:cover;background:#eef1f0}
.match-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.match-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}
.match-meta{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:7px 12px}
.match-meta dt{font-weight:700}
.match-meta dd{margin:0}
@media(max-width:760px){
  .match-form .match-layout{grid-template-columns:1fr}
  .match-image-grid,.match-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .match-card{grid-template-columns:100px minmax(0,1fr)}
  .match-card-thumb{width:100px;height:80px}
  .region-match-price-fields{grid-template-columns:1fr}
}

/* region-match area picker UX refinement */

.rm-town-select-box{
  margin-top:18px;
  padding-top:4px;
}

.rm-town-search{
  margin-top:10px;
}

.rm-town-search label{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  font-weight:700;
  color:#294d45;
}

.rm-town-search input{
  box-sizing:border-box;
  width:100%;
  padding:11px 12px;
  border:1px solid #879690;
  border-radius:4px;
  background:#fff;
  color:#222;
  font:inherit;
}

.rm-town-search-results{
  margin-top:8px;
  border:1px solid #d7dfdc;
  border-radius:5px;
  overflow:hidden;
  background:#fff;
}

.rbb .rm-town-list-toggle{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%;
  margin:14px 0 0!important;
  padding:10px 12px!important;
  border:1px solid #c4cfcc!important;
  border-radius:4px!important;
  background:#fff!important;
  color:#315e53!important;
  text-align:left!important;
  font-weight:700!important;
}

.rbb .rm-town-list-toggle:hover{
  background:#f6faf8!important;
}

.rm-area-town-list{
  max-height:330px;
  margin-top:6px;
  overflow-y:auto;
  border:1px solid #d7dfdc;
  border-radius:5px;
  background:#fff;
}

.rbb .rm-area-town{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%;
  margin:0!important;
  padding:10px 12px!important;
  border:0!important;
  border-bottom:1px solid #e7ecea!important;
  border-radius:0!important;
  background:#fff!important;
  color:#254f46!important;
  text-align:left!important;
  font-weight:600!important;
}

.rbb .rm-area-town:last-child{
  border-bottom:0!important;
}

.rbb .rm-area-town:hover{
  background:#f2f8f6!important;
}

.rm-area-town-name{
  min-width:0;
}

.rbb [data-rm-confirm-city]{
  background:#16856f!important;
  border-color:#16856f!important;
  color:#fff!important;
}

.rbb [data-rm-confirm-city] strong,
.rbb [data-rm-confirm-city] span{
  color:#fff!important;
}

.rbb [data-rm-confirm-city]:hover{
  background:#126f5e!important;
}

@media(max-width:650px){
  .rm-area-town-list{
    max-height:45vh;
  }
}

/* region-match posting form UX */

.match-post-page{
  max-width:1000px;
}

.match-post-header{
  margin:8px 0 18px;
  padding:20px 22px;
  border:1px solid #d8e2df;
  border-top:4px solid #17836f;
  border-radius:6px;
  background:#fff;
}

.match-post-header h1{
  margin:0 0 7px!important;
  padding:0!important;
  border:0!important;
  color:#174f43;
  font-size:24px!important;
  line-height:1.4;
}

.match-post-header p{
  margin:0;
  color:#5c6865;
  line-height:1.7;
}

.match-post-container{
  max-width:820px;
  margin:0 auto;
}

.match-form-flow{
  display:grid;
  gap:16px;
}

.match-form-section{
  overflow:hidden;
  border:1px solid #d9e1df;
  border-radius:7px;
  background:#fff;
}

.match-form-section-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid #e1e7e5;
  background:#f7faf9;
}

.match-form-step{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#17836f;
  color:#fff;
  font-size:13px;
  font-weight:700;
}

.match-form-section-head h2{
  margin:1px 0 3px!important;
  padding:0!important;
  border:0!important;
  color:#214f45!important;
  font-size:17px!important;
  line-height:1.4;
}

.match-form-section-head p{
  margin:0;
  color:#68736f;
  font-size:12px;
  line-height:1.6;
}

.match-form-section-body{
  padding:18px;
}

.match-field{
  margin:0 0 18px;
}

.match-field:last-child{
  margin-bottom:0;
}

.match-form-ux label{
  display:block;
  margin:0 0 7px;
  color:#294d45;
  font-weight:700;
}

.match-form-ux input[type="text"],
.match-form-ux input[type="number"],
.match-form-ux input[type="search"],
.match-form-ux textarea,
.match-form-ux select{
  box-sizing:border-box;
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #91a29d;
  border-radius:5px;
  background:#fff;
  color:#222;
  font:inherit;
}

.match-form-ux textarea{
  min-height:190px;
  line-height:1.7;
  resize:vertical;
}

.match-form-ux input:focus,
.match-form-ux textarea:focus,
.match-form-ux select:focus{
  outline:2px solid rgba(23,131,111,.18);
  border-color:#17836f;
}

.match-required,
.match-optional{
  display:inline-block;
  margin-left:7px;
  padding:2px 6px;
  border-radius:3px;
  font-size:10px;
  line-height:1.4;
  vertical-align:middle;
}

.match-required{
  background:#fff1ee;
  color:#a53a2c;
}

.match-optional{
  background:#f0f3f2;
  color:#67736f;
}

.match-field-help{
  margin:6px 0 0;
  color:#6c7673;
  font-size:11px;
  line-height:1.6;
}

.region-match-price-fields{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:10px;
}

.match-price-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
}

.match-price-input span{
  color:#4f605b;
  font-weight:700;
}

.match-place-results{
  margin-top:6px;
}

.rbb .match-place-result{
  display:flex!important;
  width:100%;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid #d5dfdc!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#24584d!important;
  text-align:left!important;
  font-weight:600!important;
}

.rbb .match-place-result:first-child{
  border-radius:5px 5px 0 0!important;
}

.rbb .match-place-result:last-child{
  border-bottom:1px solid #d5dfdc!important;
  border-radius:0 0 5px 5px!important;
}

.rbb .match-place-result:hover{
  background:#f1f8f6!important;
}

.match-image-upload{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
}

.match-image-input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.match-image-select-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:42px;
  margin:0!important;
  padding:0 18px;
  border:1px solid #17836f;
  border-radius:5px;
  background:#fff;
  color:#176654!important;
  cursor:pointer;
}

.match-image-select-button:hover{
  background:#f0f8f6;
}

.match-image-notes{
  display:flex;
  flex-wrap:wrap;
  gap:5px 10px;
  color:#68736f;
  font-size:11px;
}

.match-image-notes span:not(:last-child)::after{
  content:"・";
  margin-left:10px;
  color:#adb5b2;
}

.match-image-error{
  margin:8px 0 0;
  color:#b42318;
  font-size:12px;
}

.match-image-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

.match-image-preview{
  position:relative;
  margin:0;
  overflow:hidden;
  aspect-ratio:1/1;
  border:1px solid #d8dddb;
  border-radius:5px;
  background:#f1f3f2;
}

.match-image-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.match-submit-section{
  padding:20px;
  border:1px solid #cadad5;
  border-radius:7px;
  background:#f5faf8;
}

.match-submit-note{
  margin:0 0 13px;
  color:#5d6a66;
  font-size:11px;
  line-height:1.7;
}

.rbb .match-submit-button{
  display:block!important;
  width:100%;
  min-height:50px;
  margin:0!important;
  border:1px solid #13725f!important;
  border-radius:6px!important;
  background:#17836f!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:700!important;
  text-align:center!important;
}

.rbb .match-submit-button:hover{
  background:#126f5e!important;
}

@media(max-width:760px){
  .match-post-header{
    padding:16px;
  }

  .match-post-header h1{
    font-size:21px!important;
  }

  .match-form-section-head{
    padding:14px;
  }

  .match-form-section-body{
    padding:14px;
  }

  .region-match-price-fields{
    grid-template-columns:1fr;
  }

  .match-image-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:480px){
  .match-image-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .match-image-upload{
    display:block;
  }

  .match-image-select-button{
    width:100%;
    box-sizing:border-box;
  }

  .match-image-notes{
    margin-top:9px;
  }
}

/* REGION_MATCH_PLACE_MODAL_V2 */

.match-place-current{
  margin:0 0 10px;
  padding:13px 14px;
  border:1px solid #b8c8c3;
  border-radius:5px;
  background:#f6f9f8;
  color:#254f46;
  font-weight:700;
  line-height:1.6;
}

.rbb .match-place-open{
  display:block;
  width:100%;
  margin:0!important;
}

.match-place-synced{
  margin:7px 0 0;
  color:#60756f;
  font-size:12px;
  line-height:1.6;
}

.match-place-note-field{
  margin-top:20px;
}

.match-place-modal[hidden]{
  display:none!important;
}

.match-place-modal{
  position:fixed;
  inset:0;
  z-index:10060;
  padding:3vh 12px;
  overflow:auto;
  background:rgba(0,0,0,.48);
}

.match-place-dialog{
  width:100%;
  max-width:720px;
  max-height:94vh;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border-radius:7px;
  box-shadow:0 12px 38px rgba(0,0,0,.28);
}

.match-place-dialog-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-bottom:1px solid #d9dfdd;
}

.match-place-dialog-head h2{
  margin:0 0 3px!important;
}

.match-place-dialog-head p{
  margin:0;
  color:#666;
  font-size:12px;
  line-height:1.6;
}

.rbb .match-place-close{
  flex:0 0 auto;
  width:auto;
  margin:0!important;
}

.match-place-dialog-body{
  padding:16px 18px;
  overflow:auto;
}

.match-place-results{
  margin-top:10px;
}

.rbb .match-place-result{
  display:block!important;
  width:100%;
  margin:0 0 7px!important;
  padding:11px 13px!important;
  text-align:left!important;
  background:#fff!important;
  color:#176654!important;
  border:1px solid #abc0ba!important;
  border-radius:5px!important;
  font-weight:600!important;
}

.rbb .match-place-result:hover,
.rbb .match-place-result:focus{
  background:#f1f8f6!important;
}

.match-place-empty{
  padding:12px;
  color:#666;
  background:#f7f8f8;
  border-radius:5px;
  line-height:1.6;
}

@media(max-width:650px){
  .match-place-modal{
    padding:10px;
  }

  .match-place-dialog{
    max-height:calc(100vh - 20px);
  }

  .match-place-dialog-head{
    padding:13px;
  }

  .match-place-dialog-body{
    padding:13px;
  }
}

/* REGION_MATCH_PLACE_BROWSER_FINAL */

.match-place-browser{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #d9dfdd;
}

.match-place-browser[hidden],
.match-place-city-panel[hidden]{
  display:none!important;
}

.match-place-browser-title{
  margin:0 0 4px;
  color:#254f46;
  font-size:16px;
  font-weight:700;
}

.match-place-browser-help{
  margin:0 0 14px;
  color:#66756f;
  font-size:12px;
  line-height:1.6;
}

.match-place-city-group{
  margin:0 0 18px;
}

.match-place-city-group-title{
  margin:0 0 7px;
  color:#4b5f59;
  font-size:13px;
  font-weight:700;
}

.match-place-city-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}

.rbb .match-place-city-button{
  width:100%;
  margin:0!important;
  padding:10px 8px!important;
  border:1px solid #abc0ba!important;
  border-radius:5px!important;
  background:#fff!important;
  color:#176654!important;
  font-weight:600!important;
}

.rbb .match-place-city-button:hover,
.rbb .match-place-city-button:focus{
  background:#f1f8f6!important;
}

.match-place-city-panel{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #d9dfdd;
}

.rbb .match-place-browser-back{
  width:auto;
  margin:0 0 14px!important;
  padding:7px 10px!important;
}

.match-place-selected-city{
  margin:0 0 12px;
  padding:13px 14px;
  border:1px solid #b8c8c3;
  border-radius:5px;
  background:#f6f9f8;
  color:#254f46;
  font-size:16px;
}

.rbb .match-place-city-confirm{
  display:block;
  width:100%;
  margin:0 0 16px!important;
  padding:12px!important;
  font-weight:700!important;
}

.match-place-browser-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.rbb .match-place-browser-action{
  width:100%;
  margin:0!important;
  padding:11px!important;
}

.match-place-browse-results{
  margin-top:12px;
}

@media(max-width:650px){
  .match-place-city-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .match-place-browser-actions{
    grid-template-columns:1fr;
  }
}
.match-complete{margin:16px 0;padding:18px;border:2px solid #3b8b70;border-radius:8px;background:#effaf6}.match-complete h1{margin:0 0 8px;color:#174f43}.match-actions,.match-actions form,.match-share,.match-filters form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.match-my-item{padding:15px 0;border-bottom:1px solid #ddd}.match-meta-line{color:#555;font-size:13px}.match-delete{background:#8b2525!important}.match-filters label{margin-right:12px}@media(max-width:650px){.match-actions,.match-actions form{align-items:stretch;flex-direction:column}.match-actions a,.match-actions button{width:100%;box-sizing:border-box;text-align:center}}
