/* GoonGift-owned families deliberately do not share embedded app font names. */
@font-face{font-family:'GoonGift Poppins';src:url('/public/fonts/poppins-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'GoonGift Poppins';src:url('/public/fonts/poppins-italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'GoonGift Poppins';src:url('/public/fonts/poppins-medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'GoonGift Poppins';src:url('/public/fonts/poppins-medium-italic.ttf') format('truetype');font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:'GoonGift Poppins';src:url('/public/fonts/poppins-semibold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'GoonGift Poppins';src:url('/public/fonts/poppins-semibold-italic.ttf') format('truetype');font-weight:600;font-style:italic;font-display:swap}
@font-face{font-family:'GoonGift Poppins';src:url('/public/fonts/poppins-bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'GoonGift Poppins';src:url('/public/fonts/poppins-bold-italic.ttf') format('truetype');font-weight:700;font-style:italic;font-display:swap}
:root{--gift-font-body:'GoonGift Poppins','Segoe UI',sans-serif;--gift-font-display:'GoonGift Poppins','Segoe UI',sans-serif}
html body,body.gift-workspace-document,body.gift-public-home,#gift-age-root{font-family:var(--gift-font-body)}
/* Feature workspaces retain their authored fonts, including controls and portals. */
body :is(button,input,textarea,select,.family-header):not(:where(.gift-ink-workspace,.gift-ink-workspace *,.gift-hero-workspace,.gift-hero-workspace *,.gift-desk-workspace,.gift-desk-workspace *,.gift-drive-workspace,.gift-drive-workspace *)){font-family:var(--gift-font-body)}
body :is(h1,h2,h3,h4,h5,h6,[role=heading]):not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-family:var(--gift-font-display)!important;font-weight:500;letter-spacing:-.015em;line-height:1.2}
.gift-shell :is(.gift-shell-workspace-toggle,.gift-shell-core-link,.gift-shell-submenu a,.gift-shell-context>span){font-family:var(--gift-font-display)!important;font-weight:500}
.gift-shell-context small{font-family:var(--gift-font-body)}
/* Readability scale: preserve browser font preferences and text-only enlargement. */
html:root{font-size:var(--gift-account-text-scale,100%)!important;--gift-text-small:.83125rem;--gift-text-control:.890625rem;--gift-text-body:.95rem}
html body,body.gift-workspace-document,body.gift-public-home{font-size:var(--gift-text-body)!important;line-height:1.6}
body :is(h1,h2,h3,h4,h5,h6,[role=heading]):not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){letter-spacing:normal;line-height:1.3}
body h1:not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-size:clamp(1.5rem,4vw,2.5rem)!important}
body :is(h2,h3,h4,h5,h6,[role=heading]):not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-size:clamp(1.25rem,3vw,1.5rem)!important}
body :is(input,textarea,select):not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-size:var(--gift-text-body)}
body :is(p,li):not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){overflow-wrap:anywhere}
.gift-shell{--shell-bar:max(60px,3.75rem)}
.gift-shell.is-expanded{--shell-rail:max(252px,15.75rem)}
.gift-shell :is(.gift-shell-workspace-toggle,.gift-shell-core-link,.gift-shell-submenu a){font-size:var(--gift-text-body);line-height:1.4}
.gift-shell-menu :is(.gift-shell-core-link,.gift-shell-manage-workspaces)>span,.gift-shell-workspace-toggle>span,.gift-shell-submenu a{white-space:normal;overflow-wrap:anywhere}
.gift-shell :is(.gift-shell-button,.gift-toggle,.gift-settings-tabs button){font-size:var(--gift-text-control)!important;line-height:1.5;min-height:44px;white-space:normal}
.gift-shell :is(.gift-shell-context small,.gift-shell-eyebrow){letter-spacing:.04em}
.gift-shell :is(.gift-shell-context>span,.gift-shell-account-controls){min-width:0}
.gift-shell :is(.gift-workspace-card p,.gift-workspace-choice>p,.gift-workspace-preview p,.gift-workspace-disabled>p),#profile-root .gift-chat-message p,#profile-root .gift-chat-composer-line>textarea{font-size:var(--gift-text-body)!important;line-height:1.65}
.gift-shell :is(.gift-workspace-choices-footer,.gift-shell-footer,.gift-workspace-landing-bottom){flex-wrap:wrap}
.gift-shell-footer{line-height:1.6}
.gift-widget-header .gift-status-menu{max-width:calc(100vw - 24px)}
.gift-widget-panel :is(.gift-chat-search input,.gift-chat-composer-line>textarea){font-size:var(--gift-text-body)!important}
.gift-widget-panel .gift-chat-composer-line>textarea{height:auto!important;min-height:46px!important}
.gift-widget-panel :is(.gift-chat-thread-meta,.gift-chat-thread-copy>span){white-space:normal;overflow-wrap:anywhere}
.gift-settings-tabs,.gift-social-navigation,.levels-section-nav,.gift-profile-owner-actions{flex-wrap:wrap}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select):not(:where(.caption-layer *,.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-size:var(--gift-text-body)!important;border-color:#907798}
body :is(.login-modal,.report-modal,.gift-logout-dialog,.gift-ink-dialog,.gift-confirm-popover){max-height:calc(100dvh - 32px);overflow:auto;scroll-padding:16px}
.gift-logout-actions,.removal-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
body :is(.gift-shell-error,.gift-native-error,.login-error){line-height:1.6}
/* Native fixed-size dialogs scroll when text or zoom needs extra room. */
body.gift-native-update main{max-width:100%;height:auto}
@media(max-width:700px){.gift-shell,.gift-shell.is-expanded{--shell-rail:0px;--shell-bar:max(56px,3.5rem)}.gift-shell-sidebar{width:min(85vw,max(252px,15.75rem))}.gift-shell-topbar.family-header{gap:8px}.gift-shell-context small{display:none}}
@media(max-width:420px){.gift-shell-context>span{white-space:normal}.gift-shell-account-controls{gap:4px}.gift-shell-community>a{padding-inline:8px;gap:6px}.gift-shell-footer{align-items:flex-start}.gift-workspace-choices,.gift-workspace-landing{width:calc(100% - 2rem)}}
@media(max-width:340px){.gift-shell-context{display:none}.gift-shell-account-controls{margin-left:auto}}
body p:not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-size:var(--gift-text-body)!important;line-height:1.6}
body button:not(:where(#gift-native-caption *,[data-ink-chrome-toggle],.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-size:var(--gift-text-control)!important;line-height:1.5}
.gift-shell :is(.gift-shell-core-link,.gift-shell-workspace-toggle){font-size:var(--gift-text-body)!important}
.gift-shell :is(.gift-shell-sidebar-footer>a,.gift-shell-community>a){font-size:var(--gift-text-control)}
/* Static guest headers are outside Vite's shared CSS adapter. */
body .family-header :is(.site-brand-tagline,.brand-copy small,.brand>span>small),body .family-project-picker :is(.family-picker-label,.family-picker-item small,.family-picker-item em){font-size:var(--gift-text-small)!important;line-height:1.5}
body .family-header :is(.family-nav-links>a,.family-nav-links>button,.site-login,.site-preregister,.top-action-button){font-size:var(--gift-text-control)!important;white-space:normal}
body .family-project-picker :is(b,small,em){font-family:var(--gift-font-body)!important}
@media(max-width:400px){.removal-actions{grid-template-columns:1fr}.removal-brand small{letter-spacing:normal}body:has(.removal-actions) main{padding:18px 16px}.removal-actions button{white-space:normal;overflow-wrap:anywhere}}
@media(max-width:500px){#preferences label{flex-wrap:wrap}#preferences input{width:100%;max-width:100%;box-sizing:border-box}}
.login-modal-backdrop .login-modal-footer{color:#c4afca}
body .family-header :is(.site-brand-tagline,.brand-copy small,.brand>span>small){color:#bca5c5}
.gift-shell .gift-shell-button:not(.secondary){background:linear-gradient(115deg,#a72b77,#89316f);color:#fff1fa}

.gift-shell .gift-shell-submenu a,.gift-shell .gift-shell-core-link{font-weight:400!important}

/* Account comfort settings also apply in GoonGift-owned local native dialogs. */
html[data-gift-motion=reduce] body:is(.gift-native-update,.gift-native-offline),html[data-gift-motion=reduce] body:has(.removal-actions){scroll-behavior:auto}
html[data-gift-motion=reduce] body:is(.gift-native-update,.gift-native-offline) *,html[data-gift-motion=reduce] body:has(.removal-actions) *{transition-duration:0s!important;animation-duration:0s!important}
html[data-gift-contrast=high] body:is(.gift-native-update,.gift-native-offline),html[data-gift-contrast=high] body:has(.removal-actions){background:#100b16;color:#fff}
html[data-gift-contrast=high] body:is(.gift-native-update,.gift-native-offline) :is(main,p,button),html[data-gift-contrast=high] body:has(.removal-actions) :is(main,p,button){color:#fff;border-color:#b9a7c5}

/* Small Gift-only density adjustment; embedded app text keeps its authored scale. */
body h1:not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-size:clamp(1.425rem,3.8vw,2.375rem)!important}
body :is(h2,h3,h4,h5,h6,[role=heading]):not(:where(.gift-ink-workspace *,.gift-hero-workspace *,.gift-desk-workspace *,.gift-drive-workspace *)){font-size:clamp(1.1875rem,2.85vw,1.425rem)!important}
