:root{font-family:"Segoe UI",Arial,sans-serif;color:#21323e;background:#f3f6f8;font-synthesis:none;--green:#176747;--muted:#5f707b;--border:#dbe3e8}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button,input,select{border-radius:7px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #4592bc;outline-offset:3px}[hidden]{display:none!important}.shell{max-width:1480px;margin:auto;padding:0 40px}.topbar{background:#fff;border-bottom:1px solid var(--border)}.topbar-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:650;letter-spacing:-.3px}.brand-mark{display:grid;place-items:center;background:var(--green);color:white;width:35px;height:35px;border-radius:7px;font-size:29px;line-height:1}.source{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}.source-dot{width:7px;height:7px;background:#24885b;border-radius:50%}.page-heading{padding:35px 0 25px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.6px;color:var(--green)}h1{font-size:32px;letter-spacing:-.8px;line-height:1.2;margin:8px 0 10px}p{line-height:1.5}.page-heading p{margin:0;color:var(--muted);font-size:16px}.search-panel{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 2px 4px #172f4110;overflow:hidden}.tabs{display:flex;padding:0 24px;border-bottom:1px solid var(--border);gap:26px}.tab{border:0;background:none;padding:19px 0 17px;color:var(--muted);font-size:15px;font-weight:600;border-radius:0;border-bottom:3px solid transparent}.tab.active{border-bottom-color:var(--green);color:var(--green)}form{padding:24px 26px 14px}.filter-grid{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(280px,1.7fr) auto;gap:20px;align-items:start}.field{min-width:0}.field label{display:block;font-size:14px;font-weight:600;margin:0 0 9px}.field input,.field select{width:100%;height:47px;background:white;border:1px solid #bdcbd4;color:#21323e;padding:10px 13px;min-width:0}.field input::placeholder{color:#7a8992}.hint{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:7px}.field-error{font-size:13px;color:#9f3028}.primary{background:var(--green);border:1px solid var(--green);color:white;font-weight:600;min-height:44px;padding:10px 23px}.primary:hover{background:#105237}.search-button{margin-top:28px;height:47px;min-width:120px}.search-button span{font-size:22px;vertical-align:-1px}.filter-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:12px}.auto-note{font-size:13px;color:var(--muted)}.text-button{padding:8px 0;border:0;background:none;font-size:14px;color:var(--green);font-weight:600}.text-button:hover{text-decoration:underline}.results{margin-top:30px;outline:none}.results-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:16px}h2{font-size:20px;font-weight:650;margin:0;letter-spacing:-.3px}#result-count{margin:5px 0 0;color:var(--muted);font-size:14px;min-height:21px}#result-count strong{font-weight:700;color:#233e4a}.page-size{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px}.page-size select{height:38px;border:1px solid #c5d1d9;background:white;padding:5px 9px;color:#21323e}.table-wrap{background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden;position:relative}table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}th{text-align:left;font-weight:600;font-size:13px;color:#526976;background:#eaf0f3;border-bottom:1px solid var(--border);padding:14px 18px;line-height:1.4}th:nth-child(1){width:22%}th:nth-child(2){width:9%}th:nth-child(3){width:18%}th:nth-child(4){width:18%}th:nth-child(5){width:33%}td{padding:18px;vertical-align:top;border-bottom:1px solid #e5ebef;line-height:1.5;overflow-wrap:anywhere}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfc}.kn{font-family:Consolas,"Courier New",monospace;font-weight:600;color:#204856;white-space:nowrap;font-size:14px;letter-spacing:-.5px}.cell-label{display:none}.area{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.area-unit{display:block;font-size:12px;color:var(--muted);font-weight:400}.secondary-value{color:var(--muted);font-size:13px;margin-top:5px}.company+.company{border-top:1px dashed var(--border);margin-top:12px;padding-top:12px}.company-name{border:0;background:none;color:var(--green);padding:0;text-align:left;font-size:14px;font-weight:650;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.company-name:hover{text-decoration:underline}.company-code{font-size:12px;color:var(--muted);margin:5px 0}.company-contact{color:#354d5c;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.unknown{color:#6b7982;font-size:13px}.loading{min-height:180px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:15px}.spinner{height:21px;width:21px;border:2px solid #d2e5dc;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.table-wrap[aria-busy=true] tbody{opacity:.35}.pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:16px;font-size:14px;color:var(--muted)}.pagination nav{display:flex;align-items:center;gap:6px}.pagination button{height:38px;min-width:38px;border:1px solid #c7d3da;background:#fff;color:#2b4856;font-size:18px}.pagination button:not(:disabled):hover{border-color:var(--green);color:var(--green)}#page-label{padding:0 10px;color:#354b58;min-width:150px;text-align:center;font-size:13px}.footnote{display:flex;gap:9px;margin:24px 0 32px;color:var(--muted);align-items:start}.footnote span{margin-top:1px}.footnote p{font-size:13px;margin:0;max-width:800px}.error-panel{background:#fff5f3;border:1px solid #e9bdb5;border-radius:9px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:18px}.error-panel p{margin:5px 0 0;font-size:14px;color:#763c32}.secondary{background:#fff;border:1px solid #c1cfd7;min-height:42px;padding:9px 17px;font-size:14px;font-weight:600;color:#254855}.empty-panel{text-align:center;padding:48px 24px;background:#fff;border:1px solid var(--border);border-radius:10px}.empty-icon{font-size:40px;color:#75908a}.empty-panel h3{font-size:20px;margin:9px 0}.empty-panel p{font-size:15px;color:var(--muted);margin-bottom:22px}dialog{border:1px solid var(--border);border-radius:14px;box-shadow:0 24px 80px #132e4950;width:min(680px,calc(100% - 32px));padding:26px;max-height:85vh;color:#21323e}dialog::backdrop{background:#12263380}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.close-button{border:0;background:#edf2f4;width:38px;height:38px;font-size:26px;color:#3c5463}#company-title{margin:15px 0 24px;line-height:1.4;overflow-wrap:anywhere;font-size:20px}dl{margin:0}.detail-row{display:grid;grid-template-columns:145px 1fr;gap:16px;padding:13px 0;border-top:1px solid #e2e9ed;font-size:14px}dt{color:var(--muted)}dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.dialog-footer{display:flex;justify-content:flex-end;margin-top:20px}.skip{position:absolute;left:16px;top:-100px;padding:12px;background:#fff;color:#164f3c;z-index:10}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1400px){th:nth-child(1){width:20%}th:nth-child(2){width:9%}th:nth-child(3){width:18%}th:nth-child(4){width:18%}th:nth-child(5){width:35%}}
@media(max-width:1100px){.shell{padding:0 24px}th,td{padding:14px 12px}.kn{font-size:13px}.filter-grid{grid-template-columns:minmax(170px,.85fr) minmax(250px,1.4fr) auto;gap:14px}.search-button{min-width:100px;padding:10px 16px}}
@media(max-width:850px){.filter-grid{grid-template-columns:1fr 1.5fr}.search-button{grid-column:1/-1;margin-top:0;width:100%;height:44px}.table-wrap{background:transparent;border:0;overflow:visible}table,tbody{display:block}thead{display:none}tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;border:1px solid var(--border);border-radius:10px;margin-bottom:12px;padding:16px}td{display:block;padding:10px 0;border:0!important;min-width:0}td:nth-child(1){grid-column:1/-1;padding-top:0;border-bottom:1px solid #e6edef!important;padding-bottom:13px}.kn{font-size:15px;letter-spacing:0}td:nth-child(2){padding-right:12px}td:nth-child(4),td:nth-child(5){grid-column:1/-1}td:nth-child(5){border-top:1px solid #e6edef!important;padding-bottom:0}.cell-label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.area-unit{display:inline;margin-left:4px}.company-name{font-size:15px}.company-code,.company-contact{font-size:14px}.company+.company{margin-top:14px;padding-top:14px}.pagination{margin-top:4px}.loading{background:white;border:1px solid var(--border);border-radius:10px}}
@media(max-width:560px){.shell{padding:0 16px}.topbar-inner{min-height:65px}.brand{font-size:17px;gap:9px}.brand-mark{width:29px;height:29px;font-size:24px}.source{font-size:12px;gap:5px}.page-heading{padding:27px 0 21px}h1{font-size:28px}.page-heading p{font-size:15px}.tabs{gap:0;padding:0 16px;justify-content:space-between}.tab{font-size:13px;max-width:48%;line-height:1.4;text-align:left;padding:16px 0 13px}form{padding:19px 16px 12px}.filter-grid{grid-template-columns:1fr;gap:17px}.field input,.field select{font-size:16px}.hint{font-size:13px}.filter-bottom{align-items:flex-start;padding-top:15px}.auto-note{font-size:12px;max-width:160px;line-height:1.5}.text-button{font-size:13px;padding:0}.results{margin-top:24px}.results-heading{align-items:flex-start}h2{font-size:18px}.page-size{font-size:12px;gap:6px;white-space:nowrap}.page-size select{font-size:14px;width:61px}#result-count{font-size:13px}.pagination{flex-direction:column;gap:12px;align-items:stretch}.pagination nav{justify-content:space-between}.pagination button{min-width:38px}#page-label{min-width:0;padding:0 3px;font-size:12px}.footnote{margin-top:22px}.error-panel{flex-direction:column;align-items:stretch}.detail-row{grid-template-columns:1fr;gap:5px}dialog{padding:20px}#company-title{font-size:18px}.empty-panel{padding:34px 20px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
.purpose-details summary{cursor:pointer;color:#284f60;font-size:14px}.purpose-details summary:hover{color:var(--green)}.purpose-details p{font-size:13px;color:#526773;margin:9px 0 0}.purpose-details summary:focus-visible{outline:3px solid #4592bc;outline-offset:3px;border-radius:2px}
@media(max-width:560px){.page-heading .eyebrow{display:none}.page-heading{padding:22px 0 18px}.page-heading h1{margin:0 0 7px}}

/* Unified search and parcel-aligned company columns. */
.search-mode{display:block;min-height:19px;font-size:12px;color:var(--green);margin-top:5px;font-weight:600}
.field input[aria-invalid=true]{border-color:#aa3b30}
.shell{max-width:1640px}
th:nth-child(1){width:17%}th:nth-child(2){width:7%}th:nth-child(3){width:8%}th:nth-child(4){width:12%}th:nth-child(5){width:17%}th:nth-child(6){width:8%}th:nth-child(7){width:17%}th:nth-child(8){width:14%}
th,td{padding:16px 12px}.companies-cell{padding:0}.companies-cell>.cell-label{display:none}
.company-grid{display:grid;grid-template-columns:17fr 8fr 17fr 14fr;align-items:start}
.company-grid>div{min-width:0;padding:16px 12px;overflow-wrap:anywhere}
.company-grid+.company-grid{border-top:1px dashed var(--border)}
.company-code,.company-contact{font-size:13px;margin:0;display:block;overflow:visible;color:#354d5c}
.company-address{font-size:13px}.company-code{font-variant-numeric:tabular-nums}
.compact-details summary{cursor:pointer;color:#354d5c;line-height:1.5}
.compact-details p{white-space:pre-wrap;margin:8px 0 0}.compact-details[open] summary{font-size:12px;color:var(--green)}
summary:focus-visible{outline:3px solid #4592bc;outline-offset:3px}
@media(min-width:1101px){.area-unit{display:none}}
@media(max-width:1100px){
 .table-wrap{background:transparent;border:0;overflow:visible}table,tbody{display:block}thead{display:none}
 tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;border:1px solid var(--border);border-radius:10px;margin-bottom:12px;padding:16px}
 td{display:block;padding:10px 0;border:0!important;min-width:0}
 td:nth-child(1){grid-column:1/-1;padding-top:0;border-bottom:1px solid #e6edef!important;padding-bottom:13px}
 td:nth-child(2){padding-right:12px}td:nth-child(3){grid-column:2}td:nth-child(4),td:nth-child(5){grid-column:1/-1}
 .cell-label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
 .kn{font-size:15px;letter-spacing:0}.area-unit{display:inline;margin-left:4px}
 td.companies-cell{padding:0!important;border-top:1px solid #e6edef!important}
 .company-grid{grid-template-columns:1fr 1fr;padding:14px 0;gap:12px 16px}
 .company-grid>div{padding:0}.company-grid>div:first-child{grid-column:1/-1}
 .company-grid>div:nth-child(3){grid-column:1/-1;grid-row:3}
 .company-grid>div:nth-child(4){grid-column:1/-1}
 .company-name{font-size:15px}.company-grid>div:last-child{padding-bottom:0}
 .company-contact,.company-address{font-size:14px}.loading{background:white;border:1px solid var(--border);border-radius:10px}
}
@media(max-width:560px){.region-field{grid-row:1}.filter-grid{gap:12px}.filter-bottom{padding-top:12px}.company-grid{gap:10px}.hint{font-size:12px}.search-mode{font-size:12px}}

.company-name{display:block;overflow:visible;-webkit-line-clamp:unset}
@media(min-width:1101px){.company-grid .cell-label{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}

.mobile-only{display:none!important}
@media(max-width:1100px){
 .mobile-only{display:block!important}.desktop-name{display:none}
 tbody tr{display:flex;flex-direction:column;padding:12px 14px;gap:0}
 td:nth-child(1){display:flex;align-items:center;justify-content:space-between;padding:0!important;border:0!important;gap:6px}
 td:nth-child(1)>.cell-label,td:nth-child(2)>.cell-label,td:nth-child(4)>.cell-label{display:none}
 .kn{font-size:14px;letter-spacing:-.5px}
 td:nth-child(2){padding:0!important}.type-preview{display:inline!important;font-size:13px;color:var(--muted)}
 td:nth-child(4){padding:5px 0 10px!important;font-size:13px}
 tr:not(.expanded)>td:nth-child(3){display:none}
 tr:not(.expanded) .company-grid~.company-grid,tr:not(.expanded) .company-code,tr:not(.expanded) .company-address,tr:not(.expanded) .company-contact{display:none}
 .company-grid{display:flex;flex-direction:column;gap:5px;padding:9px 0 0}
 .company-grid>div:first-child>.cell-label{display:none}.company-name{font-size:14px;line-height:1.4}
 .phone-preview a{display:inline-flex;align-items:center;min-height:40px;color:var(--green);text-decoration:none;font-size:14px}
 .phone-preview .unknown{display:block;padding:7px 0}
 td.card-actions{padding:0!important;border-top:1px solid #e6edef!important;margin-top:5px}
 .card-toggle,.more-companies{min-height:42px;background:none;border:0;color:var(--green);text-align:left;font-size:13px;padding:8px 0;width:100%}
 .card-toggle::after{content:'⌄';float:right}.expanded .card-toggle::after{content:'⌃'}
 .expanded>td:nth-child(3){order:5;padding:12px 0!important}.expanded>.card-actions{order:6}
 .expanded .company-grid{gap:9px;padding:12px 0}.expanded .more-companies{display:none}
}

/* Mobile hierarchy: company, parcel location, attributes, identifier, call. */
@media(max-width:1100px){
 td.companies-cell,.company-grid:first-of-type{display:contents}
 .company-grid:first-of-type>div:first-child{order:-5;padding:2px 0 10px}
 .company-name{color:#21323e;font-size:17px;font-weight:700;line-height:1.4}
 td:nth-child(4){order:-4;padding:0 0 7px!important}
 td:nth-child(4)>.cell-label{display:block;font-size:11px;margin-bottom:2px}
 td:nth-child(2){order:-3;font-size:13px}.area{font-weight:600}
 td:nth-child(1){order:-2;margin-top:3px}
 .kn{color:#5f707b;font-weight:400;font-size:13px}
 .company-grid:first-of-type>.phone-preview{order:-1;padding:0 0 7px}
 .phone-preview a{font-size:13px;font-weight:600;min-height:44px}
 .card-toggle,.more-companies,.purpose-details summary,.compact-details summary{color:#21323e}
 .expanded .company-grid:first-of-type>.company-code,.expanded .company-grid:first-of-type>.company-address,.expanded .company-grid:first-of-type>.company-contact{padding:7px 0}
 .company-grid:not(:first-of-type){border-top:1px solid var(--border);margin-top:10px}
 .expanded>td:nth-child(3){order:1}.expanded>.card-actions{order:2}
}

.purchase-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;background:#fff;border:1px solid var(--border);border-radius:10px;margin-bottom:16px}
.purchase-bar strong{font-size:15px}.purchase-bar p{font-size:13px;color:var(--muted);margin:5px 0 0}.purchase-bar button{flex:none}
.locked-mask{display:block;width:80%;height:12px;background:#dce3e7;border-radius:5px;margin:5px 0;filter:blur(2px)}
.locked-company strong{font-size:14px;font-weight:600}.locked-description{display:block;color:var(--muted);font-size:13px;margin-top:4px;line-height:1.5}
.purchase-notice{font-size:14px;color:var(--muted);background:#f3f6f8;border-radius:8px;padding:14px}#purchase-summary{font-weight:650;font-size:20px}#purchase-description{font-size:14px}
@media(max-width:1100px){
 .locked-row>.locked-company{order:-5;padding:4px 0 10px!important;border:0!important}
 .locked-row>td:nth-child(1),.locked-row>td:nth-child(2),.locked-row>td:nth-child(3){display:none!important}
 .locked-row>td:nth-child(4){padding:0!important}.locked-row .locked-company strong{font-size:15px}
}
@media(max-width:560px){.purchase-bar{flex-direction:column;align-items:stretch;padding:16px;gap:12px}.purchase-bar button{width:100%}.purchase-bar p{font-size:12px}}

.account-actions{display:flex;justify-content:flex-end;align-items:center;gap:18px;flex-wrap:wrap;padding-top:18px;font-size:13px}.account-actions .text-button{color:#21323e}.account-actions span{overflow-wrap:anywhere;color:var(--muted)}#account-status{margin:0;font-size:13px;color:#9f3028}
#login-form{padding:0;display:flex;flex-direction:column;gap:12px}#login-email{height:46px;padding:10px 12px;border:1px solid #bdcbd4;font-size:16px}#login-message{font-size:14px;line-height:1.5}#confirm-message{overflow-wrap:anywhere}
.purchase-history-card{border-top:1px solid var(--border);padding:14px 0}.purchase-history-card h3{font-size:16px;margin:0}.purchase-history-card p{font-size:13px;color:var(--muted);margin:6px 0}.history-navigation{display:flex;justify-content:space-between;gap:12px;margin-top:16px}
@media(max-width:560px){.account-actions{gap:12px;padding-top:10px}.account-actions .text-button{min-height:36px}#login-dialog,#purchases-dialog{padding:18px}}

.results-heading{flex-wrap:wrap;gap:12px}.results-heading select{max-width:100%}@media(max-width:600px){.results-heading>.page-size{width:100%;justify-content:space-between}.results-heading>.page-size select{max-width:68%}}

.column-sort{border:0;background:transparent;color:inherit;font:inherit;font-weight:600;display:inline-flex;align-items:center;gap:6px;padding:8px 0;text-align:left;cursor:pointer;min-height:40px}.column-sort:focus-visible{outline:2px solid #176747;outline-offset:3px}.sort-arrow{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);color:#71838c;transition:transform .15s ease}.sort-arrow.sort-up{transform:translateY(2px) rotate(225deg)}.sort-active .sort-arrow{color:#183b2c}.mobile-sort{display:none}@media(max-width:850px){.mobile-sort{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0 0 12px}.mobile-sort .column-sort{font-size:12px;min-height:44px}}

.quantity-options{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 18px}.quantity-options button{padding:10px 18px;border:1px solid var(--border);border-radius:6px;background:white}.quantity-options input{width:110px;padding:10px;border:1px solid var(--border);border-radius:6px;font:inherit}.loading-placeholder{visibility:hidden}.skeleton-line{display:block;height:14px;width:85%;background:#e4e9ec;border-radius:4px}.skeleton-row td{padding-top:22px;padding-bottom:22px}.table-wrap{position:relative}.loading{position:absolute;top:4px;right:8px;padding:4px 8px;background:white;font-size:12px}.skeleton-row{pointer-events:none}#account-status{color:var(--text);overflow-wrap:anywhere}#login-email[aria-invalid=true]{border-color:#a13028}
@media(max-width:1100px){.skeleton-row{min-height:0;display:grid!important;grid-template-columns:1fr 1fr;gap:12px;padding:16px!important}.skeleton-row td{display:block!important;padding:0!important;border:0!important}.skeleton-row td:nth-child(n+5){display:none!important}.skeleton-row td:first-child{grid-column:1/-1}.skeleton-line{height:15px}}

.loading{min-height:0;height:1px;width:1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0}.quantity-options button[aria-pressed=true]{border-color:var(--green);background:#edf5f0}#account-status{color:#21323e}

#purchase-dialog{width:min(1000px,calc(100% - 32px));max-width:1000px;padding:28px;border-radius:16px}#purchase-dialog .dialog-top{align-items:center}#purchase-dialog h2{margin:0;font-size:25px}.purchase-intro{color:var(--muted);margin:14px 0 24px}.purchase-selection{display:flex;gap:22px;align-items:stretch}.purchase-selection .quantity-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:1;margin:0}.purchase-selection .quantity-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:14px 8px;border:1px solid var(--border);border-radius:10px;color:#21323e;background:white}.quantity-options button strong{font-size:23px}.quantity-options button span{font-size:13px;color:var(--muted)}.purchase-selection .quantity-options button[aria-pressed=true]{border:2px solid var(--green);background:#edf6f1;color:var(--green)}.quantity-options button[aria-pressed=true] span{color:var(--green)}.custom-quantity{border-left:1px solid var(--border);padding-left:22px;width:200px;flex-shrink:0}.custom-quantity label{display:block;font-size:14px;color:var(--muted);margin:0 0 10px}.custom-quantity>div{display:flex;align-items:center;gap:10px}.custom-quantity input{width:105px;min-width:0;padding:12px;border:1px solid var(--border);font-size:18px}.custom-quantity span{font-size:13px;color:var(--muted)}.purchase-quote{position:relative;background:#f0f6f3;border-radius:10px;padding:18px 20px 18px 54px;margin-top:24px}.purchase-quote:before{content:'i';position:absolute;left:18px;top:21px;border-radius:50%;width:23px;height:23px;text-align:center;line-height:23px;background:var(--green);color:white;font-weight:700}#purchase-summary{margin:0;font-size:20px;font-weight:650}#purchase-description{font-size:13px;color:var(--muted);line-height:1.6;margin:8px 0 0}#purchase-notice:empty{display:none}#purchase-dialog .purchase-notice{background:none;padding:0;margin:14px 0 0;font-size:13px;color:var(--muted)}#purchase-dialog .dialog-footer{border-top:1px solid var(--border);padding-top:20px;gap:12px}.purchase-error{position:relative;display:flex;gap:16px;align-items:center;background:#fff2f2;border:1px solid #f6d9d9;border-radius:10px;padding:16px 16px 16px 52px;margin-top:22px;color:#923e3e}.purchase-error:before{content:'!';position:absolute;left:17px;top:18px;width:22px;height:22px;background:#ba4a4a;color:white;border-radius:50%;text-align:center;font-weight:700}.purchase-error strong{font-size:16px}.purchase-error p{margin:5px 0 0;font-size:14px}.purchase-error>div{flex:1}.purchase-error button{flex-shrink:0;background:transparent;color:inherit;border-color:#e1bcbc}
@media(max-width:700px){#purchase-dialog{padding:20px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto}#purchase-dialog h2{font-size:22px}.purchase-intro{font-size:14px;margin:12px 0 18px}.purchase-selection{display:block}.purchase-selection .quantity-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.purchase-selection .quantity-options button{padding:9px;min-height:65px}.quantity-options button strong{font-size:21px}.quantity-options button:last-child{grid-column:1/-1}.custom-quantity{border-left:0;border-top:1px solid var(--border);padding:14px 0 0;margin-top:16px;width:auto}.custom-quantity input{width:100%}.custom-quantity>div{display:grid;grid-template-columns:minmax(0,1fr) auto}.purchase-quote{margin-top:18px;padding:14px 14px 14px 45px}.purchase-quote:before{left:13px;top:16px}#purchase-summary{font-size:17px}#purchase-description{font-size:12px}#purchase-dialog .dialog-footer{flex-direction:column-reverse;gap:8px}.purchase-error{align-items:stretch;flex-direction:column;padding-left:45px}.purchase-error:before{left:13px}.purchase-error button{align-self:flex-start}}

/* Shared header and responsive search/results controls. */
.site-header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:20px 0;background:#ffffffa8;border:1px solid var(--border);border-radius:12px;padding:20px 24px}
.site-header .page-heading{padding:0}.site-header h1{margin:0 0 6px}.site-header .account-actions{padding:0;gap:12px}.account-actions button{min-height:44px;padding:10px 18px;border-radius:7px}.account-actions #purchases-open{background:#eaf0f3}.account-actions #logout,.account-actions #login-open{background:var(--green);color:white}.account-actions #account-email{max-width:260px}
#account-status:empty{display:none}#account-status:not(:empty){margin:0 0 14px}.filter-bottom{justify-content:flex-end}.search-button{display:flex;align-items:center;justify-content:center;gap:9px;line-height:1;padding:10px 18px}.search-button span{font-size:16px}.search-button svg,.pagination svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.page-size select{width:80px;min-width:80px;padding:8px 10px;height:42px}.pagination button{display:inline-flex;align-items:center;justify-content:center;padding:0;width:40px;height:40px}.pagination svg{width:22px;height:22px}#purchased-footer{margin-top:20px}.results{padding-bottom:28px}
@media(max-width:1100px){.mobile-sort{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.mobile-sort .column-sort{border:1px solid var(--border);border-radius:7px;padding:9px 13px;min-height:42px;background:white;gap:12px;font-size:13px;font-weight:500}.mobile-sort .sort-active{border-color:#79ad96;background:#f0f8f4;color:#176747}.site-header{flex-wrap:wrap}.site-header .account-actions{justify-content:flex-start}.card-toggle{width:auto;padding:8px 14px;background:#edf6f1;border:1px solid #d5e8dd;border-radius:6px;margin-top:8px;min-width:106px}.card-toggle:after{margin-left:14px}.company-name{font-size:17px}}
@media(max-width:600px){.site-header{padding:18px 16px;gap:16px;margin:14px 0}.site-header h1{font-size:26px}.site-header .page-heading p{font-size:14px}.site-header .account-actions{width:100%;gap:8px}.account-actions #account-email{max-width:none;width:100%}.account-actions button{font-size:13px;padding:9px 14px}.results-heading{align-items:center}.results-heading>.page-size{width:auto;justify-content:flex-end}.page-size{gap:6px}.page-size select{max-width:none!important}.results-heading h2{font-size:18px}.search-field{grid-row:auto}.region-field{grid-row:1}.filter-grid{grid-template-columns:1fr}.search-button{grid-column:1;margin:0}.search-mode{display:none}.mobile-sort .column-sort{flex:1 0 auto;justify-content:space-between}}
/* Parcel detail dialog replaces inline card expansion. */
.detail-section h3{font-size:17px;margin:24px 0 10px;overflow-wrap:anywhere}.detail-section:first-child h3{margin-top:0}.name-chevron{display:none}.related-count{font-size:12px;color:var(--muted);margin-left:12px}.parcel-row .name-cell{padding:0;cursor:pointer}.name-cell .company-name{padding:16px 12px;width:100%;min-height:100%;color:var(--green)}.name-cell:hover{background:#f0f8f4}.name-cell .company-name:focus-visible{outline-offset:-3px}.parcel-row .card-toggle:after{content:'›'}
th:nth-child(1){width:18%}th:nth-child(2){width:17%}th:nth-child(3){width:7%}th:nth-child(4){width:9%}th:nth-child(5){width:12%}th:nth-child(6){width:8%}th:nth-child(7){width:16%}th:nth-child(8){width:13%}
@media(min-width:1101px){.parcel-row .name-cell{position:relative}.name-cell .company-name:only-of-type:after{content:'';position:absolute;inset:0}.parcel-row .purpose-cell>span:last-child,.parcel-row .address-cell>span:last-child,.parcel-row .contact-cell>span:last-child{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}
@media(max-width:1100px){
 .parcel-row>td{order:0;margin:0!important;padding:0!important;border:0!important;display:block!important}
 .parcel-row>.name-cell{order:-5}.parcel-row>.place-cell{order:-4;padding:0 0 7px!important}.parcel-row>.area-cell{order:-3}.parcel-row>.kn-cell{order:-2;margin-top:5px!important}.parcel-row>.phone-preview{order:-1}
 .parcel-row>.purpose-cell,.parcel-row>.code-cell,.parcel-row>.address-cell,.parcel-row>.contact-cell{display:none!important}
 .parcel-row>.name-cell>.cell-label,.parcel-row>.kn-cell>.cell-label,.parcel-row>.area-cell>.cell-label{display:none!important}.parcel-row>.place-cell>.cell-label{display:block!important;font-size:11px;margin-bottom:3px}
 .name-cell .company-name{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0 10px;color:var(--green);font-size:18px;font-weight:750;min-height:44px}.name-cell .company-name~.company-name{display:none}.name-chevron{display:block;font-size:24px;font-weight:400;flex:none}.parcel-row>.area-cell{font-size:13px}.parcel-row>.card-actions{padding-top:6px!important}.parcel-row .card-toggle{margin-top:0}.parcel-row.locked-row>td{display:none!important}.parcel-row.locked-row>.name-cell,.parcel-row.locked-row>.place-cell{display:block!important}.parcel-row.locked-row>.name-cell{padding-bottom:10px!important;cursor:default}.parcel-row .phone-preview:empty{display:none!important}
}
.locked-row .public-preview>span:not(.cell-label){display:block}
@media(min-width:1101px){table:has(.locked-row .purpose-cell.public-preview) th:nth-child(4){width:14%}table:has(.locked-row .purpose-cell.public-preview) th:nth-child(7){width:6%}}
@media(max-width:1100px){.parcel-row.locked-row>.public-preview{display:block!important}.parcel-row.locked-row>.place-cell:not(.public-preview){display:none!important}}
/* Full detail view: paired sections on desktop, stacked field/value cards on mobile. */
#company-dialog{width:min(880px,calc(100% - 32px));max-width:880px;padding:24px;max-height:90dvh;overflow:auto}
#company-dialog .dialog-top{position:sticky;top:-24px;z-index:1;background:white;padding:8px 0}.detail-heading{font-size:22px;font-weight:700}#company-title{font-size:22px;font-weight:750;color:var(--green);margin:16px 0 22px}
#company-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.detail-companies{min-width:0;display:grid;gap:16px}.detail-section{border:1px solid #e1e8e8;border-radius:12px;overflow:hidden;min-width:0}.detail-section h3,.detail-section:first-child h3{margin:0;padding:16px;background:#f2f6f5;font-size:17px}.detail-section dl{padding:0 14px}.detail-section .detail-row{grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:14px;padding:14px 0;border-top:1px solid #edf0f1;font-size:14px}.detail-section .detail-row:first-child{border-top:0}.detail-section dt{overflow-wrap:anywhere;line-height:1.5}
@media(max-width:1100px){
 .parcel-row:not(.locked-row){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 14px}
 .parcel-row:not(.locked-row)>.name-cell{grid-column:1/-1;grid-row:1;order:0}
 .parcel-row:not(.locked-row)>.place-cell{grid-column:1;grid-row:2;order:0;padding:0!important}
 .parcel-row:not(.locked-row)>.area-cell{grid-column:1;grid-row:3;order:0;padding:0!important}
 .parcel-row:not(.locked-row)>.kn-cell{grid-column:2;grid-row:2/4;order:0;margin:0!important;align-self:start}
 .parcel-row>.kn-cell>.cell-label{display:block!important;font-size:11px;margin-bottom:3px}.parcel-row .kn{white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.6}.parcel-row .type-preview{font-size:12px}
}
@media(max-width:700px){#company-dialog{padding:16px;width:calc(100% - 20px);max-height:94dvh;border-radius:16px}#company-dialog .dialog-top{top:-16px}#company-title{font-size:20px;line-height:1.4;margin:14px 0 20px}#company-fields{grid-template-columns:1fr;gap:16px}.detail-section h3,.detail-section:first-child h3{padding:14px;font-size:16px}.detail-section dl{padding:0 12px}.detail-section .detail-row{grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);gap:10px;font-size:13px;padding:12px 0}}
/* Locked company cells need normal table padding, unlike clickable name buttons. */
@media(min-width:1101px){.parcel-row.locked-row>.name-cell{padding:16px 12px;cursor:default;vertical-align:top}.parcel-row.locked-row>.name-cell strong{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5;font-size:14px}}
/* Scroll containment and viewport fallback for older iPhone Safari. */
html.modal-open{overflow:hidden;overscroll-behavior:none}
dialog[open]{overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;max-height:85vh;max-height:85dvh}
#company-dialog[open],#purchase-dialog[open]{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto}

/* Keep the dialog scrollport inside the viewport even when iOS fixes the body. */
dialog[open]{position:fixed;inset:0;margin:auto;min-height:0}

.cell-tooltip{position:fixed;z-index:1000;max-width:min(420px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;padding:12px 14px;background:#fff;color:#21323e;border:1px solid #dbe3e8;border-radius:7px;box-shadow:0 5px 20px #172f4126;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}

/* Price is an independent paid field; retain compact rows and mobile cards. */
.purchase-explanation{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 16px}
.purchase-selection .quantity-options{grid-template-columns:repeat(3,minmax(0,1fr))}
.price-cell{font-variant-numeric:tabular-nums}
@media(min-width:1101px){th:nth-child(1){width:16%}th:nth-child(2){width:16%}th:nth-child(3){width:6%}th:nth-child(4){width:7%}th:nth-child(5){width:11%}th:nth-child(6){width:8%}th:nth-child(7){width:13%}th:nth-child(8){width:12%}th:nth-child(9){width:11%}.price-cell>span:last-child{overflow-wrap:anywhere}}
@media(max-width:1100px){.parcel-row:not(.locked-row)>.price-cell{grid-column:1/-1;grid-row:4;margin-top:6px!important}.price-cell>.cell-label{display:block!important;font-size:11px;color:var(--muted)}}
@media(max-width:700px){.purchase-selection .quantity-options button:last-child{grid-column:auto}.purchase-selection .quantity-options button{padding:9px 4px}.quantity-options button span{font-size:11px}}
