.item-action-row .item-building-register-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  height:23px!important;min-height:23px!important;max-height:23px!important;
  margin:0!important;padding:0 7px!important;border:1px solid #10a3a3!important;
  border-radius:6px!important;background:#e9fbfb!important;color:#087b7b!important;
  box-sizing:border-box!important;font-size:11px!important;font-weight:900!important;
  line-height:1!important;white-space:nowrap!important;cursor:pointer!important;
}
.item-action-row .item-building-register-btn:hover{background:#d6f7f7!important;border-color:#087b7b!important}
.item-action-row .item-source-link-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:23px!important;min-height:23px!important;max-height:23px!important;margin:0!important;padding:0 7px!important;border-radius:6px!important;box-sizing:border-box!important;font-size:11px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important}
.item-action-row .item-source-link-btn.active{border:1px solid #1671e8!important;background:#1671e8!important;color:#fff!important;cursor:pointer!important}
.item-action-row .item-source-link-btn.active:hover{border-color:#0f5fc8!important;background:#0f5fc8!important}
.item-action-row .item-source-link-btn.disabled{border:1px solid #5f6b7a!important;background:#5f6b7a!important;color:#e8edf3!important;cursor:not-allowed!important;opacity:.72!important}
body.building-register-open{overflow:hidden!important}
.building-register-modal{position:fixed;inset:0;z-index:70000;display:none;align-items:center;justify-content:center;font-family:Arial,"Noto Sans KR",sans-serif}
.building-register-modal.open{display:flex}
.building-register-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(2px)}
.building-register-dialog{position:relative;display:flex;flex-direction:column;width:min(980px,calc(100vw - 32px));max-height:calc(100dvh - 36px);overflow:hidden;border:1px solid #ccd9e8;border-radius:18px;background:#f5f8fc;box-shadow:0 24px 70px rgba(15,23,42,.3)}
.building-register-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;padding:12px 18px;border-bottom:1px solid #dbe4ef;background:#fff;box-sizing:border-box}
.building-register-brand{display:flex;align-items:center;gap:14px;min-width:0}.building-register-brand img{width:116px;height:auto;object-fit:contain}.building-register-brand div{display:flex;flex-direction:column;gap:2px}.building-register-brand span{color:#1667b2;font-size:11px;font-weight:800}.building-register-brand h2{margin:0;color:#172033;font-size:22px;line-height:1.1}
.building-register-x{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:#eef3f8;color:#344054;font-size:27px;line-height:1;cursor:pointer}.building-register-x:hover{background:#e1e8f0}
.building-register-body{flex:1;min-height:0;overflow:auto;padding:18px;overscroll-behavior:contain}
.building-register-loading,.building-register-empty,.building-register-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:360px;padding:24px;text-align:center;color:#526174}.building-register-loading i{width:38px;height:38px;margin-bottom:16px;border:4px solid #d7e6f5;border-top-color:#1671e8;border-radius:50%;animation:building-register-spin .9s linear infinite}.building-register-loading b,.building-register-empty strong,.building-register-error strong{color:#1d2939;font-size:17px}.building-register-loading span,.building-register-empty p,.building-register-error p,.building-register-error small{margin:7px 0 0;font-size:12px;line-height:1.6}.building-register-error strong{color:#b42318}.building-register-error small{max-width:500px;color:#667085}
@keyframes building-register-spin{to{transform:rotate(360deg)}}
.building-register-address{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 14px;border:1px solid #c7dcf4;border-radius:12px;background:#fff}.building-register-address div{display:flex;flex-direction:column;gap:4px;min-width:0}.building-register-address span{color:#667085;font-size:10px;font-weight:800}.building-register-address strong{overflow-wrap:anywhere;color:#172033;font-size:13px;line-height:1.45}
.building-register-selector{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid #d7e0eb;border-radius:10px;background:#fff}.building-register-selector span{flex:none;color:#344054;font-size:11px;font-weight:900}.building-register-selector select{flex:1;min-width:0;height:34px;padding:0 10px;border:1px solid #b9c7d8;border-radius:7px;background:#fff;color:#172033;font-size:12px;font-weight:800}
.building-register-unit-notice{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin-top:10px;padding:10px 12px;border:1px solid #b8c9de;border-radius:10px;background:#f8fafc;color:#526174;font-size:10px;line-height:1.5}.building-register-unit-notice strong{display:block;color:#26364d;font-size:11px;line-height:1.45}.building-register-unit-notice span{display:block;min-width:0;overflow-wrap:anywhere}.building-register-unit-notice.loading{border-color:#93c5fd;background:#eff6ff}.building-register-unit-notice.loading strong{color:#075bc7}
.building-register-unit-selector{border-color:#80b7ff;background:#f3f8ff}.building-register-exclusive-section{margin-top:14px;border-color:#80b7ff;background:#f8fbff}.building-register-exclusive-section h3,.building-register-exclusive-area-section h3{color:#075bc7}
.building-register-unit-browser{margin-top:12px;padding:12px;border:1px solid #b9d6fb;border-radius:12px;background:#fff}.building-register-unit-browser-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.building-register-unit-browser-head b{color:#172033;font-size:13px}.building-register-unit-browser-head span{color:#667085;font-size:10px}.building-register-unit-grid{display:flex;align-items:stretch;gap:7px;overflow-x:auto;padding:2px 2px 9px;scrollbar-width:thin}.building-register-unit-card{position:relative;display:flex;flex:0 0 112px;min-height:72px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 7px;border:1px solid #d5dee9;border-radius:10px;background:#f8fafc;color:#344054;cursor:pointer}.building-register-unit-card:nth-child(4n+2){background:#fff8d9;border-color:#efd985}.building-register-unit-card:nth-child(4n+3){background:#eef8ed;border-color:#b9ddb5}.building-register-unit-card:hover{border-color:#1671e8;transform:translateY(-1px)}.building-register-unit-card.selected{border-color:#1671e8;background:#1671e8;color:#fff;box-shadow:0 5px 14px rgba(22,113,232,.25)}.building-register-unit-card strong{font-size:12px}.building-register-unit-card span{font-size:9px;font-weight:800;opacity:.88}.building-register-unit-card small{font-size:9px;white-space:nowrap;opacity:.88}.building-register-unit-card:hover:after{content:attr(data-tooltip);position:absolute;z-index:5;left:50%;bottom:calc(100% + 8px);width:max-content;max-width:260px;transform:translateX(-50%);padding:8px 10px;border-radius:7px;background:rgba(15,23,42,.94);color:#fff;font-size:10px;font-weight:800;line-height:1.45;white-space:normal;pointer-events:none}
.building-register-unit-matrix{display:flex;flex-direction:column;gap:4px;padding:8px;border:1px solid #dde5ee;border-radius:10px;background:#f8fafc}.building-register-floor-row{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:5px}.building-register-floor-label{display:flex;align-items:center;justify-content:center;min-height:29px;border-radius:6px;background:#e8eef6;color:#344054;font-size:10px;font-weight:900}.building-register-floor-units{display:flex;flex-wrap:wrap;gap:3px}.building-register-unit-cell{position:relative;min-width:43px;height:29px;padding:0 5px;border:1px solid rgba(15,23,42,.18);border-radius:4px;color:#fff;font-size:10px;font-weight:900;line-height:27px;text-align:center;cursor:pointer;box-shadow:inset 0 -1px 0 rgba(0,0,0,.12)}.building-register-unit-cell:hover{z-index:3;transform:translateY(-1px);box-shadow:0 3px 9px rgba(15,23,42,.22)}.building-register-unit-cell.area-tone-unknown{background:#78869a}.building-register-unit-cell.area-tone-1{background:#288d59}.building-register-unit-cell.area-tone-2{background:#1579c8}.building-register-unit-cell.area-tone-3{background:#985f18}.building-register-unit-cell.area-tone-4{background:#c93636}.building-register-unit-cell.area-tone-5{background:#b81515}.building-register-unit-cell.area-tone-6{background:#075b9d}.building-register-unit-cell.area-tone-7{background:#123e70}.building-register-unit-cell.listing-unit{outline:3px solid #ff3030;outline-offset:1px;z-index:2}.building-register-unit-cell.selected{border-color:#111827;box-shadow:inset 0 0 0 2px #fff,0 0 0 2px #111827}.building-register-unit-cell:hover:after{content:attr(data-tooltip);position:absolute;z-index:10;left:50%;bottom:calc(100% + 7px);width:max-content;max-width:310px;transform:translateX(-50%);padding:8px 10px;border-radius:7px;background:rgba(15,23,42,.96);color:#fff;font-size:10px;font-weight:800;line-height:1.45;white-space:normal;pointer-events:none}.building-register-selected-unit{display:grid;grid-template-columns:130px minmax(170px,1fr) minmax(280px,1.5fr);gap:8px;margin-top:10px;padding:10px 12px;border:2px solid #1671e8;border-radius:10px;background:#f2f7ff}.building-register-selected-unit div{display:flex;min-width:0;flex-direction:column;gap:3px}.building-register-selected-unit span{color:#526174;font-size:9px;font-weight:900}.building-register-selected-unit strong{overflow-wrap:anywhere;color:#172033;font-size:11px;line-height:1.4}.building-register-selected-unit div:nth-child(2) strong{color:#075bc7}
.building-register-sections{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.building-register-section{padding:13px;border:1px solid #d8e2ee;border-radius:12px;background:#fff}.building-register-section h3{margin:0 0 10px;color:#172033;font-size:14px}.building-register-section.floor-match{border-color:#8ecdbd;background:#fbfffd}.building-register-section.floor-warning{border-color:#f0c27b;background:#fffdf8}
.building-register-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.building-register-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0;padding:7px 0;border-bottom:1px dashed #e3e9f1}.building-register-row.wide{grid-column:1/-1}.building-register-row span{flex:none;color:#667085;font-size:10px}.building-register-row b{min-width:0;text-align:right;overflow-wrap:anywhere;color:#273449;font-size:11px;line-height:1.45}.building-register-row.wide b{text-align:left}
.building-register-notice{margin-top:10px;padding:12px 14px;border:1px solid #f1c88d;border-radius:11px;background:#fff9ed}.building-register-notice strong{color:#9a5b13;font-size:12px}.building-register-notice p{margin:5px 0 0;color:#6b4a24;font-size:10px;line-height:1.55}
.building-register-preview{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;padding:14px 16px;border:1px solid #bcd5f5;border-radius:12px;background:#f3f8ff}.building-register-preview span{color:#1671e8;font-size:10px;font-weight:900}.building-register-preview strong{color:#172033;font-size:16px}.building-register-preview p{margin:0;color:#526174;font-size:12px;line-height:1.5}
.building-register-source{display:flex;align-items:center;gap:11px;margin-top:10px;padding:11px 13px;border:1px solid #d7e0eb;border-radius:11px;background:#fff}.building-register-source img{width:100px;height:auto;object-fit:contain}.building-register-source div{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.building-register-source b{color:#344054;font-size:10px}.building-register-source span{color:#7a8699;font-size:9px}.building-register-source a{flex:none;color:#1467d8;font-size:10px;font-weight:900;text-decoration:none}.building-register-source a:hover{text-decoration:underline}
.building-register-footer{display:flex;justify-content:flex-end;gap:8px;min-height:62px;padding:10px 16px;border-top:1px solid #dbe4ef;background:#fff;box-sizing:border-box}.building-register-footer button{min-width:112px;height:40px;padding:0 16px;border-radius:9px;font-size:12px;font-weight:900;cursor:pointer}.building-register-refresh{border:1px solid #1671e8;background:#1671e8;color:#fff}.building-register-refresh:disabled{opacity:.55;cursor:wait}.building-register-close{border:1px solid #cbd5e1;background:#fff;color:#344054}
.building-register-sheet-section,.building-register-floor-section{margin-top:10px}.building-register-sheet-section h3,.building-register-floor-section h3{margin:0 0 9px;color:#172033;font-size:16px;font-weight:900}.building-register-table-wrap{overflow-x:auto;border:1px solid #cad5e2;border-radius:9px;background:#fff}.building-register-summary-table,.building-register-floor-table{width:100%;border-collapse:collapse;table-layout:fixed;color:#1f2937;font-size:12px}.building-register-summary-table th,.building-register-summary-table td,.building-register-floor-table th,.building-register-floor-table td{padding:8px 10px;border-right:1px solid #e3e8ef;border-bottom:1px solid #d5dde7;vertical-align:middle;line-height:1.35;overflow-wrap:anywhere}.building-register-summary-table tr:last-child th,.building-register-summary-table tr:last-child td,.building-register-floor-table tbody tr:last-child th,.building-register-floor-table tbody tr:last-child td{border-bottom:0}.building-register-summary-table th:last-child,.building-register-summary-table td:last-child,.building-register-floor-table th:last-child,.building-register-floor-table td:last-child{border-right:0}.building-register-summary-table th{width:15%;background:#f8fafc;color:#465268;text-align:center;font-weight:900}.building-register-summary-table td{width:35%;background:#fff;font-weight:700}.building-register-floor-table thead th{background:#f1f5f9;color:#344054;text-align:center;font-weight:900}.building-register-floor-table thead th:nth-child(1){width:13%}.building-register-floor-table thead th:nth-child(2){width:41%}.building-register-floor-table thead th:nth-child(3){width:18%}.building-register-floor-table thead th:nth-child(4){width:28%}.building-register-floor-table tbody th{position:relative;background:#f8fafc;text-align:center;font-weight:900}.building-register-floor-table tbody td{text-align:left;font-weight:700}.building-register-floor-table tbody td:nth-child(3){text-align:right;white-space:nowrap}.building-register-floor-table tr.matched-floor th,.building-register-floor-table tr.matched-floor td{background:#eef9f4}.building-register-floor-table tr.matched-floor th{color:#087b63}.building-register-floor-table tr.matched-floor small{display:block;margin-top:2px;color:#0a8f72;font-size:8px}.building-register-floor-table .empty-floor{padding:24px;text-align:center;color:#667085}.building-register-reference{margin:8px 2px 0;color:#667085;font-size:9px;font-style:italic}.building-register-floor-section{margin-top:18px}
.building-register-floor-table small.floor-room-unavailable{color:#b45309!important}
@media(max-width:768px){
  .item-action-row .item-building-register-btn{height:23px!important;min-height:23px!important;max-height:23px!important;padding:0 6px!important;font-size:10px!important}
  .building-register-modal{align-items:stretch;justify-content:stretch}.building-register-dialog{width:100%;height:100dvh;max-height:none;border:0;border-radius:0}.building-register-header{min-height:58px;padding:8px 12px}.building-register-brand{gap:8px}.building-register-brand img{width:82px}.building-register-brand span{font-size:9px}.building-register-brand h2{font-size:18px}.building-register-x{width:36px;height:36px;font-size:24px}.building-register-body{padding:10px}.building-register-address{grid-template-columns:1fr;padding:10px 11px}.building-register-sections{grid-template-columns:1fr;gap:8px}.building-register-section{padding:11px}.building-register-section h3{font-size:13px}.building-register-grid{gap:0 10px}.building-register-row{padding:6px 0}.building-register-row span{font-size:9px}.building-register-row b{font-size:10px}.building-register-source{align-items:flex-start;flex-wrap:wrap;padding:10px}.building-register-source img{width:82px}.building-register-source a{margin-left:auto}.building-register-footer{min-height:56px;padding:8px 10px}.building-register-footer button{flex:1;height:40px;min-width:0}.building-register-sheet-section h3,.building-register-floor-section h3{font-size:14px}.building-register-summary-table,.building-register-summary-table tbody{display:block;width:100%}.building-register-summary-table tr{display:grid;grid-template-columns:92px minmax(0,1fr);width:100%}.building-register-summary-table th,.building-register-summary-table td{display:block;width:auto!important;min-width:0;padding:7px 8px;border-bottom:1px solid #d5dde7}.building-register-summary-table tr:last-child th,.building-register-summary-table tr:last-child td{border-bottom:1px solid #d5dde7}.building-register-summary-table tr:last-child > :nth-last-child(-n+2){border-bottom:0}.building-register-summary-table th{text-align:left}.building-register-floor-table{min-width:560px;font-size:10px}.building-register-floor-table th,.building-register-floor-table td{padding:7px 8px}
  .building-register-unit-browser{padding:10px}.building-register-unit-browser-head{align-items:flex-start;flex-direction:column;gap:3px}.building-register-unit-card{flex-basis:96px;min-height:66px}.building-register-unit-card:hover:after,.building-register-unit-cell:hover:after{display:none}.building-register-floor-row{grid-template-columns:38px minmax(0,1fr)}.building-register-floor-label{min-height:27px;font-size:9px}.building-register-unit-cell{min-width:39px;height:27px;padding:0 4px;font-size:9px;line-height:25px}.building-register-selected-unit{grid-template-columns:1fr;gap:7px}.building-register-selected-unit div{padding-bottom:6px;border-bottom:1px dashed #bdd2ed}.building-register-selected-unit div:last-child{padding-bottom:0;border-bottom:0}
}
@media(max-width:380px){.building-register-grid{grid-template-columns:1fr}.building-register-row.wide{grid-column:auto}.building-register-row b{max-width:62%}}

/* v6.4.5 smartphone-only: fill the action row while keeping memo separated */
@media(max-width:600px){
  .item-action-row{
    flex-wrap:nowrap!important;
    gap:4px!important;
    min-height:27px!important;
  }
  .item-compact-actions-v650 .item-action-left{
    display:flex!important;
    flex:1 1 0!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:3px!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  .item-compact-actions-v650 .item-action-left::-webkit-scrollbar{display:none!important}
  .item-action-select{
    flex:0 0 20px!important;
    min-width:20px!important;
    padding-top:0!important;
  }
  .item-action-select input{width:15px!important;height:15px!important}
  .item-action-row .item-nav-btn,
  .item-action-row .item-roadview-btn,
  .item-action-row .item-building-register-btn,
  .item-action-row .item-list-add-btn,
  .item-action-row .item-source-link-btn,
  .item-action-row .item-edit-btn-v630{
    flex:1 1 0!important;
    min-width:38px!important;
    height:27px!important;
    min-height:27px!important;
    max-height:27px!important;
    padding:0 5px!important;
    font-size:10px!important;
    line-height:25px!important;
    letter-spacing:-.25px!important;
    white-space:nowrap!important;
  }
  .item-action-row .item-roadview-btn{
    min-width:46px!important;
  }
  .item-action-row .item-memo-toggle{
    flex:0 0 48px!important;
    width:48px!important;
    height:27px!important;
    min-height:27px!important;
    max-height:27px!important;
    margin-left:0!important;
    padding:0 4px!important;
    font-size:10px!important;
    line-height:25px!important;
    letter-spacing:-.25px!important;
    white-space:nowrap!important;
  }
}

/* v6.5.5 desktop/tablet listing action sizing (loaded after style.css) */
@media(min-width:601px) and (max-width:1199px){
  .item-compact-actions-v650 .item-nav-btn,
  .item-compact-actions-v650 .item-roadview-btn,
  .item-compact-actions-v650 .item-building-register-btn,
  .item-compact-actions-v650 .item-list-add-btn,
  .item-compact-actions-v650 .item-source-link-btn,
  .item-compact-actions-v650 .item-edit-btn-v630,
  .item-compact-actions-v650 .item-memo-toggle{
    height:31px!important;min-height:31px!important;max-height:31px!important;
    padding:0 10px!important;font-size:11.5px!important;line-height:29px!important
  }
}
@media(min-width:1200px){
  .item-compact-actions-v650 .item-nav-btn,
  .item-compact-actions-v650 .item-roadview-btn,
  .item-compact-actions-v650 .item-building-register-btn,
  .item-compact-actions-v650 .item-list-add-btn,
  .item-compact-actions-v650 .item-source-link-btn,
  .item-compact-actions-v650 .item-edit-btn-v630,
  .item-compact-actions-v650 .item-memo-toggle{
    height:32px!important;min-height:32px!important;max-height:32px!important;
    padding:0 11px!important;font-size:12px!important;line-height:30px!important
  }
}
@media (min-width:769px) and (pointer:coarse),
       (min-width:769px) and (any-pointer:coarse),
       (min-width:769px) and (hover:none){
  .item-compact-actions-v650 .item-nav-btn,
  .item-compact-actions-v650 .item-roadview-btn,
  .item-compact-actions-v650 .item-building-register-btn,
  .item-compact-actions-v650 .item-list-add-btn,
  .item-compact-actions-v650 .item-source-link-btn,
  .item-compact-actions-v650 .item-edit-btn-v630,
  .item-compact-actions-v650 .item-memo-toggle{
    height:38px!important;min-height:38px!important;max-height:38px!important;
    padding:0 14px!important;font-size:13.5px!important;line-height:36px!important
  }
}
