/* Shared quiet frames, vertical message clock and predictable form actions. */
:root .messenger-root .messenger-bubble.author-message{grid-template-columns:minmax(0,1fr) 48px;column-gap:16px;padding-right:6px;min-width:0}
:root .messenger-root .message-heading{grid-column:1;min-width:0}
:root .messenger-root .message-side-info{grid-column:2;grid-row:1/span 2;display:grid;grid-template-columns:28px 18px;align-items:stretch;column-gap:2px;align-self:start;width:48px;min-width:48px}
:root .messenger-root .message-side-info>.message-meta{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;max-width:none;margin:0;padding:3px 0 2px;font-size:13px;line-height:1.3}
:root .messenger-root .message-side-info>.message-meta>.messenger-receipt{margin-top:auto;padding-top:6px}
:root .messenger-root .message-meta>.message-time-icon{display:block;width:12px;height:12px;flex:0 0 12px;margin:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:root .messenger-root .message-meta time{display:flex;flex-direction:column;align-items:center;gap:3px;width:18px;writing-mode:horizontal-tb;white-space:nowrap;line-height:1}
:root .messenger-root .message-meta :is(.message-time-prefix,.message-time-value){display:block;writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.04em;line-height:1}
:root .content-stamp.is-vertical time{writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.04em;line-height:1.2}
:root .messenger-root .message-meta .message-time-value{font-size:.75em}
:root .messenger-root .message-side-info .message-tools.message-rail{display:flex;flex-direction:column;align-items:center;gap:0;grid-area:auto;padding:0;margin:0}
/* Reserve space below outgoing actions so receipts sit below the last icon. */
:root .messenger-root .messenger-message.mine .message-side-info .message-tools.message-rail{padding-bottom:14px}
:root .content-stamp.is-vertical{float:right;margin:0 0 0 12px;padding:2px 0;font-size:11px;line-height:1.3}
:root .messenger-root .messenger-head>.messenger-block-icon{display:inline-flex;justify-content:center;align-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;margin-left:auto;gap:0;border:1px solid var(--ui-border);background:var(--ui-surface-alt);color:var(--ui-danger)}
:root .messenger-root .messenger-head>.messenger-block-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
:root .messenger-root .messenger-block-icon[aria-pressed=true]{background:color-mix(in srgb,var(--ui-danger) 12%,var(--ui-surface));border-color:var(--ui-danger)}
:root .messenger-root .messenger-block-icon:hover{border-color:var(--ui-danger);background:color-mix(in srgb,var(--ui-danger) 8%,var(--ui-surface))}
:root .messenger-root .messenger-block-icon[hidden]{display:none!important}
:root .profile-page .profile-identity{position:relative;top:auto;display:flex;flex-direction:column;gap:12px;padding:24px;overflow:hidden;clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px));background:linear-gradient(135deg,var(--ui-surface-alt),var(--ui-surface));border:1px solid var(--ui-border);border-top:2px solid var(--ui-secondary);box-shadow:none}
:root .profile-page .profile-identity::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--ui-secondary) 9%,transparent),transparent 65%);z-index:-1}
:root .profile-page .profile-identity-kicker{font-size:11px;color:var(--ui-secondary);margin:0 0 4px;letter-spacing:.08em;line-height:1.6}
:root .profile-page .profile-identity>.person-ui{width:100%;min-width:0;display:flex;align-items:center;gap:12px}
:root .profile-page .profile-identity .person-line{flex-wrap:wrap;gap:5px}
:root .profile-page .profile-identity>.profile-person-email{margin:0;padding:10px 12px;overflow-wrap:anywhere;text-align:left;border-left:2px solid var(--ui-secondary);background:color-mix(in srgb,var(--ui-secondary) 5%,var(--ui-surface));font-size:13px;line-height:1.6}
:root .profile-page .profile-identity>.profile-member-since{margin:0;font-size:12px;line-height:1.5;color:var(--ui-muted)}
:root .profile-page .profile-section-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin:4px 0 0;padding-top:16px;width:100%;border-top:1px solid var(--ui-border)}
:root .profile-page .profile-section-nav a{min-height:44px;gap:8px;font-size:13px;background:var(--ui-surface);border:1px solid var(--ui-border);transform:none}
:root .profile-page .profile-section-nav a:hover{border-color:var(--ui-secondary);background:var(--ui-surface-alt);transform:none}
:root .profile-form-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding-top:16px;margin-top:16px;border-top:1px solid var(--ui-border);width:100%}
:root .profile-form-actions>.profile-action-note{flex:1 1 180px;font-size:12px;line-height:1.6;color:var(--ui-muted)}
:root .profile-form-actions>button{display:inline-flex;justify-content:center;align-items:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;gap:0;flex:0 0 44px}
:root .profile-form-actions>button>.ui-icon{width:20px;height:20px;margin:0}
:root .profile-forms .profile-form{min-height:0;align-content:start;align-self:start}
:root .avatar-ring{animation:none}
@media(hover:hover){:root body :is(.service-card,.price-card,.offer-card,.home-article-card,.blog-story,.case-card,.remote-program-card):hover{transform:translateY(-3px)!important;box-shadow:0 10px 25px color-mix(in srgb,var(--ui-bg) 45%,transparent),inset 0 1px color-mix(in srgb,var(--ui-secondary) 12%,transparent)}}
:root body :is(.service-card,.price-card,.offer-card,.home-article-card,.blog-story,.case-card,.remote-program-card){transform:none;transform-style:flat;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
@media(max-width:700px){:root .profile-page .profile-identity{padding:20px}:root .messenger-root .messenger-head>.messenger-block-icon{width:40px;min-width:40px;flex-basis:40px;height:40px;min-height:40px}:root .profile-form-actions{gap:10px}:root .profile-form-actions>.profile-action-note{flex-basis:150px}}
@media(prefers-reduced-motion:reduce){:root body :is(.service-card,.price-card,.offer-card,.home-article-card,.blog-story,.case-card,.remote-program-card){transition:none!important;transform:none!important}}

:root .messenger-root .messenger-bubble.author-message:not(.has-message-rail){grid-template-columns:minmax(0,1fr) 18px}:root .messenger-root .messenger-bubble:not(.has-message-rail) .message-side-info{width:18px;min-width:18px;grid-template-columns:18px}

:root .shared-comment-time{writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;font-size:11px;line-height:1.2;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:var(--ui-muted)}

/* Public member cards use the same surfaces, type and controls as the account. */
:root .member-page .dashboard-head{align-items:center;gap:20px}
:root .member-page .dashboard-head h1{overflow-wrap:anywhere}
:root .member-layout{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}
:root .member-layout>.dash-panel{min-width:0;margin:0;padding:28px;background:linear-gradient(135deg,var(--ui-surface-alt),var(--ui-surface));border:1px solid var(--ui-border);border-top:2px solid var(--ui-secondary);clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px))}
:root .member-layout>.member-card{border-top-color:var(--ui-accent)}
:root .member-identity .person-ui{align-items:center;gap:14px}
:root .member-identity .avatar-ring{flex:0 0 60px;width:60px;height:60px}
:root .member-identity .person-name{font-size:clamp(18px,2vw,23px);line-height:1.3;overflow-wrap:anywhere;white-space:normal}
:root .member-identity .person-line{gap:8px}
:root .member-meta{display:flex;flex-wrap:wrap;gap:16px 28px;margin:24px 0;padding:18px 0;border-block:1px solid var(--ui-border)}
:root .member-meta>div{display:grid;gap:6px;min-width:0}
:root .member-meta dt{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ui-muted)}
:root .member-meta dt>.ui-icon{width:16px;height:16px}
:root .member-meta dd{margin:0;font-size:14px;font-weight:600;color:var(--ui-text)}
:root .member-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
:root .member-actions form{display:flex;margin:0;padding:0;min-width:0;max-width:100%;border:0;background:none;box-shadow:none}
:root .member-actions .button{min-height:44px;max-width:100%;margin:0;white-space:normal;font-size:14px}
:root .member-friend-state{display:flex;align-items:center;gap:7px;color:var(--ui-muted);font-size:13px;line-height:1.6}
:root .member-friend-state>.ui-icon{width:17px;height:17px;color:var(--ui-accent);flex:none}
:root .member-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
:root .member-section-head h2{display:flex;align-items:center;gap:10px;margin:0;font-size:clamp(20px,2vw,25px);line-height:1.35}
:root .member-section-head h2>.ui-icon{width:23px;height:23px;color:var(--ui-secondary);flex:none}
:root .member-award-count{display:grid;place-items:center;flex:none;min-width:32px;height:32px;padding:0 7px;color:var(--ui-secondary);border:1px solid var(--ui-border);background:var(--ui-surface);font-size:13px}
:root .member-awards-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;margin:0;list-style:none}
:root .member-awards-list>li{min-width:0}
:root .member-award{border:1px solid var(--ui-border);background:var(--ui-surface);transition:border-color .18s,background .18s}
:root .member-award:hover,:root .member-award[open]{border-color:var(--ui-secondary);background:var(--ui-surface-alt)}
:root .member-award summary{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px;cursor:pointer;list-style:none}
:root .member-award summary::-webkit-details-marker{display:none}
:root .member-award summary:focus-visible{outline:2px solid var(--ui-secondary);outline-offset:-3px}
:root .member-award-symbol{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;color:var(--ui-secondary);background:color-mix(in srgb,var(--ui-secondary) 8%,var(--ui-surface));border:1px solid var(--ui-border)}
:root .member-award-symbol>.ui-icon{width:20px;height:20px}
:root .member-award-label{font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
:root .member-award-toggle{margin-left:auto;color:var(--ui-muted);font-size:20px;transition:transform .18s}
:root .member-award[open] .member-award-toggle{transform:rotate(45deg)}
:root .member-award-info{padding:0 14px 14px;border-top:1px solid var(--ui-border);font-size:13px;line-height:1.65;color:var(--ui-muted)}
:root .member-award-info p{margin:12px 0 8px;font-size:13px}
:root .member-award-info small{font-size:12px;color:var(--ui-secondary)}
:root .member-awards-empty{display:flex;align-items:center;gap:14px;padding:18px;background:var(--ui-surface);border:1px dashed var(--ui-border)}
:root .member-awards-empty p{margin:0;color:var(--ui-muted);font-size:14px;line-height:1.7}
@media(max-width:1000px){:root .member-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){:root .member-layout{gap:18px}:root .member-layout>.dash-panel{padding:20px}:root .member-page .dashboard-head{flex-wrap:wrap}:root .member-awards-list{grid-template-columns:minmax(0,1fr)}:root .member-actions{align-items:stretch}:root .member-actions>.button,:root .member-actions>form{width:100%}:root .member-actions form>.button{width:100%}:root .member-friend-state{width:100%}:root .member-identity .avatar-ring{flex-basis:52px;width:52px;height:52px}}


/* The virtual keyboard can shrink or pan visualViewport without changing vh. */
:root body dialog[open][data-viewport-fit]{position:fixed!important;inset:auto!important;top:calc(var(--visible-top) + 12px)!important;left:var(--dialog-visible-left)!important;width:var(--dialog-visible-width)!important;max-width:calc(100vw - 24px)!important;max-height:calc(var(--visible-height) - 24px)!important;margin:0!important;box-sizing:border-box;overflow:auto!important}
:root[data-keyboard-viewport] .messenger-widget .messenger-dialog{top:calc(var(--visible-top) + 12px);bottom:auto;max-height:calc(var(--visible-height) - 24px);overflow:auto}
:root[data-keyboard-viewport] .messenger-widget .messenger-layout{height:max(120px,calc(var(--visible-height) - 140px));min-height:0}
.steps-row>.step{min-width:0}.steps-row>.step h3{overflow-wrap:anywhere}
.hero h1,.hero h1 .hero-word,.steps-row>.step{overflow-wrap:anywhere}
.analytics-choice{max-height:calc(100dvh - 32px);overflow:auto}
.analytics-choice-actions>.button{min-width:0;max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere}
@media(max-width:560px){.analytics-choice-actions>.button{width:100%}}
.section-head>div,.section-heading>div,.manifesto-grid>div,.tools-inner>div,.feature-strip>div,.feature-strip p{min-width:0;max-width:100%;overflow-wrap:anywhere}
.section-head h2,.section-heading h2,.manifesto h2,.tools-inner h2{overflow-wrap:anywhere}
.chat-access-notice p{min-width:0;max-width:100%;overflow-wrap:anywhere}
.chat-notice-actions>a{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.hero-actions>.button,.manifesto .button,.remote-program-button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.cta-box>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.cta-box h2,.home-article-grid a{overflow-wrap:anywhere}
.cta-box .button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
