/* Shared action sizing for touch and desktop. Keep text links and icon controls distinct. */
:root{--pw-action-height:48px;--pw-action-radius:10px;--pw-action-font:15px}
:is(button:not(.agent-close):not(#agent-send):not([data-agent-remove]):not([data-agent-undo]),a.primary,a.pw-button,a.workspace-link,a.social-button,a.draft-review-button,.actions>a,.hero-actions>a,.passport-menu>summary,.passport-section-menu>summary){box-sizing:border-box!important;min-height:var(--pw-action-height)!important;border-radius:var(--pw-action-radius)!important;padding:8px 14px!important;font-size:var(--pw-action-font)!important;font-weight:600!important;line-height:1.3!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;white-space:normal!important}
:is(a.primary,a.pw-button,a.workspace-link,a.social-button,a.draft-review-button,.actions>a,.hero-actions>a){display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
:is(.actions,.hero-actions,.draft-paths){align-items:stretch}
:is(.actions,.hero-actions)>:is(button,a){flex:1 1 220px;max-width:100%;margin-top:0!important;margin-bottom:0!important;align-self:stretch}
.agent-draft-notice .draft-review-button,.preview-import-prompt .draft-review-button,.preview-import-prompt .preview-action-link{width:100%!important;min-height:48px!important;font-size:15px!important;padding:8px 14px!important;border-width:1px!important;border-radius:10px!important}
.passport-menu-panel :is(a,button){width:100%;text-align:left;justify-content:flex-start;font-size:14px!important}.passport-menu-panel nav{gap:2px}
#account-form>#submit,.card>.primary,.card>.workspace-link,.card>#signout{width:100%;min-height:48px!important;padding:8px 14px!important;font-size:15px!important;border-radius:10px!important}
.agent-close,#agent-send{box-sizing:border-box;min-height:44px;min-width:44px}
/* Small utility rows remain compact, with the same touch target. */
.pawsport-utilities :is(a,button){box-sizing:border-box;min-height:48px!important;padding:8px 12px!important;font-size:13px!important;line-height:1.3!important;border-radius:10px!important}
@media(max-width:600px){:is(.actions,.hero-actions){gap:10px}.actions>:is(a,button),.hero-actions>:is(a,button){flex-basis:100%;width:100%}.agent-dialog .actions>:is(a,button),#agent-dialog .actions>:is(a,button){flex-basis:auto;width:auto}.draft-paths .draft-path{min-width:0}}

:is(.actions,.hero-actions)>:is(a,button),a.primary,a.workspace-link,.draft-path>button,.agent-draft-notice .draft-review-button,#account-form>#submit,.card>#signout,.passport-menu-panel :is(a,button),.pawsport-utilities :is(a,button){height:48px!important}

.passport-creation-help{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:22px;border:1px solid #b3cbbd;border-radius:14px;background:#faf8f3;color:#203f36}.passport-creation-help::backdrop{background:#142e2866}.passport-creation-help h2{font-size:22px;line-height:1.25;margin:0 0 10px}.passport-creation-help p{font-size:15px;line-height:1.45;margin:0 0 18px}.passport-creation-help .actions{display:flex;flex-direction:column;gap:10px}.passport-creation-help .actions>*{flex:0 0 auto;width:100%;height:48px!important}@media(max-width:600px){.passport-creation-help{padding:18px}.passport-creation-help h2{font-size:20px}}

.signed-in-identity{font:500 13px/1.4 system-ui,-apple-system,sans-serif;color:#345d4d;overflow-wrap:anywhere;margin:8px 0 12px}.home-header,.chat-header,body>header:has(.passport-menu){flex-wrap:wrap!important}.home-header>.signed-in-identity,.chat-header>.signed-in-identity,header>#passport-identity{flex:0 0 100%;width:100%;margin:0;padding:4px 0;text-align:right}.chat-header>.signed-in-identity{font-size:12px;text-align:left}.signed-in-identity[hidden]{display:none!important}

.account-identity-row{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0}.account-identity-row .signed-in-identity{margin:0;flex:1 1 auto;width:auto;text-align:left}.account-identity-row .account-signout{flex:0 0 auto;width:auto!important;height:44px!important;min-height:44px!important;padding:8px 12px!important;font-size:13px!important;border:1px solid #9bbba7;background:#edf4ef;color:#203f36;border-radius:10px}.home-header>.account-identity-row,.chat-header>.account-identity-row,header>.account-identity-row{flex:0 0 100%;width:100%}.card>.account-identity-row{margin:0 0 14px}.account-identity-row:has(.signed-in-identity[hidden]){display:none}.account-signout[hidden]{display:none!important}

@media(max-width:600px){body>header:has(.passport-menu){display:grid;grid-template-columns:1fr auto;gap:10px 12px}body>header:has(.passport-menu)>.account-identity-row{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:10px}body>header:has(.passport-menu)>.brand{grid-column:1;grid-row:2}body>header:has(.passport-menu)>.passport-menu{grid-column:2;grid-row:2}.account-identity-row .signed-in-identity{font-size:12px}.account-identity-row .account-signout{font-size:12px!important;font-weight:500!important;height:auto!important;min-height:32px!important;padding:4px 6px!important;background:transparent;border:0;text-decoration:underline;border-radius:4px!important}}

#home-account-row{grid-column:1/-1;display:flex;align-items:center;gap:10px;width:100%;min-width:0}#home-account-identity:not([hidden]){display:block!important;visibility:visible!important;opacity:1!important;color:#203f36!important;font-size:13px!important;line-height:1.4!important;letter-spacing:normal!important;flex:1 1 auto;min-width:0;overflow-wrap:anywhere;margin:0}#home-account-row:has(#home-account-identity[hidden]){display:none}@media(max-width:740px){#home-account-row{grid-row:3}#home-account-identity:not([hidden]){font-size:12px!important}}

.home-passport-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #9bbba7;border-radius:10px;font-size:14px;line-height:1.3;color:#205f50;background:#edf4ef;white-space:nowrap}.home-passport-link[hidden]{display:none!important}@media(max-width:740px){#home-account-row{flex-wrap:wrap}.home-passport-link{order:3;width:100%;margin-top:4px}}

.guardian-home-menu{flex:0 0 100%;width:100%;order:2}.guardian-home-menu[hidden]{display:none!important}.guardian-home-menu>summary{display:none}.guardian-home-menu>nav{display:flex!important;align-items:center;justify-content:flex-end;gap:8px}.guardian-home-menu>nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid #bfd1c5;border-radius:10px;font-size:14px;line-height:1.3;color:#203f36;background:#edf4ef;text-decoration:none;font-weight:600}.home-header>#home-account-row{order:1}.guardian-home-menu a:focus-visible,.guardian-home-menu>summary:focus-visible{outline:3px solid #397eb5;outline-offset:3px}@media(max-width:740px){.guardian-home-menu{grid-column:1/-1;grid-row:4;position:relative}.guardian-home-menu>summary{display:block;list-style:none;cursor:pointer;width:max-content;margin-left:auto;min-height:44px;padding:10px 14px;border:1px solid #9bbba7;border-radius:10px;font-size:14px;line-height:1.5;font-weight:650}.guardian-home-menu>summary::-webkit-details-marker{display:none}.guardian-home-menu:not([open])>nav{display:none!important}.guardian-home-menu>nav{display:flex!important;flex-direction:column;align-items:stretch;gap:4px;margin-top:6px;padding:8px;border:1px solid #cbd9cf;border-radius:12px;background:#fff}.guardian-home-menu>nav a{justify-content:flex-start;border:0;background:transparent}#home-account-row{grid-row:3}}

@media(min-width:741px){.guardian-header-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:0 0 100%;width:100%;order:2}.guardian-header-bar>.guardian-home-menu{flex:0 1 auto;width:auto;order:0}.guardian-header-bar>.guardian-home-menu>nav{justify-content:flex-start}.guardian-header-bar>#home-account-row{flex:0 1 auto;width:auto;margin-left:auto;justify-content:flex-end;gap:10px}.guardian-header-bar #home-account-identity{flex:0 1 auto;text-align:right}.guardian-header-bar .account-signout{flex-shrink:0}}.guardian-header-bar:has(.guardian-home-menu[hidden]){display:none}@media(max-width:740px){.guardian-header-bar{display:contents}.guardian-header-bar #home-account-row{grid-row:3;grid-column:1/-1}.guardian-header-bar .guardian-home-menu{grid-row:4;grid-column:1/-1}}

@media(max-width:740px){.home-header .pawsport-utilities>a[href="help.html"],.home-header .pawsport-utilities>[data-pw-install]{display:none!important}.guardian-header-bar #home-account-row{grid-row:2}.guardian-header-bar .guardian-home-menu{grid-row:3}}

@media(max-width:740px){.home-header{grid-template-columns:1fr auto auto;column-gap:8px}.home-header .home-logo{grid-column:1;grid-row:1}.home-header .header-agent{grid-column:2;grid-row:1;font-size:12px!important;line-height:1.25!important;padding:6px 9px!important;min-height:40px!important;height:40px!important;border-radius:9px!important}.guardian-header-bar .guardian-home-menu{grid-column:3;grid-row:1;width:auto;min-width:0}.guardian-home-menu>summary{margin:0;font-size:12px;line-height:1.25;min-height:40px;padding:11px 9px}.guardian-home-menu>nav{position:absolute;right:0;top:100%;z-index:30;width:min(280px,calc(100vw - 32px));box-shadow:0 8px 24px #203f3526}.guardian-header-bar #home-account-row{grid-column:1/-1;grid-row:2}.home-header .home-logo img{width:115px}}

@media(max-width:740px){.home-header .header-agent,.guardian-home-menu>summary{box-sizing:border-box!important;width:100px!important;height:40px!important;min-height:40px!important;padding:6px!important;display:flex;align-items:center;justify-content:center;font-size:12px!important;line-height:1.2!important;border-radius:9px!important;text-align:center}.home-header{column-gap:6px}.home-header .home-logo img{width:105px}}

@media(max-width:740px){#pawsport-home-header #home-agent-button,#pawsport-home-header #guardian-home-menu>summary{font:600 12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;-webkit-text-size-adjust:100%;text-size-adjust:100%;}}
