.address-search-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0;width:100%}.address-search-toolbar input{flex:1 1 150px;min-width:0;width:auto;border:1px solid #bcc8ce;border-radius:10px;background:#fff;color:#172b36;padding:10px 12px;font:inherit}.address-search-toolbar button{flex:0 0 auto;border-radius:10px;min-height:40px;padding:8px 12px}.address-search-status{flex-basis:100%;font-size:13px}.address-search-status:empty{display:none}[data-address-search][hidden],.saved-receiver-group[hidden],.dashboard-group[hidden],.address-search-toolbar [hidden]{display:none!important}html[data-theme="dark"] .address-search-toolbar input,body.dark-mode .address-search-toolbar input{background:#000;color:inherit;border-color:#53616d}

body:has(#themeToggle:checked) .address-search-toolbar input{background:#000;color:#edf2f5;border-color:#53616d}

.address-sync-toolbar .default-address-qr-button:has(+ .workspace-back-button){margin-right:0}.address-sync-toolbar .workspace-back-button{margin:0 auto 0 0;flex-shrink:0}.workspace-back-button[hidden]{display:none!important}

.saved-picker-add-new{display:inline-flex;align-items:center;gap:7px}.saved-picker-add-new img{width:20px;height:20px}
#savedSenderDialog .saved-group-select-all{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:38px;padding:8px 12px;line-height:1.3;cursor:pointer}
#savedSenderDialog .saved-group-select-all>input[type="checkbox"]{box-sizing:border-box;flex:0 0 18px;width:18px!important;height:18px!important;min-width:18px;min-height:18px;margin:0!important;padding:0!important;align-self:center}
#savedSenderDialog .saved-picker-select-all>span{display:block;margin:0;line-height:1.3}
.saved-picker-selection-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-basis:100%}.saved-picker-selection-actions[hidden]{display:none!important}.saved-picker-selection-actions button{display:grid;place-items:center;width:38px;height:38px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--page-bg-soft);cursor:pointer}.saved-picker-selection-actions img{width:21px;height:21px}
#savedSenderDialog .saved-selection-footer{flex-wrap:wrap}
.preview-action-tooltip{position:fixed;z-index:10000;max-width:calc(100vw - 16px);padding:7px 10px;border-radius:8px;background:#123b46;color:#fff;font:650 13px/1.3 system-ui,sans-serif;box-shadow:0 3px 10px #0003;pointer-events:none}.preview-action-tooltip[hidden]{display:none!important}
@media(max-width:720px){.preview-actions [data-tooltip]::after{display:none!important}}

.new-address-methods{display:none;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0}
.new-address-methods button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;border-radius:12px}.new-address-methods img{width:24px;height:24px}
#newSavedAddressDialog.choosing-address-method>.new-address-methods{display:grid}
#newSavedAddressDialog.choosing-address-method>:is(.dashboard-csv-format-hint,.new-group-name,.address-edit-grid,.edit-pin-status,.csv-actions),#newSavedAddressDialog.choosing-address-method .dashboard-form-heading p,#newSavedAddressDialog.choosing-address-method .dashboard-form-tools{display:none!important}
#newSavedAddressDialog.choosing-scan-method>.new-address-methods{display:none}
#newSavedAddressDialog.choosing-scan-method .dashboard-form-tools{display:flex!important}
#newSavedAddressDialog.choosing-scan-method .new-group-csv{display:none!important}
@media(max-width:480px){.new-address-methods{grid-template-columns:1fr}.new-address-methods button{width:100%}}

