/* v5: scoped search / account dialog, site typography and chrome preserved */
.pk-tool-dialog{width:min(540px,calc(100vw - 24px));max-height:min(85dvh,730px);margin:auto;padding:0;background:#fffcf5;color:#171717;border:0;border-radius:22px;box-shadow:0 18px 70px #21191b55}
.pk-tool-dialog::backdrop{background:#1f1a1bb9}
.pk-tool-head{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:22px 24px 12px}
.pk-tool-head h2{font-weight:900;letter-spacing:-.05em;margin:0;font-size:29px;line-height:1.1}
.pk-tool-close{border:0;background:#f0e7dc;color:#191414;font-weight:900;font-size:23px;line-height:1;border-radius:50%;height:37px;width:37px;flex-shrink:0}
.pk-tool-body{padding:8px 24px 24px}
.pk-search-label{display:block;font-size:13px;font-weight:800;margin-bottom:9px}
.pk-search-input{border:1.5px solid #d4c5b5;border-radius:12px;font-size:16px;width:100%;padding:13px 14px;background:white;color:#171717}
.pk-search-input:focus{outline:3px solid #eeb35a;outline-offset:2px}
.pk-search-status{font-size:12px;color:#695f56;margin:14px 0 9px}
.pk-search-results{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow-y:auto}
.pk-search-result{border:1px solid #eee1d2;background:#fff7eb;border-radius:12px;padding:13px 14px;display:flex;gap:12px;align-items:center;justify-content:space-between;text-decoration:none;color:#161414}
.pk-search-result:hover,.pk-search-result:focus-visible{background:#f7e5ce;border-color:#d19f53}
.pk-search-title{font-weight:800;display:block}
.pk-search-tag{font-size:11px;color:#7d6450;display:block;margin-top:4px}
.pk-account-intro{font-size:14px;color:#65564e;line-height:1.55;margin:0 0 20px}
.pk-account-actions{display:flex;flex-direction:column;gap:10px}
.pk-account-link{display:flex;justify-content:space-between;align-items:center;background:#fff2e0;border:1px solid #ead8c1;border-radius:13px;padding:15px;font-weight:800;color:#1d1715;text-decoration:none}
.pk-account-link.primary{background:#edac39;border-color:#edac39}
.pk-account-link:hover{filter:brightness(.97)}
.pk-account-note{margin:16px 0 0;font-size:11px;line-height:1.5;color:#706359}
/* Keep the icon tools accessible on phones without changing header height. */
@media(max-width:780px){.actions .search-button,.actions .profile-button{display:grid}.header-inner{gap:8px}.actions{gap:1px}.actions .icon-button{width:30px;height:30px}}
@media(max-width:420px){.header-inner{padding:0 12px}.brand{left:12px;width:135px}.actions .icon-button{width:28px;height:30px}.pk-tool-head{padding:19px 17px 9px}.pk-tool-body{padding:8px 17px 18px}}