/* Add new occupies the entire form viewport, hiding the address book beneath. */
html:has(#newSavedAddressDialog[open]),body:has(#newSavedAddressDialog[open]){overflow:hidden!important;overscroll-behavior:none}
#newSavedAddressDialog[open]{position:fixed!important;inset:0!important;margin:0!important;box-sizing:border-box;width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;background:var(--page-bg-soft,#fff)!important;overflow:auto;overscroll-behavior:contain}
#newSavedAddressDialog::backdrop{background:var(--page-bg-soft,#fff)}
#newSavedAddressDialog.choosing-address-method[open]{overflow:hidden!important;display:flex;flex-direction:column}
#newSavedAddressDialog.choosing-address-method>.new-address-methods{flex:1;align-content:center;margin:0;padding:16px 0}
#newSavedAddressDialog.choosing-address-method>.dashboard-form-heading{flex:none}
#newSavedAddressDialog.choosing-address-method>.new-address-methods{grid-template-columns:1fr;gap:12px;align-content:center;padding:12px 0}
#newSavedAddressDialog.choosing-address-method .new-address-methods button{width:100%;min-height:52px}
#newSavedAddressDialog.choosing-address-method>.new-address-methods{padding-inline:16px}
#newSavedAddressDialog.choosing-address-method .new-address-methods button{min-height:48px}

#newSavedAddressDialog:not(.choosing-address-method) .dashboard-form-tools,
#newSavedAddressDialog:not(.choosing-address-method)>.new-address-methods,
#newSavedAddressDialog:not(.choosing-address-method)>.dashboard-csv-format-hint{display:none!important}

#newSavedAddressDialog .dashboard-address-grid,
#newSavedAddressDialog .dashboard-form-field{min-width:0}
#newSavedAddressDialog textarea[data-new="line1"]{box-sizing:border-box;width:100%;min-width:0;max-width:100%;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
#newSavedAddressDialog .dashboard-cell-suggestions{box-sizing:border-box;max-width:calc(100% - 16px);overflow-x:hidden}
#newSavedAddressDialog .dashboard-cell-suggestions button,
#newSavedAddressDialog .dashboard-suggestion-message,
#newSavedAddressDialog .edit-pin-status{white-space:normal;overflow-wrap:anywhere;word-break:normal;max-width:100%;min-width:0}

#newSavedAddressDialog .manual-postal-actions{display:none;padding:14px 18px 18px}
#newSavedAddressDialog.manual-postal-step .manual-postal-actions{display:flex;justify-content:flex-end}
#newSavedAddressDialog.manual-postal-step .dashboard-address-grid>label:not(:has([data-new="pin"], [data-new="locality"])),
#newSavedAddressDialog.manual-postal-step>.new-group-name,
#newSavedAddressDialog.manual-postal-step>.csv-actions,
#newSavedAddressDialog.manual-postal-step .dashboard-form-heading p{display:none!important}

#newSavedAddressDialog.manual-postal-step .dashboard-address-grid{grid-template-columns:minmax(0,1fr);gap:14px}
#newSavedAddressDialog.manual-postal-step .dashboard-address-grid>label{grid-column:1;width:100%;box-sizing:border-box}
#newSavedAddressDialog.manual-postal-step .dashboard-address-grid :is(input,select){box-sizing:border-box;width:100%;min-width:0}

#newSavedAddressDialog.manual-postal-step .edit-pin-status:empty{display:none}
#newSavedAddressDialog.manual-address-step .dashboard-address-grid>label:not(:has([data-new="line1"])),
#newSavedAddressDialog.manual-address-step>.new-group-name,
#newSavedAddressDialog.manual-address-step>.edit-pin-status,
#newSavedAddressDialog.manual-address-step>.dashboard-form-heading{display:none!important}
#newSavedAddressDialog.manual-address-step .dashboard-address-grid{grid-template-columns:minmax(0,1fr)}

#newSavedAddressDialog .manual-step-back,#newSavedAddressDialog .manual-address-actions{display:none}
#newSavedAddressDialog:is(.manual-postal-step,.manual-address-step,.manual-contact-step)>.manual-step-back{display:block;margin:12px 18px}
#newSavedAddressDialog.manual-address-step>.manual-address-actions{display:flex;justify-content:flex-end;padding:14px 18px 18px}
#newSavedAddressDialog.manual-address-step>.csv-actions,
#newSavedAddressDialog.manual-contact-step .dashboard-address-grid>label:not(:has([data-new="name"],[data-new="mobile"])),
#newSavedAddressDialog.manual-contact-step>.dashboard-form-heading,
#newSavedAddressDialog.manual-contact-step>.edit-pin-status{display:none!important}
#newSavedAddressDialog.manual-contact-step .dashboard-address-grid{grid-template-columns:minmax(0,1fr)}
#newSavedAddressDialog.manual-contact-step label:has([data-new="name"]){order:-1}
#newSavedAddressDialog:is(.manual-postal-step,.manual-address-step,.manual-contact-step) .dashboard-address-grid{margin-top:12px}

#newSavedAddressDialog.manual-contact-step[open]{overflow:hidden!important}
#newSavedAddressDialog.manual-contact-step>.manual-step-back,
#newSavedAddressDialog.manual-contact-step>.csv-actions,
#newSavedAddressDialog.manual-address-step>.manual-address-actions{display:none!important}
#newSavedAddressDialog.manual-contact-step>.manual-address-actions{display:flex;justify-content:flex-end;padding:14px 18px 18px}
#newSavedAddressDialog.manual-address-step>.csv-actions{display:flex!important;gap:10px;flex-wrap:wrap}
#newSavedAddressDialog .manual-preview-address{display:none}
#newSavedAddressDialog.manual-address-step .manual-preview-address{display:inline-flex}
#newSavedAddressDialog.manual-contact-step .dashboard-address-grid{margin-top:52px}
#newSavedAddressDialog.manual-contact-step>.new-group-name{display:none!important}

#newSavedAddressDialog>.dashboard-form-heading>:not(.dashboard-form-tools){display:none!important}
#newSavedAddressDialog:not(.choosing-scan-method)>.dashboard-form-heading{display:none!important}
